/// <summary> /// Initializes a new instance of the <see cref="GetCorporationsCorporationIdStarbasesStarbaseIdOk" /> class. /// </summary> /// <param name="fuelBayView">Who can view the starbase (POS)'s fule bay. Characters either need to have required role or belong to the starbase (POS) owner's corporation or alliance, as described by the enum, all other access settings follows the same scheme (required).</param> /// <param name="fuelBayTake">Who can take fuel blocks out of the starbase (POS)'s fuel bay (required).</param> /// <param name="anchor">Who can anchor starbase (POS) and its structures (required).</param> /// <param name="unanchor">Who can unanchor starbase (POS) and its structures (required).</param> /// <param name="online">Who can online starbase (POS) and its structures (required).</param> /// <param name="offline">Who can offline starbase (POS) and its structures (required).</param> /// <param name="allowCorporationMembers">allow_corporation_members boolean (required).</param> /// <param name="allowAllianceMembers">allow_alliance_members boolean (required).</param> /// <param name="useAllianceStandings">True if the starbase (POS) is using alliance standings, otherwise using corporation's (required).</param> /// <param name="attackStandingThreshold">Starbase (POS) will attack if target's standing is lower than this value.</param> /// <param name="attackSecurityStatusThreshold">Starbase (POS) will attack if target's security standing is lower than this value.</param> /// <param name="attackIfOtherSecurityStatusDropping">attack_if_other_security_status_dropping boolean (required).</param> /// <param name="attackIfAtWar">attack_if_at_war boolean (required).</param> /// <param name="fuels">Fuel blocks and other things that will be consumed when operating a starbase (POS).</param> public GetCorporationsCorporationIdStarbasesStarbaseIdOk(FuelBayViewEnum fuelBayView = default(FuelBayViewEnum), FuelBayTakeEnum fuelBayTake = default(FuelBayTakeEnum), AnchorEnum anchor = default(AnchorEnum), UnanchorEnum unanchor = default(UnanchorEnum), OnlineEnum online = default(OnlineEnum), OfflineEnum offline = default(OfflineEnum), bool?allowCorporationMembers = default(bool?), bool?allowAllianceMembers = default(bool?), bool?useAllianceStandings = default(bool?), float?attackStandingThreshold = default(float?), float?attackSecurityStatusThreshold = default(float?), bool?attackIfOtherSecurityStatusDropping = default(bool?), bool?attackIfAtWar = default(bool?), List <GetCorporationsCorporationIdStarbasesStarbaseIdFuel> fuels = default(List <GetCorporationsCorporationIdStarbasesStarbaseIdFuel>)) { // to ensure "fuelBayView" is required (not null) if (fuelBayView == null) { throw new InvalidDataException("fuelBayView is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null"); } else { this.FuelBayView = fuelBayView; } // to ensure "fuelBayTake" is required (not null) if (fuelBayTake == null) { throw new InvalidDataException("fuelBayTake is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null"); } else { this.FuelBayTake = fuelBayTake; } // to ensure "anchor" is required (not null) if (anchor == null) { throw new InvalidDataException("anchor is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null"); } else { this.Anchor = anchor; } // to ensure "unanchor" is required (not null) if (unanchor == null) { throw new InvalidDataException("unanchor is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null"); } else { this.Unanchor = unanchor; } // to ensure "online" is required (not null) if (online == null) { throw new InvalidDataException("online is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null"); } else { this.Online = online; } // to ensure "offline" is required (not null) if (offline == null) { throw new InvalidDataException("offline is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null"); } else { this.Offline = offline; } // to ensure "allowCorporationMembers" is required (not null) if (allowCorporationMembers == null) { throw new InvalidDataException("allowCorporationMembers is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null"); } else { this.AllowCorporationMembers = allowCorporationMembers; } // to ensure "allowAllianceMembers" is required (not null) if (allowAllianceMembers == null) { throw new InvalidDataException("allowAllianceMembers is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null"); } else { this.AllowAllianceMembers = allowAllianceMembers; } // to ensure "useAllianceStandings" is required (not null) if (useAllianceStandings == null) { throw new InvalidDataException("useAllianceStandings is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null"); } else { this.UseAllianceStandings = useAllianceStandings; } // to ensure "attackIfOtherSecurityStatusDropping" is required (not null) if (attackIfOtherSecurityStatusDropping == null) { throw new InvalidDataException("attackIfOtherSecurityStatusDropping is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null"); } else { this.AttackIfOtherSecurityStatusDropping = attackIfOtherSecurityStatusDropping; } // to ensure "attackIfAtWar" is required (not null) if (attackIfAtWar == null) { throw new InvalidDataException("attackIfAtWar is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null"); } else { this.AttackIfAtWar = attackIfAtWar; } this.AttackStandingThreshold = attackStandingThreshold; this.AttackSecurityStatusThreshold = attackSecurityStatusThreshold; this.Fuels = fuels; }
/// <summary> /// Initializes a new instance of the <see cref="GetCorporationsCorporationIdStarbasesStarbaseIdOk" /> class. /// </summary> /// <param name="AllowAllianceMembers">allow_alliance_members boolean (required).</param> /// <param name="AllowCorporationMembers">allow_corporation_members boolean (required).</param> /// <param name="Anchor">Who can anchor starbase (POS) and its structures (required).</param> /// <param name="AttackIfAtWar">attack_if_at_war boolean (required).</param> /// <param name="AttackIfOtherSecurityStatusDropping">attack_if_other_security_status_dropping boolean (required).</param> /// <param name="AttackSecurityStatusThreshold">Starbase (POS) will attack if target's security standing is lower than this value.</param> /// <param name="AttackStandingThreshold">Starbase (POS) will attack if target's standing is lower than this value.</param> /// <param name="FuelBayTake">Who can take fuel blocks out of the starbase (POS)'s fuel bay (required).</param> /// <param name="FuelBayView">Who can view the starbase (POS)'s fule bay. Characters either need to have required role or belong to the starbase (POS) owner's corporation or alliance, as described by the enum, all other access settings follows the same scheme (required).</param> /// <param name="Fuels">Fuel blocks and other things that will be consumed when operating a starbase (POS).</param> /// <param name="Offline">Who can offline starbase (POS) and its structures (required).</param> /// <param name="Online">Who can online starbase (POS) and its structures (required).</param> /// <param name="Unanchor">Who can unanchor starbase (POS) and its structures (required).</param> /// <param name="UseAllianceStandings">True if the starbase (POS) is using alliance standings, otherwise using corporation's (required).</param> public GetCorporationsCorporationIdStarbasesStarbaseIdOk(bool?AllowAllianceMembers = default(bool?), bool?AllowCorporationMembers = default(bool?), AnchorEnum Anchor = default(AnchorEnum), bool?AttackIfAtWar = default(bool?), bool?AttackIfOtherSecurityStatusDropping = default(bool?), float?AttackSecurityStatusThreshold = default(float?), float?AttackStandingThreshold = default(float?), FuelBayTakeEnum FuelBayTake = default(FuelBayTakeEnum), FuelBayViewEnum FuelBayView = default(FuelBayViewEnum), List <GetCorporationsCorporationIdStarbasesStarbaseIdFuel> Fuels = default(List <GetCorporationsCorporationIdStarbasesStarbaseIdFuel>), OfflineEnum Offline = default(OfflineEnum), OnlineEnum Online = default(OnlineEnum), UnanchorEnum Unanchor = default(UnanchorEnum), bool?UseAllianceStandings = default(bool?)) { // to ensure "AllowAllianceMembers" is required (not null) if (AllowAllianceMembers == null) { throw new InvalidDataException("AllowAllianceMembers is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null"); } else { this.AllowAllianceMembers = AllowAllianceMembers; } // to ensure "AllowCorporationMembers" is required (not null) if (AllowCorporationMembers == null) { throw new InvalidDataException("AllowCorporationMembers is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null"); } else { this.AllowCorporationMembers = AllowCorporationMembers; } // to ensure "Anchor" is required (not null) if (Anchor == null) { throw new InvalidDataException("Anchor is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null"); } else { this.Anchor = Anchor; } // to ensure "AttackIfAtWar" is required (not null) if (AttackIfAtWar == null) { throw new InvalidDataException("AttackIfAtWar is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null"); } else { this.AttackIfAtWar = AttackIfAtWar; } // to ensure "AttackIfOtherSecurityStatusDropping" is required (not null) if (AttackIfOtherSecurityStatusDropping == null) { throw new InvalidDataException("AttackIfOtherSecurityStatusDropping is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null"); } else { this.AttackIfOtherSecurityStatusDropping = AttackIfOtherSecurityStatusDropping; } // to ensure "FuelBayTake" is required (not null) if (FuelBayTake == null) { throw new InvalidDataException("FuelBayTake is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null"); } else { this.FuelBayTake = FuelBayTake; } // to ensure "FuelBayView" is required (not null) if (FuelBayView == null) { throw new InvalidDataException("FuelBayView is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null"); } else { this.FuelBayView = FuelBayView; } // to ensure "Offline" is required (not null) if (Offline == null) { throw new InvalidDataException("Offline is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null"); } else { this.Offline = Offline; } // to ensure "Online" is required (not null) if (Online == null) { throw new InvalidDataException("Online is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null"); } else { this.Online = Online; } // to ensure "Unanchor" is required (not null) if (Unanchor == null) { throw new InvalidDataException("Unanchor is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null"); } else { this.Unanchor = Unanchor; } // to ensure "UseAllianceStandings" is required (not null) if (UseAllianceStandings == null) { throw new InvalidDataException("UseAllianceStandings is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null"); } else { this.UseAllianceStandings = UseAllianceStandings; } this.AttackSecurityStatusThreshold = AttackSecurityStatusThreshold; this.AttackStandingThreshold = AttackStandingThreshold; this.Fuels = Fuels; }