/// <summary> /// Initializes a new instance of the <see cref="VoiceCampaign" /> class. /// </summary> /// <param name="internalName">Voice campaign internal name (required).</param> /// <param name="listId">listId (required).</param> /// <param name="groupId">groupId.</param> /// <param name="content">content (required).</param> /// <param name="senderId">senderId (required).</param> public VoiceCampaign(string internalName = default(string), int listId = default(int), int groupId = default(int), ContentVoice content = default(ContentVoice), int senderId = default(int)) { // to ensure "internalName" is required (not null) if (internalName == null) { throw new InvalidDataException("internalName is a required property for VoiceCampaign and cannot be null"); } else { this.InternalName = internalName; } // to ensure "listId" is required (not null) if (listId == null) { throw new InvalidDataException("listId is a required property for VoiceCampaign and cannot be null"); } else { this.ListId = listId; } // to ensure "content" is required (not null) if (content == null) { throw new InvalidDataException("content is a required property for VoiceCampaign and cannot be null"); } else { this.Content = content; } // to ensure "senderId" is required (not null) if (senderId == null) { throw new InvalidDataException("senderId is a required property for VoiceCampaign and cannot be null"); } else { this.SenderId = senderId; } this.GroupId = groupId; }
/// <summary> /// Initializes a new instance of the <see cref="VoiceCampaignAllOf" /> class. /// </summary> /// <param name="internalName">Voice campaign internal name.</param> /// <param name="listId">listId.</param> /// <param name="groupId">groupId.</param> /// <param name="content">content.</param> /// <param name="senderId">senderId.</param> public VoiceCampaignAllOf(string internalName = default(string), int listId = default(int), int groupId = default(int), ContentVoice content = default(ContentVoice), int senderId = default(int)) { this.InternalName = internalName; this.ListId = listId; this.GroupId = groupId; this.Content = content; this.SenderId = senderId; }