Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetCharactersCharacterIdFwStatsOk" /> class.
 /// </summary>
 /// <param name="factionId">The faction the given character is enlisted to fight for. Will not be included if character is not enlisted in faction warfare.</param>
 /// <param name="enlistedOn">The enlistment date of the given character into faction warfare. Will not be included if character is not enlisted in faction warfare.</param>
 /// <param name="currentRank">The given character&#39;s current faction rank.</param>
 /// <param name="highestRank">The given character&#39;s highest faction rank achieved.</param>
 /// <param name="kills">kills (required).</param>
 /// <param name="victoryPoints">victoryPoints (required).</param>
 public GetCharactersCharacterIdFwStatsOk(int?factionId = default(int?), DateTime?enlistedOn = default(DateTime?), int?currentRank = default(int?), int?highestRank = default(int?), GetCharactersCharacterIdFwStatsKills kills = default(GetCharactersCharacterIdFwStatsKills), GetCharactersCharacterIdFwStatsVictoryPoints victoryPoints = default(GetCharactersCharacterIdFwStatsVictoryPoints))
 {
     // to ensure "kills" is required (not null)
     if (kills == null)
     {
         throw new InvalidDataException("kills is a required property for GetCharactersCharacterIdFwStatsOk and cannot be null");
     }
     else
     {
         this.Kills = kills;
     }
     // to ensure "victoryPoints" is required (not null)
     if (victoryPoints == null)
     {
         throw new InvalidDataException("victoryPoints is a required property for GetCharactersCharacterIdFwStatsOk and cannot be null");
     }
     else
     {
         this.VictoryPoints = victoryPoints;
     }
     this.FactionId   = factionId;
     this.EnlistedOn  = enlistedOn;
     this.CurrentRank = currentRank;
     this.HighestRank = highestRank;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetCharactersCharacterIdFwStatsOk" /> class.
 /// </summary>
 /// <param name="CurrentRank">The given character&#39;s current faction rank.</param>
 /// <param name="EnlistedOn">The enlistment date of the given character into faction warfare. Will not be included if character is not enlisted in faction warfare.</param>
 /// <param name="FactionId">The faction the given character is enlisted to fight for. Will not be included if character is not enlisted in faction warfare.</param>
 /// <param name="HighestRank">The given character&#39;s highest faction rank achieved.</param>
 /// <param name="Kills">Kills (required).</param>
 /// <param name="VictoryPoints">VictoryPoints (required).</param>
 public GetCharactersCharacterIdFwStatsOk(int?CurrentRank = default(int?), DateTime?EnlistedOn = default(DateTime?), int?FactionId = default(int?), int?HighestRank = default(int?), GetCharactersCharacterIdFwStatsKills Kills = default(GetCharactersCharacterIdFwStatsKills), GetCharactersCharacterIdFwStatsVictoryPoints VictoryPoints = default(GetCharactersCharacterIdFwStatsVictoryPoints))
 {
     // to ensure "Kills" is required (not null)
     if (Kills == null)
     {
         throw new InvalidDataException("Kills is a required property for GetCharactersCharacterIdFwStatsOk and cannot be null");
     }
     else
     {
         this.Kills = Kills;
     }
     // to ensure "VictoryPoints" is required (not null)
     if (VictoryPoints == null)
     {
         throw new InvalidDataException("VictoryPoints is a required property for GetCharactersCharacterIdFwStatsOk and cannot be null");
     }
     else
     {
         this.VictoryPoints = VictoryPoints;
     }
     this.CurrentRank = CurrentRank;
     this.EnlistedOn  = EnlistedOn;
     this.FactionId   = FactionId;
     this.HighestRank = HighestRank;
 }