Class SimpleContactInfo
Plain-old-data implementation of IContactInfo, intended for situations where the client knows everything and does not want the database to be involved (for instance, when running on unsaved data)
Inherited Members
Namespace: SuperOffice.CRM.Entities.Providers
Assembly: SoDataBase.dll
Syntax
public class SimpleContactInfo : IContactInfo2, IContactInfo
Constructors
SimpleContactInfo()
Plain-old-data implementation of IContactInfo, intended for situations where the client knows everything and does not want the database to be involved (for instance, when running on unsaved data)
Declaration
public SimpleContactInfo()
Properties
AddressLine1
Postal address line 1. If this is empty, street address line 1
Declaration
public string AddressLine1 { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Business
Business
Declaration
public string Business { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Category
Category
Declaration
public string Category { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Code
Code
Declaration
public string Code { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ContactId
Primary key of the contact
Declaration
public int ContactId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Country
Country
Declaration
public string Country { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Country2
Country if different from the sender's country
Declaration
public string Country2 { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
CountryCode
Country code
Declaration
public string CountryCode { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
CountryEnglish
English name of country
Declaration
public string CountryEnglish { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
CountryId
Country ID from database
Declaration
public int CountryId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
County
County
Declaration
public string County { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
CountyZipUK
County and postcode (for UK addresses)
Declaration
public string CountyZipUK { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Department
Department
Declaration
public string Department { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Primary e-mail address.
Declaration
public string EMail { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
EMailId
Primary e-mail address id.
Declaration
public int EMailId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Fax
Fax
Declaration
public string Fax { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
FaxId
Fax id
Declaration
public int FaxId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
FaxStripped
Fax. Any non digit characters are stripped.
Declaration
public string FaxStripped { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
LineFeedAustraliaUK
Line feed for Australian and UK treatment of counties and postcodes
Declaration
public string LineFeedAustraliaUK { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
LineFeedGermany
Line feed for internal post in Germany
Declaration
public string LineFeedGermany { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Name
Company name
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Number
Number
Declaration
public string Number { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
OrganisationNumber
Organisation number
Declaration
public string OrganisationNumber { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
OurContact
Our contact
Declaration
public string OurContact { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Phone
Phone
Declaration
public string Phone { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PhoneId
Phone Id
Declaration
public int PhoneId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
PostCode
Postcode including country prefix (e.g. N-0163 for a postcode in Norway)
Declaration
public string PostCode { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PostalAddressCity
Postal town
Declaration
public string PostalAddressCity { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PostalAddressCityFull
Postal town, state/province and zipcode (for American, Canadian and Australian addresses, e.g. Bedford, MA 01730)
Declaration
public string PostalAddressCityFull { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PostalAddressCounty
County (for UK addresses)
Declaration
public string PostalAddressCounty { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PostalAddressLine1
Postal Address, line 1
Declaration
public string PostalAddressLine1 { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PostalAddressLine1And3
First address line, including Mail Stop (for American addresses).
Declaration
public string PostalAddressLine1And3 { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PostalAddressLine2
Postal Address, line 2
Declaration
public string PostalAddressLine2 { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PostalAddressLine3
Postal Address, line 3
Declaration
public string PostalAddressLine3 { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PostalAddressPrefix
Postcode prefix
Declaration
public string PostalAddressPrefix { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PostalAddressState
State/province (for American, Canadian and Australian addresses). (See also aucs.)
Declaration
public string PostalAddressState { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PostalAddressZip
Postcode. (See also aucs.)
Declaration
public string PostalAddressZip { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PostalAddressZipCity
Postcode and postal town (e.g. 0572 OSLO)
Declaration
public string PostalAddressZipCity { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
StreetAddressCity
Street town
Declaration
public string StreetAddressCity { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
StreetAddressCityFull
Streetaddress town, state/province and zipcode (for American, Canadian and Australian addresses, e.g. Bedford, MA 01730)
Declaration
public string StreetAddressCityFull { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
StreetAddressLine1
Street Address, line 1
Declaration
public string StreetAddressLine1 { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
StreetAddressLine2
Street Address, line 2
Declaration
public string StreetAddressLine2 { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
StreetAddressLine3
Street Address, line 3
Declaration
public string StreetAddressLine3 { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
StreetAddressState
State/province (for American, Canadian and Australian addresses). (See also aucs.)
Declaration
public string StreetAddressState { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
StreetAddressZip
Postcode. (See also aucs.)
Declaration
public string StreetAddressZip { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
StreetAddressZipGerman
Postcode for street address (for German addresses)
Declaration
public string StreetAddressZipGerman { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
SupportPersonId
Contact's support person ID
Declaration
public int SupportPersonId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
UdefDecimal
Set the value of a user-defined DECIMAL field, identified by the field number (1-10)
Declaration
public InfoUdefDict UdefDecimal { get; set; }
Property Value
| Type | Description |
|---|---|
| InfoUdefDict |
UdefInt
Set the value of a user-defined INT field, identified by the field number (1-60)
Declaration
public InfoUdefDict UdefInt { get; set; }
Property Value
| Type | Description |
|---|---|
| InfoUdefDict |
UdefString
Set the value of a user-defined STRING field, identified by the field number. Number 1-40 are short strings, 41-49 are long strings
Declaration
public InfoUdefDict UdefString { get; set; }
Property Value
| Type | Description |
|---|---|
| InfoUdefDict |
Web
Primary web address.
Declaration
public string Web { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
WebId
Primary web address id
Declaration
public int WebId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
GetInternationalAddress(int)
FADx elements
Declaration
[Obsolete("FAD international addresses are handled through a separate system, see FadTags.cs", true)]
public string GetInternationalAddress(int lineNo)
Parameters
| Type | Name | Description |
|---|---|---|
| int | lineNo |
Returns
| Type | Description |
|---|---|
| string |
GetSupportPersonNameAsync(CancellationToken)
Contact's support person - Full name
Declaration
public Task<string> GetSupportPersonNameAsync(CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<string> |
GetUserDefinedDecimal(int)
User-defined field 1-10 of the decimal (.NET double) number type.
Declaration
public string GetUserDefinedDecimal(int fieldNo)
Parameters
| Type | Name | Description |
|---|---|---|
| int | fieldNo | Field number (1-10). |
Returns
| Type | Description |
|---|---|
| string | User-defined field value. |
GetUserDefinedDecimal(string)
NOT SUPPORTED: Get the decimal udef value based on the prog.id name of the udef field.
Declaration
public double GetUserDefinedDecimal(string progId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | progId |
Returns
| Type | Description |
|---|---|
| double |
GetUserDefinedInt(int)
Get user-defined field 1-60 of the whole (.NET Int32) number type.
Declaration
public string GetUserDefinedInt(int fieldNo)
Parameters
| Type | Name | Description |
|---|---|---|
| int | fieldNo | Field number (1-60). |
Returns
| Type | Description |
|---|---|
| string | User-defined field value. |
GetUserDefinedInt(string)
NOT SUPPORTED: Get the int udef value based on the prog.id name of the udef field.
Declaration
public int GetUserDefinedInt(string progId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | progId |
Returns
| Type | Description |
|---|---|
| int |
GetUserDefinedString(int)
Get user-defined field 1-49 of the text (.NET string) type.
Declaration
public string GetUserDefinedString(int fieldNo)
Parameters
| Type | Name | Description |
|---|---|---|
| int | fieldNo | Field number (1-39). |
Returns
| Type | Description |
|---|---|
| string | User-defined field value. |
GetUserDefinedString(string)
NOT SUPPORTED: Get the string udef value based on the prog.id name of the udef field.
Declaration
public string GetUserDefinedString(string progId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | progId |
Returns
| Type | Description |
|---|---|
| string |