/// <summary>
 /// Initializes a new instance of the <see cref="LockInfo" /> class.
 /// </summary>
 /// <param name="LockedBy">LockedBy.</param>
 /// <param name="DateCreated">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="DateExpires">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="Action">Action.</param>
 public LockInfo(UriReference LockedBy = null, DateTime?DateCreated = null, DateTime?DateExpires = null, ActionEnum?Action = null)
 {
     this.LockedBy    = LockedBy;
     this.DateCreated = DateCreated;
     this.DateExpires = DateExpires;
     this.Action      = Action;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CallableContactsDiagnostic" /> class.
 /// </summary>
 /// <param name="AttemptLimits">Attempt limits for the campaign&#39;s contact list.</param>
 /// <param name="DncLists">Do not call lists for the campaign.</param>
 /// <param name="CallableTimeSet">Callable time sets for the campaign.</param>
 /// <param name="RuleSets">Rule sets for the campaign.</param>
 public CallableContactsDiagnostic(UriReference AttemptLimits = null, List <UriReference> DncLists = null, UriReference CallableTimeSet = null, List <UriReference> RuleSets = null)
 {
     this.AttemptLimits   = AttemptLimits;
     this.DncLists        = DncLists;
     this.CallableTimeSet = CallableTimeSet;
     this.RuleSets        = RuleSets;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CampaignInteractions" /> class.
 /// </summary>
 /// <param name="Campaign">Campaign.</param>
 /// <param name="PendingInteractions">PendingInteractions.</param>
 /// <param name="ProceedingInteractions">ProceedingInteractions.</param>
 /// <param name="PreviewingInteractions">PreviewingInteractions.</param>
 /// <param name="InteractingInteractions">InteractingInteractions.</param>
 /// <param name="ScheduledInteractions">ScheduledInteractions.</param>
 public CampaignInteractions(UriReference Campaign = null, List <CampaignInteraction> PendingInteractions = null, List <CampaignInteraction> ProceedingInteractions = null, List <CampaignInteraction> PreviewingInteractions = null, List <CampaignInteraction> InteractingInteractions = null, List <CampaignInteraction> ScheduledInteractions = null)
 {
     this.Campaign                = Campaign;
     this.PendingInteractions     = PendingInteractions;
     this.ProceedingInteractions  = ProceedingInteractions;
     this.PreviewingInteractions  = PreviewingInteractions;
     this.InteractingInteractions = InteractingInteractions;
     this.ScheduledInteractions   = ScheduledInteractions;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EdgeMetrics" /> class.
 /// </summary>
 /// <param name="Edge">Edge.</param>
 /// <param name="EventTime">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="UpTimeMsec">UpTimeMsec.</param>
 /// <param name="Processors">Processors.</param>
 /// <param name="Memory">Memory.</param>
 /// <param name="Disks">Disks.</param>
 /// <param name="Subsystems">Subsystems.</param>
 /// <param name="Networks">Networks.</param>
 public EdgeMetrics(UriReference Edge = null, DateTime?EventTime = null, long?UpTimeMsec = null, List <EdgeMetricsProcessor> Processors = null, List <EdgeMetricsMemory> Memory = null, List <EdgeMetricsDisk> Disks = null, List <EdgeMetricsSubsystem> Subsystems = null, List <EdgeMetricsNetwork> Networks = null)
 {
     this.Edge       = Edge;
     this.EventTime  = EventTime;
     this.UpTimeMsec = UpTimeMsec;
     this.Processors = Processors;
     this.Memory     = Memory;
     this.Disks      = Disks;
     this.Subsystems = Subsystems;
     this.Networks   = Networks;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RuleSet" /> class.
 /// </summary>
 /// <param name="Name">Name.</param>
 /// <param name="Version">Required for updates, must match the version number of the most recent update.</param>
 /// <param name="ContactList">The identifier of an example contact list that provides user-interface suggestions for contact-based conditions and actions.</param>
 /// <param name="Queue">The identifier of an example queue that provides user-interface suggestions for wrap-up associated conditions.</param>
 /// <param name="Rules">The list of rules (required).</param>
 public RuleSet(string Name = null, int?Version = null, UriReference ContactList = null, UriReference Queue = null, List <DialerRule> Rules = null)
 {
     // to ensure "Rules" is required (not null)
     if (Rules == null)
     {
         throw new InvalidDataException("Rules is a required property for RuleSet and cannot be null");
     }
     else
     {
         this.Rules = Rules;
     }
     this.Name        = Name;
     this.Version     = Version;
     this.ContactList = ContactList;
     this.Queue       = Queue;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DocumentAudit" /> class.
 /// </summary>
 /// <param name="Name">Name.</param>
 /// <param name="User">User.</param>
 /// <param name="Workspace">Workspace.</param>
 /// <param name="TransactionId">TransactionId.</param>
 /// <param name="TransactionInitiator">TransactionInitiator.</param>
 /// <param name="Application">Application.</param>
 /// <param name="ServiceName">ServiceName.</param>
 /// <param name="Level">Level.</param>
 /// <param name="Timestamp">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="Status">Status.</param>
 /// <param name="ActionContext">ActionContext.</param>
 /// <param name="Action">Action.</param>
 /// <param name="Entity">Entity.</param>
 /// <param name="Changes">Changes.</param>
 public DocumentAudit(string Name = null, UriReference User = null, UriReference Workspace = null, string TransactionId = null, bool?TransactionInitiator = null, string Application = null, string ServiceName = null, LevelEnum?Level = null, DateTime?Timestamp = null, StatusEnum?Status = null, ActionContextEnum?ActionContext = null, ActionEnum?Action = null, AuditEntityReference Entity = null, List <AuditChange> Changes = null)
 {
     this.Name                 = Name;
     this.User                 = User;
     this.Workspace            = Workspace;
     this.TransactionId        = TransactionId;
     this.TransactionInitiator = TransactionInitiator;
     this.Application          = Application;
     this.ServiceName          = ServiceName;
     this.Level                = Level;
     this.Timestamp            = Timestamp;
     this.Status               = Status;
     this.ActionContext        = ActionContext;
     this.Action               = Action;
     this.Entity               = Entity;
     this.Changes              = Changes;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="WorkspaceMember" /> class.
 /// </summary>
 /// <param name="Name">Name.</param>
 /// <param name="Workspace">Workspace.</param>
 /// <param name="MemberType">The workspace member type. (required).</param>
 /// <param name="Member">Member.</param>
 /// <param name="User">User.</param>
 /// <param name="Group">Group.</param>
 /// <param name="SecurityProfile">SecurityProfile.</param>
 public WorkspaceMember(string Name = null, UriReference Workspace = null, MemberTypeEnum?MemberType = null, UriReference Member = null, User User = null, Group Group = null, SecurityProfile SecurityProfile = null)
 {
     // to ensure "MemberType" is required (not null)
     if (MemberType == null)
     {
         throw new InvalidDataException("MemberType is a required property for WorkspaceMember and cannot be null");
     }
     else
     {
         this.MemberType = MemberType;
     }
     this.Name            = Name;
     this.Workspace       = Workspace;
     this.Member          = Member;
     this.User            = User;
     this.Group           = Group;
     this.SecurityProfile = SecurityProfile;
 }
Exemplo n.º 8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateCallbackResponse" /> class.
 /// </summary>
 /// <param name="Conversation">The conversation associated with the callback (required).</param>
 /// <param name="CallbackIdentifiers">The list of communication identifiers for the callback participants (required).</param>
 public CreateCallbackResponse(UriReference Conversation = null, List <CallbackIdentifier> CallbackIdentifiers = null)
 {
     // to ensure "Conversation" is required (not null)
     if (Conversation == null)
     {
         throw new InvalidDataException("Conversation is a required property for CreateCallbackResponse and cannot be null");
     }
     else
     {
         this.Conversation = Conversation;
     }
     // to ensure "CallbackIdentifiers" is required (not null)
     if (CallbackIdentifiers == null)
     {
         throw new InvalidDataException("CallbackIdentifiers is a required property for CreateCallbackResponse and cannot be null");
     }
     else
     {
         this.CallbackIdentifiers = CallbackIdentifiers;
     }
 }
Exemplo n.º 9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CampaignProgress" /> class.
 /// </summary>
 /// <param name="Campaign">Identifier of the campaign (required).</param>
 /// <param name="ContactList">Identifier of the contact list (required).</param>
 public CampaignProgress(UriReference Campaign = null, UriReference ContactList = null)
 {
     // to ensure "Campaign" is required (not null)
     if (Campaign == null)
     {
         throw new InvalidDataException("Campaign is a required property for CampaignProgress and cannot be null");
     }
     else
     {
         this.Campaign = Campaign;
     }
     // to ensure "ContactList" is required (not null)
     if (ContactList == null)
     {
         throw new InvalidDataException("ContactList is a required property for CampaignProgress and cannot be null");
     }
     else
     {
         this.ContactList = ContactList;
     }
 }
Exemplo n.º 10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DocumentUpload" /> class.
 /// </summary>
 /// <param name="Name">The name of the document (required).</param>
 /// <param name="Workspace">The workspace the document will be uploaded to (required).</param>
 /// <param name="Tags">Tags.</param>
 /// <param name="TagIds">TagIds.</param>
 public DocumentUpload(string Name = null, UriReference Workspace = null, List <string> Tags = null, List <string> TagIds = null)
 {
     // to ensure "Name" is required (not null)
     if (Name == null)
     {
         throw new InvalidDataException("Name is a required property for DocumentUpload and cannot be null");
     }
     else
     {
         this.Name = Name;
     }
     // to ensure "Workspace" is required (not null)
     if (Workspace == null)
     {
         throw new InvalidDataException("Workspace is a required property for DocumentUpload and cannot be null");
     }
     else
     {
         this.Workspace = Workspace;
     }
     this.Tags   = Tags;
     this.TagIds = TagIds;
 }
Exemplo n.º 11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CampaignInteraction" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 /// <param name="Campaign">Campaign.</param>
 /// <param name="Agent">Agent.</param>
 /// <param name="Contact">Contact.</param>
 /// <param name="DestinationAddress">DestinationAddress.</param>
 /// <param name="ActivePreviewCall">Boolean value if there is an active preview call on the interaction.</param>
 /// <param name="LastActivePreviewWrapupTime">The time when the last preview of the interaction was wrapped up. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="CreationTime">The time when dialer created the interaction. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="CallPlacedTime">The time when the agent or system places the call. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="CallRoutedTime">The time when the agent was connected to the call. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="PreviewConnectedTime">The time when the customer and routing participant are connected. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="Queue">Queue.</param>
 /// <param name="Script">Script.</param>
 /// <param name="Disposition">Describes what happened with call analysis for instance: disposition.classification.callable.person, disposition.classification.callable.noanswer.</param>
 /// <param name="CallerName">CallerName.</param>
 /// <param name="CallerAddress">CallerAddress.</param>
 /// <param name="PreviewPopDeliveredTime">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="Conversation">Conversation.</param>
 /// <param name="DialerSystemParticipantId">conversation participant id that is the dialer system participant to monitor the call from dialer perspective.</param>
 /// <param name="DialingMode">DialingMode.</param>
 /// <param name="Skills">Any skills that are attached to the call for routing.</param>
 public CampaignInteraction(string Id = null, UriReference Campaign = null, UriReference Agent = null, UriReference Contact = null, string DestinationAddress = null, bool?ActivePreviewCall = null, DateTime?LastActivePreviewWrapupTime = null, DateTime?CreationTime = null, DateTime?CallPlacedTime = null, DateTime?CallRoutedTime = null, DateTime?PreviewConnectedTime = null, UriReference Queue = null, UriReference Script = null, DispositionEnum?Disposition = null, string CallerName = null, string CallerAddress = null, DateTime?PreviewPopDeliveredTime = null, Conversation Conversation = null, string DialerSystemParticipantId = null, string DialingMode = null, List <UriReference> Skills = null)
 {
     this.Id                          = Id;
     this.Campaign                    = Campaign;
     this.Agent                       = Agent;
     this.Contact                     = Contact;
     this.DestinationAddress          = DestinationAddress;
     this.ActivePreviewCall           = ActivePreviewCall;
     this.LastActivePreviewWrapupTime = LastActivePreviewWrapupTime;
     this.CreationTime                = CreationTime;
     this.CallPlacedTime              = CallPlacedTime;
     this.CallRoutedTime              = CallRoutedTime;
     this.PreviewConnectedTime        = PreviewConnectedTime;
     this.Queue                       = Queue;
     this.Script                      = Script;
     this.Disposition                 = Disposition;
     this.CallerName                  = CallerName;
     this.CallerAddress               = CallerAddress;
     this.PreviewPopDeliveredTime     = PreviewPopDeliveredTime;
     this.Conversation                = Conversation;
     this.DialerSystemParticipantId   = DialerSystemParticipantId;
     this.DialingMode                 = DialingMode;
     this.Skills                      = Skills;
 }
Exemplo n.º 12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="InboundRoute" /> class.
 /// </summary>
 /// <param name="Name">Name.</param>
 /// <param name="Pattern">The search pattern that the mailbox name should match. (required).</param>
 /// <param name="Queue">The queue to route the emails to..</param>
 /// <param name="Priority">The priority to use for routing..</param>
 /// <param name="Skills">The skills to use for routing..</param>
 /// <param name="Language">The language to use for routing..</param>
 /// <param name="FromName">The sender name to use for outgoing replies. (required).</param>
 /// <param name="FromEmail">The sender email to use for outgoing replies. (required).</param>
 /// <param name="Flow">The flow to use for processing the email..</param>
 public InboundRoute(string Name = null, string Pattern = null, UriReference Queue = null, int?Priority = null, List <UriReference> Skills = null, UriReference Language = null, string FromName = null, string FromEmail = null, UriReference Flow = null)
 {
     // to ensure "Pattern" is required (not null)
     if (Pattern == null)
     {
         throw new InvalidDataException("Pattern is a required property for InboundRoute and cannot be null");
     }
     else
     {
         this.Pattern = Pattern;
     }
     // to ensure "FromName" is required (not null)
     if (FromName == null)
     {
         throw new InvalidDataException("FromName is a required property for InboundRoute and cannot be null");
     }
     else
     {
         this.FromName = FromName;
     }
     // to ensure "FromEmail" is required (not null)
     if (FromEmail == null)
     {
         throw new InvalidDataException("FromEmail is a required property for InboundRoute and cannot be null");
     }
     else
     {
         this.FromEmail = FromEmail;
     }
     this.Name     = Name;
     this.Queue    = Queue;
     this.Priority = Priority;
     this.Skills   = Skills;
     this.Language = Language;
     this.Flow     = Flow;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FaxDocument" /> class.
 /// </summary>
 /// <param name="Name">Name.</param>
 /// <param name="DateCreated">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="DateModified">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="ContentUri">ContentUri.</param>
 /// <param name="Workspace">Workspace.</param>
 /// <param name="CreatedBy">CreatedBy.</param>
 /// <param name="ContentType">ContentType.</param>
 /// <param name="ContentLength">ContentLength.</param>
 /// <param name="Filename">Filename.</param>
 /// <param name="Read">Read.</param>
 /// <param name="PageCount">PageCount.</param>
 /// <param name="CallerAddress">CallerAddress.</param>
 /// <param name="ReceiverAddress">ReceiverAddress.</param>
 /// <param name="Thumbnails">Thumbnails.</param>
 /// <param name="SharingUri">SharingUri.</param>
 /// <param name="DownloadSharingUri">DownloadSharingUri.</param>
 public FaxDocument(string Name = null, DateTime?DateCreated = null, DateTime?DateModified = null, string ContentUri = null, UriReference Workspace = null, UriReference CreatedBy = null, string ContentType = null, long?ContentLength = null, string Filename = null, bool?Read = null, long?PageCount = null, string CallerAddress = null, string ReceiverAddress = null, List <DocumentThumbnail> Thumbnails = null, string SharingUri = null, string DownloadSharingUri = null)
 {
     this.Name               = Name;
     this.DateCreated        = DateCreated;
     this.DateModified       = DateModified;
     this.ContentUri         = ContentUri;
     this.Workspace          = Workspace;
     this.CreatedBy          = CreatedBy;
     this.ContentType        = ContentType;
     this.ContentLength      = ContentLength;
     this.Filename           = Filename;
     this.Read               = Read;
     this.PageCount          = PageCount;
     this.CallerAddress      = CallerAddress;
     this.ReceiverAddress    = ReceiverAddress;
     this.Thumbnails         = Thumbnails;
     this.SharingUri         = SharingUri;
     this.DownloadSharingUri = DownloadSharingUri;
 }
Exemplo n.º 14
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Document" /> class.
 /// </summary>
 /// <param name="Name">Name.</param>
 /// <param name="ChangeNumber">ChangeNumber.</param>
 /// <param name="DateCreated">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="DateModified">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="DateUploaded">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="ContentUri">ContentUri.</param>
 /// <param name="Workspace">Workspace.</param>
 /// <param name="CreatedBy">CreatedBy.</param>
 /// <param name="UploadedBy">UploadedBy.</param>
 /// <param name="ContentType">ContentType.</param>
 /// <param name="ContentLength">ContentLength.</param>
 /// <param name="SystemType">SystemType.</param>
 /// <param name="Filename">Filename.</param>
 /// <param name="PageCount">PageCount.</param>
 /// <param name="Read">Read.</param>
 /// <param name="CallerAddress">CallerAddress.</param>
 /// <param name="ReceiverAddress">ReceiverAddress.</param>
 /// <param name="Tags">Tags.</param>
 /// <param name="TagValues">TagValues.</param>
 /// <param name="Attributes">Attributes.</param>
 /// <param name="Thumbnails">Thumbnails.</param>
 /// <param name="UploadStatus">UploadStatus.</param>
 /// <param name="UploadDestinationUri">UploadDestinationUri.</param>
 /// <param name="UploadMethod">UploadMethod.</param>
 /// <param name="LockInfo">LockInfo.</param>
 /// <param name="Acl">A list of permitted action rights for the user making the request.</param>
 /// <param name="SharingStatus">SharingStatus.</param>
 /// <param name="SharingUri">SharingUri.</param>
 /// <param name="DownloadSharingUri">DownloadSharingUri.</param>
 public Document(string Name = null, int?ChangeNumber = null, DateTime?DateCreated = null, DateTime?DateModified = null, DateTime?DateUploaded = null, string ContentUri = null, UriReference Workspace = null, UriReference CreatedBy = null, UriReference UploadedBy = null, string ContentType = null, long?ContentLength = null, SystemTypeEnum?SystemType = null, string Filename = null, long?PageCount = null, bool?Read = null, string CallerAddress = null, string ReceiverAddress = null, List <string> Tags = null, List <TagValue> TagValues = null, List <DocumentAttribute> Attributes = null, List <DocumentThumbnail> Thumbnails = null, UriReference UploadStatus = null, string UploadDestinationUri = null, UploadMethodEnum?UploadMethod = null, LockInfo LockInfo = null, List <string> Acl = null, SharingStatusEnum?SharingStatus = null, string SharingUri = null, string DownloadSharingUri = null)
 {
     this.Name                 = Name;
     this.ChangeNumber         = ChangeNumber;
     this.DateCreated          = DateCreated;
     this.DateModified         = DateModified;
     this.DateUploaded         = DateUploaded;
     this.ContentUri           = ContentUri;
     this.Workspace            = Workspace;
     this.CreatedBy            = CreatedBy;
     this.UploadedBy           = UploadedBy;
     this.ContentType          = ContentType;
     this.ContentLength        = ContentLength;
     this.SystemType           = SystemType;
     this.Filename             = Filename;
     this.PageCount            = PageCount;
     this.Read                 = Read;
     this.CallerAddress        = CallerAddress;
     this.ReceiverAddress      = ReceiverAddress;
     this.Tags                 = Tags;
     this.TagValues            = TagValues;
     this.Attributes           = Attributes;
     this.Thumbnails           = Thumbnails;
     this.UploadStatus         = UploadStatus;
     this.UploadDestinationUri = UploadDestinationUri;
     this.UploadMethod         = UploadMethod;
     this.LockInfo             = LockInfo;
     this.Acl                = Acl;
     this.SharingStatus      = SharingStatus;
     this.SharingUri         = SharingUri;
     this.DownloadSharingUri = DownloadSharingUri;
 }
Exemplo n.º 15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Endpoint" /> class.
 /// </summary>
 /// <param name="Name">Name (required).</param>
 /// <param name="Description">Description.</param>
 /// <param name="Version">Version.</param>
 /// <param name="DateCreated">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="DateModified">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="ModifiedBy">ModifiedBy.</param>
 /// <param name="CreatedBy">CreatedBy.</param>
 /// <param name="State">State.</param>
 /// <param name="ModifiedByApp">ModifiedByApp.</param>
 /// <param name="CreatedByApp">CreatedByApp.</param>
 /// <param name="Count">Count.</param>
 /// <param name="Properties">Properties.</param>
 /// <param name="Schema">Schema (required).</param>
 /// <param name="Enabled">Enabled.</param>
 /// <param name="Site">Site.</param>
 /// <param name="Dids">Dids.</param>
 public Endpoint(string Name = null, string Description = null, int?Version = null, DateTime?DateCreated = null, DateTime?DateModified = null, string ModifiedBy = null, string CreatedBy = null, StateEnum?State = null, string ModifiedByApp = null, string CreatedByApp = null, int?Count = null, Dictionary <string, Object> Properties = null, UriReference Schema = null, bool?Enabled = null, UriReference Site = null, List <string> Dids = null)
 {
     // to ensure "Name" is required (not null)
     if (Name == null)
     {
         throw new InvalidDataException("Name is a required property for Endpoint and cannot be null");
     }
     else
     {
         this.Name = Name;
     }
     // to ensure "Schema" is required (not null)
     if (Schema == null)
     {
         throw new InvalidDataException("Schema is a required property for Endpoint and cannot be null");
     }
     else
     {
         this.Schema = Schema;
     }
     this.Description   = Description;
     this.Version       = Version;
     this.DateCreated   = DateCreated;
     this.DateModified  = DateModified;
     this.ModifiedBy    = ModifiedBy;
     this.CreatedBy     = CreatedBy;
     this.State         = State;
     this.ModifiedByApp = ModifiedByApp;
     this.CreatedByApp  = CreatedByApp;
     this.Count         = Count;
     this.Properties    = Properties;
     this.Enabled       = Enabled;
     this.Site          = Site;
     this.Dids          = Dids;
 }
Exemplo n.º 16
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Workspace" /> class.
 /// </summary>
 /// <param name="Name">The current name of the workspace. (required).</param>
 /// <param name="Type">Type.</param>
 /// <param name="IsCurrentUserWorkspace">IsCurrentUserWorkspace.</param>
 /// <param name="User">User.</param>
 /// <param name="Bucket">Bucket.</param>
 /// <param name="DateCreated">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="DateModified">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="Summary">Summary.</param>
 /// <param name="Acl">Acl.</param>
 /// <param name="Description">Description.</param>
 public Workspace(string Name = null, TypeEnum?Type = null, bool?IsCurrentUserWorkspace = null, UriReference User = null, string Bucket = null, DateTime?DateCreated = null, DateTime?DateModified = null, WorkspaceSummary Summary = null, List <string> Acl = null, string Description = null)
 {
     // to ensure "Name" is required (not null)
     if (Name == null)
     {
         throw new InvalidDataException("Name is a required property for Workspace and cannot be null");
     }
     else
     {
         this.Name = Name;
     }
     this.Type = Type;
     this.IsCurrentUserWorkspace = IsCurrentUserWorkspace;
     this.User         = User;
     this.Bucket       = Bucket;
     this.DateCreated  = DateCreated;
     this.DateModified = DateModified;
     this.Summary      = Summary;
     this.Acl          = Acl;
     this.Description  = Description;
 }
Exemplo n.º 17
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Trunk" /> class.
 /// </summary>
 /// <param name="Name">The name of the entity. (required).</param>
 /// <param name="Description">Description.</param>
 /// <param name="Version">Version.</param>
 /// <param name="DateCreated">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="DateModified">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="ModifiedBy">ModifiedBy.</param>
 /// <param name="CreatedBy">CreatedBy.</param>
 /// <param name="State">State.</param>
 /// <param name="ModifiedByApp">ModifiedByApp.</param>
 /// <param name="CreatedByApp">CreatedByApp.</param>
 /// <param name="TrunkType">The type of this trunk..</param>
 /// <param name="Edge">The Edge using this trunk..</param>
 /// <param name="TrunkBase">The trunk base configuration used on this trunk..</param>
 /// <param name="TrunkMetabase">The metabase used to create this trunk..</param>
 /// <param name="EdgeGroup">The edge group associated with this trunk..</param>
 /// <param name="Enabled">True if this trunk is in-service.  This comes from the trunk_enabled property of the referenced trunk base..</param>
 public Trunk(string Name = null, string Description = null, int?Version = null, DateTime?DateCreated = null, DateTime?DateModified = null, string ModifiedBy = null, string CreatedBy = null, StateEnum?State = null, string ModifiedByApp = null, string CreatedByApp = null, TrunkTypeEnum?TrunkType = null, UriReference Edge = null, UriReference TrunkBase = null, UriReference TrunkMetabase = null, UriReference EdgeGroup = null, bool?Enabled = null)
 {
     // to ensure "Name" is required (not null)
     if (Name == null)
     {
         throw new InvalidDataException("Name is a required property for Trunk and cannot be null");
     }
     else
     {
         this.Name = Name;
     }
     this.Description   = Description;
     this.Version       = Version;
     this.DateCreated   = DateCreated;
     this.DateModified  = DateModified;
     this.ModifiedBy    = ModifiedBy;
     this.CreatedBy     = CreatedBy;
     this.State         = State;
     this.ModifiedByApp = ModifiedByApp;
     this.CreatedByApp  = CreatedByApp;
     this.TrunkType     = TrunkType;
     this.Edge          = Edge;
     this.TrunkBase     = TrunkBase;
     this.TrunkMetabase = TrunkMetabase;
     this.EdgeGroup     = EdgeGroup;
     this.Enabled       = Enabled;
 }
Exemplo n.º 18
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PhoneStatus" /> class.
 /// </summary>
 /// <param name="Name">Name.</param>
 /// <param name="OperationalStatus">The Operational Status of this phone.</param>
 /// <param name="EdgesStatus">The status of the primary or secondary Edges assigned to the phone lines..</param>
 /// <param name="EventCreationTime">Event Creation Time represents an ISO-8601 string. For example: UTC, UTC+01:00, or Europe/London.</param>
 /// <param name="Provision">Provision information for this phone.</param>
 /// <param name="LineStatuses">A list of LineStatus information for each of the lines of this phone.</param>
 /// <param name="PhoneAssignmentToEdgeType">The phone status&#39;s edge assignment type..</param>
 /// <param name="Edge">The URI of the edge that provided this status information..</param>
 public PhoneStatus(string Name = null, OperationalStatusEnum?OperationalStatus = null, EdgesStatusEnum?EdgesStatus = null, string EventCreationTime = null, ProvisionInfo Provision = null, List <LineStatus> LineStatuses = null, PhoneAssignmentToEdgeTypeEnum?PhoneAssignmentToEdgeType = null, UriReference Edge = null)
 {
     this.Name = Name;
     this.OperationalStatus         = OperationalStatus;
     this.EdgesStatus               = EdgesStatus;
     this.EventCreationTime         = EventCreationTime;
     this.Provision                 = Provision;
     this.LineStatuses              = LineStatuses;
     this.PhoneAssignmentToEdgeType = PhoneAssignmentToEdgeType;
     this.Edge = Edge;
 }
Exemplo n.º 19
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EmailMediaParticipant" /> 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="ConnectedTime">The time when this participant went connected for this media (eg: video connected time). 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="StartHoldTime">The time when this participant&#39;s hold started. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="Purpose">The participant&#39;s purpose.  Values can be: &#39;agent&#39;, &#39;user&#39;, &#39;customer&#39;, &#39;external&#39;, &#39;acd&#39;, &#39;ivr.</param>
 /// <param name="State">The participant&#39;s state.  Values can be: &#39;alerting&#39;, &#39;connected&#39;, &#39;disconnected&#39;, &#39;dialing&#39;, &#39;contacting.</param>
 /// <param name="Direction">The participant&#39;s direction.  Values can be: &#39;inbound&#39; or &#39;outbound&#39;.</param>
 /// <param name="DisconnectType">The reason the participant was disconnected from the conversation..</param>
 /// <param name="Held">Value is true when the participant is on hold..</param>
 /// <param name="WrapupRequired">Value is true when the participant requires wrap-up..</param>
 /// <param name="WrapupPrompt">The wrap-up prompt indicating the type of wrap-up to be performed..</param>
 /// <param name="User">The PureCloud user for this participant..</param>
 /// <param name="Queue">The PureCloud queue for this participant..</param>
 /// <param name="Attributes">A list of ad-hoc attributes for the participant..</param>
 /// <param name="ErrorInfo">If the conversation ends in error, contains additional error details..</param>
 /// <param name="Script">The Engage script that should be used by this participant..</param>
 /// <param name="WrapupTimeoutMs">The amount of time the participant has to complete wrap-up..</param>
 /// <param name="WrapupSkipped">Value is true when the participant has skipped wrap-up..</param>
 /// <param name="Provider">The source provider for the communication..</param>
 /// <param name="ExternalContact">If this participant represents an external contact, then this will be the reference for the external contact..</param>
 /// <param name="ExternalOrganization">If this participant represents an external org, then this will be the reference for the external org..</param>
 /// <param name="Subject">The subject of the email..</param>
 /// <param name="MessagesSent">The number of messages that have been sent in this email conversation..</param>
 public EmailMediaParticipant(string Id = null, string Name = null, string Address = null, DateTime?StartTime = null, DateTime?ConnectedTime = null, DateTime?EndTime = null, DateTime?StartHoldTime = null, string Purpose = null, StateEnum?State = null, DirectionEnum?Direction = null, DisconnectTypeEnum?DisconnectType = null, bool?Held = null, bool?WrapupRequired = null, string WrapupPrompt = null, UriReference User = null, UriReference Queue = null, Dictionary <string, string> Attributes = null, ErrorBody ErrorInfo = null, UriReference Script = null, int?WrapupTimeoutMs = null, bool?WrapupSkipped = null, string Provider = null, UriReference ExternalContact = null, UriReference ExternalOrganization = null, string Subject = null, int?MessagesSent = null)
 {
     this.Id                   = Id;
     this.Name                 = Name;
     this.Address              = Address;
     this.StartTime            = StartTime;
     this.ConnectedTime        = ConnectedTime;
     this.EndTime              = EndTime;
     this.StartHoldTime        = StartHoldTime;
     this.Purpose              = Purpose;
     this.State                = State;
     this.Direction            = Direction;
     this.DisconnectType       = DisconnectType;
     this.Held                 = Held;
     this.WrapupRequired       = WrapupRequired;
     this.WrapupPrompt         = WrapupPrompt;
     this.User                 = User;
     this.Queue                = Queue;
     this.Attributes           = Attributes;
     this.ErrorInfo            = ErrorInfo;
     this.Script               = Script;
     this.WrapupTimeoutMs      = WrapupTimeoutMs;
     this.WrapupSkipped        = WrapupSkipped;
     this.Provider             = Provider;
     this.ExternalContact      = ExternalContact;
     this.ExternalOrganization = ExternalOrganization;
     this.Subject              = Subject;
     this.MessagesSent         = MessagesSent;
 }
Exemplo n.º 20
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DID" /> class.
 /// </summary>
 /// <param name="Name">The name of the entity. (required).</param>
 /// <param name="Description">Description.</param>
 /// <param name="Version">Version.</param>
 /// <param name="DateCreated">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="DateModified">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="ModifiedBy">ModifiedBy.</param>
 /// <param name="CreatedBy">CreatedBy.</param>
 /// <param name="State">State.</param>
 /// <param name="ModifiedByApp">ModifiedByApp.</param>
 /// <param name="CreatedByApp">CreatedByApp.</param>
 /// <param name="PhoneNumber">PhoneNumber.</param>
 /// <param name="DidPool">DidPool.</param>
 /// <param name="Owner">A Uri reference to the owner of this DID, which is either a User or an IVR.</param>
 /// <param name="OwnerType">OwnerType.</param>
 public DID(string Name = null, string Description = null, int?Version = null, DateTime?DateCreated = null, DateTime?DateModified = null, string ModifiedBy = null, string CreatedBy = null, StateEnum?State = null, string ModifiedByApp = null, string CreatedByApp = null, string PhoneNumber = null, UriReference DidPool = null, UriReference Owner = null, OwnerTypeEnum?OwnerType = null)
 {
     // to ensure "Name" is required (not null)
     if (Name == null)
     {
         throw new InvalidDataException("Name is a required property for DID and cannot be null");
     }
     else
     {
         this.Name = Name;
     }
     this.Description   = Description;
     this.Version       = Version;
     this.DateCreated   = DateCreated;
     this.DateModified  = DateModified;
     this.ModifiedBy    = ModifiedBy;
     this.CreatedBy     = CreatedBy;
     this.State         = State;
     this.ModifiedByApp = ModifiedByApp;
     this.CreatedByApp  = CreatedByApp;
     this.PhoneNumber   = PhoneNumber;
     this.DidPool       = DidPool;
     this.Owner         = Owner;
     this.OwnerType     = OwnerType;
 }
Exemplo n.º 21
0
 /// <summary>
 /// Initializes a new instance of the <see cref="QueueUtilizationDiagnostic" /> class.
 /// </summary>
 /// <param name="Queue">Identifier of the queue.</param>
 public QueueUtilizationDiagnostic(UriReference Queue = null)
 {
     this.Queue = Queue;
 }
Exemplo n.º 22
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CallbackMediaParticipant" /> 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="ConnectedTime">The time when this participant went connected for this media (eg: video connected time). 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="StartHoldTime">The time when this participant&#39;s hold started. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="Purpose">The participant&#39;s purpose.  Values can be: &#39;agent&#39;, &#39;user&#39;, &#39;customer&#39;, &#39;external&#39;, &#39;acd&#39;, &#39;ivr.</param>
 /// <param name="State">The participant&#39;s state.  Values can be: &#39;alerting&#39;, &#39;connected&#39;, &#39;disconnected&#39;, &#39;dialing&#39;, &#39;contacting.</param>
 /// <param name="Direction">The participant&#39;s direction.  Values can be: &#39;inbound&#39; or &#39;outbound&#39;.</param>
 /// <param name="DisconnectType">The reason the participant was disconnected from the conversation..</param>
 /// <param name="Held">Value is true when the participant is on hold..</param>
 /// <param name="WrapupRequired">Value is true when the participant requires wrap-up..</param>
 /// <param name="WrapupPrompt">The wrap-up prompt indicating the type of wrap-up to be performed..</param>
 /// <param name="User">The PureCloud user for this participant..</param>
 /// <param name="Queue">The PureCloud queue for this participant..</param>
 /// <param name="Attributes">A list of ad-hoc attributes for the participant..</param>
 /// <param name="ErrorInfo">If the conversation ends in error, contains additional error details..</param>
 /// <param name="Script">The Engage script that should be used by this participant..</param>
 /// <param name="WrapupTimeoutMs">The amount of time the participant has to complete wrap-up..</param>
 /// <param name="WrapupSkipped">Value is true when the participant has skipped wrap-up..</param>
 /// <param name="Provider">The source provider for the communication..</param>
 /// <param name="ExternalContact">If this participant represents an external contact, then this will be the reference for the external contact..</param>
 /// <param name="ExternalOrganization">If this participant represents an external org, then this will be the reference for the external org..</param>
 /// <param name="OutboundPreview">The outbound preview associated with this callback..</param>
 /// <param name="CallbackNumbers">The list of phone number to use for this callback..</param>
 /// <param name="CallbackUserName">The name of the callback target..</param>
 /// <param name="SkipEnabled">If true, the callback can be skipped.</param>
 /// <param name="TimeoutSeconds">Duration in seconds before the callback will be auto-dialed..</param>
 /// <param name="AutomatedCallbackConfigId">The id of the config for automatically placing the callback (and handling the disposition). If absent, the callback will not be placed automatically but routed to an agent as per normal..</param>
 /// <param name="CallbackScheduledTime">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 public CallbackMediaParticipant(string Id = null, string Name = null, string Address = null, DateTime?StartTime = null, DateTime?ConnectedTime = null, DateTime?EndTime = null, DateTime?StartHoldTime = null, string Purpose = null, StateEnum?State = null, DirectionEnum?Direction = null, DisconnectTypeEnum?DisconnectType = null, bool?Held = null, bool?WrapupRequired = null, string WrapupPrompt = null, UriReference User = null, UriReference Queue = null, Dictionary <string, string> Attributes = null, ErrorBody ErrorInfo = null, UriReference Script = null, int?WrapupTimeoutMs = null, bool?WrapupSkipped = null, string Provider = null, UriReference ExternalContact = null, UriReference ExternalOrganization = null, DialerPreview OutboundPreview = null, List <string> CallbackNumbers = null, string CallbackUserName = null, bool?SkipEnabled = null, int?TimeoutSeconds = null, string AutomatedCallbackConfigId = null, DateTime?CallbackScheduledTime = null)
 {
     this.Id                        = Id;
     this.Name                      = Name;
     this.Address                   = Address;
     this.StartTime                 = StartTime;
     this.ConnectedTime             = ConnectedTime;
     this.EndTime                   = EndTime;
     this.StartHoldTime             = StartHoldTime;
     this.Purpose                   = Purpose;
     this.State                     = State;
     this.Direction                 = Direction;
     this.DisconnectType            = DisconnectType;
     this.Held                      = Held;
     this.WrapupRequired            = WrapupRequired;
     this.WrapupPrompt              = WrapupPrompt;
     this.User                      = User;
     this.Queue                     = Queue;
     this.Attributes                = Attributes;
     this.ErrorInfo                 = ErrorInfo;
     this.Script                    = Script;
     this.WrapupTimeoutMs           = WrapupTimeoutMs;
     this.WrapupSkipped             = WrapupSkipped;
     this.Provider                  = Provider;
     this.ExternalContact           = ExternalContact;
     this.ExternalOrganization      = ExternalOrganization;
     this.OutboundPreview           = OutboundPreview;
     this.CallbackNumbers           = CallbackNumbers;
     this.CallbackUserName          = CallbackUserName;
     this.SkipEnabled               = SkipEnabled;
     this.TimeoutSeconds            = TimeoutSeconds;
     this.AutomatedCallbackConfigId = AutomatedCallbackConfigId;
     this.CallbackScheduledTime     = CallbackScheduledTime;
 }
Exemplo n.º 23
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Attribute" /> class.
 /// </summary>
 /// <param name="Name">The attribute name. (required).</param>
 /// <param name="Version">Version.</param>
 /// <param name="Description">Description.</param>
 /// <param name="CreatedBy">CreatedBy.</param>
 /// <param name="DateCreated">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="ModifiedBy">ModifiedBy.</param>
 /// <param name="DateModified">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 public Attribute(string Name = null, int?Version = null, string Description = null, UriReference CreatedBy = null, DateTime?DateCreated = null, UriReference ModifiedBy = null, DateTime?DateModified = null)
 {
     // to ensure "Name" is required (not null)
     if (Name == null)
     {
         throw new InvalidDataException("Name is a required property for Attribute and cannot be null");
     }
     else
     {
         this.Name = Name;
     }
     this.Version      = Version;
     this.Description  = Description;
     this.CreatedBy    = CreatedBy;
     this.DateCreated  = DateCreated;
     this.ModifiedBy   = ModifiedBy;
     this.DateModified = DateModified;
 }
Exemplo n.º 24
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EdgeLine" /> class.
 /// </summary>
 /// <param name="Name">The name of the entity. (required).</param>
 /// <param name="Description">Description.</param>
 /// <param name="Version">Version.</param>
 /// <param name="DateCreated">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="DateModified">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="ModifiedBy">ModifiedBy.</param>
 /// <param name="CreatedBy">CreatedBy.</param>
 /// <param name="State">State.</param>
 /// <param name="ModifiedByApp">ModifiedByApp.</param>
 /// <param name="CreatedByApp">CreatedByApp.</param>
 /// <param name="Schema">Schema.</param>
 /// <param name="Properties">Properties.</param>
 /// <param name="Edge">Edge.</param>
 /// <param name="EdgeGroup">EdgeGroup.</param>
 /// <param name="LineType">LineType.</param>
 /// <param name="Endpoint">Endpoint.</param>
 /// <param name="IpAddress">IpAddress.</param>
 /// <param name="LogicalInterfaceId">LogicalInterfaceId.</param>
 public EdgeLine(string Name = null, string Description = null, int?Version = null, DateTime?DateCreated = null, DateTime?DateModified = null, string ModifiedBy = null, string CreatedBy = null, StateEnum?State = null, string ModifiedByApp = null, string CreatedByApp = null, UriReference Schema = null, Dictionary <string, Object> Properties = null, Edge Edge = null, EdgeGroup EdgeGroup = null, LineTypeEnum?LineType = null, Endpoint Endpoint = null, string IpAddress = null, string LogicalInterfaceId = null)
 {
     // to ensure "Name" is required (not null)
     if (Name == null)
     {
         throw new InvalidDataException("Name is a required property for EdgeLine and cannot be null");
     }
     else
     {
         this.Name = Name;
     }
     this.Description        = Description;
     this.Version            = Version;
     this.DateCreated        = DateCreated;
     this.DateModified       = DateModified;
     this.ModifiedBy         = ModifiedBy;
     this.CreatedBy          = CreatedBy;
     this.State              = State;
     this.ModifiedByApp      = ModifiedByApp;
     this.CreatedByApp       = CreatedByApp;
     this.Schema             = Schema;
     this.Properties         = Properties;
     this.Edge               = Edge;
     this.EdgeGroup          = EdgeGroup;
     this.LineType           = LineType;
     this.Endpoint           = Endpoint;
     this.IpAddress          = IpAddress;
     this.LogicalInterfaceId = LogicalInterfaceId;
 }
Exemplo n.º 25
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Station" /> class.
 /// </summary>
 /// <param name="Name">Name.</param>
 /// <param name="Description">Description.</param>
 /// <param name="Status">Status.</param>
 /// <param name="UserId">UserId.</param>
 /// <param name="PrimaryEdge">PrimaryEdge.</param>
 /// <param name="SecondaryEdge">SecondaryEdge.</param>
 /// <param name="Type">Type.</param>
 /// <param name="LineAppearanceId">LineAppearanceId.</param>
 public Station(string Name = null, string Description = null, StatusEnum?Status = null, string UserId = null, UriReference PrimaryEdge = null, UriReference SecondaryEdge = null, string Type = null, string LineAppearanceId = null)
 {
     this.Name             = Name;
     this.Description      = Description;
     this.Status           = Status;
     this.UserId           = UserId;
     this.PrimaryEdge      = PrimaryEdge;
     this.SecondaryEdge    = SecondaryEdge;
     this.Type             = Type;
     this.LineAppearanceId = LineAppearanceId;
 }
Exemplo n.º 26
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Share" /> class.
 /// </summary>
 /// <param name="Name">Name.</param>
 /// <param name="SharedEntityType">SharedEntityType.</param>
 /// <param name="SharedEntity">SharedEntity.</param>
 /// <param name="MemberType">MemberType.</param>
 /// <param name="Member">Member.</param>
 /// <param name="SharedBy">SharedBy.</param>
 /// <param name="Workspace">Workspace.</param>
 /// <param name="User">User.</param>
 /// <param name="Group">Group.</param>
 public Share(string Name = null, SharedEntityTypeEnum?SharedEntityType = null, UriReference SharedEntity = null, MemberTypeEnum?MemberType = null, UriReference Member = null, UriReference SharedBy = null, UriReference Workspace = null, User User = null, Group Group = null)
 {
     this.Name             = Name;
     this.SharedEntityType = SharedEntityType;
     this.SharedEntity     = SharedEntity;
     this.MemberType       = MemberType;
     this.Member           = Member;
     this.SharedBy         = SharedBy;
     this.Workspace        = Workspace;
     this.User             = User;
     this.Group            = Group;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateQueueRequest" /> class.
 /// </summary>
 /// <param name="Name">Name.</param>
 /// <param name="Description">Description.</param>
 /// <param name="Version">Version.</param>
 /// <param name="DateCreated">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="DateModified">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="ModifiedBy">ModifiedBy.</param>
 /// <param name="CreatedBy">CreatedBy.</param>
 /// <param name="State">State.</param>
 /// <param name="ModifiedByApp">ModifiedByApp.</param>
 /// <param name="CreatedByApp">CreatedByApp.</param>
 /// <param name="MediaSettings">The media settings for the queue. (required).</param>
 /// <param name="Bullseye">The bulls-eye settings for the queue..</param>
 /// <param name="AcwSettings">The ACW settings for the queue. (required).</param>
 /// <param name="SkillEvaluationMethod">The skill evaluation method to use when routing conversations. (required).</param>
 /// <param name="QueueFlow">The in-queue flow to use for conversations waiting in queue..</param>
 /// <param name="CallingPartyName">The name to use for caller identification for outbound calls from this queue..</param>
 /// <param name="CallingPartyNumber">The phone number to use for caller identification for outbound calls from this queue..</param>
 /// <param name="OutboundEmailAddress">OutboundEmailAddress.</param>
 /// <param name="SourceQueueId">The id of an existing queue to copy the settings from when creating a new queue..</param>
 /// <param name="MemberCount">MemberCount.</param>
 public CreateQueueRequest(string Name = null, string Description = null, int?Version = null, DateTime?DateCreated = null, DateTime?DateModified = null, string ModifiedBy = null, string CreatedBy = null, StateEnum?State = null, string ModifiedByApp = null, string CreatedByApp = null, Dictionary <string, MediaSetting> MediaSettings = null, Bullseye Bullseye = null, AcwSettings AcwSettings = null, SkillEvaluationMethodEnum?SkillEvaluationMethod = null, UriReference QueueFlow = null, string CallingPartyName = null, string CallingPartyNumber = null, QueueEmailAddress OutboundEmailAddress = null, string SourceQueueId = null, int?MemberCount = null)
 {
     // to ensure "MediaSettings" is required (not null)
     if (MediaSettings == null)
     {
         throw new InvalidDataException("MediaSettings is a required property for CreateQueueRequest and cannot be null");
     }
     else
     {
         this.MediaSettings = MediaSettings;
     }
     // to ensure "AcwSettings" is required (not null)
     if (AcwSettings == null)
     {
         throw new InvalidDataException("AcwSettings is a required property for CreateQueueRequest and cannot be null");
     }
     else
     {
         this.AcwSettings = AcwSettings;
     }
     // to ensure "SkillEvaluationMethod" is required (not null)
     if (SkillEvaluationMethod == null)
     {
         throw new InvalidDataException("SkillEvaluationMethod is a required property for CreateQueueRequest and cannot be null");
     }
     else
     {
         this.SkillEvaluationMethod = SkillEvaluationMethod;
     }
     this.Name                 = Name;
     this.Description          = Description;
     this.Version              = Version;
     this.DateCreated          = DateCreated;
     this.DateModified         = DateModified;
     this.ModifiedBy           = ModifiedBy;
     this.CreatedBy            = CreatedBy;
     this.State                = State;
     this.ModifiedByApp        = ModifiedByApp;
     this.CreatedByApp         = CreatedByApp;
     this.Bullseye             = Bullseye;
     this.QueueFlow            = QueueFlow;
     this.CallingPartyName     = CallingPartyName;
     this.CallingPartyNumber   = CallingPartyNumber;
     this.OutboundEmailAddress = OutboundEmailAddress;
     this.SourceQueueId        = SourceQueueId;
     this.MemberCount          = MemberCount;
 }
Exemplo n.º 28
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Campaign" /> class.
 /// </summary>
 /// <param name="Name">Name.</param>
 /// <param name="Version">Required for updates, must match the version number of the most recent update.</param>
 /// <param name="ContactList">identifier of the contact list for the campaign (required).</param>
 /// <param name="Queue">identifier of the agent assignment queue, required for all dialing modes other than agentless (required).</param>
 /// <param name="DialingMode">dialing mode of the campaign (required).</param>
 /// <param name="Script">identifier of the campaign script, required for all dialing modes other than agentless (required).</param>
 /// <param name="EdgeGroup">identifier of the edge group, required for all dialing modes other than preview (required).</param>
 /// <param name="CampaignStatus">status of the campaign; can be set to &#39;on&#39; or &#39;off&#39; (required).</param>
 /// <param name="PhoneColumns">the contact list phone columns to be called for the campaign (required).</param>
 /// <param name="AbandonRate">the targeted abandon rate percentage.</param>
 /// <param name="DncLists">identifiers of the do not call lists.</param>
 /// <param name="CallableTimeSet">the identifier of the callable time set.</param>
 /// <param name="CallAnalysisResponseSet">the identifier of the call analysis response set, required for all dialing modes other than preview (required).</param>
 /// <param name="Errors">a list of current error conditions associated with the campaign.</param>
 /// <param name="CallerName">caller id name to be displayed on the outbound call.</param>
 /// <param name="CallerAddress">caller id phone number to be displayed on the outbound call.</param>
 /// <param name="OutboundLineCount">for agentless campaigns, the number of outbound lines to be concurrently dialed.</param>
 /// <param name="RuleSets">identifiers of the rule sets.</param>
 /// <param name="SkipPreviewDisabled">for preview campaigns, indicator of whether the agent can skip a preview without placing a call.</param>
 /// <param name="PreviewTimeOutSeconds">for preview campaigns, number of seconds before a call will be automatically placed. A value of 0 indicates no automatic placement of calls.</param>
 /// <param name="ContactSort">information determining the order in which the contacts will be dialed.</param>
 /// <param name="NoAnswerTimeout">for non-preview campaigns, how long to wait before dispositioning as &#39;no-answer&#39;, default 30 seconds.</param>
 /// <param name="CallAnalysisLanguage">The language the edge will use to analyse the call.</param>
 /// <param name="Priority">The priority of this campaign relative to other campaigns.</param>
 public Campaign(string Name = null, int?Version = null, UriReference ContactList = null, UriReference Queue = null, DialingModeEnum?DialingMode = null, UriReference Script = null, UriReference EdgeGroup = null, string CampaignStatus = null, List <PhoneColumn> PhoneColumns = null, double?AbandonRate = null, List <UriReference> DncLists = null, UriReference CallableTimeSet = null, UriReference CallAnalysisResponseSet = null, List <RestErrorDetail> Errors = null, string CallerName = null, string CallerAddress = null, int?OutboundLineCount = null, List <UriReference> RuleSets = null, bool?SkipPreviewDisabled = null, long?PreviewTimeOutSeconds = null, ContactSort ContactSort = null, int?NoAnswerTimeout = null, string CallAnalysisLanguage = null, int?Priority = null)
 {
     // to ensure "ContactList" is required (not null)
     if (ContactList == null)
     {
         throw new InvalidDataException("ContactList is a required property for Campaign and cannot be null");
     }
     else
     {
         this.ContactList = ContactList;
     }
     // to ensure "Queue" is required (not null)
     if (Queue == null)
     {
         throw new InvalidDataException("Queue is a required property for Campaign and cannot be null");
     }
     else
     {
         this.Queue = Queue;
     }
     // to ensure "DialingMode" is required (not null)
     if (DialingMode == null)
     {
         throw new InvalidDataException("DialingMode is a required property for Campaign and cannot be null");
     }
     else
     {
         this.DialingMode = DialingMode;
     }
     // to ensure "Script" is required (not null)
     if (Script == null)
     {
         throw new InvalidDataException("Script is a required property for Campaign and cannot be null");
     }
     else
     {
         this.Script = Script;
     }
     // to ensure "EdgeGroup" is required (not null)
     if (EdgeGroup == null)
     {
         throw new InvalidDataException("EdgeGroup is a required property for Campaign and cannot be null");
     }
     else
     {
         this.EdgeGroup = EdgeGroup;
     }
     // to ensure "CampaignStatus" is required (not null)
     if (CampaignStatus == null)
     {
         throw new InvalidDataException("CampaignStatus is a required property for Campaign and cannot be null");
     }
     else
     {
         this.CampaignStatus = CampaignStatus;
     }
     // to ensure "PhoneColumns" is required (not null)
     if (PhoneColumns == null)
     {
         throw new InvalidDataException("PhoneColumns is a required property for Campaign and cannot be null");
     }
     else
     {
         this.PhoneColumns = PhoneColumns;
     }
     // to ensure "CallAnalysisResponseSet" is required (not null)
     if (CallAnalysisResponseSet == null)
     {
         throw new InvalidDataException("CallAnalysisResponseSet is a required property for Campaign and cannot be null");
     }
     else
     {
         this.CallAnalysisResponseSet = CallAnalysisResponseSet;
     }
     this.Name                  = Name;
     this.Version               = Version;
     this.AbandonRate           = AbandonRate;
     this.DncLists              = DncLists;
     this.CallableTimeSet       = CallableTimeSet;
     this.Errors                = Errors;
     this.CallerName            = CallerName;
     this.CallerAddress         = CallerAddress;
     this.OutboundLineCount     = OutboundLineCount;
     this.RuleSets              = RuleSets;
     this.SkipPreviewDisabled   = SkipPreviewDisabled;
     this.PreviewTimeOutSeconds = PreviewTimeOutSeconds;
     this.ContactSort           = ContactSort;
     this.NoAnswerTimeout       = NoAnswerTimeout;
     this.CallAnalysisLanguage  = CallAnalysisLanguage;
     this.Priority              = Priority;
 }
Exemplo n.º 29
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReplaceResponse" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 /// <param name="Name">Name.</param>
 /// <param name="ChangeNumber">ChangeNumber.</param>
 /// <param name="UploadStatus">UploadStatus.</param>
 /// <param name="UploadDestinationUri">UploadDestinationUri.</param>
 /// <param name="UploadMethod">UploadMethod.</param>
 public ReplaceResponse(string Id = null, string Name = null, int?ChangeNumber = null, UriReference UploadStatus = null, string UploadDestinationUri = null, UploadMethodEnum?UploadMethod = null)
 {
     this.Id                   = Id;
     this.Name                 = Name;
     this.ChangeNumber         = ChangeNumber;
     this.UploadStatus         = UploadStatus;
     this.UploadDestinationUri = UploadDestinationUri;
     this.UploadMethod         = UploadMethod;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CampaignSchedule" /> class.
 /// </summary>
 /// <param name="Name">Name.</param>
 /// <param name="Version">Required for updates, must match the version number of the most recent update.</param>
 /// <param name="Intervals">a list of start and end times (required).</param>
 /// <param name="TimeZone">time zone identifier to be applied to the intervals; for example Africa/Abidjan (required).</param>
 /// <param name="Campaign">identifier of the campaign to be scheduled (required).</param>
 public CampaignSchedule(string Name = null, int?Version = null, List <ScheduleInterval> Intervals = null, string TimeZone = null, UriReference Campaign = null)
 {
     // to ensure "Intervals" is required (not null)
     if (Intervals == null)
     {
         throw new InvalidDataException("Intervals is a required property for CampaignSchedule and cannot be null");
     }
     else
     {
         this.Intervals = Intervals;
     }
     // to ensure "TimeZone" is required (not null)
     if (TimeZone == null)
     {
         throw new InvalidDataException("TimeZone is a required property for CampaignSchedule and cannot be null");
     }
     else
     {
         this.TimeZone = TimeZone;
     }
     // to ensure "Campaign" is required (not null)
     if (Campaign == null)
     {
         throw new InvalidDataException("Campaign is a required property for CampaignSchedule and cannot be null");
     }
     else
     {
         this.Campaign = Campaign;
     }
     this.Name    = Name;
     this.Version = Version;
 }