Class NcNANPTelephoneNumberType
A data type for a North American Numbering Plan telephone number.
Inheritance
Implements
Inherited Members
Namespace: NiemTypes
Assembly: EidoLib.dll
Syntax
[DataContract]
public class NcNANPTelephoneNumberType : IEquatable<NcNANPTelephoneNumberType>
Properties
Context
ncNANPTelephoneNumberType JSON-LD context
Declaration
[DataMember(Name = "@context")]
public NcNANPTelephoneNumberType.ContextEnum? Context { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<NcNANPTelephoneNumberType.ContextEnum> | ncNANPTelephoneNumberType JSON-LD context |
TelephoneAreaCodeId
A dialing code for a state or province for phone numbers in the USA, Canada, Mexico, and the Caribbean. NIEM reference is nc:TelephoneAreaCodeID
Declaration
[DataMember(Name = "telephoneAreaCodeId")]
public List<NiemXsstring> TelephoneAreaCodeId { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NiemXsstring> | A dialing code for a state or province for phone numbers in the USA, Canada, Mexico, and the Caribbean. NIEM reference is nc:TelephoneAreaCodeID |
TelephoneExchangeId
A portion of a telephone number that usually represents a central telephone switch. NIEM reference is nc:TelephoneExchangeID
Declaration
[DataMember(Name = "telephoneExchangeId")]
public List<NiemXsstring> TelephoneExchangeId { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NiemXsstring> | A portion of a telephone number that usually represents a central telephone switch. NIEM reference is nc:TelephoneExchangeID |
TelephoneLineId
A portion of a telephone number that identifies the individual circuit within an exchange. NIEM reference is nc:TelephoneLineID
Declaration
[DataMember(Name = "telephoneLineId")]
public List<NiemXsstring> TelephoneLineId { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NiemXsstring> | A portion of a telephone number that identifies the individual circuit within an exchange. NIEM reference is nc:TelephoneLineID |
TelephoneSuffixId
An additional sequence of numbers to be entered after a call connects to be directed to the appropriate place. NIEM reference is nc:TelephoneSuffixID
Declaration
[DataMember(Name = "telephoneSuffixId")]
public List<NiemXsstring> TelephoneSuffixId { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NiemXsstring> | An additional sequence of numbers to be entered after a call connects to be directed to the appropriate place. NIEM reference is nc:TelephoneSuffixID |
Methods
Equals(NcNANPTelephoneNumberType)
Returns true if NcNANPTelephoneNumberType instances are equal
Declaration
public bool Equals(NcNANPTelephoneNumberType other)
Parameters
Type | Name | Description |
---|---|---|
NcNANPTelephoneNumberType | other | Instance of NcNANPTelephoneNumberType to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | Object to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Overrides
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
Overrides
ToJson()
Returns the JSON string presentation of the object
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System.String | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String presentation of the object |
Overrides
Operators
Equality(NcNANPTelephoneNumberType, NcNANPTelephoneNumberType)
Declaration
public static bool operator ==(NcNANPTelephoneNumberType left, NcNANPTelephoneNumberType right)
Parameters
Type | Name | Description |
---|---|---|
NcNANPTelephoneNumberType | left | |
NcNANPTelephoneNumberType | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(NcNANPTelephoneNumberType, NcNANPTelephoneNumberType)
Declaration
public static bool operator !=(NcNANPTelephoneNumberType left, NcNANPTelephoneNumberType right)
Parameters
Type | Name | Description |
---|---|---|
NcNANPTelephoneNumberType | left | |
NcNANPTelephoneNumberType | right |
Returns
Type | Description |
---|---|
System.Boolean |