Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetCharactersCharacterIdStandings200Ok" /> class.
 /// </summary>
 /// <param name="FromId">from_id integer (required).</param>
 /// <param name="FromType">from_type string (required).</param>
 /// <param name="Standing">standing number (required).</param>
 public GetCharactersCharacterIdStandings200Ok(int?FromId = default(int?), FromTypeEnum FromType = default(FromTypeEnum), float?Standing = default(float?))
 {
     // to ensure "FromId" is required (not null)
     if (FromId == null)
     {
         throw new InvalidDataException("FromId is a required property for GetCharactersCharacterIdStandings200Ok and cannot be null");
     }
     else
     {
         this.FromId = FromId;
     }
     // to ensure "FromType" is required (not null)
     if (FromType == null)
     {
         throw new InvalidDataException("FromType is a required property for GetCharactersCharacterIdStandings200Ok and cannot be null");
     }
     else
     {
         this.FromType = FromType;
     }
     // to ensure "Standing" is required (not null)
     if (Standing == null)
     {
         throw new InvalidDataException("Standing is a required property for GetCharactersCharacterIdStandings200Ok and cannot be null");
     }
     else
     {
         this.Standing = Standing;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GetCorporationsCorporationIdStandings200Ok" /> class.
 /// </summary>
 /// <param name="fromId">from_id integer (required).</param>
 /// <param name="fromType">from_type string (required).</param>
 /// <param name="standing">standing number (required).</param>
 public GetCorporationsCorporationIdStandings200Ok(int?fromId = default(int?), FromTypeEnum fromType = default(FromTypeEnum), float?standing = default(float?))
 {
     // to ensure "fromId" is required (not null)
     if (fromId == null)
     {
         throw new InvalidDataException("fromId is a required property for GetCorporationsCorporationIdStandings200Ok and cannot be null");
     }
     else
     {
         this.FromId = fromId;
     }
     // to ensure "fromType" is required (not null)
     if (fromType == null)
     {
         throw new InvalidDataException("fromType is a required property for GetCorporationsCorporationIdStandings200Ok and cannot be null");
     }
     else
     {
         this.FromType = fromType;
     }
     // to ensure "standing" is required (not null)
     if (standing == null)
     {
         throw new InvalidDataException("standing is a required property for GetCorporationsCorporationIdStandings200Ok and cannot be null");
     }
     else
     {
         this.Standing = standing;
     }
 }