Class ContactManager
Contains the simplic crm contact manager
Inheritance
Inherited Members
Namespace: Simplic.PlugIn.SAC.Contact
Assembly: Simplic.PlugIn.SAC.dll
Syntax
public class ContactManager
Constructors
| Improve this Doc View SourceContactManager()
Create a new ContactManager instance
Declaration
public ContactManager()
Methods
| Improve this Doc View SourceAssignContactCategory(ContactCategory)
Assign a contact category
Declaration
public void AssignContactCategory(ContactCategory obj)
Parameters
Type | Name | Description |
---|---|---|
ContactCategory | obj | Instance ofContactCategory |
AssignContactRegionCountry(Guid, Guid)
Assign a Country to a ContactRegion
Declaration
public void AssignContactRegionCountry(Guid contactRegionId, Guid countryId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | contactRegionId | Id of the ContactRegion |
System.Guid | countryId | Id of the Country |
AutomaticMerge(Contact, IList<Contact>)
Automatically merge information from contacts into contact. No data will be saved
Declaration
public void AutomaticMerge(Contact mainContact, IList<Contact> contacts)
Parameters
Type | Name | Description |
---|---|---|
Contact | mainContact | Contact in which all information will be merged to |
System.Collections.Generic.IList<Contact> | contacts | Contacts to merge information to |
CheckForDuplicates(Contact)
Checks the given contact for duplicates. Indicators: Firstname + Lastname + Company Name + Additional 01 Street + Country + Zipcode Ust-Id
Declaration
public IList<Contact> CheckForDuplicates(Contact contact)
Parameters
Type | Name | Description |
---|---|---|
Contact | contact | Instance to check for duplicates |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<Contact> | Returns a list of possible duplicates |
CheckForDuplicatesAutomatic()
Saerchs and marks automticly all possible duplicates
Declaration
public int CheckForDuplicatesAutomatic()
Returns
Type | Description |
---|---|
System.Int32 |
Delete(Contact)
Set the delete flag of a contact instance
Declaration
public void Delete(Contact contact)
Parameters
Type | Name | Description |
---|---|---|
Contact | contact | Contact instance |
Delete(Guid)
Set the delete flag of a contact
Declaration
public void Delete(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Contact id |
Delete(Int64)
Set the delete flag of a contact
Declaration
public void Delete(long contactId)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | contactId | Contact id (pk) |
DeleteContactCategory(ContactCategory)
Deletes the passed ContactCategory if it is not in use
Declaration
public void DeleteContactCategory(ContactCategory currentObject)
Parameters
Type | Name | Description |
---|---|---|
ContactCategory | currentObject |
DeleteContactRegion(ContactRegion)
Remove a ContactRegion
Declaration
public void DeleteContactRegion(ContactRegion obj)
Parameters
Type | Name | Description |
---|---|---|
ContactRegion | obj | Object to delete |
DeleteContactRegion(Guid)
Remove a ContactRegion
Declaration
public void DeleteContactRegion(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Id value |
DeleteContactSubType(ContactSubType)
Deletes the passed ContactType if it is not in use
Declaration
public void DeleteContactSubType(ContactSubType type)
Parameters
Type | Name | Description |
---|---|---|
ContactSubType | type |
DeleteContactSubTypeState(ContactSubTypeState)
Deletes the passed ContactState if it is not in use
Declaration
public void DeleteContactSubTypeState(ContactSubTypeState state)
Parameters
Type | Name | Description |
---|---|---|
ContactSubTypeState | state |
DeleteContactType(ContactType)
Remove a ContactType
Declaration
public void DeleteContactType(ContactType obj)
Parameters
Type | Name | Description |
---|---|---|
ContactType | obj | Object to delete |
DeleteContactType(Int32)
Remove a ContactType
Declaration
public void DeleteContactType(int contactTypeKeyId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | contactTypeKeyId | ContactTypeKeyId value |
DeleteEMailAddress(EMailAddress)
Delete mail address from contact
Declaration
public void DeleteEMailAddress(EMailAddress address)
Parameters
Type | Name | Description |
---|---|---|
EMailAddress | address | E-Mail address object |
DeleteEMailAddressType(EMailAddressType)
Remove a EMailAddressType
Declaration
public void DeleteEMailAddressType(EMailAddressType obj)
Parameters
Type | Name | Description |
---|---|---|
EMailAddressType | obj | Object to delete |
DeleteEMailAddressType(Int32)
Remove a EMailAddressType
Declaration
public void DeleteEMailAddressType(int eMailAddressKeyId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | eMailAddressKeyId | EMailAddressKeyId value |
DeleteOpeningHour(OpeningHour)
Deletes an opening hour
Declaration
public void DeleteOpeningHour(OpeningHour op)
Parameters
Type | Name | Description |
---|---|---|
OpeningHour | op |
DeletePhoneNumberType(PhoneNumberType)
Remove a PhoneNumberType
Declaration
public void DeletePhoneNumberType(PhoneNumberType obj)
Parameters
Type | Name | Description |
---|---|---|
PhoneNumberType | obj | Object to delete |
DeletePhoneNumberType(Int32)
Remove a PhoneNumberType
Declaration
public void DeletePhoneNumberType(int phoneNumberKeyId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | phoneNumberKeyId | PhoneNumberKeyId value |
DeletePhysicalAddress(PhysicalAddress)
Delete physical address from contact
Declaration
public void DeletePhysicalAddress(PhysicalAddress address)
Parameters
Type | Name | Description |
---|---|---|
PhysicalAddress | address | Physical address object |
DeletePhysicalAddressPOIs(IList<PhysicalAddressPOI>)
Removes a list of POIs from the database
Declaration
public void DeletePhysicalAddressPOIs(IList<PhysicalAddressPOI> pois)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<PhysicalAddressPOI> | pois | List of pois |
DeletePhysicalAddressType(PhysicalAddressType)
Remove a PhysicalAddressType
Declaration
public void DeletePhysicalAddressType(PhysicalAddressType obj)
Parameters
Type | Name | Description |
---|---|---|
PhysicalAddressType | obj | Object to delete |
DeletePhysicalAddressType(Int32)
Remove a PhysicalAddressType
Declaration
public void DeletePhysicalAddressType(int physicalAddressKeyId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | physicalAddressKeyId | PhysicalAddressKeyId value |
Get(Guid)
Get a contact instance by its guid
Declaration
public Contact Get(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Unique guid |
Returns
Type | Description |
---|---|
Contact | Returns an instance of Contact if found, else null |
GetAll()
Get all contacts
Declaration
public IEnumerable<Contact> GetAll()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Contact> | IEnumerable of Contact |
GetAllAddresses(Boolean)
Get an enumerable of all physical addresses
Declaration
public static IEnumerable<PhysicalAddress> GetAllAddresses(bool includeDeleted)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | includeDeleted | If set to true, deleted addresses will also be included |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<PhysicalAddress> | Enumerable of addresses |
GetAllByCategoryId(Guid)
Gets a list of contacts based on a category id
Declaration
public IEnumerable<Contact> GetAllByCategoryId(Guid categoryId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | categoryId |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Contact> |
GetAllContactRegions()
Get all ContactRegion
Declaration
public IEnumerable<ContactRegion> GetAllContactRegions()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ContactRegion> | IEnumerable of ContactRegion |
GetAllContactSubTypes()
Gets all ContactType
Declaration
public IEnumerable<ContactSubType> GetAllContactSubTypes()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ContactSubType> |
GetAllContactTypes()
Get all ContactType
Declaration
public IEnumerable<ContactType> GetAllContactTypes()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ContactType> | IEnumerable of ContactType |
GetAllEMailAddressTypes()
Get all EMailAddressType
Declaration
public IEnumerable<EMailAddressType> GetAllEMailAddressTypes()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<EMailAddressType> | IEnumerable of EMailAddressType |
GetAllPhoneNumberTypes()
Get all PhoneNumberType
Declaration
public IEnumerable<PhoneNumberType> GetAllPhoneNumberTypes()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<PhoneNumberType> | IEnumerable of PhoneNumberType |
GetAllPhysicalAddressTypes()
Get all PhysicalAddressType
Declaration
public IEnumerable<PhysicalAddressType> GetAllPhysicalAddressTypes()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<PhysicalAddressType> | IEnumerable of PhysicalAddressType |
GetById(Int64)
Get a contact instance by its primary key
Declaration
public Contact GetById(long contactId)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | contactId | Unique id (pf) |
Returns
Type | Description |
---|---|
Contact | Returns an instance of Contact if found, else null |
GetByReferenceId(Int64, Boolean)
Get a list of referenced contacts
Declaration
public IEnumerable<Contact> GetByReferenceId(long contactIdRef, bool includeDeleted = false)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | contactIdRef | Determines whether to load deleted contacts or not |
System.Boolean | includeDeleted |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Contact> | Returns a list of contacts |
GetByRepresentativeGroup(Guid)
Get a list of Contacts with that representativeGroup
Declaration
public IEnumerable<Contact> GetByRepresentativeGroup(Guid representativeGroupGuid)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | representativeGroupGuid |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Contact> |
GetContactCategories(Int64)
Get an enumerable of categories assigned to a contact
Declaration
public IEnumerable<ContactCategory> GetContactCategories(long contactId)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | contactId | Cotnact id |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ContactCategory> | Category enumerable |
GetContactCategory(Guid)
Gets the ContactCategory with the passed Guid
Declaration
public ContactCategory GetContactCategory(Guid guid)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | guid |
Returns
Type | Description |
---|---|
ContactCategory |
GetContactCategoryByName(String)
Gets the contact category with the given name.
Declaration
public ContactCategory GetContactCategoryByName(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of a contact category. |
Returns
Type | Description |
---|---|
ContactCategory |
GetContactGuidsFromMsgFile(Byte[])
Get the guids of those contacts that have a mail address found in the sender or receivers of the given msg file.
Declaration
public static IList<Guid> GetContactGuidsFromMsgFile(byte[] msgFile)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | msgFile | Msg file to process |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<System.Guid> |
GetContactRegion(Guid)
Get a single ContactRegion
Declaration
public ContactRegion GetContactRegion(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Id value |
Returns
Type | Description |
---|---|
ContactRegion | ContactRegion instance, else null |
GetContactSubType(Guid)
Gets the ContactType with the passed Guid
Declaration
public ContactSubType GetContactSubType(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id |
Returns
Type | Description |
---|---|
ContactSubType |
GetContactSubType(Int32)
Gets the ContactType with the passed integer id
Declaration
public ContactSubType GetContactSubType(int subTypeId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | subTypeId |
Returns
Type | Description |
---|---|
ContactSubType |
GetContactSubTypeState(Guid)
Gets the ContactState with the passed Guid
Declaration
public ContactSubTypeState GetContactSubTypeState(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id |
Returns
Type | Description |
---|---|
ContactSubTypeState |
GetContactSubTypeState(Int32)
Gets the ContactState with the passed integer
Declaration
public ContactSubTypeState GetContactSubTypeState(int contactStateId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | contactStateId |
Returns
Type | Description |
---|---|
ContactSubTypeState |
GetContactType(Int32)
Get a single ContactType
Declaration
public ContactType GetContactType(int contactTypeKeyId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | contactTypeKeyId | ContactTypeKeyId value |
Returns
Type | Description |
---|---|
ContactType | ContactType instance, else null |
GetCountriesWithContactRegionId(Guid)
Get a single Country
Declaration
public IEnumerable<Country> GetCountriesWithContactRegionId(Guid contactRegionid)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | contactRegionid | Id value |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Country> | ContactRegion instance, else null |
GetEMailAddressType(Int32)
Get a single EMailAddressType
Declaration
public EMailAddressType GetEMailAddressType(int eMailAddressKeyId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | eMailAddressKeyId | EMailAddressKeyId value |
Returns
Type | Description |
---|---|
EMailAddressType | EMailAddressType instance, else null |
GetFriendlyName(Guid)
Get the "friendly" contact name, which is: Company Name -> Additional 01 -> FirstName -> LastName
Declaration
public static string GetFriendlyName(Guid contactId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | contactId | Unique contact guid |
Returns
Type | Description |
---|---|
System.String | Friendly name as string, or an empty string |
GetMailAddressesByContactId(Int64)
Get all mail addresses for a contact
Declaration
public IEnumerable<EMailAddress> GetMailAddressesByContactId(long contactId)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | contactId | Contact id |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<EMailAddress> | IEnumerable of mail addresses |
GetMailAddressesByContactId(Int64, Int64)
Get all mail addresses for a contact
Declaration
public IEnumerable<EMailAddress> GetMailAddressesByContactId(long contactId, long physicalAddressId)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | contactId | Contact id |
System.Int64 | physicalAddressId |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<EMailAddress> | IEnumerable of mail addresses |
GetNewContactId()
Gets the next free contact id
Declaration
public long GetNewContactId()
Returns
Type | Description |
---|---|
System.Int64 | contactId |
GetOpeningHoursByContactId(Int64)
Gets all opening hours referred to the given contact id
Declaration
public IEnumerable<OpeningHour> GetOpeningHoursByContactId(long contactId)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | contactId |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<OpeningHour> |
GetPhoneNumbersByContactId(Int64)
Get all phone numbers for a contact
Declaration
public IEnumerable<PhoneNumber> GetPhoneNumbersByContactId(long contactId)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | contactId | Contact id |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<PhoneNumber> | IEnumerable of phone numbers |
GetPhoneNumbersByContactId(Int64, Int64)
Get all phone numbers for a contact
Declaration
public IEnumerable<PhoneNumber> GetPhoneNumbersByContactId(long contactId, long physicalAddressId)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | contactId | Contact id |
System.Int64 | physicalAddressId |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<PhoneNumber> | IEnumerable of phone numbers |
GetPhoneNumberType(Int32)
Get a single PhoneNumberType
Declaration
public PhoneNumberType GetPhoneNumberType(int phoneNumberKeyId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | phoneNumberKeyId | PhoneNumberKeyId value |
Returns
Type | Description |
---|---|
PhoneNumberType | PhoneNumberType instance, else null |
GetPhysicalAddress(Guid, PhysicalAddressType)
Gets a physical address key id
Declaration
public static PhysicalAddress GetPhysicalAddress(Guid contactGuid, PhysicalAddressType addressType)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | contactGuid | Unique contact guid |
PhysicalAddressType | addressType | Type if the phsyical address from a predefined list |
Returns
Type | Description |
---|---|
PhysicalAddress | Instance of an phsyical address if found, else null |
GetPhysicalAddress(Guid, Int32)
Gets a physical address key id
Declaration
public static PhysicalAddress GetPhysicalAddress(Guid contactGuid, int addressTypeId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | contactGuid | Unique contact guid |
System.Int32 | addressTypeId |
Returns
Type | Description |
---|---|
PhysicalAddress | Instance of an phsyical address if found, else null |
GetPhysicalAddresses(Int64, Boolean)
Get a physical address by its id
Declaration
public PhysicalAddress GetPhysicalAddresses(long addressId, bool includeDeleted = false)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | addressId | Contact id |
System.Boolean | includeDeleted | Gets or sets whether to include deleted addresses or not |
Returns
Type | Description |
---|---|
PhysicalAddress | Address instance |
GetPhysicalAddressesByContactId(Int64, Boolean)
Get all physical addresses for a contact
Declaration
public IEnumerable<PhysicalAddress> GetPhysicalAddressesByContactId(long contactId, bool includeDeleted = false)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | contactId | Contact id |
System.Boolean | includeDeleted | Gets or sets whether to include deleted addresses or not |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<PhysicalAddress> | IEnumerable of physical addresses |
GetPhysicalAddressPOI(Guid)
Gets a single physical address poi by its id
Declaration
public PhysicalAddressPOI GetPhysicalAddressPOI(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Unique POI-Id |
Returns
Type | Description |
---|---|
PhysicalAddressPOI | A poi if exists |
GetPhysicalAddressPOIs(Int64)
Gets a list of pois by there connected physical address id
Declaration
public IEnumerable<PhysicalAddressPOI> GetPhysicalAddressPOIs(long physicalAddressId)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | physicalAddressId | Unique physical address id |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<PhysicalAddressPOI> | Enumerable of pois |
GetPhysicalAddressType(Int32)
Get a single PhysicalAddressType
Declaration
public PhysicalAddressType GetPhysicalAddressType(int physicalAddressKeyId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | physicalAddressKeyId | PhysicalAddressKeyId value |
Returns
Type | Description |
---|---|
PhysicalAddressType | PhysicalAddressType instance, else null |
GetPrimaryPhysicalAddress(Int64)
Gets the primary physical address for a referencing contact
Declaration
public PhysicalAddress GetPrimaryPhysicalAddress(long contactIdRef)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | contactIdRef | Primary contact id |
Returns
Type | Description |
---|---|
PhysicalAddress | PhysicalAddress instance |
GetSelectableContactCategories()
Get an enumerable of selectable categories
Declaration
public IEnumerable<ContactCategory> GetSelectableContactCategories()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ContactCategory> | Enumerable of selectable categories |
NewContactCategory()
Creates a new empty ContactCategory
Declaration
public ContactCategory NewContactCategory()
Returns
Type | Description |
---|---|
ContactCategory |
NewContactSubType()
Creates a new empty ContactType
Declaration
public ContactSubType NewContactSubType()
Returns
Type | Description |
---|---|
ContactSubType |
NewContactSubTypeState()
Creates a new empty ContactState
Declaration
public ContactSubTypeState NewContactSubTypeState()
Returns
Type | Description |
---|---|
ContactSubTypeState |
RestoreDeletedContact(Int64)
Sets the delete flag of a contact to 0
Declaration
public void RestoreDeletedContact(long contactId)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | contactId |
Save(Contact, Boolean)
Create or update a contact instance
Declaration
public void Save(Contact contact, bool saveAnalysisValues = false)
Parameters
Type | Name | Description |
---|---|---|
Contact | contact | Contact instance |
System.Boolean | saveAnalysisValues | If set to true, loaded analysis values will be saved too |
Save(Contact, Boolean, Boolean)
Create or update a contact instance
Declaration
public void Save(Contact contact, bool cloudUpload, bool saveAnalysisValues = false)
Parameters
Type | Name | Description |
---|---|---|
Contact | contact | Contact instance |
System.Boolean | cloudUpload | Whether the contact should be uploaded in the cloud. |
System.Boolean | saveAnalysisValues | If set to true, loaded analysis values will be saved too |
SaveContactCategory(ContactCategory)
Saves the passed ContactCategory to the db
Declaration
public void SaveContactCategory(ContactCategory currentObject)
Parameters
Type | Name | Description |
---|---|---|
ContactCategory | currentObject |
SaveContactRegion(ContactRegion)
Save a ContactRegion
Declaration
public void SaveContactRegion(ContactRegion obj)
Parameters
Type | Name | Description |
---|---|---|
ContactRegion | obj | Object to save |
SaveContactSubType(ContactSubType)
Saves the passed ContactType to the db
Declaration
public void SaveContactSubType(ContactSubType type)
Parameters
Type | Name | Description |
---|---|---|
ContactSubType | type |
SaveContactSubTypeState(ContactSubTypeState)
Saves the passed ContactState to the db
Declaration
public void SaveContactSubTypeState(ContactSubTypeState state)
Parameters
Type | Name | Description |
---|---|---|
ContactSubTypeState | state |
SaveContactType(ContactType)
Save a ContactType
Declaration
public void SaveContactType(ContactType obj)
Parameters
Type | Name | Description |
---|---|---|
ContactType | obj | Object to save |
SaveEMailAddress(EMailAddress)
Save email information
Declaration
public void SaveEMailAddress(EMailAddress address)
Parameters
Type | Name | Description |
---|---|---|
EMailAddress | address | E-Mail address object |
SaveEMailAddressType(EMailAddressType)
Save a EMailAddressType
Declaration
public void SaveEMailAddressType(EMailAddressType obj)
Parameters
Type | Name | Description |
---|---|---|
EMailAddressType | obj | Object to save |
SaveMergedContacts(Contact, IList<Contact>)
Save merge contact information
Declaration
public void SaveMergedContacts(Contact mainContact, IList<Contact> contacts)
Parameters
Type | Name | Description |
---|---|---|
Contact | mainContact | Contact which are all information merged into |
System.Collections.Generic.IList<Contact> | contacts | Contacts that will be maked as duplicate |
SaveOpeningHour(OpeningHour)
Saves an opening hour
Declaration
public void SaveOpeningHour(OpeningHour op)
Parameters
Type | Name | Description |
---|---|---|
OpeningHour | op |
SavePhoneNumberType(PhoneNumberType)
Save a PhoneNumberType
Declaration
public void SavePhoneNumberType(PhoneNumberType obj)
Parameters
Type | Name | Description |
---|---|---|
PhoneNumberType | obj | Object to save |
SavePhysicalAddress(PhysicalAddress)
Save physical information
Declaration
public void SavePhysicalAddress(PhysicalAddress address)
Parameters
Type | Name | Description |
---|---|---|
PhysicalAddress | address | Physical address object |
SavePhysicalAddressPOIs(IList<PhysicalAddressPOI>)
Save a list of POIs to the database
Declaration
public void SavePhysicalAddressPOIs(IList<PhysicalAddressPOI> pois)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<PhysicalAddressPOI> | pois | List of pois |
SavePhysicalAddressType(PhysicalAddressType)
Save a PhysicalAddressType
Declaration
public void SavePhysicalAddressType(PhysicalAddressType obj)
Parameters
Type | Name | Description |
---|---|---|
PhysicalAddressType | obj | Object to save |
SearchContactByNickName(String)
Gets the Contact by nickname
Declaration
public Contact SearchContactByNickName(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | nickname |
Returns
Type | Description |
---|---|
Contact |
SetDuplicateState(Guid, DuplicateState)
Sets the duplicate state for a specific contact
Declaration
public void SetDuplicateState(Guid contactGuid, DuplicateState state)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | contactGuid | Unique contact id |
DuplicateState | state | Unique state |
UnassignContactCategory(ContactCategory)
Unsassign contact category
Declaration
public void UnassignContactCategory(ContactCategory obj)
Parameters
Type | Name | Description |
---|---|---|
ContactCategory | obj | Instance ofContactCategory |
UnassignContactRegionCountry(Guid, Guid)
Unassign a Country from a ContactRegion
Declaration
public void UnassignContactRegionCountry(Guid contactRegionId, Guid countryId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | contactRegionId | Id of the ContactRegion |
System.Guid | countryId | Id of the Country |