Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetCharactersCharacterIdChatChannelsAllowed" /> class.
 /// </summary>
 /// <param name="accessorId">ID of an allowed channel member (required).</param>
 /// <param name="accessorType">accessor_type string (required).</param>
 public GetCharactersCharacterIdChatChannelsAllowed(int?accessorId = default(int?), AccessorTypeEnum accessorType = default(AccessorTypeEnum))
 {
     // to ensure "accessorId" is required (not null)
     if (accessorId == null)
     {
         throw new InvalidDataException("accessorId is a required property for GetCharactersCharacterIdChatChannelsAllowed and cannot be null");
     }
     else
     {
         this.AccessorId = accessorId;
     }
     // to ensure "accessorType" is required (not null)
     if (accessorType == null)
     {
         throw new InvalidDataException("accessorType is a required property for GetCharactersCharacterIdChatChannelsAllowed and cannot be null");
     }
     else
     {
         this.AccessorType = accessorType;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GetCharactersCharacterIdChatChannelsBlocked" /> class.
 /// </summary>
 /// <param name="accessorId">ID of a blocked channel member (required).</param>
 /// <param name="accessorType">accessor_type string (required).</param>
 /// <param name="reason">Reason this accessor is blocked.</param>
 /// <param name="endAt">Time at which this accessor will no longer be blocked.</param>
 public GetCharactersCharacterIdChatChannelsBlocked(int?accessorId = default(int?), AccessorTypeEnum accessorType = default(AccessorTypeEnum), string reason = default(string), DateTime?endAt = default(DateTime?))
 {
     // to ensure "accessorId" is required (not null)
     if (accessorId == null)
     {
         throw new InvalidDataException("accessorId is a required property for GetCharactersCharacterIdChatChannelsBlocked and cannot be null");
     }
     else
     {
         this.AccessorId = accessorId;
     }
     // to ensure "accessorType" is required (not null)
     if (accessorType == null)
     {
         throw new InvalidDataException("accessorType is a required property for GetCharactersCharacterIdChatChannelsBlocked and cannot be null");
     }
     else
     {
         this.AccessorType = accessorType;
     }
     this.Reason = reason;
     this.EndAt  = endAt;
 }