Class ParticipantInfo
Class representing an appointment participant.
Implements
Inherited Members
Namespace: SuperOffice.CRM.Services
Assembly: SoCore.dll
Syntax
[DataContract(Namespace = "http://www.superoffice.net/ws/crm/NetServer/11.7.0.0")]
public class ParticipantInfo : IEquatable<ParticipantInfo>
Constructors
ParticipantInfo()
Class representing an appointment participant.
Declaration
public ParticipantInfo()
ParticipantInfo(int, int, int, int, bool)
Class representing an appointment participant.
Declaration
public ParticipantInfo(int associateId, int personId, int contactId, int emailId, bool sendEmail)
Parameters
| Type | Name | Description |
|---|---|---|
| int | associateId | |
| int | personId | |
| int | contactId | |
| int | emailId | Primary key of the e-mail record. This value is set if an e-mail is sent to this party. |
| bool | sendEmail | True if the user should be sent an email |
ParticipantInfo(int, int, int, int, bool, InvitationStatus)
Class representing an appointment participant.
Declaration
public ParticipantInfo(int associateId, int personId, int contactId, int emailId, bool sendEmail, InvitationStatus invitationStatus)
Parameters
| Type | Name | Description |
|---|---|---|
| int | associateId | |
| int | personId | |
| int | contactId | |
| int | emailId | Primary key of the e-mail record. This value is set if an e-mail is sent to this party. |
| bool | sendEmail | True if the user should be sent an email |
| InvitationStatus | invitationStatus | Booking status |
ParticipantInfo(int, int, int, int, bool, InvitationStatus, string, string)
Class representing an appointment participant.
Declaration
public ParticipantInfo(int associateId, int personId, int contactId, int emailId, bool sendEmail, InvitationStatus invitationStatus, string emailAddress, string description)
Parameters
| Type | Name | Description |
|---|---|---|
| int | associateId | |
| int | personId | |
| int | contactId | |
| int | emailId | Primary key of the e-mail record. This value is set if an e-mail is sent to this party. |
| bool | sendEmail | True if the user should be sent an email |
| InvitationStatus | invitationStatus | Booking status |
| string | emailAddress | |
| string | description |
Properties
AssociateId
Associate id of the participant if the participant is an associate (or resource)
Declaration
[DataMember]
public int AssociateId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
ContactId
Contact id of the participant if the participant is an associate or person
Declaration
[DataMember]
public int ContactId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Description
Description added for the email address participant, added to the email-table's description field if present.
Declaration
[DataMember]
public string Description { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
EmailAddress
The email address to be used as a participant if neither person id nor associate id has been set.
Declaration
[DataMember]
public string EmailAddress { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
EmailId
The email id of the email belonging to the appointment record belonging to this person
Declaration
[DataMember]
public int EmailId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
InvitationStatus
The participant status for the appointment
Declaration
[DataMember]
public InvitationStatus InvitationStatus { get; set; }
Property Value
| Type | Description |
|---|---|
| InvitationStatus |
PersonId
Person id of the participant if the participant is a person
Declaration
[DataMember]
public int PersonId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
SendEmail
True if the participant has been sent an email or should be sent an email
Declaration
[DataMember]
public bool SendEmail { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
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 |
|---|---|
| bool |
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 |
|---|---|
| bool | 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 |
|---|---|
| int |
Overrides
IsEmailParticipant()
Class representing an appointment participant.
Declaration
public bool IsEmailParticipant()
Returns
| Type | Description |
|---|---|
| bool |
ToString()
Return a string that's nice for debugging
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |
Overrides
ToString(string)
Class representing an appointment participant.
Declaration
public string ToString(string prefix)
Parameters
| Type | Name | Description |
|---|---|---|
| string | prefix |
Returns
| Type | Description |
|---|---|
| string |
Operators
operator ==(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 |
|---|---|
| bool | True if the objects are identical |
operator !=(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 |
|---|---|
| bool | True if the objects differ |