Aspose::Email::PersonalInfo::EventCategory Class Reference

Represents category for an event More...

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

Public Member Functions

System::String get_Value () const
 Gets string representation of an event category More...
 
System::String get_Description () const
 Gets description for the 'Custom' category of an event More...
 
 EventCategory (System::String value, System::String description)
 Initializes a new instance of the EventCategory class with 'Custom' category. More...
 
 EventCategory (System::String description)
 Initializes a new instance of the 'Custom' EventCategory. 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< EventCategory > 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< EventCategoryget_Birthday ()
 Birthday More...
 
static System::SharedPtr< EventCategoryget_Anniversary ()
 Anniversary More...
 
static System::SharedPtr< EventCategoryget_Custom ()
 Custom description More...
 

Static Public Attributes

static const System::String CustomValue
 String value for 'Custom' category More...
 
static const System::String BirthdayValue
 String value for 'Birthday' category More...
 
static const System::String AnniversaryValue
 String value for 'Anniversary' category More...
 

Friends

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

Detailed Description

Represents category for an event

Constructor & Destructor Documentation

◆ EventCategory() [1/2]

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

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

Parameters
valueEvent category
descriptionDescription for the 'Custom' category of an event

◆ EventCategory() [2/2]

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

Initializes a new instance of the 'Custom' EventCategory.

Parameters
descriptionDescription for the 'Custom' category of an event

Member Function Documentation

◆ Equals() [1/2]

bool Aspose::Email::PersonalInfo::EventCategory::Equals ( System::SharedPtr< EventCategory 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::EventCategory::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_Anniversary()

static System::SharedPtr<EventCategory> Aspose::Email::PersonalInfo::EventCategory::get_Anniversary ( )
static

Anniversary

◆ get_Birthday()

static System::SharedPtr<EventCategory> Aspose::Email::PersonalInfo::EventCategory::get_Birthday ( )
static

Birthday

◆ get_Custom()

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

Custom description

◆ get_Description()

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

Gets description for the 'Custom' category of an event

◆ get_Value()

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

Gets string representation of an event category

◆ GetHashCode()

int32_t Aspose::Email::PersonalInfo::EventCategory::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::EventCategory::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< EventCategory a,
System::SharedPtr< EventCategory b 
)
friend

◆ operator==

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

Member Data Documentation

◆ AnniversaryValue

const System::String Aspose::Email::PersonalInfo::EventCategory::AnniversaryValue
static

String value for 'Anniversary' category

◆ BirthdayValue

const System::String Aspose::Email::PersonalInfo::EventCategory::BirthdayValue
static

String value for 'Birthday' category

◆ CustomValue

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

String value for 'Custom' category