Class PayloadGenerator.SwissQrCode.Contact
Inherited Members
Namespace: QRCoder
Assembly: Subsembly.Scraper.dll
Syntax
public class PayloadGenerator.SwissQrCode.Contact
Constructors
Contact(string, string, string, string)
Contact type. Can be used for payee, ultimate payee, etc. with address in combined mode (K).
Declaration
[Obsolete("This constructor is deprecated. Use WithCombinedAddress instead.")]
public Contact(string name, string country, string addressLine1, string addressLine2)
Parameters
Type | Name | Description |
---|---|---|
string | name | Last name or company (optional first name) |
string | country | Two-letter country code as defined in ISO 3166-1 |
string | addressLine1 | Adress line 1 |
string | addressLine2 | Adress line 2 |
Contact(string, string, string, string, string, string)
Contact type. Can be used for payee, ultimate payee, etc. with address in structured mode (S).
Declaration
[Obsolete("This constructor is deprecated. Use WithStructuredAddress instead.")]
public Contact(string name, string zipCode, string city, string country, string street = null, string houseNumber = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Last name or company (optional first name) |
string | zipCode | Zip-/Postcode |
string | city | City name |
string | country | Two-letter country code as defined in ISO 3166-1 |
string | street | Streetname without house number |
string | houseNumber | House number |
Methods
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |
Overrides
WithCombinedAddress(string, string, string, string)
Declaration
public static PayloadGenerator.SwissQrCode.Contact WithCombinedAddress(string name, string country, string addressLine1, string addressLine2)
Parameters
Type | Name | Description |
---|---|---|
string | name | |
string | country | |
string | addressLine1 | |
string | addressLine2 |
Returns
Type | Description |
---|---|
PayloadGenerator.SwissQrCode.Contact |
WithStructuredAddress(string, string, string, string, string, string)
Declaration
public static PayloadGenerator.SwissQrCode.Contact WithStructuredAddress(string name, string zipCode, string city, string country, string street = null, string houseNumber = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | |
string | zipCode | |
string | city | |
string | country | |
string | street | |
string | houseNumber |
Returns
Type | Description |
---|---|
PayloadGenerator.SwissQrCode.Contact |