/// <summary> /// Initializes a new instance of the <see cref="GetKillmailsKillmailIdKillmailHashVictim" /> class. /// </summary> /// <param name="AllianceId">alliance_id integer.</param> /// <param name="CharacterId">character_id integer.</param> /// <param name="CorporationId">corporation_id integer.</param> /// <param name="DamageTaken">How much total damage was taken by the victim (required).</param> /// <param name="FactionId">faction_id integer.</param> /// <param name="Items">items array.</param> /// <param name="Position">Position.</param> /// <param name="ShipTypeId">The ship that the victim was piloting and was destroyed (required).</param> public GetKillmailsKillmailIdKillmailHashVictim(int?AllianceId = default(int?), int?CharacterId = default(int?), int?CorporationId = default(int?), int?DamageTaken = default(int?), int?FactionId = default(int?), List <GetKillmailsKillmailIdKillmailHashItem1> Items = default(List <GetKillmailsKillmailIdKillmailHashItem1>), GetKillmailsKillmailIdKillmailHashPosition Position = default(GetKillmailsKillmailIdKillmailHashPosition), int?ShipTypeId = default(int?)) { // to ensure "DamageTaken" is required (not null) if (DamageTaken == null) { throw new InvalidDataException("DamageTaken is a required property for GetKillmailsKillmailIdKillmailHashVictim and cannot be null"); } else { this.DamageTaken = DamageTaken; } // to ensure "ShipTypeId" is required (not null) if (ShipTypeId == null) { throw new InvalidDataException("ShipTypeId is a required property for GetKillmailsKillmailIdKillmailHashVictim and cannot be null"); } else { this.ShipTypeId = ShipTypeId; } this.AllianceId = AllianceId; this.CharacterId = CharacterId; this.CorporationId = CorporationId; this.FactionId = FactionId; this.Items = Items; this.Position = Position; }
/// <summary> /// Initializes a new instance of the <see cref="GetKillmailsKillmailIdKillmailHashVictim" /> class. /// </summary> /// <param name="characterId">character_id integer.</param> /// <param name="corporationId">corporation_id integer.</param> /// <param name="allianceId">alliance_id integer.</param> /// <param name="factionId">faction_id integer.</param> /// <param name="damageTaken">How much total damage was taken by the victim (required).</param> /// <param name="shipTypeId">The ship that the victim was piloting and was destroyed (required).</param> /// <param name="items">items array.</param> /// <param name="position">position.</param> public GetKillmailsKillmailIdKillmailHashVictim(int?characterId = default(int?), int?corporationId = default(int?), int?allianceId = default(int?), int?factionId = default(int?), int?damageTaken = default(int?), int?shipTypeId = default(int?), List <GetKillmailsKillmailIdKillmailHashItem1> items = default(List <GetKillmailsKillmailIdKillmailHashItem1>), GetKillmailsKillmailIdKillmailHashPosition position = default(GetKillmailsKillmailIdKillmailHashPosition)) { // to ensure "damageTaken" is required (not null) if (damageTaken == null) { throw new InvalidDataException("damageTaken is a required property for GetKillmailsKillmailIdKillmailHashVictim and cannot be null"); } else { this.DamageTaken = damageTaken; } // to ensure "shipTypeId" is required (not null) if (shipTypeId == null) { throw new InvalidDataException("shipTypeId is a required property for GetKillmailsKillmailIdKillmailHashVictim and cannot be null"); } else { this.ShipTypeId = shipTypeId; } this.CharacterId = characterId; this.CorporationId = corporationId; this.AllianceId = allianceId; this.FactionId = factionId; this.Items = items; this.Position = position; }