Aspose::Email::PersonalInfo::PostalAddressCategory Class Reference

Represents category for a postal address More...

Inherits IEquatable< System::SharedPtr< Aspose::Email::PersonalInfo::PostalAddressCategory > >.

Public Member Functions

System::String get_Value () const
 Gets category of a postal address More...
 
System::String get_Description () const
 Gets description for the 'Custom' category of a postal address More...
 
 PostalAddressCategory (System::String value, System::String description)
 Initializes a new instance of the PostalAddressCategory class with 'Custom' category. More...
 
 PostalAddressCategory (System::String description)
 Initializes a new instance of the PostalAddressCategory class with 'Custom' category. More...
 
int32_t GetHashCode () const override
 GetHashCode returns a hash function for this object. More...
 
bool Equals (System::SharedPtr< System::Object > obj) override
 Determines whether the specified Object is equal to the current Object. More...
 
bool Equals (System::SharedPtr< PostalAddressCategory > other) override
 Determines whether the specified object is equal to the current object. More...
 
System::String ToString () const override
 Returns a string that represents the current object. More...
 

Static Public Member Functions

static System::SharedPtr< PostalAddressCategoryget_Home ()
 Defines a type of an address as a home address. More...
 
static System::SharedPtr< PostalAddressCategoryget_Work ()
 Defines a type of an address as a work address. More...
 
static System::SharedPtr< PostalAddressCategoryget_Custom ()
 Defines a type of an address as an address of type other. More...
 

Static Public Attributes

static const System::String HomeValue
 String value for 'Home' category More...
 
static const System::String WorkValue
 String value for 'Work' category More...
 
static const System::String CustomValue
 String value for 'Custom' category More...
 

Friends

bool operator== (System::SharedPtr< PostalAddressCategory > a, System::SharedPtr< PostalAddressCategory > b)
 
bool operator!= (System::SharedPtr< PostalAddressCategory > a, System::SharedPtr< PostalAddressCategory > b)
 

Detailed Description

Represents category for a postal address

Constructor & Destructor Documentation

◆ PostalAddressCategory() [1/2]

Aspose::Email::PersonalInfo::PostalAddressCategory::PostalAddressCategory ( System::String  value,
System::String  description 
)

Initializes a new instance of the PostalAddressCategory class with 'Custom' category.

Parameters
valuepostal address category
descriptionDescription for the 'Custom' category of a postal address

◆ PostalAddressCategory() [2/2]

Aspose::Email::PersonalInfo::PostalAddressCategory::PostalAddressCategory ( System::String  description)

Initializes a new instance of the PostalAddressCategory class with 'Custom' category.

Parameters
descriptionDescription for the 'Custom' category of a postal address

Member Function Documentation

◆ Equals() [1/2]

bool Aspose::Email::PersonalInfo::PostalAddressCategory::Equals ( System::SharedPtr< PostalAddressCategory other)
override

Determines whether the specified object is equal to the current object.

Parameters
otherThe object to compare with the current object.
Returns
true if the specified object is equal to the current object; otherwise, false.

◆ Equals() [2/2]

bool Aspose::Email::PersonalInfo::PostalAddressCategory::Equals ( System::SharedPtr< System::Object >  obj)
override

Determines whether the specified Object is equal to the current Object.

Parameters
objThe Object to compare with the current Object.
Returns
Returns a boolean indicating if the passed in object obj is Equal to this.

◆ get_Custom()

static System::SharedPtr<PostalAddressCategory> Aspose::Email::PersonalInfo::PostalAddressCategory::get_Custom ( )
static

Defines a type of an address as an address of type other.

◆ get_Description()

System::String Aspose::Email::PersonalInfo::PostalAddressCategory::get_Description ( ) const

Gets description for the 'Custom' category of a postal address

◆ get_Home()

static System::SharedPtr<PostalAddressCategory> Aspose::Email::PersonalInfo::PostalAddressCategory::get_Home ( )
static

Defines a type of an address as a home address.

◆ get_Value()

System::String Aspose::Email::PersonalInfo::PostalAddressCategory::get_Value ( ) const

Gets category of a postal address

◆ get_Work()

static System::SharedPtr<PostalAddressCategory> Aspose::Email::PersonalInfo::PostalAddressCategory::get_Work ( )
static

Defines a type of an address as a work address.

◆ GetHashCode()

int32_t Aspose::Email::PersonalInfo::PostalAddressCategory::GetHashCode ( ) const
override

GetHashCode returns a hash function for this object.

Returns
Returns a hash function for this object.

◆ ToString()

System::String Aspose::Email::PersonalInfo::PostalAddressCategory::ToString ( ) const
override

Returns a string that represents the current object.

Returns
Returns a string that represents the current object.

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( System::SharedPtr< PostalAddressCategory a,
System::SharedPtr< PostalAddressCategory b 
)
friend

◆ operator==

bool operator== ( System::SharedPtr< PostalAddressCategory a,
System::SharedPtr< PostalAddressCategory b 
)
friend

Member Data Documentation

◆ CustomValue

const System::String Aspose::Email::PersonalInfo::PostalAddressCategory::CustomValue
static

String value for 'Custom' category

◆ HomeValue

const System::String Aspose::Email::PersonalInfo::PostalAddressCategory::HomeValue
static

String value for 'Home' category

◆ WorkValue

const System::String Aspose::Email::PersonalInfo::PostalAddressCategory::WorkValue
static

String value for 'Work' category