Class ParticipantInfo
Class representing an appointment participant.
Implements
Inherited Members
Namespace: SuperOffice.CRM.Services
Assembly: SoCore.dll
Syntax
public class ParticipantInfo : IEquatable<ParticipantInfo>
Constructors
ParticipantInfo()
Declaration
public ParticipantInfo()
ParticipantInfo(Int32, Int32, Int32, Int32, Boolean)
Declaration
public ParticipantInfo(int associateId, int personId, int contactId, int emailId, bool sendEmail)
Parameters
Type | Name | Description |
---|---|---|
Int32 | associateId | |
Int32 | personId | |
Int32 | contactId | |
Int32 | emailId | Primary key of the e-mail record. This value is set if an e-mail is sent to this party. |
Boolean | sendEmail | True if the user should be sent an email |
ParticipantInfo(Int32, Int32, Int32, Int32, Boolean, InvitationStatus)
Declaration
public ParticipantInfo(int associateId, int personId, int contactId, int emailId, bool sendEmail, InvitationStatus invitationStatus)
Parameters
Type | Name | Description |
---|---|---|
Int32 | associateId | |
Int32 | personId | |
Int32 | contactId | |
Int32 | emailId | Primary key of the e-mail record. This value is set if an e-mail is sent to this party. |
Boolean | sendEmail | True if the user should be sent an email |
InvitationStatus | invitationStatus | Booking status |
Properties
AssociateId
Associate id of the participant if the participant is an associate (or resource)
Declaration
public int AssociateId { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
ContactId
Contact id of the participant if the participant is an associate or person
Declaration
public int ContactId { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
EmailId
The email id of the email belonging to the appointment record belonging to this person
Declaration
public int EmailId { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
InvitationStatus
The participant status for the appointment
Declaration
public InvitationStatus InvitationStatus { get; set; }
Property Value
Type | Description |
---|---|
InvitationStatus |
PersonId
Person id of the participant if the participant is a person
Declaration
public int PersonId { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
SendEmail
True if the participant has been sent an email or should be sent an email
Declaration
public bool SendEmail { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
Equals(ParticipantInfo)
Determine equality: Equal if associate_ids match or if person_ids match. Unequal otherwise
Declaration
public bool Equals(ParticipantInfo other)
Parameters
Type | Name | Description |
---|---|---|
ParticipantInfo | other |
Returns
Type | Description |
---|---|
Boolean |
Equals(Object)
Determine if the provided object is identical to this one.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The object to determine. |
Returns
Type | Description |
---|---|
Boolean | True if the objects are identical. |
Overrides
GetHashCode()
Generate a unique integer based on the associate/person id
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Overrides
ToString()
Return a string that's nice for debugging
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Overrides
ToString(String)
Declaration
public string ToString(string prefix)
Parameters
Type | Name | Description |
---|---|---|
String | prefix |
Returns
Type | Description |
---|---|
String |
Operators
Equality(ParticipantInfo, ParticipantInfo)
Determine if the objects are identical.
Declaration
public static bool operator ==(ParticipantInfo a, ParticipantInfo b)
Parameters
Type | Name | Description |
---|---|---|
ParticipantInfo | a | |
ParticipantInfo | b |
Returns
Type | Description |
---|---|
Boolean | True if the objects are identical |
Inequality(ParticipantInfo, ParticipantInfo)
Determine if the objects differ.
Declaration
public static bool operator !=(ParticipantInfo a, ParticipantInfo b)
Parameters
Type | Name | Description |
---|---|---|
ParticipantInfo | a | |
ParticipantInfo | b |
Returns
Type | Description |
---|---|
Boolean | True if the objects differ |