Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ModifyUserCollection" /> class.
 /// </summary>
 /// <param name="Collection">The collection to modify (required).</param>
 /// <param name="Id">The id of the item to update (required).</param>
 /// <param name="ModificationType">The type of modification to perform.  If the type is delete or undelete, any other specified item details will be ignored (required).</param>
 public ModifyUserCollection(ModifyUserCollectionDetail Collection = default(ModifyUserCollectionDetail), int?Id = default(int?), ModificationTypeEnum ModificationType = default(ModificationTypeEnum))
 {
     // to ensure "Collection" is required (not null)
     if (Collection == null)
     {
         throw new InvalidDataException("Collection is a required property for ModifyUserCollection and cannot be null");
     }
     else
     {
         this.Collection = Collection;
     }
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for ModifyUserCollection and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "ModificationType" is required (not null)
     if (ModificationType == null)
     {
         throw new InvalidDataException("ModificationType is a required property for ModifyUserCollection and cannot be null");
     }
     else
     {
         this.ModificationType = ModificationType;
     }
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ModifyUserList" /> class.
 /// </summary>
 /// <param name="List">The list to modify (required).</param>
 /// <param name="Id">The id of the item to update (required).</param>
 /// <param name="ModificationType">The type of modification to perform.  If the type is delete or undelete, any other specified item details will be ignored (required).</param>
 public ModifyUserList(ModifyUserListDetail List = default(ModifyUserListDetail), int?Id = default(int?), ModificationTypeEnum ModificationType = default(ModificationTypeEnum))
 {
     // to ensure "List" is required (not null)
     if (List == null)
     {
         throw new InvalidDataException("List is a required property for ModifyUserList and cannot be null");
     }
     else
     {
         this.List = List;
     }
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for ModifyUserList and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "ModificationType" is required (not null)
     if (ModificationType == null)
     {
         throw new InvalidDataException("ModificationType is a required property for ModifyUserList and cannot be null");
     }
     else
     {
         this.ModificationType = ModificationType;
     }
 }