Class ContactListItem
ContactListItem contains the attributes for the contact list item used to represent a contact in lists or as a property on person.
Inherited Members
Namespace: SuperOffice.CRM.Archives
Assembly: SoDataBase.dll
Syntax
public sealed class ContactListItem : ListItemBase<ContactList.ContactListQuery>
Remarks
The contact list item contains some person info on the contact's owner (contact.associate_id).
Constructors
ContactListItem(ContactList.ContactListQuery, SoDataReader)
Default constructor
Declaration
public ContactListItem(ContactList.ContactListQuery query, SoDataReader reader)
Parameters
Type | Name | Description |
---|---|---|
ContactList.ContactListQuery | query | |
SoDataReader | reader |
Properties
AssociateId
The associate id for the contact's owner
Declaration
public int AssociateId { get; }
Property Value
Type | Description |
---|---|
Int32 |
BusinessId
The business list id for the contact
Declaration
public int BusinessId { get; }
Property Value
Type | Description |
---|---|
Int32 |
CategoryId
The category list id for the contact
Declaration
public int CategoryId { get; }
Property Value
Type | Description |
---|---|
Int32 |
City
The city identifier for the contact
Declaration
public string City { get; }
Property Value
Type | Description |
---|---|
String |
ContactId
The unique identifier for the contact
Declaration
public int ContactId { get; }
Property Value
Type | Description |
---|---|
Int32 |
CountryId
The country id for the contact
Declaration
public int CountryId { get; }
Property Value
Type | Description |
---|---|
Int32 |
Department
The contact's department
Declaration
public string Department { get; }
Property Value
Type | Description |
---|---|
String |
DirectPhone
The contact's direct phone
Declaration
public string DirectPhone { get; }
Property Value
Type | Description |
---|---|
String |
The contact's email
Declaration
public string Email { get; }
Property Value
Type | Description |
---|---|
String |
Kananame
Contact kana name, used in Japanese versions only
Declaration
public string Kananame { get; }
Property Value
Type | Description |
---|---|
String |
Name
The name of the contact
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
String |
OrgNr
The contact's organization number
Declaration
public string OrgNr { get; }
Property Value
Type | Description |
---|---|
String |
PersonCountryId
The title for the contact's owner
Declaration
public int PersonCountryId { get; }
Property Value
Type | Description |
---|---|
Int32 |
PersonFirstname
The Firstname for the contact's owner
Declaration
public string PersonFirstname { get; }
Property Value
Type | Description |
---|---|
String |
PersonId
The unique identifier for the contact's owner
Declaration
public int PersonId { get; }
Property Value
Type | Description |
---|---|
Int32 |
PersonLastname
The Lastname for the contact's owner
Declaration
public string PersonLastname { get; }
Property Value
Type | Description |
---|---|
String |
PersonMiddleName
The MiddleName for the contact's owner
Declaration
public string PersonMiddleName { get; }
Property Value
Type | Description |
---|---|
String |
PersonMrmrs
The Mrmrs for the contact's owner
Declaration
public string PersonMrmrs { get; }
Property Value
Type | Description |
---|---|
String |
PersonTitle
The title for the contact's owner
Declaration
public string PersonTitle { get; }
Property Value
Type | Description |
---|---|
String |
PostalAddress
Contact postal address array
Declaration
public string[] PostalAddress { get; }
Property Value
Type | Description |
---|---|
String[] |
Remarks
ordering: address1, address2, address3, city, county, state, zipcode
StreetAddress
Contact street address array
Declaration
public string[] StreetAddress { get; }
Property Value
Type | Description |
---|---|
String[] |
Remarks
ordering: address1, address2, address3, city, county, state, zipcode
UrlAddress
The url for the contact
Declaration
public string UrlAddress { get; }
Property Value
Type | Description |
---|---|
String |
Wgs84Latitude
Declaration
public double Wgs84Latitude { get; }
Property Value
Type | Description |
---|---|
Double |
Wgs84Longitude
Declaration
public double Wgs84Longitude { get; }
Property Value
Type | Description |
---|---|
Double |
Methods
GetContactListItem(Int32)
Get one item by contact id
Declaration
public static ContactListItem GetContactListItem(int contactId)
Parameters
Type | Name | Description |
---|---|---|
Int32 | contactId | The contact id |
Returns
Type | Description |
---|---|
ContactListItem | ContactListItem |
GetContactListItem(Int32, Boolean)
Get one item by contact id, and optionally include data from owning associates person record
Declaration
public static ContactListItem GetContactListItem(int contactId, bool includeOwnerInfo)
Parameters
Type | Name | Description |
---|---|---|
Int32 | contactId | The contact id |
Boolean | includeOwnerInfo | Should data from the owning associates person record be included |
Returns
Type | Description |
---|---|
ContactListItem | ContactListItem |
Initialize()
Initializes all class-members.
Declaration
protected override void Initialize()
Overrides
Load(ContactList.ContactListQuery, SoDataReader)
Responsible for reading the current row in the data reader and insert the value in the right part ob the object.
Declaration
protected override void Load(ContactList.ContactListQuery query, SoDataReader reader)
Parameters
Type | Name | Description |
---|---|---|
ContactList.ContactListQuery | query | |
SoDataReader | reader | The reader contains the items data. |