/// <summary> /// Initializes a new instance of the <see cref="Relationship" /> class. /// </summary> /// <param name="Name">Name.</param> /// <param name="User">The user associated with the external organization (required).</param> /// <param name="ExternalOrganization">The external organization this relationship is attached to (required).</param> /// <param name="_Relationship">The relationship or role of the user to this external organization.Examples: Account Manager, Sales Engineer, Implementation Consultant (required).</param> /// <param name="ExternalDataSources">Links to the sources of data (e.g. one source might be a CRM) that contributed data to this record. Read-only, and only populated when requested via expand param..</param> public Relationship(string Name = null, User User = null, ExternalOrganization ExternalOrganization = null, string _Relationship = null, List <ExternalDataSource> ExternalDataSources = null) { this.Name = Name; this.User = User; this.ExternalOrganization = ExternalOrganization; this._Relationship = _Relationship; this.ExternalDataSources = ExternalDataSources; }
/// <summary> /// Initializes a new instance of the <see cref="Relationship" /> class. /// </summary> /// <param name="Name">Name.</param> /// <param name="User">The user associated with the external organization (required).</param> /// <param name="ExternalOrganization">The external organization this relationship is attached to (required).</param> /// <param name="_Relationship">The relationship or role of the user to this external organization.Examples: Account Manager, Sales Engineer, Implementation Consultant (required).</param> /// <param name="ExternalDataSources">Links to the sources of data (e.g. one source might be a CRM) that contributed data to this record. Read-only, and only populated when requested via expand param..</param> public Relationship(string Name = null, User User = null, ExternalOrganization ExternalOrganization = null, string _Relationship = null, List <ExternalDataSource> ExternalDataSources = null) { // to ensure "User" is required (not null) if (User == null) { throw new InvalidDataException("User is a required property for Relationship and cannot be null"); } else { this.User = User; } // to ensure "ExternalOrganization" is required (not null) if (ExternalOrganization == null) { throw new InvalidDataException("ExternalOrganization is a required property for Relationship and cannot be null"); } else { this.ExternalOrganization = ExternalOrganization; } // to ensure "_Relationship" is required (not null) if (_Relationship == null) { throw new InvalidDataException("_Relationship is a required property for Relationship and cannot be null"); } else { this._Relationship = _Relationship; } this.Name = Name; this.ExternalDataSources = ExternalDataSources; }
/// <summary> /// Initializes a new instance of the <see cref="CallHistoryParticipant" /> class. /// </summary> /// <param name="Id">The unique participant ID..</param> /// <param name="Name">The display friendly name of the participant..</param> /// <param name="Address">The participant address..</param> /// <param name="StartTime">The time when this participant first joined the conversation. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param> /// <param name="EndTime">The time when this participant went disconnected for this media (eg: video disconnected time). Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param> /// <param name="Purpose">The participant's purpose. Values can be: 'agent', 'user', 'customer', 'external', 'acd', 'ivr.</param> /// <param name="Direction">The participant's direction. Values can be: 'inbound' or 'outbound'.</param> /// <param name="Ani">The call ANI..</param> /// <param name="Dnis">The call DNIS..</param> /// <param name="User">The PureCloud user for this participant..</param> /// <param name="Queue">The PureCloud queue for this participant..</param> /// <param name="Group">The group involved in the group ring call..</param> /// <param name="DisconnectType">The reason the participant was disconnected from the conversation..</param> /// <param name="ExternalContact">The PureCloud external contact.</param> /// <param name="ExternalOrganization">The PureCloud external organization.</param> /// <param name="DidInteract">Indicates whether the contact ever connected.</param> /// <param name="SipResponseCodes">Indicates SIP Response codes associated with the participant.</param> public CallHistoryParticipant(string Id = null, string Name = null, string Address = null, DateTime?StartTime = null, DateTime?EndTime = null, string Purpose = null, DirectionEnum?Direction = null, string Ani = null, string Dnis = null, User User = null, Queue Queue = null, Group Group = null, DisconnectTypeEnum?DisconnectType = null, ExternalContact ExternalContact = null, ExternalOrganization ExternalOrganization = null, bool?DidInteract = null, List <long?> SipResponseCodes = null) { this.Id = Id; this.Name = Name; this.Address = Address; this.StartTime = StartTime; this.EndTime = EndTime; this.Purpose = Purpose; this.Direction = Direction; this.Ani = Ani; this.Dnis = Dnis; this.User = User; this.Queue = Queue; this.Group = Group; this.DisconnectType = DisconnectType; this.ExternalContact = ExternalContact; this.ExternalOrganization = ExternalOrganization; this.DidInteract = DidInteract; this.SipResponseCodes = SipResponseCodes; }
/// <summary> /// Initializes a new instance of the <see cref="BulkResponseResultExternalOrganizationEntity" /> class. /// </summary> /// <param name="Id">Id.</param> /// <param name="Success">Success.</param> /// <param name="Entity">Entity.</param> /// <param name="Error">Error.</param> public BulkResponseResultExternalOrganizationEntity(string Id = null, bool?Success = null, ExternalOrganization Entity = null, BulkErrorEntity Error = null) { this.Id = Id; this.Success = Success; this.Entity = Entity; this.Error = Error; }
/// <summary> /// Initializes a new instance of the <see cref="ExternalContact" /> class. /// </summary> /// <param name="FirstName">The first name of the contact. (required).</param> /// <param name="MiddleName">MiddleName.</param> /// <param name="LastName">The last name of the contact. (required).</param> /// <param name="Salutation">Salutation.</param> /// <param name="Title">Title.</param> /// <param name="WorkPhone">WorkPhone.</param> /// <param name="CellPhone">CellPhone.</param> /// <param name="HomePhone">HomePhone.</param> /// <param name="OtherPhone">OtherPhone.</param> /// <param name="WorkEmail">WorkEmail.</param> /// <param name="PersonalEmail">PersonalEmail.</param> /// <param name="OtherEmail">OtherEmail.</param> /// <param name="Address">Address.</param> /// <param name="TwitterId">TwitterId.</param> /// <param name="LineId">LineId.</param> /// <param name="WhatsAppId">WhatsAppId.</param> /// <param name="FacebookId">FacebookId.</param> /// <param name="ModifyDate">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param> /// <param name="CreateDate">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param> /// <param name="ExternalOrganization">ExternalOrganization.</param> /// <param name="SurveyOptOut">SurveyOptOut.</param> /// <param name="ExternalSystemUrl">A string that identifies an external system-of-record resource that may have more detailed information on the contact. It should be a valid URL (including the http/https protocol, port, and path [if any]). The value is automatically trimmed of any leading and trailing whitespace..</param> /// <param name="ExternalDataSources">Links to the sources of data (e.g. one source might be a CRM) that contributed data to this record. Read-only, and only populated when requested via expand param..</param> public ExternalContact(string FirstName = null, string MiddleName = null, string LastName = null, string Salutation = null, string Title = null, PhoneNumber WorkPhone = null, PhoneNumber CellPhone = null, PhoneNumber HomePhone = null, PhoneNumber OtherPhone = null, string WorkEmail = null, string PersonalEmail = null, string OtherEmail = null, ContactAddress Address = null, TwitterId TwitterId = null, LineId LineId = null, WhatsAppId WhatsAppId = null, FacebookId FacebookId = null, DateTime?ModifyDate = null, DateTime?CreateDate = null, ExternalOrganization ExternalOrganization = null, bool?SurveyOptOut = null, string ExternalSystemUrl = null, List <ExternalDataSource> ExternalDataSources = null) { this.FirstName = FirstName; this.MiddleName = MiddleName; this.LastName = LastName; this.Salutation = Salutation; this.Title = Title; this.WorkPhone = WorkPhone; this.CellPhone = CellPhone; this.HomePhone = HomePhone; this.OtherPhone = OtherPhone; this.WorkEmail = WorkEmail; this.PersonalEmail = PersonalEmail; this.OtherEmail = OtherEmail; this.Address = Address; this.TwitterId = TwitterId; this.LineId = LineId; this.WhatsAppId = WhatsAppId; this.FacebookId = FacebookId; this.ModifyDate = ModifyDate; this.CreateDate = CreateDate; this.ExternalOrganization = ExternalOrganization; this.SurveyOptOut = SurveyOptOut; this.ExternalSystemUrl = ExternalSystemUrl; this.ExternalDataSources = ExternalDataSources; }
/// <summary> /// Initializes a new instance of the <see cref="ExternalContact" /> class. /// </summary> /// <param name="FirstName">The first name of the contact. (required).</param> /// <param name="MiddleName">MiddleName.</param> /// <param name="LastName">The last name of the contact. (required).</param> /// <param name="Salutation">Salutation.</param> /// <param name="Title">Title.</param> /// <param name="WorkPhone">WorkPhone.</param> /// <param name="CellPhone">CellPhone.</param> /// <param name="HomePhone">HomePhone.</param> /// <param name="OtherPhone">OtherPhone.</param> /// <param name="WorkEmail">WorkEmail.</param> /// <param name="PersonalEmail">PersonalEmail.</param> /// <param name="OtherEmail">OtherEmail.</param> /// <param name="Address">Address.</param> /// <param name="TwitterId">TwitterId.</param> /// <param name="ModifyDate">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param> /// <param name="CreateDate">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param> /// <param name="ExternalOrganization">ExternalOrganization.</param> /// <param name="ExternalDataSources">Links to the sources of data (e.g. one source might be a CRM) that contributed data to this record. Read-only, and only populated when requested via expand param..</param> public ExternalContact(string FirstName = null, string MiddleName = null, string LastName = null, string Salutation = null, string Title = null, PhoneNumber WorkPhone = null, PhoneNumber CellPhone = null, PhoneNumber HomePhone = null, PhoneNumber OtherPhone = null, string WorkEmail = null, string PersonalEmail = null, string OtherEmail = null, ContactAddress Address = null, TwitterId TwitterId = null, DateTime?ModifyDate = null, DateTime?CreateDate = null, ExternalOrganization ExternalOrganization = null, List <ExternalDataSource> ExternalDataSources = null) { // to ensure "FirstName" is required (not null) if (FirstName == null) { throw new InvalidDataException("FirstName is a required property for ExternalContact and cannot be null"); } else { this.FirstName = FirstName; } // to ensure "LastName" is required (not null) if (LastName == null) { throw new InvalidDataException("LastName is a required property for ExternalContact and cannot be null"); } else { this.LastName = LastName; } this.MiddleName = MiddleName; this.Salutation = Salutation; this.Title = Title; this.WorkPhone = WorkPhone; this.CellPhone = CellPhone; this.HomePhone = HomePhone; this.OtherPhone = OtherPhone; this.WorkEmail = WorkEmail; this.PersonalEmail = PersonalEmail; this.OtherEmail = OtherEmail; this.Address = Address; this.TwitterId = TwitterId; this.ModifyDate = ModifyDate; this.CreateDate = CreateDate; this.ExternalOrganization = ExternalOrganization; this.ExternalDataSources = ExternalDataSources; }
/// <summary> /// Initializes a new instance of the <see cref="BulkErrorExternalOrganization" /> class. /// </summary> /// <param name="Code">Code.</param> /// <param name="Message">Message.</param> /// <param name="Status">Status.</param> /// <param name="Retryable">Retryable.</param> /// <param name="Entity">Entity.</param> /// <param name="Details">Details.</param> public BulkErrorExternalOrganization(string Code = null, string Message = null, int?Status = null, bool?Retryable = null, ExternalOrganization Entity = null, List <BulkErrorDetail> Details = null) { this.Code = Code; this.Message = Message; this.Status = Status; this.Retryable = Retryable; this.Entity = Entity; this.Details = Details; }
/// <summary> /// Initializes a new instance of the <see cref="Relationship" /> class. /// </summary> /// <param name="User">The user associated with the external organization. When creating or updating a relationship, only User.id is required. User object is fully populated when expanding a note. (required).</param> /// <param name="ExternalOrganization">The external organization this relationship is attached to (required).</param> /// <param name="_Relationship">The relationship or role of the user to this external organization.Examples: Account Manager, Sales Engineer, Implementation Consultant (required).</param> public Relationship(User User = null, ExternalOrganization ExternalOrganization = null, string _Relationship = null) { this.User = User; this.ExternalOrganization = ExternalOrganization; this._Relationship = _Relationship; }