Class ParticipantInfo
Class representing an appointment participant.
Inheritance
Implements
Namespace: SuperOffice.CRM.Services
Assembly: SoCore.dll
Syntax
public class ParticipantInfo : Object, 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 |
---|---|---|
System.Int32 | associateId | |
System.Int32 | personId | |
System.Int32 | contactId | |
System.Int32 | emailId | Primary key of the e-mail record. This value is set if an e-mail is sent to this party. |
System.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 |
---|---|---|
System.Int32 | associateId | |
System.Int32 | personId | |
System.Int32 | contactId | |
System.Int32 | emailId | Primary key of the e-mail record. This value is set if an e-mail is sent to this party. |
System.Boolean | sendEmail | True if the user should be sent an email |
InvitationStatus | invitationStatus | Booking status |
ParticipantInfo(Int32, Int32, Int32, Int32, Boolean, InvitationStatus, String, String)
Declaration
public ParticipantInfo(int associateId, int personId, int contactId, int emailId, bool sendEmail, InvitationStatus invitationStatus, string emailAddress, string description)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | associateId | |
System.Int32 | personId | |
System.Int32 | contactId | |
System.Int32 | emailId | Primary key of the e-mail record. This value is set if an e-mail is sent to this party. |
System.Boolean | sendEmail | True if the user should be sent an email |
InvitationStatus | invitationStatus | Booking status |
System.String | emailAddress | |
System.String | description |
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 |
---|---|
System.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 |
---|---|
System.Int32 |
Description
Description added for the email address participant, added to the email-table's description field if present.
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
System.String |
EmailAddress
The email address to be used as a participant if neither person id nor associate id has been set.
Declaration
public string EmailAddress { get; set; }
Property Value
Type | Description |
---|---|
System.String |
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 |
---|---|
System.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 |
---|---|
System.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 |
---|---|
System.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 |
---|---|
System.Boolean |
Equals(Object)
Determine if the provided object is identical to this one.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object to determine. |
Returns
Type | Description |
---|---|
System.Boolean | True if the objects are identical. |
GetHashCode()
Generate a unique integer based on the associate/person id
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
IsEmailParticipant()
Declaration
public bool IsEmailParticipant()
Returns
Type | Description |
---|---|
System.Boolean |
ToString()
Return a string that's nice for debugging
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
ToString(String)
Declaration
public string ToString(string prefix)
Parameters
Type | Name | Description |
---|---|---|
System.String | prefix |
Returns
Type | Description |
---|---|
System.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 |
---|---|
System.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 |
---|---|
System.Boolean | True if the objects differ |