diff --git a/README.md b/README.md index 5f2dcd0..52f0990 100644 --- a/README.md +++ b/README.md @@ -3,13 +3,13 @@ An OpenAPI for EVE Online This PHP package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: -- API version: 0.4.9.dev1 +- API version: 0.7.3 - Package version: 1.0 - Build package: io.swagger.codegen.languages.PhpClientCodegen ## Requirements -PHP 5.4.0 and later +PHP 5.5 and later ## Installation & Usage ### Composer @@ -37,7 +37,7 @@ Then run `composer install` Download the files and include `autoload.php`: ```php - require_once('/path/to/esi-php/autoload.php'); + require_once('/path/to/esi-php/vendor/autoload.php'); ``` ## Tests @@ -57,13 +57,17 @@ Please follow the [installation procedure](#installation--usage) and then run th getAlliances($datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getAlliances($datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling AllianceApi->getAlliances: ', $e->getMessage(), PHP_EOL; @@ -84,35 +88,74 @@ Class | Method | HTTP request | Description *AllianceApi* | [**getAlliancesAllianceIdIcons**](docs/Api/AllianceApi.md#getalliancesallianceidicons) | **GET** /alliances/{alliance_id}/icons/ | Get alliance icon *AllianceApi* | [**getAlliancesNames**](docs/Api/AllianceApi.md#getalliancesnames) | **GET** /alliances/names/ | Get alliance names *AssetsApi* | [**getCharactersCharacterIdAssets**](docs/Api/AssetsApi.md#getcharacterscharacteridassets) | **GET** /characters/{character_id}/assets/ | Get character assets +*AssetsApi* | [**getCorporationsCorporationIdAssets**](docs/Api/AssetsApi.md#getcorporationscorporationidassets) | **GET** /corporations/{corporation_id}/assets/ | Get corporation assets +*AssetsApi* | [**postCharactersCharacterIdAssetsLocations**](docs/Api/AssetsApi.md#postcharacterscharacteridassetslocations) | **POST** /characters/{character_id}/assets/locations/ | Get character asset locations +*AssetsApi* | [**postCharactersCharacterIdAssetsNames**](docs/Api/AssetsApi.md#postcharacterscharacteridassetsnames) | **POST** /characters/{character_id}/assets/names/ | Get character asset names +*AssetsApi* | [**postCorporationsCorporationIdAssetsLocations**](docs/Api/AssetsApi.md#postcorporationscorporationidassetslocations) | **POST** /corporations/{corporation_id}/assets/locations/ | Get corporation asset locations +*AssetsApi* | [**postCorporationsCorporationIdAssetsNames**](docs/Api/AssetsApi.md#postcorporationscorporationidassetsnames) | **POST** /corporations/{corporation_id}/assets/names/ | Get coporation asset names *BookmarksApi* | [**getCharactersCharacterIdBookmarks**](docs/Api/BookmarksApi.md#getcharacterscharacteridbookmarks) | **GET** /characters/{character_id}/bookmarks/ | List bookmarks *BookmarksApi* | [**getCharactersCharacterIdBookmarksFolders**](docs/Api/BookmarksApi.md#getcharacterscharacteridbookmarksfolders) | **GET** /characters/{character_id}/bookmarks/folders/ | List bookmark folders +*BookmarksApi* | [**getCorporationsCorporationIdBookmarks**](docs/Api/BookmarksApi.md#getcorporationscorporationidbookmarks) | **GET** /corporations/{corporation_id}/bookmarks/ | List corporation bookmarks +*BookmarksApi* | [**getCorporationsCorporationIdBookmarksFolders**](docs/Api/BookmarksApi.md#getcorporationscorporationidbookmarksfolders) | **GET** /corporations/{corporation_id}/bookmarks/folders/ | List corporation bookmark folders *CalendarApi* | [**getCharactersCharacterIdCalendar**](docs/Api/CalendarApi.md#getcharacterscharacteridcalendar) | **GET** /characters/{character_id}/calendar/ | List calendar event summaries *CalendarApi* | [**getCharactersCharacterIdCalendarEventId**](docs/Api/CalendarApi.md#getcharacterscharacteridcalendareventid) | **GET** /characters/{character_id}/calendar/{event_id}/ | Get an event +*CalendarApi* | [**getCharactersCharacterIdCalendarEventIdAttendees**](docs/Api/CalendarApi.md#getcharacterscharacteridcalendareventidattendees) | **GET** /characters/{character_id}/calendar/{event_id}/attendees/ | Get attendees *CalendarApi* | [**putCharactersCharacterIdCalendarEventId**](docs/Api/CalendarApi.md#putcharacterscharacteridcalendareventid) | **PUT** /characters/{character_id}/calendar/{event_id}/ | Respond to an event *CharacterApi* | [**getCharactersCharacterId**](docs/Api/CharacterApi.md#getcharacterscharacterid) | **GET** /characters/{character_id}/ | Get character's public information *CharacterApi* | [**getCharactersCharacterIdAgentsResearch**](docs/Api/CharacterApi.md#getcharacterscharacteridagentsresearch) | **GET** /characters/{character_id}/agents_research/ | Get agents research *CharacterApi* | [**getCharactersCharacterIdBlueprints**](docs/Api/CharacterApi.md#getcharacterscharacteridblueprints) | **GET** /characters/{character_id}/blueprints/ | Get blueprints *CharacterApi* | [**getCharactersCharacterIdChatChannels**](docs/Api/CharacterApi.md#getcharacterscharacteridchatchannels) | **GET** /characters/{character_id}/chat_channels/ | Get chat channels *CharacterApi* | [**getCharactersCharacterIdCorporationhistory**](docs/Api/CharacterApi.md#getcharacterscharacteridcorporationhistory) | **GET** /characters/{character_id}/corporationhistory/ | Get corporation history +*CharacterApi* | [**getCharactersCharacterIdFatigue**](docs/Api/CharacterApi.md#getcharacterscharacteridfatigue) | **GET** /characters/{character_id}/fatigue/ | Get jump fatigue *CharacterApi* | [**getCharactersCharacterIdMedals**](docs/Api/CharacterApi.md#getcharacterscharacteridmedals) | **GET** /characters/{character_id}/medals/ | Get medals +*CharacterApi* | [**getCharactersCharacterIdNotifications**](docs/Api/CharacterApi.md#getcharacterscharacteridnotifications) | **GET** /characters/{character_id}/notifications/ | Get character notifications +*CharacterApi* | [**getCharactersCharacterIdNotificationsContacts**](docs/Api/CharacterApi.md#getcharacterscharacteridnotificationscontacts) | **GET** /characters/{character_id}/notifications/contacts/ | Get new contact notifications *CharacterApi* | [**getCharactersCharacterIdPortrait**](docs/Api/CharacterApi.md#getcharacterscharacteridportrait) | **GET** /characters/{character_id}/portrait/ | Get character portraits *CharacterApi* | [**getCharactersCharacterIdRoles**](docs/Api/CharacterApi.md#getcharacterscharacteridroles) | **GET** /characters/{character_id}/roles/ | Get character corporation roles *CharacterApi* | [**getCharactersCharacterIdStandings**](docs/Api/CharacterApi.md#getcharacterscharacteridstandings) | **GET** /characters/{character_id}/standings/ | Get standings +*CharacterApi* | [**getCharactersCharacterIdStats**](docs/Api/CharacterApi.md#getcharacterscharacteridstats) | **GET** /characters/{character_id}/stats/ | Yearly aggregate stats +*CharacterApi* | [**getCharactersCharacterIdTitles**](docs/Api/CharacterApi.md#getcharacterscharacteridtitles) | **GET** /characters/{character_id}/titles/ | Get character corporation titles *CharacterApi* | [**getCharactersNames**](docs/Api/CharacterApi.md#getcharactersnames) | **GET** /characters/names/ | Get character names *CharacterApi* | [**postCharactersAffiliation**](docs/Api/CharacterApi.md#postcharactersaffiliation) | **POST** /characters/affiliation/ | Character affiliation *CharacterApi* | [**postCharactersCharacterIdCspa**](docs/Api/CharacterApi.md#postcharacterscharacteridcspa) | **POST** /characters/{character_id}/cspa/ | Calculate a CSPA charge cost *ClonesApi* | [**getCharactersCharacterIdClones**](docs/Api/ClonesApi.md#getcharacterscharacteridclones) | **GET** /characters/{character_id}/clones/ | Get clones +*ClonesApi* | [**getCharactersCharacterIdImplants**](docs/Api/ClonesApi.md#getcharacterscharacteridimplants) | **GET** /characters/{character_id}/implants/ | Get active implants *ContactsApi* | [**deleteCharactersCharacterIdContacts**](docs/Api/ContactsApi.md#deletecharacterscharacteridcontacts) | **DELETE** /characters/{character_id}/contacts/ | Delete contacts +*ContactsApi* | [**getAlliancesAllianceIdContacts**](docs/Api/ContactsApi.md#getalliancesallianceidcontacts) | **GET** /alliances/{alliance_id}/contacts/ | Get alliance contacts *ContactsApi* | [**getCharactersCharacterIdContacts**](docs/Api/ContactsApi.md#getcharacterscharacteridcontacts) | **GET** /characters/{character_id}/contacts/ | Get contacts *ContactsApi* | [**getCharactersCharacterIdContactsLabels**](docs/Api/ContactsApi.md#getcharacterscharacteridcontactslabels) | **GET** /characters/{character_id}/contacts/labels/ | Get contact labels +*ContactsApi* | [**getCorporationsCorporationIdContacts**](docs/Api/ContactsApi.md#getcorporationscorporationidcontacts) | **GET** /corporations/{corporation_id}/contacts/ | Get corporation contacts *ContactsApi* | [**postCharactersCharacterIdContacts**](docs/Api/ContactsApi.md#postcharacterscharacteridcontacts) | **POST** /characters/{character_id}/contacts/ | Add contacts *ContactsApi* | [**putCharactersCharacterIdContacts**](docs/Api/ContactsApi.md#putcharacterscharacteridcontacts) | **PUT** /characters/{character_id}/contacts/ | Edit contacts +*ContractsApi* | [**getCharactersCharacterIdContracts**](docs/Api/ContractsApi.md#getcharacterscharacteridcontracts) | **GET** /characters/{character_id}/contracts/ | Get contracts +*ContractsApi* | [**getCharactersCharacterIdContractsContractIdBids**](docs/Api/ContractsApi.md#getcharacterscharacteridcontractscontractidbids) | **GET** /characters/{character_id}/contracts/{contract_id}/bids/ | Get contract bids +*ContractsApi* | [**getCharactersCharacterIdContractsContractIdItems**](docs/Api/ContractsApi.md#getcharacterscharacteridcontractscontractiditems) | **GET** /characters/{character_id}/contracts/{contract_id}/items/ | Get contract items +*ContractsApi* | [**getCorporationsCorporationIdContracts**](docs/Api/ContractsApi.md#getcorporationscorporationidcontracts) | **GET** /corporations/{corporation_id}/contracts/ | Get coporation contracts +*ContractsApi* | [**getCorporationsCorporationIdContractsContractIdBids**](docs/Api/ContractsApi.md#getcorporationscorporationidcontractscontractidbids) | **GET** /corporations/{corporation_id}/contracts/{contract_id}/bids/ | Get corporation contract bids +*ContractsApi* | [**getCorporationsCorporationIdContractsContractIdItems**](docs/Api/ContractsApi.md#getcorporationscorporationidcontractscontractiditems) | **GET** /corporations/{corporation_id}/contracts/{contract_id}/items/ | Get corporation contract items *CorporationApi* | [**getCorporationsCorporationId**](docs/Api/CorporationApi.md#getcorporationscorporationid) | **GET** /corporations/{corporation_id}/ | Get corporation information *CorporationApi* | [**getCorporationsCorporationIdAlliancehistory**](docs/Api/CorporationApi.md#getcorporationscorporationidalliancehistory) | **GET** /corporations/{corporation_id}/alliancehistory/ | Get alliance history +*CorporationApi* | [**getCorporationsCorporationIdBlueprints**](docs/Api/CorporationApi.md#getcorporationscorporationidblueprints) | **GET** /corporations/{corporation_id}/blueprints/ | Get corporation blueprints +*CorporationApi* | [**getCorporationsCorporationIdContainersLogs**](docs/Api/CorporationApi.md#getcorporationscorporationidcontainerslogs) | **GET** /corporations/{corporation_id}/containers/logs/ | Get all corporation ALSC logs +*CorporationApi* | [**getCorporationsCorporationIdDivisions**](docs/Api/CorporationApi.md#getcorporationscorporationiddivisions) | **GET** /corporations/{corporation_id}/divisions/ | Get corporation divisions +*CorporationApi* | [**getCorporationsCorporationIdFacilities**](docs/Api/CorporationApi.md#getcorporationscorporationidfacilities) | **GET** /corporations/{corporation_id}/facilities/ | Get corporation facilities *CorporationApi* | [**getCorporationsCorporationIdIcons**](docs/Api/CorporationApi.md#getcorporationscorporationidicons) | **GET** /corporations/{corporation_id}/icons/ | Get corporation icon +*CorporationApi* | [**getCorporationsCorporationIdMedals**](docs/Api/CorporationApi.md#getcorporationscorporationidmedals) | **GET** /corporations/{corporation_id}/medals/ | Get corporation medals +*CorporationApi* | [**getCorporationsCorporationIdMedalsIssued**](docs/Api/CorporationApi.md#getcorporationscorporationidmedalsissued) | **GET** /corporations/{corporation_id}/medals/issued/ | Get corporation issued medals *CorporationApi* | [**getCorporationsCorporationIdMembers**](docs/Api/CorporationApi.md#getcorporationscorporationidmembers) | **GET** /corporations/{corporation_id}/members/ | Get corporation members +*CorporationApi* | [**getCorporationsCorporationIdMembersLimit**](docs/Api/CorporationApi.md#getcorporationscorporationidmemberslimit) | **GET** /corporations/{corporation_id}/members/limit/ | Get corporation member limit +*CorporationApi* | [**getCorporationsCorporationIdMembersTitles**](docs/Api/CorporationApi.md#getcorporationscorporationidmemberstitles) | **GET** /corporations/{corporation_id}/members/titles/ | Get corporation's members' titles +*CorporationApi* | [**getCorporationsCorporationIdMembertracking**](docs/Api/CorporationApi.md#getcorporationscorporationidmembertracking) | **GET** /corporations/{corporation_id}/membertracking/ | Track corporation members +*CorporationApi* | [**getCorporationsCorporationIdOutposts**](docs/Api/CorporationApi.md#getcorporationscorporationidoutposts) | **GET** /corporations/{corporation_id}/outposts/ | Get corporation outposts +*CorporationApi* | [**getCorporationsCorporationIdOutpostsOutpostId**](docs/Api/CorporationApi.md#getcorporationscorporationidoutpostsoutpostid) | **GET** /corporations/{corporation_id}/outposts/{outpost_id}/ | Get corporation outpost details *CorporationApi* | [**getCorporationsCorporationIdRoles**](docs/Api/CorporationApi.md#getcorporationscorporationidroles) | **GET** /corporations/{corporation_id}/roles/ | Get corporation member roles +*CorporationApi* | [**getCorporationsCorporationIdRolesHistory**](docs/Api/CorporationApi.md#getcorporationscorporationidroleshistory) | **GET** /corporations/{corporation_id}/roles/history/ | Get corporation member roles history +*CorporationApi* | [**getCorporationsCorporationIdShareholders**](docs/Api/CorporationApi.md#getcorporationscorporationidshareholders) | **GET** /corporations/{corporation_id}/shareholders/ | Get corporation members +*CorporationApi* | [**getCorporationsCorporationIdStandings**](docs/Api/CorporationApi.md#getcorporationscorporationidstandings) | **GET** /corporations/{corporation_id}/standings/ | Get corporation standings +*CorporationApi* | [**getCorporationsCorporationIdStarbases**](docs/Api/CorporationApi.md#getcorporationscorporationidstarbases) | **GET** /corporations/{corporation_id}/starbases/ | Get corporation starbases (POSes) +*CorporationApi* | [**getCorporationsCorporationIdStarbasesStarbaseId**](docs/Api/CorporationApi.md#getcorporationscorporationidstarbasesstarbaseid) | **GET** /corporations/{corporation_id}/starbases/{starbase_id}/ | Get starbase (POS) detail *CorporationApi* | [**getCorporationsCorporationIdStructures**](docs/Api/CorporationApi.md#getcorporationscorporationidstructures) | **GET** /corporations/{corporation_id}/structures/ | Get corporation structures +*CorporationApi* | [**getCorporationsCorporationIdTitles**](docs/Api/CorporationApi.md#getcorporationscorporationidtitles) | **GET** /corporations/{corporation_id}/titles/ | Get corporation titles *CorporationApi* | [**getCorporationsNames**](docs/Api/CorporationApi.md#getcorporationsnames) | **GET** /corporations/names/ | Get corporation names *CorporationApi* | [**getCorporationsNpccorps**](docs/Api/CorporationApi.md#getcorporationsnpccorps) | **GET** /corporations/npccorps/ | Get npc corporations *CorporationApi* | [**putCorporationsCorporationIdStructuresStructureId**](docs/Api/CorporationApi.md#putcorporationscorporationidstructuresstructureid) | **PUT** /corporations/{corporation_id}/structures/{structure_id}/ | Update structure vulnerability schedule @@ -120,12 +163,21 @@ Class | Method | HTTP request | Description *DogmaApi* | [**getDogmaAttributesAttributeId**](docs/Api/DogmaApi.md#getdogmaattributesattributeid) | **GET** /dogma/attributes/{attribute_id}/ | Get attribute information *DogmaApi* | [**getDogmaEffects**](docs/Api/DogmaApi.md#getdogmaeffects) | **GET** /dogma/effects/ | Get effects *DogmaApi* | [**getDogmaEffectsEffectId**](docs/Api/DogmaApi.md#getdogmaeffectseffectid) | **GET** /dogma/effects/{effect_id}/ | Get effect information +*FactionWarfareApi* | [**getCharactersCharacterIdFwStats**](docs/Api/FactionWarfareApi.md#getcharacterscharacteridfwstats) | **GET** /characters/{character_id}/fw/stats/ | Overview of a character involved in faction warfare +*FactionWarfareApi* | [**getCorporationsCorporationIdFwStats**](docs/Api/FactionWarfareApi.md#getcorporationscorporationidfwstats) | **GET** /corporations/{corporation_id}/fw/stats/ | Overview of a corporation involved in faction warfare +*FactionWarfareApi* | [**getFwLeaderboards**](docs/Api/FactionWarfareApi.md#getfwleaderboards) | **GET** /fw/leaderboards/ | List of the top factions in faction warfare +*FactionWarfareApi* | [**getFwLeaderboardsCharacters**](docs/Api/FactionWarfareApi.md#getfwleaderboardscharacters) | **GET** /fw/leaderboards/characters/ | List of the top pilots in faction warfare +*FactionWarfareApi* | [**getFwLeaderboardsCorporations**](docs/Api/FactionWarfareApi.md#getfwleaderboardscorporations) | **GET** /fw/leaderboards/corporations/ | List of the top corporations in faction warfare +*FactionWarfareApi* | [**getFwStats**](docs/Api/FactionWarfareApi.md#getfwstats) | **GET** /fw/stats/ | An overview of statistics about factions involved in faction warfare +*FactionWarfareApi* | [**getFwSystems**](docs/Api/FactionWarfareApi.md#getfwsystems) | **GET** /fw/systems/ | Ownership of faction warfare systems +*FactionWarfareApi* | [**getFwWars**](docs/Api/FactionWarfareApi.md#getfwwars) | **GET** /fw/wars/ | Data about which NPC factions are at war *FittingsApi* | [**deleteCharactersCharacterIdFittingsFittingId**](docs/Api/FittingsApi.md#deletecharacterscharacteridfittingsfittingid) | **DELETE** /characters/{character_id}/fittings/{fitting_id}/ | Delete fitting *FittingsApi* | [**getCharactersCharacterIdFittings**](docs/Api/FittingsApi.md#getcharacterscharacteridfittings) | **GET** /characters/{character_id}/fittings/ | Get fittings *FittingsApi* | [**postCharactersCharacterIdFittings**](docs/Api/FittingsApi.md#postcharacterscharacteridfittings) | **POST** /characters/{character_id}/fittings/ | Create fitting *FleetsApi* | [**deleteFleetsFleetIdMembersMemberId**](docs/Api/FleetsApi.md#deletefleetsfleetidmembersmemberid) | **DELETE** /fleets/{fleet_id}/members/{member_id}/ | Kick fleet member *FleetsApi* | [**deleteFleetsFleetIdSquadsSquadId**](docs/Api/FleetsApi.md#deletefleetsfleetidsquadssquadid) | **DELETE** /fleets/{fleet_id}/squads/{squad_id}/ | Delete fleet squad *FleetsApi* | [**deleteFleetsFleetIdWingsWingId**](docs/Api/FleetsApi.md#deletefleetsfleetidwingswingid) | **DELETE** /fleets/{fleet_id}/wings/{wing_id}/ | Delete fleet wing +*FleetsApi* | [**getCharactersCharacterIdFleet**](docs/Api/FleetsApi.md#getcharacterscharacteridfleet) | **GET** /characters/{character_id}/fleet/ | Get character fleet info *FleetsApi* | [**getFleetsFleetId**](docs/Api/FleetsApi.md#getfleetsfleetid) | **GET** /fleets/{fleet_id}/ | Get fleet information *FleetsApi* | [**getFleetsFleetIdMembers**](docs/Api/FleetsApi.md#getfleetsfleetidmembers) | **GET** /fleets/{fleet_id}/members/ | Get fleet members *FleetsApi* | [**getFleetsFleetIdWings**](docs/Api/FleetsApi.md#getfleetsfleetidwings) | **GET** /fleets/{fleet_id}/wings/ | Get fleet wings @@ -138,10 +190,16 @@ Class | Method | HTTP request | Description *FleetsApi* | [**putFleetsFleetIdWingsWingId**](docs/Api/FleetsApi.md#putfleetsfleetidwingswingid) | **PUT** /fleets/{fleet_id}/wings/{wing_id}/ | Rename fleet wing *IncursionsApi* | [**getIncursions**](docs/Api/IncursionsApi.md#getincursions) | **GET** /incursions/ | List incursions *IndustryApi* | [**getCharactersCharacterIdIndustryJobs**](docs/Api/IndustryApi.md#getcharacterscharacteridindustryjobs) | **GET** /characters/{character_id}/industry/jobs/ | List character industry jobs +*IndustryApi* | [**getCharactersCharacterIdMining**](docs/Api/IndustryApi.md#getcharacterscharacteridmining) | **GET** /characters/{character_id}/mining/ | Character mining ledger +*IndustryApi* | [**getCorporationCorporationIdMiningExtractions**](docs/Api/IndustryApi.md#getcorporationcorporationidminingextractions) | **GET** /corporation/{corporation_id}/mining/extractions/ | Moon extraction timers +*IndustryApi* | [**getCorporationCorporationIdMiningObservers**](docs/Api/IndustryApi.md#getcorporationcorporationidminingobservers) | **GET** /corporation/{corporation_id}/mining/observers/ | Corporation mining observers +*IndustryApi* | [**getCorporationCorporationIdMiningObserversObserverId**](docs/Api/IndustryApi.md#getcorporationcorporationidminingobserversobserverid) | **GET** /corporation/{corporation_id}/mining/observers/{observer_id}/ | Observed corporation mining +*IndustryApi* | [**getCorporationsCorporationIdIndustryJobs**](docs/Api/IndustryApi.md#getcorporationscorporationidindustryjobs) | **GET** /corporations/{corporation_id}/industry/jobs/ | List corporation industry jobs *IndustryApi* | [**getIndustryFacilities**](docs/Api/IndustryApi.md#getindustryfacilities) | **GET** /industry/facilities/ | List industry facilities *IndustryApi* | [**getIndustrySystems**](docs/Api/IndustryApi.md#getindustrysystems) | **GET** /industry/systems/ | List solar system cost indices *InsuranceApi* | [**getInsurancePrices**](docs/Api/InsuranceApi.md#getinsuranceprices) | **GET** /insurance/prices/ | List insurance levels -*KillmailsApi* | [**getCharactersCharacterIdKillmailsRecent**](docs/Api/KillmailsApi.md#getcharacterscharacteridkillmailsrecent) | **GET** /characters/{character_id}/killmails/recent/ | List kills and losses +*KillmailsApi* | [**getCharactersCharacterIdKillmailsRecent**](docs/Api/KillmailsApi.md#getcharacterscharacteridkillmailsrecent) | **GET** /characters/{character_id}/killmails/recent/ | Get character kills and losses +*KillmailsApi* | [**getCorporationsCorporationIdKillmailsRecent**](docs/Api/KillmailsApi.md#getcorporationscorporationidkillmailsrecent) | **GET** /corporations/{corporation_id}/killmails/recent/ | Get corporation kills and losses *KillmailsApi* | [**getKillmailsKillmailIdKillmailHash**](docs/Api/KillmailsApi.md#getkillmailskillmailidkillmailhash) | **GET** /killmails/{killmail_id}/{killmail_hash}/ | Get a single killmail *LocationApi* | [**getCharactersCharacterIdLocation**](docs/Api/LocationApi.md#getcharacterscharacteridlocation) | **GET** /characters/{character_id}/location/ | Get character location *LocationApi* | [**getCharactersCharacterIdOnline**](docs/Api/LocationApi.md#getcharacterscharacteridonline) | **GET** /characters/{character_id}/online/ | Get character online @@ -158,11 +216,13 @@ Class | Method | HTTP request | Description *MailApi* | [**postCharactersCharacterIdMailLabels**](docs/Api/MailApi.md#postcharacterscharacteridmaillabels) | **POST** /characters/{character_id}/mail/labels/ | Create a mail label *MailApi* | [**putCharactersCharacterIdMailMailId**](docs/Api/MailApi.md#putcharacterscharacteridmailmailid) | **PUT** /characters/{character_id}/mail/{mail_id}/ | Update metadata about a mail *MarketApi* | [**getCharactersCharacterIdOrders**](docs/Api/MarketApi.md#getcharacterscharacteridorders) | **GET** /characters/{character_id}/orders/ | List orders from a character +*MarketApi* | [**getCorporationsCorporationIdOrders**](docs/Api/MarketApi.md#getcorporationscorporationidorders) | **GET** /corporations/{corporation_id}/orders/ | List orders from a corporation *MarketApi* | [**getMarketsGroups**](docs/Api/MarketApi.md#getmarketsgroups) | **GET** /markets/groups/ | Get item groups *MarketApi* | [**getMarketsGroupsMarketGroupId**](docs/Api/MarketApi.md#getmarketsgroupsmarketgroupid) | **GET** /markets/groups/{market_group_id}/ | Get item group information *MarketApi* | [**getMarketsPrices**](docs/Api/MarketApi.md#getmarketsprices) | **GET** /markets/prices/ | List market prices *MarketApi* | [**getMarketsRegionIdHistory**](docs/Api/MarketApi.md#getmarketsregionidhistory) | **GET** /markets/{region_id}/history/ | List historical market statistics in a region *MarketApi* | [**getMarketsRegionIdOrders**](docs/Api/MarketApi.md#getmarketsregionidorders) | **GET** /markets/{region_id}/orders/ | List orders in a region +*MarketApi* | [**getMarketsRegionIdTypes**](docs/Api/MarketApi.md#getmarketsregionidtypes) | **GET** /markets/{region_id}/types/ | List type IDs relevant to a market *MarketApi* | [**getMarketsStructuresStructureId**](docs/Api/MarketApi.md#getmarketsstructuresstructureid) | **GET** /markets/structures/{structure_id}/ | List orders in a structure *OpportunitiesApi* | [**getCharactersCharacterIdOpportunities**](docs/Api/OpportunitiesApi.md#getcharacterscharacteridopportunities) | **GET** /characters/{character_id}/opportunities/ | Get a character's completed tasks *OpportunitiesApi* | [**getOpportunitiesGroups**](docs/Api/OpportunitiesApi.md#getopportunitiesgroups) | **GET** /opportunities/groups/ | Get opportunities groups @@ -171,10 +231,12 @@ Class | Method | HTTP request | Description *OpportunitiesApi* | [**getOpportunitiesTasksTaskId**](docs/Api/OpportunitiesApi.md#getopportunitiestaskstaskid) | **GET** /opportunities/tasks/{task_id}/ | Get opportunities task *PlanetaryInteractionApi* | [**getCharactersCharacterIdPlanets**](docs/Api/PlanetaryInteractionApi.md#getcharacterscharacteridplanets) | **GET** /characters/{character_id}/planets/ | Get colonies *PlanetaryInteractionApi* | [**getCharactersCharacterIdPlanetsPlanetId**](docs/Api/PlanetaryInteractionApi.md#getcharacterscharacteridplanetsplanetid) | **GET** /characters/{character_id}/planets/{planet_id}/ | Get colony layout +*PlanetaryInteractionApi* | [**getCorporationsCorporationIdCustomsOffices**](docs/Api/PlanetaryInteractionApi.md#getcorporationscorporationidcustomsoffices) | **GET** /corporations/{corporation_id}/customs_offices/ | List corporation customs offices *PlanetaryInteractionApi* | [**getUniverseSchematicsSchematicId**](docs/Api/PlanetaryInteractionApi.md#getuniverseschematicsschematicid) | **GET** /universe/schematics/{schematic_id}/ | Get schematic information *RoutesApi* | [**getRouteOriginDestination**](docs/Api/RoutesApi.md#getrouteorigindestination) | **GET** /route/{origin}/{destination}/ | Get route *SearchApi* | [**getCharactersCharacterIdSearch**](docs/Api/SearchApi.md#getcharacterscharacteridsearch) | **GET** /characters/{character_id}/search/ | Search on a string *SearchApi* | [**getSearch**](docs/Api/SearchApi.md#getsearch) | **GET** /search/ | Search on a string +*SkillsApi* | [**getCharactersCharacterIdAttributes**](docs/Api/SkillsApi.md#getcharacterscharacteridattributes) | **GET** /characters/{character_id}/attributes/ | Get character attributes *SkillsApi* | [**getCharactersCharacterIdSkillqueue**](docs/Api/SkillsApi.md#getcharacterscharacteridskillqueue) | **GET** /characters/{character_id}/skillqueue/ | Get character's skill queue *SkillsApi* | [**getCharactersCharacterIdSkills**](docs/Api/SkillsApi.md#getcharacterscharacteridskills) | **GET** /characters/{character_id}/skills/ | Get character skills *SovereigntyApi* | [**getSovereigntyCampaigns**](docs/Api/SovereigntyApi.md#getsovereigntycampaigns) | **GET** /sovereignty/campaigns/ | List sovereignty campaigns @@ -197,6 +259,7 @@ Class | Method | HTTP request | Description *UniverseApi* | [**getUniverseRegions**](docs/Api/UniverseApi.md#getuniverseregions) | **GET** /universe/regions/ | Get regions *UniverseApi* | [**getUniverseRegionsRegionId**](docs/Api/UniverseApi.md#getuniverseregionsregionid) | **GET** /universe/regions/{region_id}/ | Get region information *UniverseApi* | [**getUniverseStargatesStargateId**](docs/Api/UniverseApi.md#getuniversestargatesstargateid) | **GET** /universe/stargates/{stargate_id}/ | Get stargate information +*UniverseApi* | [**getUniverseStarsStarId**](docs/Api/UniverseApi.md#getuniversestarsstarid) | **GET** /universe/stars/{star_id}/ | Get star information *UniverseApi* | [**getUniverseStationsStationId**](docs/Api/UniverseApi.md#getuniversestationsstationid) | **GET** /universe/stations/{station_id}/ | Get station information *UniverseApi* | [**getUniverseStructures**](docs/Api/UniverseApi.md#getuniversestructures) | **GET** /universe/structures/ | List all public structures *UniverseApi* | [**getUniverseStructuresStructureId**](docs/Api/UniverseApi.md#getuniversestructuresstructureid) | **GET** /universe/structures/{structure_id}/ | Get structure information @@ -206,13 +269,19 @@ Class | Method | HTTP request | Description *UniverseApi* | [**getUniverseSystemsSystemId**](docs/Api/UniverseApi.md#getuniversesystemssystemid) | **GET** /universe/systems/{system_id}/ | Get solar system information *UniverseApi* | [**getUniverseTypes**](docs/Api/UniverseApi.md#getuniversetypes) | **GET** /universe/types/ | Get types *UniverseApi* | [**getUniverseTypesTypeId**](docs/Api/UniverseApi.md#getuniversetypestypeid) | **GET** /universe/types/{type_id}/ | Get type information +*UniverseApi* | [**postUniverseIds**](docs/Api/UniverseApi.md#postuniverseids) | **POST** /universe/ids/ | Bulk names to IDs *UniverseApi* | [**postUniverseNames**](docs/Api/UniverseApi.md#postuniversenames) | **POST** /universe/names/ | Get names and categories for a set of ID's *UserInterfaceApi* | [**postUiAutopilotWaypoint**](docs/Api/UserInterfaceApi.md#postuiautopilotwaypoint) | **POST** /ui/autopilot/waypoint/ | Set Autopilot Waypoint *UserInterfaceApi* | [**postUiOpenwindowContract**](docs/Api/UserInterfaceApi.md#postuiopenwindowcontract) | **POST** /ui/openwindow/contract/ | Open Contract Window *UserInterfaceApi* | [**postUiOpenwindowInformation**](docs/Api/UserInterfaceApi.md#postuiopenwindowinformation) | **POST** /ui/openwindow/information/ | Open Information Window *UserInterfaceApi* | [**postUiOpenwindowMarketdetails**](docs/Api/UserInterfaceApi.md#postuiopenwindowmarketdetails) | **POST** /ui/openwindow/marketdetails/ | Open Market Details *UserInterfaceApi* | [**postUiOpenwindowNewmail**](docs/Api/UserInterfaceApi.md#postuiopenwindownewmail) | **POST** /ui/openwindow/newmail/ | Open New Mail Window -*WalletApi* | [**getCharactersCharacterIdWallets**](docs/Api/WalletApi.md#getcharacterscharacteridwallets) | **GET** /characters/{character_id}/wallets/ | List wallets and balances +*WalletApi* | [**getCharactersCharacterIdWallet**](docs/Api/WalletApi.md#getcharacterscharacteridwallet) | **GET** /characters/{character_id}/wallet/ | Get a character's wallet balance +*WalletApi* | [**getCharactersCharacterIdWalletJournal**](docs/Api/WalletApi.md#getcharacterscharacteridwalletjournal) | **GET** /characters/{character_id}/wallet/journal/ | Get character wallet journal +*WalletApi* | [**getCharactersCharacterIdWalletTransactions**](docs/Api/WalletApi.md#getcharacterscharacteridwallettransactions) | **GET** /characters/{character_id}/wallet/transactions/ | Get wallet transactions +*WalletApi* | [**getCorporationsCorporationIdWallets**](docs/Api/WalletApi.md#getcorporationscorporationidwallets) | **GET** /corporations/{corporation_id}/wallets/ | Returns a corporation's wallet balance +*WalletApi* | [**getCorporationsCorporationIdWalletsDivisionJournal**](docs/Api/WalletApi.md#getcorporationscorporationidwalletsdivisionjournal) | **GET** /corporations/{corporation_id}/wallets/{division}/journal/ | Get corporation wallet journal +*WalletApi* | [**getCorporationsCorporationIdWalletsDivisionTransactions**](docs/Api/WalletApi.md#getcorporationscorporationidwalletsdivisiontransactions) | **GET** /corporations/{corporation_id}/wallets/{division}/transactions/ | Get corporation wallet transactions *WarsApi* | [**getWars**](docs/Api/WarsApi.md#getwars) | **GET** /wars/ | List wars *WarsApi* | [**getWarsWarId**](docs/Api/WarsApi.md#getwarswarid) | **GET** /wars/{war_id}/ | Get war information *WarsApi* | [**getWarsWarIdKillmails**](docs/Api/WarsApi.md#getwarswaridkillmails) | **GET** /wars/{war_id}/killmails/ | List kills for a war @@ -220,223 +289,214 @@ Class | Method | HTTP request | Description ## Documentation For Models - - [DeleteCharactersCharacterIdContactsForbidden](docs/Model/DeleteCharactersCharacterIdContactsForbidden.md) - - [DeleteCharactersCharacterIdContactsInternalServerError](docs/Model/DeleteCharactersCharacterIdContactsInternalServerError.md) - - [DeleteCharactersCharacterIdFittingsFittingIdForbidden](docs/Model/DeleteCharactersCharacterIdFittingsFittingIdForbidden.md) - - [DeleteCharactersCharacterIdFittingsFittingIdInternalServerError](docs/Model/DeleteCharactersCharacterIdFittingsFittingIdInternalServerError.md) - - [DeleteCharactersCharacterIdMailLabelsLabelIdForbidden](docs/Model/DeleteCharactersCharacterIdMailLabelsLabelIdForbidden.md) - - [DeleteCharactersCharacterIdMailLabelsLabelIdInternalServerError](docs/Model/DeleteCharactersCharacterIdMailLabelsLabelIdInternalServerError.md) - [DeleteCharactersCharacterIdMailLabelsLabelIdUnprocessableEntity](docs/Model/DeleteCharactersCharacterIdMailLabelsLabelIdUnprocessableEntity.md) - - [DeleteCharactersCharacterIdMailMailIdForbidden](docs/Model/DeleteCharactersCharacterIdMailMailIdForbidden.md) - - [DeleteCharactersCharacterIdMailMailIdInternalServerError](docs/Model/DeleteCharactersCharacterIdMailMailIdInternalServerError.md) - - [DeleteFleetsFleetIdMembersMemberIdForbidden](docs/Model/DeleteFleetsFleetIdMembersMemberIdForbidden.md) - - [DeleteFleetsFleetIdMembersMemberIdInternalServerError](docs/Model/DeleteFleetsFleetIdMembersMemberIdInternalServerError.md) - [DeleteFleetsFleetIdMembersMemberIdNotFound](docs/Model/DeleteFleetsFleetIdMembersMemberIdNotFound.md) - - [DeleteFleetsFleetIdSquadsSquadIdForbidden](docs/Model/DeleteFleetsFleetIdSquadsSquadIdForbidden.md) - - [DeleteFleetsFleetIdSquadsSquadIdInternalServerError](docs/Model/DeleteFleetsFleetIdSquadsSquadIdInternalServerError.md) - [DeleteFleetsFleetIdSquadsSquadIdNotFound](docs/Model/DeleteFleetsFleetIdSquadsSquadIdNotFound.md) - - [DeleteFleetsFleetIdWingsWingIdForbidden](docs/Model/DeleteFleetsFleetIdWingsWingIdForbidden.md) - - [DeleteFleetsFleetIdWingsWingIdInternalServerError](docs/Model/DeleteFleetsFleetIdWingsWingIdInternalServerError.md) - [DeleteFleetsFleetIdWingsWingIdNotFound](docs/Model/DeleteFleetsFleetIdWingsWingIdNotFound.md) - - [GetAlliancesAllianceIdCorporationsInternalServerError](docs/Model/GetAlliancesAllianceIdCorporationsInternalServerError.md) - - [GetAlliancesAllianceIdIconsInternalServerError](docs/Model/GetAlliancesAllianceIdIconsInternalServerError.md) + - [Forbidden](docs/Model/Forbidden.md) + - [GetAlliancesAllianceIdContacts200Ok](docs/Model/GetAlliancesAllianceIdContacts200Ok.md) - [GetAlliancesAllianceIdIconsNotFound](docs/Model/GetAlliancesAllianceIdIconsNotFound.md) - [GetAlliancesAllianceIdIconsOk](docs/Model/GetAlliancesAllianceIdIconsOk.md) - - [GetAlliancesAllianceIdInternalServerError](docs/Model/GetAlliancesAllianceIdInternalServerError.md) - [GetAlliancesAllianceIdNotFound](docs/Model/GetAlliancesAllianceIdNotFound.md) - [GetAlliancesAllianceIdOk](docs/Model/GetAlliancesAllianceIdOk.md) - - [GetAlliancesInternalServerError](docs/Model/GetAlliancesInternalServerError.md) - [GetAlliancesNames200Ok](docs/Model/GetAlliancesNames200Ok.md) - - [GetAlliancesNamesInternalServerError](docs/Model/GetAlliancesNamesInternalServerError.md) - [GetCharactersCharacterIdAgentsResearch200Ok](docs/Model/GetCharactersCharacterIdAgentsResearch200Ok.md) - - [GetCharactersCharacterIdAgentsResearchForbidden](docs/Model/GetCharactersCharacterIdAgentsResearchForbidden.md) - - [GetCharactersCharacterIdAgentsResearchInternalServerError](docs/Model/GetCharactersCharacterIdAgentsResearchInternalServerError.md) - [GetCharactersCharacterIdAssets200Ok](docs/Model/GetCharactersCharacterIdAssets200Ok.md) - - [GetCharactersCharacterIdAssetsForbidden](docs/Model/GetCharactersCharacterIdAssetsForbidden.md) - - [GetCharactersCharacterIdAssetsInternalServerError](docs/Model/GetCharactersCharacterIdAssetsInternalServerError.md) + - [GetCharactersCharacterIdAttributesOk](docs/Model/GetCharactersCharacterIdAttributesOk.md) - [GetCharactersCharacterIdBlueprints200Ok](docs/Model/GetCharactersCharacterIdBlueprints200Ok.md) - - [GetCharactersCharacterIdBlueprintsForbidden](docs/Model/GetCharactersCharacterIdBlueprintsForbidden.md) - - [GetCharactersCharacterIdBlueprintsInternalServerError](docs/Model/GetCharactersCharacterIdBlueprintsInternalServerError.md) - [GetCharactersCharacterIdBookmarks200Ok](docs/Model/GetCharactersCharacterIdBookmarks200Ok.md) - [GetCharactersCharacterIdBookmarksCoordinates](docs/Model/GetCharactersCharacterIdBookmarksCoordinates.md) - [GetCharactersCharacterIdBookmarksFolders200Ok](docs/Model/GetCharactersCharacterIdBookmarksFolders200Ok.md) - - [GetCharactersCharacterIdBookmarksFoldersForbidden](docs/Model/GetCharactersCharacterIdBookmarksFoldersForbidden.md) - - [GetCharactersCharacterIdBookmarksFoldersInternalServerError](docs/Model/GetCharactersCharacterIdBookmarksFoldersInternalServerError.md) - - [GetCharactersCharacterIdBookmarksForbidden](docs/Model/GetCharactersCharacterIdBookmarksForbidden.md) - - [GetCharactersCharacterIdBookmarksInternalServerError](docs/Model/GetCharactersCharacterIdBookmarksInternalServerError.md) - [GetCharactersCharacterIdBookmarksItem](docs/Model/GetCharactersCharacterIdBookmarksItem.md) - - [GetCharactersCharacterIdBookmarksTarget](docs/Model/GetCharactersCharacterIdBookmarksTarget.md) - [GetCharactersCharacterIdCalendar200Ok](docs/Model/GetCharactersCharacterIdCalendar200Ok.md) - - [GetCharactersCharacterIdCalendarEventIdForbidden](docs/Model/GetCharactersCharacterIdCalendarEventIdForbidden.md) - - [GetCharactersCharacterIdCalendarEventIdInternalServerError](docs/Model/GetCharactersCharacterIdCalendarEventIdInternalServerError.md) + - [GetCharactersCharacterIdCalendarEventIdAttendees200Ok](docs/Model/GetCharactersCharacterIdCalendarEventIdAttendees200Ok.md) - [GetCharactersCharacterIdCalendarEventIdOk](docs/Model/GetCharactersCharacterIdCalendarEventIdOk.md) - - [GetCharactersCharacterIdCalendarForbidden](docs/Model/GetCharactersCharacterIdCalendarForbidden.md) - - [GetCharactersCharacterIdCalendarInternalServerError](docs/Model/GetCharactersCharacterIdCalendarInternalServerError.md) - [GetCharactersCharacterIdChatChannels200Ok](docs/Model/GetCharactersCharacterIdChatChannels200Ok.md) - [GetCharactersCharacterIdChatChannelsAllowed](docs/Model/GetCharactersCharacterIdChatChannelsAllowed.md) - [GetCharactersCharacterIdChatChannelsBlocked](docs/Model/GetCharactersCharacterIdChatChannelsBlocked.md) - - [GetCharactersCharacterIdChatChannelsForbidden](docs/Model/GetCharactersCharacterIdChatChannelsForbidden.md) - - [GetCharactersCharacterIdChatChannelsInternalServerError](docs/Model/GetCharactersCharacterIdChatChannelsInternalServerError.md) - [GetCharactersCharacterIdChatChannelsMuted](docs/Model/GetCharactersCharacterIdChatChannelsMuted.md) - [GetCharactersCharacterIdChatChannelsOperator](docs/Model/GetCharactersCharacterIdChatChannelsOperator.md) - - [GetCharactersCharacterIdClonesForbidden](docs/Model/GetCharactersCharacterIdClonesForbidden.md) - [GetCharactersCharacterIdClonesHomeLocation](docs/Model/GetCharactersCharacterIdClonesHomeLocation.md) - - [GetCharactersCharacterIdClonesInternalServerError](docs/Model/GetCharactersCharacterIdClonesInternalServerError.md) - [GetCharactersCharacterIdClonesJumpClone](docs/Model/GetCharactersCharacterIdClonesJumpClone.md) - [GetCharactersCharacterIdClonesOk](docs/Model/GetCharactersCharacterIdClonesOk.md) - [GetCharactersCharacterIdContacts200Ok](docs/Model/GetCharactersCharacterIdContacts200Ok.md) - - [GetCharactersCharacterIdContactsForbidden](docs/Model/GetCharactersCharacterIdContactsForbidden.md) - - [GetCharactersCharacterIdContactsInternalServerError](docs/Model/GetCharactersCharacterIdContactsInternalServerError.md) - [GetCharactersCharacterIdContactsLabels200Ok](docs/Model/GetCharactersCharacterIdContactsLabels200Ok.md) - - [GetCharactersCharacterIdContactsLabelsForbidden](docs/Model/GetCharactersCharacterIdContactsLabelsForbidden.md) - - [GetCharactersCharacterIdContactsLabelsInternalServerError](docs/Model/GetCharactersCharacterIdContactsLabelsInternalServerError.md) + - [GetCharactersCharacterIdContracts200Ok](docs/Model/GetCharactersCharacterIdContracts200Ok.md) + - [GetCharactersCharacterIdContractsContractIdBids200Ok](docs/Model/GetCharactersCharacterIdContractsContractIdBids200Ok.md) + - [GetCharactersCharacterIdContractsContractIdItems200Ok](docs/Model/GetCharactersCharacterIdContractsContractIdItems200Ok.md) - [GetCharactersCharacterIdCorporationhistory200Ok](docs/Model/GetCharactersCharacterIdCorporationhistory200Ok.md) - - [GetCharactersCharacterIdCorporationhistoryInternalServerError](docs/Model/GetCharactersCharacterIdCorporationhistoryInternalServerError.md) + - [GetCharactersCharacterIdFatigueOk](docs/Model/GetCharactersCharacterIdFatigueOk.md) - [GetCharactersCharacterIdFittings200Ok](docs/Model/GetCharactersCharacterIdFittings200Ok.md) - - [GetCharactersCharacterIdFittingsForbidden](docs/Model/GetCharactersCharacterIdFittingsForbidden.md) - - [GetCharactersCharacterIdFittingsInternalServerError](docs/Model/GetCharactersCharacterIdFittingsInternalServerError.md) - [GetCharactersCharacterIdFittingsItem](docs/Model/GetCharactersCharacterIdFittingsItem.md) + - [GetCharactersCharacterIdFleetNotFound](docs/Model/GetCharactersCharacterIdFleetNotFound.md) + - [GetCharactersCharacterIdFleetOk](docs/Model/GetCharactersCharacterIdFleetOk.md) + - [GetCharactersCharacterIdFwStatsKills](docs/Model/GetCharactersCharacterIdFwStatsKills.md) + - [GetCharactersCharacterIdFwStatsOk](docs/Model/GetCharactersCharacterIdFwStatsOk.md) + - [GetCharactersCharacterIdFwStatsVictoryPoints](docs/Model/GetCharactersCharacterIdFwStatsVictoryPoints.md) - [GetCharactersCharacterIdIndustryJobs200Ok](docs/Model/GetCharactersCharacterIdIndustryJobs200Ok.md) - - [GetCharactersCharacterIdIndustryJobsForbidden](docs/Model/GetCharactersCharacterIdIndustryJobsForbidden.md) - - [GetCharactersCharacterIdIndustryJobsInternalServerError](docs/Model/GetCharactersCharacterIdIndustryJobsInternalServerError.md) - - [GetCharactersCharacterIdInternalServerError](docs/Model/GetCharactersCharacterIdInternalServerError.md) - [GetCharactersCharacterIdKillmailsRecent200Ok](docs/Model/GetCharactersCharacterIdKillmailsRecent200Ok.md) - - [GetCharactersCharacterIdKillmailsRecentForbidden](docs/Model/GetCharactersCharacterIdKillmailsRecentForbidden.md) - - [GetCharactersCharacterIdKillmailsRecentInternalServerError](docs/Model/GetCharactersCharacterIdKillmailsRecentInternalServerError.md) - - [GetCharactersCharacterIdLocationForbidden](docs/Model/GetCharactersCharacterIdLocationForbidden.md) - - [GetCharactersCharacterIdLocationInternalServerError](docs/Model/GetCharactersCharacterIdLocationInternalServerError.md) - [GetCharactersCharacterIdLocationOk](docs/Model/GetCharactersCharacterIdLocationOk.md) - [GetCharactersCharacterIdLoyaltyPoints200Ok](docs/Model/GetCharactersCharacterIdLoyaltyPoints200Ok.md) - - [GetCharactersCharacterIdLoyaltyPointsForbidden](docs/Model/GetCharactersCharacterIdLoyaltyPointsForbidden.md) - - [GetCharactersCharacterIdLoyaltyPointsInternalServerError](docs/Model/GetCharactersCharacterIdLoyaltyPointsInternalServerError.md) - [GetCharactersCharacterIdMail200Ok](docs/Model/GetCharactersCharacterIdMail200Ok.md) - - [GetCharactersCharacterIdMailForbidden](docs/Model/GetCharactersCharacterIdMailForbidden.md) - - [GetCharactersCharacterIdMailInternalServerError](docs/Model/GetCharactersCharacterIdMailInternalServerError.md) - - [GetCharactersCharacterIdMailLabelsForbidden](docs/Model/GetCharactersCharacterIdMailLabelsForbidden.md) - - [GetCharactersCharacterIdMailLabelsInternalServerError](docs/Model/GetCharactersCharacterIdMailLabelsInternalServerError.md) - [GetCharactersCharacterIdMailLabelsLabel](docs/Model/GetCharactersCharacterIdMailLabelsLabel.md) - [GetCharactersCharacterIdMailLabelsOk](docs/Model/GetCharactersCharacterIdMailLabelsOk.md) - [GetCharactersCharacterIdMailLists200Ok](docs/Model/GetCharactersCharacterIdMailLists200Ok.md) - - [GetCharactersCharacterIdMailListsForbidden](docs/Model/GetCharactersCharacterIdMailListsForbidden.md) - - [GetCharactersCharacterIdMailListsInternalServerError](docs/Model/GetCharactersCharacterIdMailListsInternalServerError.md) - - [GetCharactersCharacterIdMailMailIdForbidden](docs/Model/GetCharactersCharacterIdMailMailIdForbidden.md) - - [GetCharactersCharacterIdMailMailIdInternalServerError](docs/Model/GetCharactersCharacterIdMailMailIdInternalServerError.md) - [GetCharactersCharacterIdMailMailIdNotFound](docs/Model/GetCharactersCharacterIdMailMailIdNotFound.md) - [GetCharactersCharacterIdMailMailIdOk](docs/Model/GetCharactersCharacterIdMailMailIdOk.md) - [GetCharactersCharacterIdMailMailIdRecipient](docs/Model/GetCharactersCharacterIdMailMailIdRecipient.md) - [GetCharactersCharacterIdMailRecipient](docs/Model/GetCharactersCharacterIdMailRecipient.md) - [GetCharactersCharacterIdMedals200Ok](docs/Model/GetCharactersCharacterIdMedals200Ok.md) - - [GetCharactersCharacterIdMedalsForbidden](docs/Model/GetCharactersCharacterIdMedalsForbidden.md) - [GetCharactersCharacterIdMedalsGraphic](docs/Model/GetCharactersCharacterIdMedalsGraphic.md) - - [GetCharactersCharacterIdMedalsInternalServerError](docs/Model/GetCharactersCharacterIdMedalsInternalServerError.md) + - [GetCharactersCharacterIdMining200Ok](docs/Model/GetCharactersCharacterIdMining200Ok.md) - [GetCharactersCharacterIdNotFound](docs/Model/GetCharactersCharacterIdNotFound.md) + - [GetCharactersCharacterIdNotifications200Ok](docs/Model/GetCharactersCharacterIdNotifications200Ok.md) + - [GetCharactersCharacterIdNotificationsContacts200Ok](docs/Model/GetCharactersCharacterIdNotificationsContacts200Ok.md) - [GetCharactersCharacterIdOk](docs/Model/GetCharactersCharacterIdOk.md) - - [GetCharactersCharacterIdOnlineForbidden](docs/Model/GetCharactersCharacterIdOnlineForbidden.md) - - [GetCharactersCharacterIdOnlineInternalServerError](docs/Model/GetCharactersCharacterIdOnlineInternalServerError.md) + - [GetCharactersCharacterIdOnlineOk](docs/Model/GetCharactersCharacterIdOnlineOk.md) - [GetCharactersCharacterIdOpportunities200Ok](docs/Model/GetCharactersCharacterIdOpportunities200Ok.md) - - [GetCharactersCharacterIdOpportunitiesForbidden](docs/Model/GetCharactersCharacterIdOpportunitiesForbidden.md) - - [GetCharactersCharacterIdOpportunitiesInternalServerError](docs/Model/GetCharactersCharacterIdOpportunitiesInternalServerError.md) - [GetCharactersCharacterIdOrders200Ok](docs/Model/GetCharactersCharacterIdOrders200Ok.md) - - [GetCharactersCharacterIdOrdersForbidden](docs/Model/GetCharactersCharacterIdOrdersForbidden.md) - - [GetCharactersCharacterIdOrdersInternalServerError](docs/Model/GetCharactersCharacterIdOrdersInternalServerError.md) - [GetCharactersCharacterIdPlanets200Ok](docs/Model/GetCharactersCharacterIdPlanets200Ok.md) - - [GetCharactersCharacterIdPlanetsForbidden](docs/Model/GetCharactersCharacterIdPlanetsForbidden.md) - - [GetCharactersCharacterIdPlanetsInternalServerError](docs/Model/GetCharactersCharacterIdPlanetsInternalServerError.md) + - [GetCharactersCharacterIdPlanetsPlanetIdContent](docs/Model/GetCharactersCharacterIdPlanetsPlanetIdContent.md) - [GetCharactersCharacterIdPlanetsPlanetIdExtractorDetails](docs/Model/GetCharactersCharacterIdPlanetsPlanetIdExtractorDetails.md) - [GetCharactersCharacterIdPlanetsPlanetIdFactoryDetails](docs/Model/GetCharactersCharacterIdPlanetsPlanetIdFactoryDetails.md) - - [GetCharactersCharacterIdPlanetsPlanetIdForbidden](docs/Model/GetCharactersCharacterIdPlanetsPlanetIdForbidden.md) - [GetCharactersCharacterIdPlanetsPlanetIdHead](docs/Model/GetCharactersCharacterIdPlanetsPlanetIdHead.md) - - [GetCharactersCharacterIdPlanetsPlanetIdInternalServerError](docs/Model/GetCharactersCharacterIdPlanetsPlanetIdInternalServerError.md) - [GetCharactersCharacterIdPlanetsPlanetIdLink](docs/Model/GetCharactersCharacterIdPlanetsPlanetIdLink.md) - [GetCharactersCharacterIdPlanetsPlanetIdNotFound](docs/Model/GetCharactersCharacterIdPlanetsPlanetIdNotFound.md) - [GetCharactersCharacterIdPlanetsPlanetIdOk](docs/Model/GetCharactersCharacterIdPlanetsPlanetIdOk.md) - [GetCharactersCharacterIdPlanetsPlanetIdPin](docs/Model/GetCharactersCharacterIdPlanetsPlanetIdPin.md) - [GetCharactersCharacterIdPlanetsPlanetIdRoute](docs/Model/GetCharactersCharacterIdPlanetsPlanetIdRoute.md) - - [GetCharactersCharacterIdPlanetsPlanetIdWaypoint](docs/Model/GetCharactersCharacterIdPlanetsPlanetIdWaypoint.md) - - [GetCharactersCharacterIdPortraitInternalServerError](docs/Model/GetCharactersCharacterIdPortraitInternalServerError.md) - [GetCharactersCharacterIdPortraitNotFound](docs/Model/GetCharactersCharacterIdPortraitNotFound.md) - [GetCharactersCharacterIdPortraitOk](docs/Model/GetCharactersCharacterIdPortraitOk.md) - - [GetCharactersCharacterIdRolesForbidden](docs/Model/GetCharactersCharacterIdRolesForbidden.md) - - [GetCharactersCharacterIdRolesInternalServerError](docs/Model/GetCharactersCharacterIdRolesInternalServerError.md) - - [GetCharactersCharacterIdSearchForbidden](docs/Model/GetCharactersCharacterIdSearchForbidden.md) - - [GetCharactersCharacterIdSearchInternalServerError](docs/Model/GetCharactersCharacterIdSearchInternalServerError.md) + - [GetCharactersCharacterIdRolesOk](docs/Model/GetCharactersCharacterIdRolesOk.md) - [GetCharactersCharacterIdSearchOk](docs/Model/GetCharactersCharacterIdSearchOk.md) - - [GetCharactersCharacterIdShipForbidden](docs/Model/GetCharactersCharacterIdShipForbidden.md) - - [GetCharactersCharacterIdShipInternalServerError](docs/Model/GetCharactersCharacterIdShipInternalServerError.md) - [GetCharactersCharacterIdShipOk](docs/Model/GetCharactersCharacterIdShipOk.md) - [GetCharactersCharacterIdSkillqueue200Ok](docs/Model/GetCharactersCharacterIdSkillqueue200Ok.md) - - [GetCharactersCharacterIdSkillqueueForbidden](docs/Model/GetCharactersCharacterIdSkillqueueForbidden.md) - - [GetCharactersCharacterIdSkillqueueInternalServerError](docs/Model/GetCharactersCharacterIdSkillqueueInternalServerError.md) - - [GetCharactersCharacterIdSkillsForbidden](docs/Model/GetCharactersCharacterIdSkillsForbidden.md) - - [GetCharactersCharacterIdSkillsInternalServerError](docs/Model/GetCharactersCharacterIdSkillsInternalServerError.md) - [GetCharactersCharacterIdSkillsOk](docs/Model/GetCharactersCharacterIdSkillsOk.md) - [GetCharactersCharacterIdSkillsSkill](docs/Model/GetCharactersCharacterIdSkillsSkill.md) - [GetCharactersCharacterIdStandings200Ok](docs/Model/GetCharactersCharacterIdStandings200Ok.md) - - [GetCharactersCharacterIdStandingsForbidden](docs/Model/GetCharactersCharacterIdStandingsForbidden.md) - - [GetCharactersCharacterIdStandingsInternalServerError](docs/Model/GetCharactersCharacterIdStandingsInternalServerError.md) - - [GetCharactersCharacterIdWallets200Ok](docs/Model/GetCharactersCharacterIdWallets200Ok.md) - - [GetCharactersCharacterIdWalletsForbidden](docs/Model/GetCharactersCharacterIdWalletsForbidden.md) - - [GetCharactersCharacterIdWalletsInternalServerError](docs/Model/GetCharactersCharacterIdWalletsInternalServerError.md) + - [GetCharactersCharacterIdStats200Ok](docs/Model/GetCharactersCharacterIdStats200Ok.md) + - [GetCharactersCharacterIdStatsCharacter](docs/Model/GetCharactersCharacterIdStatsCharacter.md) + - [GetCharactersCharacterIdStatsCombat](docs/Model/GetCharactersCharacterIdStatsCombat.md) + - [GetCharactersCharacterIdStatsIndustry](docs/Model/GetCharactersCharacterIdStatsIndustry.md) + - [GetCharactersCharacterIdStatsInventory](docs/Model/GetCharactersCharacterIdStatsInventory.md) + - [GetCharactersCharacterIdStatsIsk](docs/Model/GetCharactersCharacterIdStatsIsk.md) + - [GetCharactersCharacterIdStatsMarket](docs/Model/GetCharactersCharacterIdStatsMarket.md) + - [GetCharactersCharacterIdStatsMining](docs/Model/GetCharactersCharacterIdStatsMining.md) + - [GetCharactersCharacterIdStatsModule](docs/Model/GetCharactersCharacterIdStatsModule.md) + - [GetCharactersCharacterIdStatsOrbital](docs/Model/GetCharactersCharacterIdStatsOrbital.md) + - [GetCharactersCharacterIdStatsPve](docs/Model/GetCharactersCharacterIdStatsPve.md) + - [GetCharactersCharacterIdStatsSocial](docs/Model/GetCharactersCharacterIdStatsSocial.md) + - [GetCharactersCharacterIdStatsTravel](docs/Model/GetCharactersCharacterIdStatsTravel.md) + - [GetCharactersCharacterIdTitles200Ok](docs/Model/GetCharactersCharacterIdTitles200Ok.md) + - [GetCharactersCharacterIdWalletJournal200Ok](docs/Model/GetCharactersCharacterIdWalletJournal200Ok.md) + - [GetCharactersCharacterIdWalletJournalExtraInfo](docs/Model/GetCharactersCharacterIdWalletJournalExtraInfo.md) + - [GetCharactersCharacterIdWalletTransactions200Ok](docs/Model/GetCharactersCharacterIdWalletTransactions200Ok.md) - [GetCharactersNames200Ok](docs/Model/GetCharactersNames200Ok.md) - - [GetCharactersNamesInternalServerError](docs/Model/GetCharactersNamesInternalServerError.md) + - [GetCorporationCorporationIdMiningExtractions200Ok](docs/Model/GetCorporationCorporationIdMiningExtractions200Ok.md) + - [GetCorporationCorporationIdMiningObservers200Ok](docs/Model/GetCorporationCorporationIdMiningObservers200Ok.md) + - [GetCorporationCorporationIdMiningObserversObserverId200Ok](docs/Model/GetCorporationCorporationIdMiningObserversObserverId200Ok.md) - [GetCorporationsCorporationIdAlliancehistory200Ok](docs/Model/GetCorporationsCorporationIdAlliancehistory200Ok.md) - - [GetCorporationsCorporationIdAlliancehistoryAlliance](docs/Model/GetCorporationsCorporationIdAlliancehistoryAlliance.md) - - [GetCorporationsCorporationIdAlliancehistoryInternalServerError](docs/Model/GetCorporationsCorporationIdAlliancehistoryInternalServerError.md) - - [GetCorporationsCorporationIdIconsInternalServerError](docs/Model/GetCorporationsCorporationIdIconsInternalServerError.md) + - [GetCorporationsCorporationIdAssets200Ok](docs/Model/GetCorporationsCorporationIdAssets200Ok.md) + - [GetCorporationsCorporationIdBlueprints200Ok](docs/Model/GetCorporationsCorporationIdBlueprints200Ok.md) + - [GetCorporationsCorporationIdBookmarks200Ok](docs/Model/GetCorporationsCorporationIdBookmarks200Ok.md) + - [GetCorporationsCorporationIdBookmarksCoordinates](docs/Model/GetCorporationsCorporationIdBookmarksCoordinates.md) + - [GetCorporationsCorporationIdBookmarksFolders200Ok](docs/Model/GetCorporationsCorporationIdBookmarksFolders200Ok.md) + - [GetCorporationsCorporationIdBookmarksItem](docs/Model/GetCorporationsCorporationIdBookmarksItem.md) + - [GetCorporationsCorporationIdContacts200Ok](docs/Model/GetCorporationsCorporationIdContacts200Ok.md) + - [GetCorporationsCorporationIdContainersLogs200Ok](docs/Model/GetCorporationsCorporationIdContainersLogs200Ok.md) + - [GetCorporationsCorporationIdContracts200Ok](docs/Model/GetCorporationsCorporationIdContracts200Ok.md) + - [GetCorporationsCorporationIdContractsContractIdBids200Ok](docs/Model/GetCorporationsCorporationIdContractsContractIdBids200Ok.md) + - [GetCorporationsCorporationIdContractsContractIdItems200Ok](docs/Model/GetCorporationsCorporationIdContractsContractIdItems200Ok.md) + - [GetCorporationsCorporationIdCustomsOffices200Ok](docs/Model/GetCorporationsCorporationIdCustomsOffices200Ok.md) + - [GetCorporationsCorporationIdDivisionsHangar](docs/Model/GetCorporationsCorporationIdDivisionsHangar.md) + - [GetCorporationsCorporationIdDivisionsOk](docs/Model/GetCorporationsCorporationIdDivisionsOk.md) + - [GetCorporationsCorporationIdDivisionsWallet](docs/Model/GetCorporationsCorporationIdDivisionsWallet.md) + - [GetCorporationsCorporationIdFacilities200Ok](docs/Model/GetCorporationsCorporationIdFacilities200Ok.md) + - [GetCorporationsCorporationIdFwStatsKills](docs/Model/GetCorporationsCorporationIdFwStatsKills.md) + - [GetCorporationsCorporationIdFwStatsOk](docs/Model/GetCorporationsCorporationIdFwStatsOk.md) + - [GetCorporationsCorporationIdFwStatsVictoryPoints](docs/Model/GetCorporationsCorporationIdFwStatsVictoryPoints.md) - [GetCorporationsCorporationIdIconsNotFound](docs/Model/GetCorporationsCorporationIdIconsNotFound.md) - [GetCorporationsCorporationIdIconsOk](docs/Model/GetCorporationsCorporationIdIconsOk.md) - - [GetCorporationsCorporationIdInternalServerError](docs/Model/GetCorporationsCorporationIdInternalServerError.md) - - [GetCorporationsCorporationIdMembers200Ok](docs/Model/GetCorporationsCorporationIdMembers200Ok.md) - - [GetCorporationsCorporationIdMembersForbidden](docs/Model/GetCorporationsCorporationIdMembersForbidden.md) - - [GetCorporationsCorporationIdMembersInternalServerError](docs/Model/GetCorporationsCorporationIdMembersInternalServerError.md) + - [GetCorporationsCorporationIdIndustryJobs200Ok](docs/Model/GetCorporationsCorporationIdIndustryJobs200Ok.md) + - [GetCorporationsCorporationIdKillmailsRecent200Ok](docs/Model/GetCorporationsCorporationIdKillmailsRecent200Ok.md) + - [GetCorporationsCorporationIdMedals200Ok](docs/Model/GetCorporationsCorporationIdMedals200Ok.md) + - [GetCorporationsCorporationIdMedalsIssued200Ok](docs/Model/GetCorporationsCorporationIdMedalsIssued200Ok.md) + - [GetCorporationsCorporationIdMembersTitles200Ok](docs/Model/GetCorporationsCorporationIdMembersTitles200Ok.md) + - [GetCorporationsCorporationIdMembertracking200Ok](docs/Model/GetCorporationsCorporationIdMembertracking200Ok.md) - [GetCorporationsCorporationIdNotFound](docs/Model/GetCorporationsCorporationIdNotFound.md) - [GetCorporationsCorporationIdOk](docs/Model/GetCorporationsCorporationIdOk.md) + - [GetCorporationsCorporationIdOrders200Ok](docs/Model/GetCorporationsCorporationIdOrders200Ok.md) + - [GetCorporationsCorporationIdOutpostsOutpostIdCoordinates](docs/Model/GetCorporationsCorporationIdOutpostsOutpostIdCoordinates.md) + - [GetCorporationsCorporationIdOutpostsOutpostIdOk](docs/Model/GetCorporationsCorporationIdOutpostsOutpostIdOk.md) + - [GetCorporationsCorporationIdOutpostsOutpostIdService](docs/Model/GetCorporationsCorporationIdOutpostsOutpostIdService.md) - [GetCorporationsCorporationIdRoles200Ok](docs/Model/GetCorporationsCorporationIdRoles200Ok.md) - - [GetCorporationsCorporationIdRolesForbidden](docs/Model/GetCorporationsCorporationIdRolesForbidden.md) - - [GetCorporationsCorporationIdRolesInternalServerError](docs/Model/GetCorporationsCorporationIdRolesInternalServerError.md) + - [GetCorporationsCorporationIdRolesHistory200Ok](docs/Model/GetCorporationsCorporationIdRolesHistory200Ok.md) + - [GetCorporationsCorporationIdShareholders200Ok](docs/Model/GetCorporationsCorporationIdShareholders200Ok.md) + - [GetCorporationsCorporationIdStandings200Ok](docs/Model/GetCorporationsCorporationIdStandings200Ok.md) + - [GetCorporationsCorporationIdStarbases200Ok](docs/Model/GetCorporationsCorporationIdStarbases200Ok.md) + - [GetCorporationsCorporationIdStarbasesStarbaseIdFuel](docs/Model/GetCorporationsCorporationIdStarbasesStarbaseIdFuel.md) + - [GetCorporationsCorporationIdStarbasesStarbaseIdOk](docs/Model/GetCorporationsCorporationIdStarbasesStarbaseIdOk.md) - [GetCorporationsCorporationIdStructures200Ok](docs/Model/GetCorporationsCorporationIdStructures200Ok.md) - [GetCorporationsCorporationIdStructuresCurrentVul](docs/Model/GetCorporationsCorporationIdStructuresCurrentVul.md) - - [GetCorporationsCorporationIdStructuresForbidden](docs/Model/GetCorporationsCorporationIdStructuresForbidden.md) - - [GetCorporationsCorporationIdStructuresInternalServerError](docs/Model/GetCorporationsCorporationIdStructuresInternalServerError.md) - [GetCorporationsCorporationIdStructuresNextVul](docs/Model/GetCorporationsCorporationIdStructuresNextVul.md) - [GetCorporationsCorporationIdStructuresService](docs/Model/GetCorporationsCorporationIdStructuresService.md) + - [GetCorporationsCorporationIdTitles200Ok](docs/Model/GetCorporationsCorporationIdTitles200Ok.md) + - [GetCorporationsCorporationIdWallets200Ok](docs/Model/GetCorporationsCorporationIdWallets200Ok.md) + - [GetCorporationsCorporationIdWalletsDivisionJournal200Ok](docs/Model/GetCorporationsCorporationIdWalletsDivisionJournal200Ok.md) + - [GetCorporationsCorporationIdWalletsDivisionJournalExtraInfo](docs/Model/GetCorporationsCorporationIdWalletsDivisionJournalExtraInfo.md) + - [GetCorporationsCorporationIdWalletsDivisionTransactions200Ok](docs/Model/GetCorporationsCorporationIdWalletsDivisionTransactions200Ok.md) - [GetCorporationsNames200Ok](docs/Model/GetCorporationsNames200Ok.md) - - [GetCorporationsNamesInternalServerError](docs/Model/GetCorporationsNamesInternalServerError.md) - - [GetCorporationsNpccorpsInternalServerError](docs/Model/GetCorporationsNpccorpsInternalServerError.md) - - [GetDogmaAttributesAttributeIdInternalServerError](docs/Model/GetDogmaAttributesAttributeIdInternalServerError.md) - [GetDogmaAttributesAttributeIdNotFound](docs/Model/GetDogmaAttributesAttributeIdNotFound.md) - [GetDogmaAttributesAttributeIdOk](docs/Model/GetDogmaAttributesAttributeIdOk.md) - - [GetDogmaAttributesInternalServerError](docs/Model/GetDogmaAttributesInternalServerError.md) - - [GetDogmaEffectsEffectIdInternalServerError](docs/Model/GetDogmaEffectsEffectIdInternalServerError.md) - [GetDogmaEffectsEffectIdModifier](docs/Model/GetDogmaEffectsEffectIdModifier.md) - [GetDogmaEffectsEffectIdNotFound](docs/Model/GetDogmaEffectsEffectIdNotFound.md) - [GetDogmaEffectsEffectIdOk](docs/Model/GetDogmaEffectsEffectIdOk.md) - - [GetDogmaEffectsInternalServerError](docs/Model/GetDogmaEffectsInternalServerError.md) - - [GetFleetsFleetIdForbidden](docs/Model/GetFleetsFleetIdForbidden.md) - - [GetFleetsFleetIdInternalServerError](docs/Model/GetFleetsFleetIdInternalServerError.md) - [GetFleetsFleetIdMembers200Ok](docs/Model/GetFleetsFleetIdMembers200Ok.md) - - [GetFleetsFleetIdMembersForbidden](docs/Model/GetFleetsFleetIdMembersForbidden.md) - - [GetFleetsFleetIdMembersInternalServerError](docs/Model/GetFleetsFleetIdMembersInternalServerError.md) - [GetFleetsFleetIdMembersNotFound](docs/Model/GetFleetsFleetIdMembersNotFound.md) - [GetFleetsFleetIdNotFound](docs/Model/GetFleetsFleetIdNotFound.md) - [GetFleetsFleetIdOk](docs/Model/GetFleetsFleetIdOk.md) - [GetFleetsFleetIdWings200Ok](docs/Model/GetFleetsFleetIdWings200Ok.md) - - [GetFleetsFleetIdWingsForbidden](docs/Model/GetFleetsFleetIdWingsForbidden.md) - - [GetFleetsFleetIdWingsInternalServerError](docs/Model/GetFleetsFleetIdWingsInternalServerError.md) - [GetFleetsFleetIdWingsNotFound](docs/Model/GetFleetsFleetIdWingsNotFound.md) - [GetFleetsFleetIdWingsSquad](docs/Model/GetFleetsFleetIdWingsSquad.md) + - [GetFwLeaderboardsActiveTotal](docs/Model/GetFwLeaderboardsActiveTotal.md) + - [GetFwLeaderboardsActiveTotal1](docs/Model/GetFwLeaderboardsActiveTotal1.md) + - [GetFwLeaderboardsCharactersActiveTotal](docs/Model/GetFwLeaderboardsCharactersActiveTotal.md) + - [GetFwLeaderboardsCharactersActiveTotal1](docs/Model/GetFwLeaderboardsCharactersActiveTotal1.md) + - [GetFwLeaderboardsCharactersKills](docs/Model/GetFwLeaderboardsCharactersKills.md) + - [GetFwLeaderboardsCharactersLastWeek](docs/Model/GetFwLeaderboardsCharactersLastWeek.md) + - [GetFwLeaderboardsCharactersLastWeek1](docs/Model/GetFwLeaderboardsCharactersLastWeek1.md) + - [GetFwLeaderboardsCharactersOk](docs/Model/GetFwLeaderboardsCharactersOk.md) + - [GetFwLeaderboardsCharactersVictoryPoints](docs/Model/GetFwLeaderboardsCharactersVictoryPoints.md) + - [GetFwLeaderboardsCharactersYesterday](docs/Model/GetFwLeaderboardsCharactersYesterday.md) + - [GetFwLeaderboardsCharactersYesterday1](docs/Model/GetFwLeaderboardsCharactersYesterday1.md) + - [GetFwLeaderboardsCorporationsActiveTotal](docs/Model/GetFwLeaderboardsCorporationsActiveTotal.md) + - [GetFwLeaderboardsCorporationsActiveTotal1](docs/Model/GetFwLeaderboardsCorporationsActiveTotal1.md) + - [GetFwLeaderboardsCorporationsKills](docs/Model/GetFwLeaderboardsCorporationsKills.md) + - [GetFwLeaderboardsCorporationsLastWeek](docs/Model/GetFwLeaderboardsCorporationsLastWeek.md) + - [GetFwLeaderboardsCorporationsLastWeek1](docs/Model/GetFwLeaderboardsCorporationsLastWeek1.md) + - [GetFwLeaderboardsCorporationsOk](docs/Model/GetFwLeaderboardsCorporationsOk.md) + - [GetFwLeaderboardsCorporationsVictoryPoints](docs/Model/GetFwLeaderboardsCorporationsVictoryPoints.md) + - [GetFwLeaderboardsCorporationsYesterday](docs/Model/GetFwLeaderboardsCorporationsYesterday.md) + - [GetFwLeaderboardsCorporationsYesterday1](docs/Model/GetFwLeaderboardsCorporationsYesterday1.md) + - [GetFwLeaderboardsKills](docs/Model/GetFwLeaderboardsKills.md) + - [GetFwLeaderboardsLastWeek](docs/Model/GetFwLeaderboardsLastWeek.md) + - [GetFwLeaderboardsLastWeek1](docs/Model/GetFwLeaderboardsLastWeek1.md) + - [GetFwLeaderboardsOk](docs/Model/GetFwLeaderboardsOk.md) + - [GetFwLeaderboardsVictoryPoints](docs/Model/GetFwLeaderboardsVictoryPoints.md) + - [GetFwLeaderboardsYesterday](docs/Model/GetFwLeaderboardsYesterday.md) + - [GetFwLeaderboardsYesterday1](docs/Model/GetFwLeaderboardsYesterday1.md) + - [GetFwStats200Ok](docs/Model/GetFwStats200Ok.md) + - [GetFwStatsKills](docs/Model/GetFwStatsKills.md) + - [GetFwStatsVictoryPoints](docs/Model/GetFwStatsVictoryPoints.md) + - [GetFwSystems200Ok](docs/Model/GetFwSystems200Ok.md) + - [GetFwWars200Ok](docs/Model/GetFwWars200Ok.md) - [GetIncursions200Ok](docs/Model/GetIncursions200Ok.md) - - [GetIncursionsInternalServerError](docs/Model/GetIncursionsInternalServerError.md) - [GetIndustryFacilities200Ok](docs/Model/GetIndustryFacilities200Ok.md) - - [GetIndustryFacilitiesInternalServerError](docs/Model/GetIndustryFacilitiesInternalServerError.md) - [GetIndustrySystems200Ok](docs/Model/GetIndustrySystems200Ok.md) - [GetIndustrySystemsCostIndice](docs/Model/GetIndustrySystemsCostIndice.md) - - [GetIndustrySystemsInternalServerError](docs/Model/GetIndustrySystemsInternalServerError.md) - [GetInsurancePrices200Ok](docs/Model/GetInsurancePrices200Ok.md) - - [GetInsurancePricesInternalServerError](docs/Model/GetInsurancePricesInternalServerError.md) - [GetInsurancePricesLevel](docs/Model/GetInsurancePricesLevel.md) - [GetKillmailsKillmailIdKillmailHashAttacker](docs/Model/GetKillmailsKillmailIdKillmailHashAttacker.md) - - [GetKillmailsKillmailIdKillmailHashInternalServerError](docs/Model/GetKillmailsKillmailIdKillmailHashInternalServerError.md) - [GetKillmailsKillmailIdKillmailHashItem](docs/Model/GetKillmailsKillmailIdKillmailHashItem.md) - [GetKillmailsKillmailIdKillmailHashItem1](docs/Model/GetKillmailsKillmailIdKillmailHashItem1.md) - [GetKillmailsKillmailIdKillmailHashOk](docs/Model/GetKillmailsKillmailIdKillmailHashOk.md) @@ -444,199 +504,125 @@ Class | Method | HTTP request | Description - [GetKillmailsKillmailIdKillmailHashUnprocessableEntity](docs/Model/GetKillmailsKillmailIdKillmailHashUnprocessableEntity.md) - [GetKillmailsKillmailIdKillmailHashVictim](docs/Model/GetKillmailsKillmailIdKillmailHashVictim.md) - [GetLoyaltyStoresCorporationIdOffers200Ok](docs/Model/GetLoyaltyStoresCorporationIdOffers200Ok.md) - - [GetLoyaltyStoresCorporationIdOffersInternalServerError](docs/Model/GetLoyaltyStoresCorporationIdOffersInternalServerError.md) - [GetLoyaltyStoresCorporationIdOffersRequiredItem](docs/Model/GetLoyaltyStoresCorporationIdOffersRequiredItem.md) - - [GetMarketsGroupsInternalServerError](docs/Model/GetMarketsGroupsInternalServerError.md) - - [GetMarketsGroupsMarketGroupIdInternalServerError](docs/Model/GetMarketsGroupsMarketGroupIdInternalServerError.md) - [GetMarketsGroupsMarketGroupIdNotFound](docs/Model/GetMarketsGroupsMarketGroupIdNotFound.md) - [GetMarketsGroupsMarketGroupIdOk](docs/Model/GetMarketsGroupsMarketGroupIdOk.md) - [GetMarketsPrices200Ok](docs/Model/GetMarketsPrices200Ok.md) - - [GetMarketsPricesInternalServerError](docs/Model/GetMarketsPricesInternalServerError.md) - [GetMarketsRegionIdHistory200Ok](docs/Model/GetMarketsRegionIdHistory200Ok.md) - - [GetMarketsRegionIdHistoryInternalServerError](docs/Model/GetMarketsRegionIdHistoryInternalServerError.md) - [GetMarketsRegionIdHistoryUnprocessableEntity](docs/Model/GetMarketsRegionIdHistoryUnprocessableEntity.md) - [GetMarketsRegionIdOrders200Ok](docs/Model/GetMarketsRegionIdOrders200Ok.md) - - [GetMarketsRegionIdOrdersInternalServerError](docs/Model/GetMarketsRegionIdOrdersInternalServerError.md) - [GetMarketsRegionIdOrdersUnprocessableEntity](docs/Model/GetMarketsRegionIdOrdersUnprocessableEntity.md) - [GetMarketsStructuresStructureId200Ok](docs/Model/GetMarketsStructuresStructureId200Ok.md) - - [GetMarketsStructuresStructureIdForbidden](docs/Model/GetMarketsStructuresStructureIdForbidden.md) - - [GetMarketsStructuresStructureIdInternalServerError](docs/Model/GetMarketsStructuresStructureIdInternalServerError.md) - - [GetOpportunitiesGroupsGroupIdInternalServerError](docs/Model/GetOpportunitiesGroupsGroupIdInternalServerError.md) - [GetOpportunitiesGroupsGroupIdOk](docs/Model/GetOpportunitiesGroupsGroupIdOk.md) - - [GetOpportunitiesGroupsInternalServerError](docs/Model/GetOpportunitiesGroupsInternalServerError.md) - - [GetOpportunitiesTasksInternalServerError](docs/Model/GetOpportunitiesTasksInternalServerError.md) - - [GetOpportunitiesTasksTaskIdInternalServerError](docs/Model/GetOpportunitiesTasksTaskIdInternalServerError.md) - [GetOpportunitiesTasksTaskIdOk](docs/Model/GetOpportunitiesTasksTaskIdOk.md) - - [GetRouteOriginDestinationInternalServerError](docs/Model/GetRouteOriginDestinationInternalServerError.md) - [GetRouteOriginDestinationNotFound](docs/Model/GetRouteOriginDestinationNotFound.md) - - [GetSearchInternalServerError](docs/Model/GetSearchInternalServerError.md) - [GetSearchOk](docs/Model/GetSearchOk.md) - [GetSovereigntyCampaigns200Ok](docs/Model/GetSovereigntyCampaigns200Ok.md) - - [GetSovereigntyCampaignsInternalServerError](docs/Model/GetSovereigntyCampaignsInternalServerError.md) - [GetSovereigntyCampaignsParticipant](docs/Model/GetSovereigntyCampaignsParticipant.md) - [GetSovereigntyMap200Ok](docs/Model/GetSovereigntyMap200Ok.md) - - [GetSovereigntyMapInternalServerError](docs/Model/GetSovereigntyMapInternalServerError.md) - [GetSovereigntyStructures200Ok](docs/Model/GetSovereigntyStructures200Ok.md) - - [GetSovereigntyStructuresInternalServerError](docs/Model/GetSovereigntyStructuresInternalServerError.md) - - [GetStatusInternalServerError](docs/Model/GetStatusInternalServerError.md) - [GetStatusOk](docs/Model/GetStatusOk.md) - [GetUniverseBloodlines200Ok](docs/Model/GetUniverseBloodlines200Ok.md) - - [GetUniverseBloodlinesInternalServerError](docs/Model/GetUniverseBloodlinesInternalServerError.md) - - [GetUniverseCategoriesCategoryIdInternalServerError](docs/Model/GetUniverseCategoriesCategoryIdInternalServerError.md) - [GetUniverseCategoriesCategoryIdNotFound](docs/Model/GetUniverseCategoriesCategoryIdNotFound.md) - [GetUniverseCategoriesCategoryIdOk](docs/Model/GetUniverseCategoriesCategoryIdOk.md) - - [GetUniverseCategoriesInternalServerError](docs/Model/GetUniverseCategoriesInternalServerError.md) - - [GetUniverseConstellationsConstellationIdInternalServerError](docs/Model/GetUniverseConstellationsConstellationIdInternalServerError.md) - [GetUniverseConstellationsConstellationIdNotFound](docs/Model/GetUniverseConstellationsConstellationIdNotFound.md) - [GetUniverseConstellationsConstellationIdOk](docs/Model/GetUniverseConstellationsConstellationIdOk.md) - [GetUniverseConstellationsConstellationIdPosition](docs/Model/GetUniverseConstellationsConstellationIdPosition.md) - - [GetUniverseConstellationsInternalServerError](docs/Model/GetUniverseConstellationsInternalServerError.md) - [GetUniverseFactions200Ok](docs/Model/GetUniverseFactions200Ok.md) - - [GetUniverseFactionsInternalServerError](docs/Model/GetUniverseFactionsInternalServerError.md) - - [GetUniverseGraphicsGraphicIdInternalServerError](docs/Model/GetUniverseGraphicsGraphicIdInternalServerError.md) - [GetUniverseGraphicsGraphicIdNotFound](docs/Model/GetUniverseGraphicsGraphicIdNotFound.md) - [GetUniverseGraphicsGraphicIdOk](docs/Model/GetUniverseGraphicsGraphicIdOk.md) - - [GetUniverseGraphicsInternalServerError](docs/Model/GetUniverseGraphicsInternalServerError.md) - - [GetUniverseGroupsGroupIdInternalServerError](docs/Model/GetUniverseGroupsGroupIdInternalServerError.md) - [GetUniverseGroupsGroupIdNotFound](docs/Model/GetUniverseGroupsGroupIdNotFound.md) - [GetUniverseGroupsGroupIdOk](docs/Model/GetUniverseGroupsGroupIdOk.md) - - [GetUniverseGroupsInternalServerError](docs/Model/GetUniverseGroupsInternalServerError.md) - - [GetUniverseMoonsMoonIdInternalServerError](docs/Model/GetUniverseMoonsMoonIdInternalServerError.md) - [GetUniverseMoonsMoonIdNotFound](docs/Model/GetUniverseMoonsMoonIdNotFound.md) - [GetUniverseMoonsMoonIdOk](docs/Model/GetUniverseMoonsMoonIdOk.md) - [GetUniverseMoonsMoonIdPosition](docs/Model/GetUniverseMoonsMoonIdPosition.md) - - [GetUniversePlanetsPlanetIdInternalServerError](docs/Model/GetUniversePlanetsPlanetIdInternalServerError.md) - [GetUniversePlanetsPlanetIdNotFound](docs/Model/GetUniversePlanetsPlanetIdNotFound.md) - [GetUniversePlanetsPlanetIdOk](docs/Model/GetUniversePlanetsPlanetIdOk.md) - [GetUniversePlanetsPlanetIdPosition](docs/Model/GetUniversePlanetsPlanetIdPosition.md) - [GetUniverseRaces200Ok](docs/Model/GetUniverseRaces200Ok.md) - - [GetUniverseRacesInternalServerError](docs/Model/GetUniverseRacesInternalServerError.md) - - [GetUniverseRegionsInternalServerError](docs/Model/GetUniverseRegionsInternalServerError.md) - - [GetUniverseRegionsRegionIdInternalServerError](docs/Model/GetUniverseRegionsRegionIdInternalServerError.md) - [GetUniverseRegionsRegionIdNotFound](docs/Model/GetUniverseRegionsRegionIdNotFound.md) - [GetUniverseRegionsRegionIdOk](docs/Model/GetUniverseRegionsRegionIdOk.md) - - [GetUniverseSchematicsSchematicIdInternalServerError](docs/Model/GetUniverseSchematicsSchematicIdInternalServerError.md) - [GetUniverseSchematicsSchematicIdNotFound](docs/Model/GetUniverseSchematicsSchematicIdNotFound.md) - [GetUniverseSchematicsSchematicIdOk](docs/Model/GetUniverseSchematicsSchematicIdOk.md) - [GetUniverseStargatesStargateIdDestination](docs/Model/GetUniverseStargatesStargateIdDestination.md) - - [GetUniverseStargatesStargateIdInternalServerError](docs/Model/GetUniverseStargatesStargateIdInternalServerError.md) - [GetUniverseStargatesStargateIdNotFound](docs/Model/GetUniverseStargatesStargateIdNotFound.md) - [GetUniverseStargatesStargateIdOk](docs/Model/GetUniverseStargatesStargateIdOk.md) - [GetUniverseStargatesStargateIdPosition](docs/Model/GetUniverseStargatesStargateIdPosition.md) - - [GetUniverseStationsStationIdInternalServerError](docs/Model/GetUniverseStationsStationIdInternalServerError.md) + - [GetUniverseStarsStarIdOk](docs/Model/GetUniverseStarsStarIdOk.md) - [GetUniverseStationsStationIdNotFound](docs/Model/GetUniverseStationsStationIdNotFound.md) - [GetUniverseStationsStationIdOk](docs/Model/GetUniverseStationsStationIdOk.md) - [GetUniverseStationsStationIdPosition](docs/Model/GetUniverseStationsStationIdPosition.md) - - [GetUniverseStructuresInternalServerError](docs/Model/GetUniverseStructuresInternalServerError.md) - - [GetUniverseStructuresStructureIdForbidden](docs/Model/GetUniverseStructuresStructureIdForbidden.md) - - [GetUniverseStructuresStructureIdInternalServerError](docs/Model/GetUniverseStructuresStructureIdInternalServerError.md) - [GetUniverseStructuresStructureIdNotFound](docs/Model/GetUniverseStructuresStructureIdNotFound.md) - [GetUniverseStructuresStructureIdOk](docs/Model/GetUniverseStructuresStructureIdOk.md) - [GetUniverseStructuresStructureIdPosition](docs/Model/GetUniverseStructuresStructureIdPosition.md) - [GetUniverseSystemJumps200Ok](docs/Model/GetUniverseSystemJumps200Ok.md) - - [GetUniverseSystemJumpsInternalServerError](docs/Model/GetUniverseSystemJumpsInternalServerError.md) - [GetUniverseSystemKills200Ok](docs/Model/GetUniverseSystemKills200Ok.md) - - [GetUniverseSystemKillsInternalServerError](docs/Model/GetUniverseSystemKillsInternalServerError.md) - - [GetUniverseSystemsInternalServerError](docs/Model/GetUniverseSystemsInternalServerError.md) - - [GetUniverseSystemsSystemIdInternalServerError](docs/Model/GetUniverseSystemsSystemIdInternalServerError.md) - [GetUniverseSystemsSystemIdNotFound](docs/Model/GetUniverseSystemsSystemIdNotFound.md) - [GetUniverseSystemsSystemIdOk](docs/Model/GetUniverseSystemsSystemIdOk.md) - [GetUniverseSystemsSystemIdPlanet](docs/Model/GetUniverseSystemsSystemIdPlanet.md) - [GetUniverseSystemsSystemIdPosition](docs/Model/GetUniverseSystemsSystemIdPosition.md) - - [GetUniverseTypesInternalServerError](docs/Model/GetUniverseTypesInternalServerError.md) - [GetUniverseTypesTypeIdDogmaAttribute](docs/Model/GetUniverseTypesTypeIdDogmaAttribute.md) - [GetUniverseTypesTypeIdDogmaEffect](docs/Model/GetUniverseTypesTypeIdDogmaEffect.md) - - [GetUniverseTypesTypeIdInternalServerError](docs/Model/GetUniverseTypesTypeIdInternalServerError.md) - [GetUniverseTypesTypeIdNotFound](docs/Model/GetUniverseTypesTypeIdNotFound.md) - [GetUniverseTypesTypeIdOk](docs/Model/GetUniverseTypesTypeIdOk.md) - - [GetWarsInternalServerError](docs/Model/GetWarsInternalServerError.md) - [GetWarsWarIdAggressor](docs/Model/GetWarsWarIdAggressor.md) - [GetWarsWarIdAlly](docs/Model/GetWarsWarIdAlly.md) - [GetWarsWarIdDefender](docs/Model/GetWarsWarIdDefender.md) - - [GetWarsWarIdInternalServerError](docs/Model/GetWarsWarIdInternalServerError.md) - [GetWarsWarIdKillmails200Ok](docs/Model/GetWarsWarIdKillmails200Ok.md) - - [GetWarsWarIdKillmailsInternalServerError](docs/Model/GetWarsWarIdKillmailsInternalServerError.md) - [GetWarsWarIdKillmailsUnprocessableEntity](docs/Model/GetWarsWarIdKillmailsUnprocessableEntity.md) - [GetWarsWarIdOk](docs/Model/GetWarsWarIdOk.md) - [GetWarsWarIdUnprocessableEntity](docs/Model/GetWarsWarIdUnprocessableEntity.md) + - [InternalServerError](docs/Model/InternalServerError.md) - [PostCharactersAffiliation200Ok](docs/Model/PostCharactersAffiliation200Ok.md) - - [PostCharactersAffiliationInternalServerError](docs/Model/PostCharactersAffiliationInternalServerError.md) - - [PostCharactersAffiliationUnprocessableEntity](docs/Model/PostCharactersAffiliationUnprocessableEntity.md) - - [PostCharactersCharacterIdContactsForbidden](docs/Model/PostCharactersCharacterIdContactsForbidden.md) - - [PostCharactersCharacterIdContactsInternalServerError](docs/Model/PostCharactersCharacterIdContactsInternalServerError.md) - - [PostCharactersCharacterIdCspaCharacters](docs/Model/PostCharactersCharacterIdCspaCharacters.md) - - [PostCharactersCharacterIdCspaCreated](docs/Model/PostCharactersCharacterIdCspaCreated.md) - - [PostCharactersCharacterIdCspaForbidden](docs/Model/PostCharactersCharacterIdCspaForbidden.md) - - [PostCharactersCharacterIdCspaInternalServerError](docs/Model/PostCharactersCharacterIdCspaInternalServerError.md) + - [PostCharactersAffiliationNotFound](docs/Model/PostCharactersAffiliationNotFound.md) + - [PostCharactersCharacterIdAssetsLocations200Ok](docs/Model/PostCharactersCharacterIdAssetsLocations200Ok.md) + - [PostCharactersCharacterIdAssetsLocationsPosition](docs/Model/PostCharactersCharacterIdAssetsLocationsPosition.md) + - [PostCharactersCharacterIdAssetsNames200Ok](docs/Model/PostCharactersCharacterIdAssetsNames200Ok.md) - [PostCharactersCharacterIdFittingsCreated](docs/Model/PostCharactersCharacterIdFittingsCreated.md) - [PostCharactersCharacterIdFittingsFitting](docs/Model/PostCharactersCharacterIdFittingsFitting.md) - - [PostCharactersCharacterIdFittingsForbidden](docs/Model/PostCharactersCharacterIdFittingsForbidden.md) - - [PostCharactersCharacterIdFittingsInternalServerError](docs/Model/PostCharactersCharacterIdFittingsInternalServerError.md) - [PostCharactersCharacterIdFittingsItem](docs/Model/PostCharactersCharacterIdFittingsItem.md) - [PostCharactersCharacterIdMailBadRequest](docs/Model/PostCharactersCharacterIdMailBadRequest.md) - - [PostCharactersCharacterIdMailForbidden](docs/Model/PostCharactersCharacterIdMailForbidden.md) - - [PostCharactersCharacterIdMailInternalServerError](docs/Model/PostCharactersCharacterIdMailInternalServerError.md) - - [PostCharactersCharacterIdMailLabelsForbidden](docs/Model/PostCharactersCharacterIdMailLabelsForbidden.md) - - [PostCharactersCharacterIdMailLabelsInternalServerError](docs/Model/PostCharactersCharacterIdMailLabelsInternalServerError.md) - [PostCharactersCharacterIdMailLabelsLabel](docs/Model/PostCharactersCharacterIdMailLabelsLabel.md) - [PostCharactersCharacterIdMailMail](docs/Model/PostCharactersCharacterIdMailMail.md) - [PostCharactersCharacterIdMailRecipient](docs/Model/PostCharactersCharacterIdMailRecipient.md) - - [PostFleetsFleetIdMembersForbidden](docs/Model/PostFleetsFleetIdMembersForbidden.md) - - [PostFleetsFleetIdMembersInternalServerError](docs/Model/PostFleetsFleetIdMembersInternalServerError.md) + - [PostCorporationsCorporationIdAssetsLocations200Ok](docs/Model/PostCorporationsCorporationIdAssetsLocations200Ok.md) + - [PostCorporationsCorporationIdAssetsLocationsPosition](docs/Model/PostCorporationsCorporationIdAssetsLocationsPosition.md) + - [PostCorporationsCorporationIdAssetsNames200Ok](docs/Model/PostCorporationsCorporationIdAssetsNames200Ok.md) - [PostFleetsFleetIdMembersInvitation](docs/Model/PostFleetsFleetIdMembersInvitation.md) - [PostFleetsFleetIdMembersNotFound](docs/Model/PostFleetsFleetIdMembersNotFound.md) - [PostFleetsFleetIdMembersUnprocessableEntity](docs/Model/PostFleetsFleetIdMembersUnprocessableEntity.md) - [PostFleetsFleetIdWingsCreated](docs/Model/PostFleetsFleetIdWingsCreated.md) - - [PostFleetsFleetIdWingsForbidden](docs/Model/PostFleetsFleetIdWingsForbidden.md) - - [PostFleetsFleetIdWingsInternalServerError](docs/Model/PostFleetsFleetIdWingsInternalServerError.md) - [PostFleetsFleetIdWingsNotFound](docs/Model/PostFleetsFleetIdWingsNotFound.md) - [PostFleetsFleetIdWingsWingIdSquadsCreated](docs/Model/PostFleetsFleetIdWingsWingIdSquadsCreated.md) - - [PostFleetsFleetIdWingsWingIdSquadsForbidden](docs/Model/PostFleetsFleetIdWingsWingIdSquadsForbidden.md) - - [PostFleetsFleetIdWingsWingIdSquadsInternalServerError](docs/Model/PostFleetsFleetIdWingsWingIdSquadsInternalServerError.md) - [PostFleetsFleetIdWingsWingIdSquadsNotFound](docs/Model/PostFleetsFleetIdWingsWingIdSquadsNotFound.md) - - [PostUiAutopilotWaypointForbidden](docs/Model/PostUiAutopilotWaypointForbidden.md) - - [PostUiAutopilotWaypointInternalServerError](docs/Model/PostUiAutopilotWaypointInternalServerError.md) - - [PostUiOpenwindowContractForbidden](docs/Model/PostUiOpenwindowContractForbidden.md) - - [PostUiOpenwindowContractInternalServerError](docs/Model/PostUiOpenwindowContractInternalServerError.md) - - [PostUiOpenwindowInformationForbidden](docs/Model/PostUiOpenwindowInformationForbidden.md) - - [PostUiOpenwindowInformationInternalServerError](docs/Model/PostUiOpenwindowInformationInternalServerError.md) - - [PostUiOpenwindowMarketdetailsForbidden](docs/Model/PostUiOpenwindowMarketdetailsForbidden.md) - - [PostUiOpenwindowMarketdetailsInternalServerError](docs/Model/PostUiOpenwindowMarketdetailsInternalServerError.md) - - [PostUiOpenwindowNewmailForbidden](docs/Model/PostUiOpenwindowNewmailForbidden.md) - - [PostUiOpenwindowNewmailInternalServerError](docs/Model/PostUiOpenwindowNewmailInternalServerError.md) - [PostUiOpenwindowNewmailNewMail](docs/Model/PostUiOpenwindowNewmailNewMail.md) - [PostUiOpenwindowNewmailUnprocessableEntity](docs/Model/PostUiOpenwindowNewmailUnprocessableEntity.md) + - [PostUniverseIdsAgent](docs/Model/PostUniverseIdsAgent.md) + - [PostUniverseIdsAlliance](docs/Model/PostUniverseIdsAlliance.md) + - [PostUniverseIdsCharacter](docs/Model/PostUniverseIdsCharacter.md) + - [PostUniverseIdsConstellation](docs/Model/PostUniverseIdsConstellation.md) + - [PostUniverseIdsCorporation](docs/Model/PostUniverseIdsCorporation.md) + - [PostUniverseIdsFaction](docs/Model/PostUniverseIdsFaction.md) + - [PostUniverseIdsInventoryType](docs/Model/PostUniverseIdsInventoryType.md) + - [PostUniverseIdsOk](docs/Model/PostUniverseIdsOk.md) + - [PostUniverseIdsRegion](docs/Model/PostUniverseIdsRegion.md) + - [PostUniverseIdsServiceUnavailable](docs/Model/PostUniverseIdsServiceUnavailable.md) + - [PostUniverseIdsStation](docs/Model/PostUniverseIdsStation.md) + - [PostUniverseIdsSystem](docs/Model/PostUniverseIdsSystem.md) - [PostUniverseNames200Ok](docs/Model/PostUniverseNames200Ok.md) - - [PostUniverseNamesInternalServerError](docs/Model/PostUniverseNamesInternalServerError.md) - [PostUniverseNamesNotFound](docs/Model/PostUniverseNamesNotFound.md) - - [PutCharactersCharacterIdCalendarEventIdForbidden](docs/Model/PutCharactersCharacterIdCalendarEventIdForbidden.md) - - [PutCharactersCharacterIdCalendarEventIdInternalServerError](docs/Model/PutCharactersCharacterIdCalendarEventIdInternalServerError.md) - [PutCharactersCharacterIdCalendarEventIdResponse](docs/Model/PutCharactersCharacterIdCalendarEventIdResponse.md) - - [PutCharactersCharacterIdContactsForbidden](docs/Model/PutCharactersCharacterIdContactsForbidden.md) - - [PutCharactersCharacterIdContactsInternalServerError](docs/Model/PutCharactersCharacterIdContactsInternalServerError.md) - [PutCharactersCharacterIdMailMailIdBadRequest](docs/Model/PutCharactersCharacterIdMailMailIdBadRequest.md) - [PutCharactersCharacterIdMailMailIdContents](docs/Model/PutCharactersCharacterIdMailMailIdContents.md) - - [PutCharactersCharacterIdMailMailIdForbidden](docs/Model/PutCharactersCharacterIdMailMailIdForbidden.md) - - [PutCharactersCharacterIdMailMailIdInternalServerError](docs/Model/PutCharactersCharacterIdMailMailIdInternalServerError.md) - - [PutCorporationsCorporationIdStructuresStructureIdForbidden](docs/Model/PutCorporationsCorporationIdStructuresStructureIdForbidden.md) - - [PutCorporationsCorporationIdStructuresStructureIdInternalServerError](docs/Model/PutCorporationsCorporationIdStructuresStructureIdInternalServerError.md) - [PutCorporationsCorporationIdStructuresStructureIdNewSchedule](docs/Model/PutCorporationsCorporationIdStructuresStructureIdNewSchedule.md) - [PutFleetsFleetIdBadRequest](docs/Model/PutFleetsFleetIdBadRequest.md) - - [PutFleetsFleetIdForbidden](docs/Model/PutFleetsFleetIdForbidden.md) - - [PutFleetsFleetIdInternalServerError](docs/Model/PutFleetsFleetIdInternalServerError.md) - - [PutFleetsFleetIdMembersMemberIdForbidden](docs/Model/PutFleetsFleetIdMembersMemberIdForbidden.md) - - [PutFleetsFleetIdMembersMemberIdInternalServerError](docs/Model/PutFleetsFleetIdMembersMemberIdInternalServerError.md) - [PutFleetsFleetIdMembersMemberIdMovement](docs/Model/PutFleetsFleetIdMembersMemberIdMovement.md) - [PutFleetsFleetIdMembersMemberIdNotFound](docs/Model/PutFleetsFleetIdMembersMemberIdNotFound.md) - [PutFleetsFleetIdMembersMemberIdUnprocessableEntity](docs/Model/PutFleetsFleetIdMembersMemberIdUnprocessableEntity.md) - [PutFleetsFleetIdNewSettings](docs/Model/PutFleetsFleetIdNewSettings.md) - [PutFleetsFleetIdNotFound](docs/Model/PutFleetsFleetIdNotFound.md) - - [PutFleetsFleetIdSquadsSquadIdForbidden](docs/Model/PutFleetsFleetIdSquadsSquadIdForbidden.md) - - [PutFleetsFleetIdSquadsSquadIdInternalServerError](docs/Model/PutFleetsFleetIdSquadsSquadIdInternalServerError.md) - [PutFleetsFleetIdSquadsSquadIdNaming](docs/Model/PutFleetsFleetIdSquadsSquadIdNaming.md) - [PutFleetsFleetIdSquadsSquadIdNotFound](docs/Model/PutFleetsFleetIdSquadsSquadIdNotFound.md) - - [PutFleetsFleetIdWingsWingIdForbidden](docs/Model/PutFleetsFleetIdWingsWingIdForbidden.md) - - [PutFleetsFleetIdWingsWingIdInternalServerError](docs/Model/PutFleetsFleetIdWingsWingIdInternalServerError.md) - [PutFleetsFleetIdWingsWingIdNaming](docs/Model/PutFleetsFleetIdWingsWingIdNaming.md) - [PutFleetsFleetIdWingsWingIdNotFound](docs/Model/PutFleetsFleetIdWingsWingIdNotFound.md) @@ -650,8 +636,11 @@ Class | Method | HTTP request | Description - **Flow**: implicit - **Authorization URL**: https://login.eveonline.com/oauth/authorize - **Scopes**: + - **esi-alliances.read_contacts.v1**: EVE SSO scope esi-alliances.read_contacts.v1 - **esi-assets.read_assets.v1**: EVE SSO scope esi-assets.read_assets.v1 + - **esi-assets.read_corporation_assets.v1**: EVE SSO scope esi-assets.read_corporation_assets.v1 - **esi-bookmarks.read_character_bookmarks.v1**: EVE SSO scope esi-bookmarks.read_character_bookmarks.v1 + - **esi-bookmarks.read_corporation_bookmarks.v1**: EVE SSO scope esi-bookmarks.read_corporation_bookmarks.v1 - **esi-calendar.read_calendar_events.v1**: EVE SSO scope esi-calendar.read_calendar_events.v1 - **esi-calendar.respond_calendar_events.v1**: EVE SSO scope esi-calendar.respond_calendar_events.v1 - **esi-characters.read_agents_research.v1**: EVE SSO scope esi-characters.read_agents_research.v1 @@ -659,20 +648,44 @@ Class | Method | HTTP request | Description - **esi-characters.read_chat_channels.v1**: EVE SSO scope esi-characters.read_chat_channels.v1 - **esi-characters.read_contacts.v1**: EVE SSO scope esi-characters.read_contacts.v1 - **esi-characters.read_corporation_roles.v1**: EVE SSO scope esi-characters.read_corporation_roles.v1 + - **esi-characters.read_fatigue.v1**: EVE SSO scope esi-characters.read_fatigue.v1 + - **esi-characters.read_fw_stats.v1**: EVE SSO scope esi-characters.read_fw_stats.v1 - **esi-characters.read_loyalty.v1**: EVE SSO scope esi-characters.read_loyalty.v1 - **esi-characters.read_medals.v1**: EVE SSO scope esi-characters.read_medals.v1 + - **esi-characters.read_notifications.v1**: EVE SSO scope esi-characters.read_notifications.v1 - **esi-characters.read_opportunities.v1**: EVE SSO scope esi-characters.read_opportunities.v1 - **esi-characters.read_standings.v1**: EVE SSO scope esi-characters.read_standings.v1 + - **esi-characters.read_titles.v1**: EVE SSO scope esi-characters.read_titles.v1 - **esi-characters.write_contacts.v1**: EVE SSO scope esi-characters.write_contacts.v1 + - **esi-characterstats.read.v1**: EVE SSO scope esi-characterstats.read.v1 - **esi-clones.read_clones.v1**: EVE SSO scope esi-clones.read_clones.v1 + - **esi-clones.read_implants.v1**: EVE SSO scope esi-clones.read_implants.v1 + - **esi-contracts.read_character_contracts.v1**: EVE SSO scope esi-contracts.read_character_contracts.v1 + - **esi-contracts.read_corporation_contracts.v1**: EVE SSO scope esi-contracts.read_corporation_contracts.v1 + - **esi-corporations.read_blueprints.v1**: EVE SSO scope esi-corporations.read_blueprints.v1 + - **esi-corporations.read_contacts.v1**: EVE SSO scope esi-corporations.read_contacts.v1 + - **esi-corporations.read_container_logs.v1**: EVE SSO scope esi-corporations.read_container_logs.v1 - **esi-corporations.read_corporation_membership.v1**: EVE SSO scope esi-corporations.read_corporation_membership.v1 + - **esi-corporations.read_divisions.v1**: EVE SSO scope esi-corporations.read_divisions.v1 + - **esi-corporations.read_facilities.v1**: EVE SSO scope esi-corporations.read_facilities.v1 + - **esi-corporations.read_fw_stats.v1**: EVE SSO scope esi-corporations.read_fw_stats.v1 + - **esi-corporations.read_medals.v1**: EVE SSO scope esi-corporations.read_medals.v1 + - **esi-corporations.read_outposts.v1**: EVE SSO scope esi-corporations.read_outposts.v1 + - **esi-corporations.read_standings.v1**: EVE SSO scope esi-corporations.read_standings.v1 + - **esi-corporations.read_starbases.v1**: EVE SSO scope esi-corporations.read_starbases.v1 - **esi-corporations.read_structures.v1**: EVE SSO scope esi-corporations.read_structures.v1 + - **esi-corporations.read_titles.v1**: EVE SSO scope esi-corporations.read_titles.v1 + - **esi-corporations.track_members.v1**: EVE SSO scope esi-corporations.track_members.v1 - **esi-corporations.write_structures.v1**: EVE SSO scope esi-corporations.write_structures.v1 - **esi-fittings.read_fittings.v1**: EVE SSO scope esi-fittings.read_fittings.v1 - **esi-fittings.write_fittings.v1**: EVE SSO scope esi-fittings.write_fittings.v1 - **esi-fleets.read_fleet.v1**: EVE SSO scope esi-fleets.read_fleet.v1 - **esi-fleets.write_fleet.v1**: EVE SSO scope esi-fleets.write_fleet.v1 - **esi-industry.read_character_jobs.v1**: EVE SSO scope esi-industry.read_character_jobs.v1 + - **esi-industry.read_character_mining.v1**: EVE SSO scope esi-industry.read_character_mining.v1 + - **esi-industry.read_corporation_jobs.v1**: EVE SSO scope esi-industry.read_corporation_jobs.v1 + - **esi-industry.read_corporation_mining.v1**: EVE SSO scope esi-industry.read_corporation_mining.v1 + - **esi-killmails.read_corporation_killmails.v1**: EVE SSO scope esi-killmails.read_corporation_killmails.v1 - **esi-killmails.read_killmails.v1**: EVE SSO scope esi-killmails.read_killmails.v1 - **esi-location.read_location.v1**: EVE SSO scope esi-location.read_location.v1 - **esi-location.read_online.v1**: EVE SSO scope esi-location.read_online.v1 @@ -681,8 +694,10 @@ Class | Method | HTTP request | Description - **esi-mail.read_mail.v1**: EVE SSO scope esi-mail.read_mail.v1 - **esi-mail.send_mail.v1**: EVE SSO scope esi-mail.send_mail.v1 - **esi-markets.read_character_orders.v1**: EVE SSO scope esi-markets.read_character_orders.v1 + - **esi-markets.read_corporation_orders.v1**: EVE SSO scope esi-markets.read_corporation_orders.v1 - **esi-markets.structure_markets.v1**: EVE SSO scope esi-markets.structure_markets.v1 - **esi-planets.manage_planets.v1**: EVE SSO scope esi-planets.manage_planets.v1 + - **esi-planets.read_customs_offices.v1**: EVE SSO scope esi-planets.read_customs_offices.v1 - **esi-search.search_structures.v1**: EVE SSO scope esi-search.search_structures.v1 - **esi-skills.read_skillqueue.v1**: EVE SSO scope esi-skills.read_skillqueue.v1 - **esi-skills.read_skills.v1**: EVE SSO scope esi-skills.read_skills.v1 @@ -690,6 +705,7 @@ Class | Method | HTTP request | Description - **esi-ui.write_waypoint.v1**: EVE SSO scope esi-ui.write_waypoint.v1 - **esi-universe.read_structures.v1**: EVE SSO scope esi-universe.read_structures.v1 - **esi-wallet.read_character_wallet.v1**: EVE SSO scope esi-wallet.read_character_wallet.v1 + - **esi-wallet.read_corporation_wallets.v1**: EVE SSO scope esi-wallet.read_corporation_wallets.v1 ## Author diff --git a/composer.json b/composer.json index 00662d9..f763f8b 100644 --- a/composer.json +++ b/composer.json @@ -17,21 +17,21 @@ } ], "require": { - "php": ">=5.4", + "php": ">=5.5", "ext-curl": "*", "ext-json": "*", - "ext-mbstring": "*" + "ext-mbstring": "*", + "guzzlehttp/guzzle": "^6.2" }, "require-dev": { - "phpunit/phpunit": "~4.8", - "satooshi/php-coveralls": "~1.0", + "phpunit/phpunit": "^4.8", "squizlabs/php_codesniffer": "~2.6", "friendsofphp/php-cs-fixer": "~1.12" }, "autoload": { - "psr-4": { "nullx27\\ESI\\" : "src/" } + "psr-4": { "nullx27ESI\\" : "src/" } }, "autoload-dev": { - "psr-4": { "nullx27\\ESI\\" : "test/" } + "psr-4": { "nullx27ESI\\" : "test/" } } } diff --git a/docs/Api/AllianceApi.md b/docs/Api/AllianceApi.md index 8c7262b..f7df28c 100644 --- a/docs/Api/AllianceApi.md +++ b/docs/Api/AllianceApi.md @@ -1,4 +1,4 @@ -# nullx27\ESI\AllianceApi +# nullx27ESI\AllianceApi All URIs are relative to *https://esi.tech.ccp.is/latest* @@ -16,20 +16,24 @@ Method | HTTP request | Description List all alliances -List all active player alliances --- Alternate route: `/v1/alliances/` Alternate route: `/legacy/alliances/` Alternate route: `/dev/alliances/` --- This route is cached for up to 3600 seconds +List all active player alliances --- Alternate route: `/dev/alliances/` Alternate route: `/legacy/alliances/` Alternate route: `/v1/alliances/` --- This route is cached for up to 3600 seconds ### Example ```php getAlliances($datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getAlliances($datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling AllianceApi->getAlliances: ', $e->getMessage(), PHP_EOL; @@ -61,25 +65,29 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getAlliancesAllianceId** -> \nullx27\ESI\Models\GetAlliancesAllianceIdOk getAlliancesAllianceId($allianceId, $datasource, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetAlliancesAllianceIdOk getAlliancesAllianceId($allianceId, $datasource, $userAgent, $xUserAgent) Get alliance information -Public information about an alliance --- Alternate route: `/v2/alliances/{alliance_id}/` --- This route is cached for up to 3600 seconds +Public information about an alliance --- Alternate route: `/dev/alliances/{alliance_id}/` Alternate route: `/v3/alliances/{alliance_id}/` --- This route is cached for up to 3600 seconds ### Example ```php getAlliancesAllianceId($allianceId, $datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getAlliancesAllianceId($allianceId, $datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling AllianceApi->getAlliancesAllianceId: ', $e->getMessage(), PHP_EOL; @@ -91,14 +99,14 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **allianceId** | **int**| An Eve alliance ID | + **allianceId** | **int**| An EVE alliance ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetAlliancesAllianceIdOk**](../Model/GetAlliancesAllianceIdOk.md) +[**\nullx27ESI\nullx27\ESI\Models\GetAlliancesAllianceIdOk**](../Model/GetAlliancesAllianceIdOk.md) ### Authorization @@ -116,21 +124,25 @@ No authorization required List alliance's corporations -List all current member corporations of an alliance --- Alternate route: `/v1/alliances/{alliance_id}/corporations/` Alternate route: `/legacy/alliances/{alliance_id}/corporations/` Alternate route: `/dev/alliances/{alliance_id}/corporations/` --- This route is cached for up to 3600 seconds +List all current member corporations of an alliance --- Alternate route: `/dev/alliances/{alliance_id}/corporations/` Alternate route: `/legacy/alliances/{alliance_id}/corporations/` Alternate route: `/v1/alliances/{alliance_id}/corporations/` --- This route is cached for up to 3600 seconds ### Example ```php getAlliancesAllianceIdCorporations($allianceId, $datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getAlliancesAllianceIdCorporations($allianceId, $datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling AllianceApi->getAlliancesAllianceIdCorporations: ', $e->getMessage(), PHP_EOL; @@ -163,25 +175,29 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getAlliancesAllianceIdIcons** -> \nullx27\ESI\Models\GetAlliancesAllianceIdIconsOk getAlliancesAllianceIdIcons($allianceId, $datasource, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetAlliancesAllianceIdIconsOk getAlliancesAllianceIdIcons($allianceId, $datasource, $userAgent, $xUserAgent) Get alliance icon -Get the icon urls for a alliance --- Alternate route: `/v1/alliances/{alliance_id}/icons/` Alternate route: `/legacy/alliances/{alliance_id}/icons/` Alternate route: `/dev/alliances/{alliance_id}/icons/` --- This route is cached for up to 3600 seconds +Get the icon urls for a alliance --- Alternate route: `/dev/alliances/{alliance_id}/icons/` Alternate route: `/legacy/alliances/{alliance_id}/icons/` Alternate route: `/v1/alliances/{alliance_id}/icons/` --- This route is cached for up to 3600 seconds ### Example ```php getAlliancesAllianceIdIcons($allianceId, $datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getAlliancesAllianceIdIcons($allianceId, $datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling AllianceApi->getAlliancesAllianceIdIcons: ', $e->getMessage(), PHP_EOL; @@ -200,7 +216,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetAlliancesAllianceIdIconsOk**](../Model/GetAlliancesAllianceIdIconsOk.md) +[**\nullx27ESI\nullx27\ESI\Models\GetAlliancesAllianceIdIconsOk**](../Model/GetAlliancesAllianceIdIconsOk.md) ### Authorization @@ -214,25 +230,29 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getAlliancesNames** -> \nullx27\ESI\Models\GetAlliancesNames200Ok[] getAlliancesNames($allianceIds, $datasource, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetAlliancesNames200Ok[] getAlliancesNames($allianceIds, $datasource, $userAgent, $xUserAgent) Get alliance names -Resolve a set of alliance IDs to alliance names --- Alternate route: `/v1/alliances/names/` Alternate route: `/legacy/alliances/names/` Alternate route: `/dev/alliances/names/` --- This route is cached for up to 3600 seconds +Resolve a set of alliance IDs to alliance names --- Alternate route: `/dev/alliances/names/` Alternate route: `/v2/alliances/names/` --- This route is cached for up to 3600 seconds ### Example ```php getAlliancesNames($allianceIds, $datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getAlliancesNames($allianceIds, $datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling AllianceApi->getAlliancesNames: ', $e->getMessage(), PHP_EOL; @@ -251,7 +271,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetAlliancesNames200Ok[]**](../Model/GetAlliancesNames200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetAlliancesNames200Ok[]**](../Model/GetAlliancesNames200Ok.md) ### Authorization diff --git a/docs/Api/AssetsApi.md b/docs/Api/AssetsApi.md index 8123e3f..4f7b93d 100644 --- a/docs/Api/AssetsApi.md +++ b/docs/Api/AssetsApi.md @@ -1,18 +1,23 @@ -# nullx27\ESI\AssetsApi +# nullx27ESI\AssetsApi All URIs are relative to *https://esi.tech.ccp.is/latest* Method | HTTP request | Description ------------- | ------------- | ------------- [**getCharactersCharacterIdAssets**](AssetsApi.md#getCharactersCharacterIdAssets) | **GET** /characters/{character_id}/assets/ | Get character assets +[**getCorporationsCorporationIdAssets**](AssetsApi.md#getCorporationsCorporationIdAssets) | **GET** /corporations/{corporation_id}/assets/ | Get corporation assets +[**postCharactersCharacterIdAssetsLocations**](AssetsApi.md#postCharactersCharacterIdAssetsLocations) | **POST** /characters/{character_id}/assets/locations/ | Get character asset locations +[**postCharactersCharacterIdAssetsNames**](AssetsApi.md#postCharactersCharacterIdAssetsNames) | **POST** /characters/{character_id}/assets/names/ | Get character asset names +[**postCorporationsCorporationIdAssetsLocations**](AssetsApi.md#postCorporationsCorporationIdAssetsLocations) | **POST** /corporations/{corporation_id}/assets/locations/ | Get corporation asset locations +[**postCorporationsCorporationIdAssetsNames**](AssetsApi.md#postCorporationsCorporationIdAssetsNames) | **POST** /corporations/{corporation_id}/assets/names/ | Get coporation asset names # **getCharactersCharacterIdAssets** -> \nullx27\ESI\Models\GetCharactersCharacterIdAssets200Ok[] getCharactersCharacterIdAssets($characterId, $datasource, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdAssets200Ok[] getCharactersCharacterIdAssets($characterId, $datasource, $page, $token, $userAgent, $xUserAgent) Get character assets -Return a list of the characters assets --- Alternate route: `/v1/characters/{character_id}/assets/` Alternate route: `/legacy/characters/{character_id}/assets/` Alternate route: `/dev/characters/{character_id}/assets/` --- This route is cached for up to 3600 seconds +Return a list of the characters assets --- Alternate route: `/dev/characters/{character_id}/assets/` Alternate route: `/v3/characters/{character_id}/assets/` --- This route is cached for up to 3600 seconds ### Example ```php @@ -20,17 +25,23 @@ Return a list of the characters assets --- Alternate route: `/v1/characters/{c require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); -$api_instance = new nullx27\ESI\Api\AssetsApi(); -$characterId = 56; // int | Character id of the target character +$apiInstance = new nullx27ESI\Api\AssetsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$page = 1; // int | Which page of results to return +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCharactersCharacterIdAssets($characterId, $datasource, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getCharactersCharacterIdAssets($characterId, $datasource, $page, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling AssetsApi->getCharactersCharacterIdAssets: ', $e->getMessage(), PHP_EOL; @@ -42,15 +53,331 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **characterId** | **int**| Character id of the target character | + **characterId** | **int**| An EVE character ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **page** | **int**| Which page of results to return | [optional] [default to 1] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetCharactersCharacterIdAssets200Ok[]**](../Model/GetCharactersCharacterIdAssets200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdAssets200Ok[]**](../Model/GetCharactersCharacterIdAssets200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCorporationsCorporationIdAssets** +> \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdAssets200Ok[] getCorporationsCorporationIdAssets($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) + +Get corporation assets + +Return a list of the corporation assets --- Alternate route: `/dev/corporations/{corporation_id}/assets/` Alternate route: `/v2/corporations/{corporation_id}/assets/` --- This route is cached for up to 3600 seconds --- Requires one of the following EVE corporation role(s): Director + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\AssetsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$corporationId = 56; // int | An EVE corporation ID +$datasource = "tranquility"; // string | The server name you would like data from +$page = 1; // int | Which page of results to return +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCorporationsCorporationIdAssets($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling AssetsApi->getCorporationsCorporationIdAssets: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **corporationId** | **int**| An EVE corporation ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **page** | **int**| Which page of results to return | [optional] [default to 1] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdAssets200Ok[]**](../Model/GetCorporationsCorporationIdAssets200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **postCharactersCharacterIdAssetsLocations** +> \nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdAssetsLocations200Ok[] postCharactersCharacterIdAssetsLocations($characterId, $itemIds, $datasource, $token, $userAgent, $xUserAgent) + +Get character asset locations + +Return locations for a set of item ids, which you can get from character assets endpoint. Coordinates for items in hangars or stations are set to (0,0,0) --- Alternate route: `/dev/characters/{character_id}/assets/locations/` Alternate route: `/v2/characters/{character_id}/assets/locations/` + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\AssetsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID +$itemIds = array(new \nullx27ESI\nullx27\ESI\Models\int[]()); // int[] | A list of item ids +$datasource = "tranquility"; // string | The server name you would like data from +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->postCharactersCharacterIdAssetsLocations($characterId, $itemIds, $datasource, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling AssetsApi->postCharactersCharacterIdAssetsLocations: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **characterId** | **int**| An EVE character ID | + **itemIds** | **int[]**| A list of item ids | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdAssetsLocations200Ok[]**](../Model/PostCharactersCharacterIdAssetsLocations200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **postCharactersCharacterIdAssetsNames** +> \nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdAssetsNames200Ok[] postCharactersCharacterIdAssetsNames($characterId, $itemIds, $datasource, $token, $userAgent, $xUserAgent) + +Get character asset names + +Return names for a set of item ids, which you can get from character assets endpoint. Typically used for items that can customize names, like containers or ships. --- Alternate route: `/dev/characters/{character_id}/assets/names/` Alternate route: `/legacy/characters/{character_id}/assets/names/` Alternate route: `/v1/characters/{character_id}/assets/names/` + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\AssetsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID +$itemIds = array(new \nullx27ESI\nullx27\ESI\Models\int[]()); // int[] | A list of item ids +$datasource = "tranquility"; // string | The server name you would like data from +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->postCharactersCharacterIdAssetsNames($characterId, $itemIds, $datasource, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling AssetsApi->postCharactersCharacterIdAssetsNames: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **characterId** | **int**| An EVE character ID | + **itemIds** | **int[]**| A list of item ids | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdAssetsNames200Ok[]**](../Model/PostCharactersCharacterIdAssetsNames200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **postCorporationsCorporationIdAssetsLocations** +> \nullx27ESI\nullx27\ESI\Models\PostCorporationsCorporationIdAssetsLocations200Ok[] postCorporationsCorporationIdAssetsLocations($corporationId, $itemIds, $datasource, $token, $userAgent, $xUserAgent) + +Get corporation asset locations + +Return locations for a set of item ids, which you can get from corporation assets endpoint. Coordinates for items in hangars or stations are set to (0,0,0) --- Alternate route: `/dev/corporations/{corporation_id}/assets/locations/` Alternate route: `/v2/corporations/{corporation_id}/assets/locations/` --- Requires one of the following EVE corporation role(s): Director + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\AssetsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$corporationId = 56; // int | An EVE corporation ID +$itemIds = array(new \nullx27ESI\nullx27\ESI\Models\int[]()); // int[] | A list of item ids +$datasource = "tranquility"; // string | The server name you would like data from +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->postCorporationsCorporationIdAssetsLocations($corporationId, $itemIds, $datasource, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling AssetsApi->postCorporationsCorporationIdAssetsLocations: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **corporationId** | **int**| An EVE corporation ID | + **itemIds** | **int[]**| A list of item ids | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\PostCorporationsCorporationIdAssetsLocations200Ok[]**](../Model/PostCorporationsCorporationIdAssetsLocations200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **postCorporationsCorporationIdAssetsNames** +> \nullx27ESI\nullx27\ESI\Models\PostCorporationsCorporationIdAssetsNames200Ok[] postCorporationsCorporationIdAssetsNames($corporationId, $itemIds, $datasource, $token, $userAgent, $xUserAgent) + +Get coporation asset names + +Return names for a set of item ids, which you can get from corporation assets endpoint. Only valid for items that can customize names, like containers or ships. --- Alternate route: `/dev/corporations/{corporation_id}/assets/names/` Alternate route: `/legacy/corporations/{corporation_id}/assets/names/` Alternate route: `/v1/corporations/{corporation_id}/assets/names/` --- Requires one of the following EVE corporation role(s): Director + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\AssetsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$corporationId = 56; // int | An EVE corporation ID +$itemIds = array(new \nullx27ESI\nullx27\ESI\Models\int[]()); // int[] | A list of item ids +$datasource = "tranquility"; // string | The server name you would like data from +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->postCorporationsCorporationIdAssetsNames($corporationId, $itemIds, $datasource, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling AssetsApi->postCorporationsCorporationIdAssetsNames: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **corporationId** | **int**| An EVE corporation ID | + **itemIds** | **int[]**| A list of item ids | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\PostCorporationsCorporationIdAssetsNames200Ok[]**](../Model/PostCorporationsCorporationIdAssetsNames200Ok.md) ### Authorization diff --git a/docs/Api/BookmarksApi.md b/docs/Api/BookmarksApi.md index 24439b1..97d41a7 100644 --- a/docs/Api/BookmarksApi.md +++ b/docs/Api/BookmarksApi.md @@ -1,4 +1,4 @@ -# nullx27\ESI\BookmarksApi +# nullx27ESI\BookmarksApi All URIs are relative to *https://esi.tech.ccp.is/latest* @@ -6,14 +6,16 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**getCharactersCharacterIdBookmarks**](BookmarksApi.md#getCharactersCharacterIdBookmarks) | **GET** /characters/{character_id}/bookmarks/ | List bookmarks [**getCharactersCharacterIdBookmarksFolders**](BookmarksApi.md#getCharactersCharacterIdBookmarksFolders) | **GET** /characters/{character_id}/bookmarks/folders/ | List bookmark folders +[**getCorporationsCorporationIdBookmarks**](BookmarksApi.md#getCorporationsCorporationIdBookmarks) | **GET** /corporations/{corporation_id}/bookmarks/ | List corporation bookmarks +[**getCorporationsCorporationIdBookmarksFolders**](BookmarksApi.md#getCorporationsCorporationIdBookmarksFolders) | **GET** /corporations/{corporation_id}/bookmarks/folders/ | List corporation bookmark folders # **getCharactersCharacterIdBookmarks** -> \nullx27\ESI\Models\GetCharactersCharacterIdBookmarks200Ok[] getCharactersCharacterIdBookmarks($characterId, $datasource, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdBookmarks200Ok[] getCharactersCharacterIdBookmarks($characterId, $datasource, $page, $token, $userAgent, $xUserAgent) List bookmarks -List your character's personal bookmarks --- Alternate route: `/v1/characters/{character_id}/bookmarks/` Alternate route: `/legacy/characters/{character_id}/bookmarks/` Alternate route: `/dev/characters/{character_id}/bookmarks/` --- This route is cached for up to 3600 seconds +A list of your character's personal bookmarks --- Alternate route: `/dev/characters/{character_id}/bookmarks/` Alternate route: `/v2/characters/{character_id}/bookmarks/` --- This route is cached for up to 3600 seconds ### Example ```php @@ -21,17 +23,23 @@ List your character's personal bookmarks --- Alternate route: `/v1/characters/ require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\BookmarksApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\BookmarksApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $characterId = 56; // int | An EVE character ID $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$page = 1; // int | Which page of results to return +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCharactersCharacterIdBookmarks($characterId, $datasource, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getCharactersCharacterIdBookmarks($characterId, $datasource, $page, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling BookmarksApi->getCharactersCharacterIdBookmarks: ', $e->getMessage(), PHP_EOL; @@ -45,13 +53,14 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **characterId** | **int**| An EVE character ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **page** | **int**| Which page of results to return | [optional] [default to 1] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetCharactersCharacterIdBookmarks200Ok[]**](../Model/GetCharactersCharacterIdBookmarks200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdBookmarks200Ok[]**](../Model/GetCharactersCharacterIdBookmarks200Ok.md) ### Authorization @@ -65,11 +74,11 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getCharactersCharacterIdBookmarksFolders** -> \nullx27\ESI\Models\GetCharactersCharacterIdBookmarksFolders200Ok[] getCharactersCharacterIdBookmarksFolders($characterId, $datasource, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdBookmarksFolders200Ok[] getCharactersCharacterIdBookmarksFolders($characterId, $datasource, $page, $token, $userAgent, $xUserAgent) List bookmark folders -List your character's personal bookmark folders --- Alternate route: `/v1/characters/{character_id}/bookmarks/folders/` Alternate route: `/legacy/characters/{character_id}/bookmarks/folders/` Alternate route: `/dev/characters/{character_id}/bookmarks/folders/` --- This route is cached for up to 3600 seconds +A list of your character's personal bookmark folders --- Alternate route: `/dev/characters/{character_id}/bookmarks/folders/` Alternate route: `/v2/characters/{character_id}/bookmarks/folders/` --- This route is cached for up to 3600 seconds ### Example ```php @@ -77,17 +86,23 @@ List your character's personal bookmark folders --- Alternate route: `/v1/char require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\BookmarksApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\BookmarksApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $characterId = 56; // int | An EVE character ID $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$page = 1; // int | Which page of results to return +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCharactersCharacterIdBookmarksFolders($characterId, $datasource, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getCharactersCharacterIdBookmarksFolders($characterId, $datasource, $page, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling BookmarksApi->getCharactersCharacterIdBookmarksFolders: ', $e->getMessage(), PHP_EOL; @@ -101,13 +116,140 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **characterId** | **int**| An EVE character ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **page** | **int**| Which page of results to return | [optional] [default to 1] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdBookmarksFolders200Ok[]**](../Model/GetCharactersCharacterIdBookmarksFolders200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCorporationsCorporationIdBookmarks** +> \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdBookmarks200Ok[] getCorporationsCorporationIdBookmarks($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) + +List corporation bookmarks + +A list of your corporation's bookmarks --- Alternate route: `/dev/corporations/{corporation_id}/bookmarks/` Alternate route: `/legacy/corporations/{corporation_id}/bookmarks/` Alternate route: `/v1/corporations/{corporation_id}/bookmarks/` --- This route is cached for up to 3600 seconds + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\BookmarksApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$corporationId = 56; // int | An EVE corporation ID +$datasource = "tranquility"; // string | The server name you would like data from +$page = 1; // int | Which page of results to return +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCorporationsCorporationIdBookmarks($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling BookmarksApi->getCorporationsCorporationIdBookmarks: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **corporationId** | **int**| An EVE corporation ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **page** | **int**| Which page of results to return | [optional] [default to 1] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdBookmarks200Ok[]**](../Model/GetCorporationsCorporationIdBookmarks200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCorporationsCorporationIdBookmarksFolders** +> \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdBookmarksFolders200Ok[] getCorporationsCorporationIdBookmarksFolders($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) + +List corporation bookmark folders + +A list of your corporation's bookmark folders --- Alternate route: `/dev/corporations/{corporation_id}/bookmarks/folders/` Alternate route: `/legacy/corporations/{corporation_id}/bookmarks/folders/` Alternate route: `/v1/corporations/{corporation_id}/bookmarks/folders/` --- This route is cached for up to 3600 seconds + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\BookmarksApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$corporationId = 56; // int | An EVE corporation ID +$datasource = "tranquility"; // string | The server name you would like data from +$page = 1; // int | Which page of results to return +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCorporationsCorporationIdBookmarksFolders($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling BookmarksApi->getCorporationsCorporationIdBookmarksFolders: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **corporationId** | **int**| An EVE corporation ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **page** | **int**| Which page of results to return | [optional] [default to 1] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetCharactersCharacterIdBookmarksFolders200Ok[]**](../Model/GetCharactersCharacterIdBookmarksFolders200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdBookmarksFolders200Ok[]**](../Model/GetCorporationsCorporationIdBookmarksFolders200Ok.md) ### Authorization diff --git a/docs/Api/CalendarApi.md b/docs/Api/CalendarApi.md index 1313af7..378a8a1 100644 --- a/docs/Api/CalendarApi.md +++ b/docs/Api/CalendarApi.md @@ -1,4 +1,4 @@ -# nullx27\ESI\CalendarApi +# nullx27ESI\CalendarApi All URIs are relative to *https://esi.tech.ccp.is/latest* @@ -6,15 +6,16 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**getCharactersCharacterIdCalendar**](CalendarApi.md#getCharactersCharacterIdCalendar) | **GET** /characters/{character_id}/calendar/ | List calendar event summaries [**getCharactersCharacterIdCalendarEventId**](CalendarApi.md#getCharactersCharacterIdCalendarEventId) | **GET** /characters/{character_id}/calendar/{event_id}/ | Get an event +[**getCharactersCharacterIdCalendarEventIdAttendees**](CalendarApi.md#getCharactersCharacterIdCalendarEventIdAttendees) | **GET** /characters/{character_id}/calendar/{event_id}/attendees/ | Get attendees [**putCharactersCharacterIdCalendarEventId**](CalendarApi.md#putCharactersCharacterIdCalendarEventId) | **PUT** /characters/{character_id}/calendar/{event_id}/ | Respond to an event # **getCharactersCharacterIdCalendar** -> \nullx27\ESI\Models\GetCharactersCharacterIdCalendar200Ok[] getCharactersCharacterIdCalendar($characterId, $datasource, $fromEvent, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdCalendar200Ok[] getCharactersCharacterIdCalendar($characterId, $datasource, $fromEvent, $token, $userAgent, $xUserAgent) List calendar event summaries -Get 50 event summaries from the calendar. If no event ID is given, the resource will return the next 50 chronological event summaries from now. If an event ID is specified, it will return the next 50 chronological event summaries from after that event. --- Alternate route: `/v1/characters/{character_id}/calendar/` Alternate route: `/legacy/characters/{character_id}/calendar/` Alternate route: `/dev/characters/{character_id}/calendar/` --- This route is cached for up to 5 seconds +Get 50 event summaries from the calendar. If no from_event ID is given, the resource will return the next 50 chronological event summaries from now. If a from_event ID is specified, it will return the next 50 chronological event summaries from after that event. --- Alternate route: `/dev/characters/{character_id}/calendar/` Alternate route: `/legacy/characters/{character_id}/calendar/` Alternate route: `/v1/characters/{character_id}/calendar/` --- This route is cached for up to 5 seconds ### Example ```php @@ -22,18 +23,23 @@ Get 50 event summaries from the calendar. If no event ID is given, the resource require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\CalendarApi(); -$characterId = 56; // int | The character to retrieve events from +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\CalendarApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID $datasource = "tranquility"; // string | The server name you would like data from $fromEvent = 56; // int | The event ID to retrieve events from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCharactersCharacterIdCalendar($characterId, $datasource, $fromEvent, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getCharactersCharacterIdCalendar($characterId, $datasource, $fromEvent, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling CalendarApi->getCharactersCharacterIdCalendar: ', $e->getMessage(), PHP_EOL; @@ -45,16 +51,16 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **characterId** | **int**| The character to retrieve events from | + **characterId** | **int**| An EVE character ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] **fromEvent** | **int**| The event ID to retrieve events from | [optional] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetCharactersCharacterIdCalendar200Ok[]**](../Model/GetCharactersCharacterIdCalendar200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdCalendar200Ok[]**](../Model/GetCharactersCharacterIdCalendar200Ok.md) ### Authorization @@ -68,11 +74,11 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getCharactersCharacterIdCalendarEventId** -> \nullx27\ESI\Models\GetCharactersCharacterIdCalendarEventIdOk getCharactersCharacterIdCalendarEventId($characterId, $eventId, $datasource, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdCalendarEventIdOk getCharactersCharacterIdCalendarEventId($characterId, $eventId, $datasource, $token, $userAgent, $xUserAgent) Get an event -Get all the information for a specific event --- Alternate route: `/v3/characters/{character_id}/calendar/{event_id}/` Alternate route: `/dev/characters/{character_id}/calendar/{event_id}/` --- This route is cached for up to 5 seconds +Get all the information for a specific event --- Alternate route: `/dev/characters/{character_id}/calendar/{event_id}/` Alternate route: `/v3/characters/{character_id}/calendar/{event_id}/` --- This route is cached for up to 5 seconds ### Example ```php @@ -80,18 +86,23 @@ Get all the information for a specific event --- Alternate route: `/v3/charact require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\CalendarApi(); -$characterId = 56; // int | The character id requesting the event +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\CalendarApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID $eventId = 56; // int | The id of the event requested $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCharactersCharacterIdCalendarEventId($characterId, $eventId, $datasource, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getCharactersCharacterIdCalendarEventId($characterId, $eventId, $datasource, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling CalendarApi->getCharactersCharacterIdCalendarEventId: ', $e->getMessage(), PHP_EOL; @@ -103,16 +114,79 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **characterId** | **int**| The character id requesting the event | + **characterId** | **int**| An EVE character ID | **eventId** | **int**| The id of the event requested | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetCharactersCharacterIdCalendarEventIdOk**](../Model/GetCharactersCharacterIdCalendarEventIdOk.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdCalendarEventIdOk**](../Model/GetCharactersCharacterIdCalendarEventIdOk.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCharactersCharacterIdCalendarEventIdAttendees** +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdCalendarEventIdAttendees200Ok[] getCharactersCharacterIdCalendarEventIdAttendees($characterId, $eventId, $datasource, $token, $userAgent, $xUserAgent) + +Get attendees + +Get all invited attendees for a given event --- Alternate route: `/dev/characters/{character_id}/calendar/{event_id}/attendees/` Alternate route: `/legacy/characters/{character_id}/calendar/{event_id}/attendees/` Alternate route: `/v1/characters/{character_id}/calendar/{event_id}/attendees/` --- This route is cached for up to 600 seconds + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\CalendarApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID +$eventId = 56; // int | The id of the event requested +$datasource = "tranquility"; // string | The server name you would like data from +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCharactersCharacterIdCalendarEventIdAttendees($characterId, $eventId, $datasource, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling CalendarApi->getCharactersCharacterIdCalendarEventIdAttendees: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **characterId** | **int**| An EVE character ID | + **eventId** | **int**| The id of the event requested | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdCalendarEventIdAttendees200Ok[]**](../Model/GetCharactersCharacterIdCalendarEventIdAttendees200Ok.md) ### Authorization @@ -130,7 +204,7 @@ Name | Type | Description | Notes Respond to an event -Set your response status to an event --- Alternate route: `/v3/characters/{character_id}/calendar/{event_id}/` Alternate route: `/dev/characters/{character_id}/calendar/{event_id}/` +Set your response status to an event --- Alternate route: `/dev/characters/{character_id}/calendar/{event_id}/` Alternate route: `/v3/characters/{character_id}/calendar/{event_id}/` ### Example ```php @@ -138,19 +212,24 @@ Set your response status to an event --- Alternate route: `/v3/characters/{cha require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\CalendarApi(); -$characterId = 56; // int | The character ID requesting the event +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\CalendarApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID $eventId = 56; // int | The ID of the event requested -$response = new \nullx27\ESI\Models\PutCharactersCharacterIdCalendarEventIdResponse(); // \nullx27\ESI\Models\PutCharactersCharacterIdCalendarEventIdResponse | The response value to set, overriding current value. +$response = new \nullx27ESI\nullx27\ESI\Models\PutCharactersCharacterIdCalendarEventIdResponse(); // \nullx27ESI\nullx27\ESI\Models\PutCharactersCharacterIdCalendarEventIdResponse | The response value to set, overriding current value. $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $api_instance->putCharactersCharacterIdCalendarEventId($characterId, $eventId, $response, $datasource, $token, $userAgent, $xUserAgent); + $apiInstance->putCharactersCharacterIdCalendarEventId($characterId, $eventId, $response, $datasource, $token, $userAgent, $xUserAgent); } catch (Exception $e) { echo 'Exception when calling CalendarApi->putCharactersCharacterIdCalendarEventId: ', $e->getMessage(), PHP_EOL; } @@ -161,11 +240,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **characterId** | **int**| The character ID requesting the event | + **characterId** | **int**| An EVE character ID | **eventId** | **int**| The ID of the event requested | - **response** | [**\nullx27\ESI\Models\PutCharactersCharacterIdCalendarEventIdResponse**](../Model/\nullx27\ESI\Models\PutCharactersCharacterIdCalendarEventIdResponse.md)| The response value to set, overriding current value. | + **response** | [**\nullx27ESI\nullx27\ESI\Models\PutCharactersCharacterIdCalendarEventIdResponse**](../Model/PutCharactersCharacterIdCalendarEventIdResponse.md)| The response value to set, overriding current value. | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] diff --git a/docs/Api/CharacterApi.md b/docs/Api/CharacterApi.md index ef8f3b1..2f2bbbf 100644 --- a/docs/Api/CharacterApi.md +++ b/docs/Api/CharacterApi.md @@ -1,4 +1,4 @@ -# nullx27\ESI\CharacterApi +# nullx27ESI\CharacterApi All URIs are relative to *https://esi.tech.ccp.is/latest* @@ -9,35 +9,44 @@ Method | HTTP request | Description [**getCharactersCharacterIdBlueprints**](CharacterApi.md#getCharactersCharacterIdBlueprints) | **GET** /characters/{character_id}/blueprints/ | Get blueprints [**getCharactersCharacterIdChatChannels**](CharacterApi.md#getCharactersCharacterIdChatChannels) | **GET** /characters/{character_id}/chat_channels/ | Get chat channels [**getCharactersCharacterIdCorporationhistory**](CharacterApi.md#getCharactersCharacterIdCorporationhistory) | **GET** /characters/{character_id}/corporationhistory/ | Get corporation history +[**getCharactersCharacterIdFatigue**](CharacterApi.md#getCharactersCharacterIdFatigue) | **GET** /characters/{character_id}/fatigue/ | Get jump fatigue [**getCharactersCharacterIdMedals**](CharacterApi.md#getCharactersCharacterIdMedals) | **GET** /characters/{character_id}/medals/ | Get medals +[**getCharactersCharacterIdNotifications**](CharacterApi.md#getCharactersCharacterIdNotifications) | **GET** /characters/{character_id}/notifications/ | Get character notifications +[**getCharactersCharacterIdNotificationsContacts**](CharacterApi.md#getCharactersCharacterIdNotificationsContacts) | **GET** /characters/{character_id}/notifications/contacts/ | Get new contact notifications [**getCharactersCharacterIdPortrait**](CharacterApi.md#getCharactersCharacterIdPortrait) | **GET** /characters/{character_id}/portrait/ | Get character portraits [**getCharactersCharacterIdRoles**](CharacterApi.md#getCharactersCharacterIdRoles) | **GET** /characters/{character_id}/roles/ | Get character corporation roles [**getCharactersCharacterIdStandings**](CharacterApi.md#getCharactersCharacterIdStandings) | **GET** /characters/{character_id}/standings/ | Get standings +[**getCharactersCharacterIdStats**](CharacterApi.md#getCharactersCharacterIdStats) | **GET** /characters/{character_id}/stats/ | Yearly aggregate stats +[**getCharactersCharacterIdTitles**](CharacterApi.md#getCharactersCharacterIdTitles) | **GET** /characters/{character_id}/titles/ | Get character corporation titles [**getCharactersNames**](CharacterApi.md#getCharactersNames) | **GET** /characters/names/ | Get character names [**postCharactersAffiliation**](CharacterApi.md#postCharactersAffiliation) | **POST** /characters/affiliation/ | Character affiliation [**postCharactersCharacterIdCspa**](CharacterApi.md#postCharactersCharacterIdCspa) | **POST** /characters/{character_id}/cspa/ | Calculate a CSPA charge cost # **getCharactersCharacterId** -> \nullx27\ESI\Models\GetCharactersCharacterIdOk getCharactersCharacterId($characterId, $datasource, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdOk getCharactersCharacterId($characterId, $datasource, $userAgent, $xUserAgent) Get character's public information -Public information about a character --- Alternate route: `/v4/characters/{character_id}/` Alternate route: `/dev/characters/{character_id}/` --- This route is cached for up to 3600 seconds +Public information about a character --- Alternate route: `/dev/characters/{character_id}/` Alternate route: `/v4/characters/{character_id}/` --- This route is cached for up to 3600 seconds ### Example ```php getCharactersCharacterId($characterId, $datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getCharactersCharacterId($characterId, $datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling CharacterApi->getCharactersCharacterId: ', $e->getMessage(), PHP_EOL; @@ -56,7 +65,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetCharactersCharacterIdOk**](../Model/GetCharactersCharacterIdOk.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdOk**](../Model/GetCharactersCharacterIdOk.md) ### Authorization @@ -70,11 +79,11 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getCharactersCharacterIdAgentsResearch** -> \nullx27\ESI\Models\GetCharactersCharacterIdAgentsResearch200Ok[] getCharactersCharacterIdAgentsResearch($characterId, $datasource, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdAgentsResearch200Ok[] getCharactersCharacterIdAgentsResearch($characterId, $datasource, $token, $userAgent, $xUserAgent) Get agents research -Return a list of agents research information for a character. The formula for finding the current research points with an agent is: currentPoints = remainderPoints + pointsPerDay * days(currentTime - researchStartDate) --- Alternate route: `/v1/characters/{character_id}/agents_research/` Alternate route: `/legacy/characters/{character_id}/agents_research/` Alternate route: `/dev/characters/{character_id}/agents_research/` --- This route is cached for up to 3600 seconds +Return a list of agents research information for a character. The formula for finding the current research points with an agent is: currentPoints = remainderPoints + pointsPerDay * days(currentTime - researchStartDate) --- Alternate route: `/dev/characters/{character_id}/agents_research/` Alternate route: `/legacy/characters/{character_id}/agents_research/` Alternate route: `/v1/characters/{character_id}/agents_research/` --- This route is cached for up to 3600 seconds ### Example ```php @@ -82,17 +91,22 @@ Return a list of agents research information for a character. The formula for fi require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\CharacterApi(); -$characterId = 56; // int | ID for a character +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\CharacterApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCharactersCharacterIdAgentsResearch($characterId, $datasource, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getCharactersCharacterIdAgentsResearch($characterId, $datasource, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling CharacterApi->getCharactersCharacterIdAgentsResearch: ', $e->getMessage(), PHP_EOL; @@ -104,15 +118,15 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **characterId** | **int**| ID for a character | + **characterId** | **int**| An EVE character ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetCharactersCharacterIdAgentsResearch200Ok[]**](../Model/GetCharactersCharacterIdAgentsResearch200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdAgentsResearch200Ok[]**](../Model/GetCharactersCharacterIdAgentsResearch200Ok.md) ### Authorization @@ -126,11 +140,11 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getCharactersCharacterIdBlueprints** -> \nullx27\ESI\Models\GetCharactersCharacterIdBlueprints200Ok[] getCharactersCharacterIdBlueprints($characterId, $datasource, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdBlueprints200Ok[] getCharactersCharacterIdBlueprints($characterId, $datasource, $page, $token, $userAgent, $xUserAgent) Get blueprints -Return a list of blueprints the character has --- Alternate route: `/v1/characters/{character_id}/blueprints/` Alternate route: `/legacy/characters/{character_id}/blueprints/` Alternate route: `/dev/characters/{character_id}/blueprints/` --- This route is cached for up to 3600 seconds +Return a list of blueprints the character owns --- Alternate route: `/dev/characters/{character_id}/blueprints/` Alternate route: `/v2/characters/{character_id}/blueprints/` --- This route is cached for up to 3600 seconds ### Example ```php @@ -138,17 +152,23 @@ Return a list of blueprints the character has --- Alternate route: `/v1/charac require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\CharacterApi(); -$characterId = 56; // int | ID for a character +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\CharacterApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$page = 1; // int | Which page of results to return +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCharactersCharacterIdBlueprints($characterId, $datasource, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getCharactersCharacterIdBlueprints($characterId, $datasource, $page, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling CharacterApi->getCharactersCharacterIdBlueprints: ', $e->getMessage(), PHP_EOL; @@ -160,15 +180,16 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **characterId** | **int**| ID for a character | + **characterId** | **int**| An EVE character ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **page** | **int**| Which page of results to return | [optional] [default to 1] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetCharactersCharacterIdBlueprints200Ok[]**](../Model/GetCharactersCharacterIdBlueprints200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdBlueprints200Ok[]**](../Model/GetCharactersCharacterIdBlueprints200Ok.md) ### Authorization @@ -182,11 +203,11 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getCharactersCharacterIdChatChannels** -> \nullx27\ESI\Models\GetCharactersCharacterIdChatChannels200Ok[] getCharactersCharacterIdChatChannels($characterId, $datasource, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdChatChannels200Ok[] getCharactersCharacterIdChatChannels($characterId, $datasource, $token, $userAgent, $xUserAgent) Get chat channels -Return chat channels that a character is the owner or an operator of --- Alternate route: `/v1/characters/{character_id}/chat_channels/` Alternate route: `/legacy/characters/{character_id}/chat_channels/` Alternate route: `/dev/characters/{character_id}/chat_channels/` --- This route is cached for up to 300 seconds +Return chat channels that a character is the owner or operator of --- Alternate route: `/dev/characters/{character_id}/chat_channels/` Alternate route: `/legacy/characters/{character_id}/chat_channels/` Alternate route: `/v1/characters/{character_id}/chat_channels/` --- This route is cached for up to 300 seconds ### Example ```php @@ -194,17 +215,22 @@ Return chat channels that a character is the owner or an operator of --- Alter require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\CharacterApi(); -$characterId = 56; // int | ID for a character +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\CharacterApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCharactersCharacterIdChatChannels($characterId, $datasource, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getCharactersCharacterIdChatChannels($characterId, $datasource, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling CharacterApi->getCharactersCharacterIdChatChannels: ', $e->getMessage(), PHP_EOL; @@ -216,15 +242,15 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **characterId** | **int**| ID for a character | + **characterId** | **int**| An EVE character ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetCharactersCharacterIdChatChannels200Ok[]**](../Model/GetCharactersCharacterIdChatChannels200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdChatChannels200Ok[]**](../Model/GetCharactersCharacterIdChatChannels200Ok.md) ### Authorization @@ -238,25 +264,29 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getCharactersCharacterIdCorporationhistory** -> \nullx27\ESI\Models\GetCharactersCharacterIdCorporationhistory200Ok[] getCharactersCharacterIdCorporationhistory($characterId, $datasource, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdCorporationhistory200Ok[] getCharactersCharacterIdCorporationhistory($characterId, $datasource, $userAgent, $xUserAgent) Get corporation history -Get a list of all the corporations a character has been a member of --- Alternate route: `/v1/characters/{character_id}/corporationhistory/` Alternate route: `/legacy/characters/{character_id}/corporationhistory/` Alternate route: `/dev/characters/{character_id}/corporationhistory/` --- This route is cached for up to 3600 seconds +Get a list of all the corporations a character has been a member of --- Alternate route: `/dev/characters/{character_id}/corporationhistory/` Alternate route: `/legacy/characters/{character_id}/corporationhistory/` Alternate route: `/v1/characters/{character_id}/corporationhistory/` --- This route is cached for up to 3600 seconds ### Example ```php getCharactersCharacterIdCorporationhistory($characterId, $datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getCharactersCharacterIdCorporationhistory($characterId, $datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling CharacterApi->getCharactersCharacterIdCorporationhistory: ', $e->getMessage(), PHP_EOL; @@ -275,7 +305,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetCharactersCharacterIdCorporationhistory200Ok[]**](../Model/GetCharactersCharacterIdCorporationhistory200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdCorporationhistory200Ok[]**](../Model/GetCharactersCharacterIdCorporationhistory200Ok.md) ### Authorization @@ -288,12 +318,73 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) +# **getCharactersCharacterIdFatigue** +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFatigueOk getCharactersCharacterIdFatigue($characterId, $datasource, $token, $userAgent, $xUserAgent) + +Get jump fatigue + +Return a character's jump activation and fatigue information --- Alternate route: `/dev/characters/{character_id}/fatigue/` Alternate route: `/legacy/characters/{character_id}/fatigue/` Alternate route: `/v1/characters/{character_id}/fatigue/` --- This route is cached for up to 300 seconds + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\CharacterApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID +$datasource = "tranquility"; // string | The server name you would like data from +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCharactersCharacterIdFatigue($characterId, $datasource, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling CharacterApi->getCharactersCharacterIdFatigue: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **characterId** | **int**| An EVE character ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFatigueOk**](../Model/GetCharactersCharacterIdFatigueOk.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + # **getCharactersCharacterIdMedals** -> \nullx27\ESI\Models\GetCharactersCharacterIdMedals200Ok[] getCharactersCharacterIdMedals($characterId, $datasource, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMedals200Ok[] getCharactersCharacterIdMedals($characterId, $datasource, $token, $userAgent, $xUserAgent) Get medals -Return a list of medals the character has --- Alternate route: `/v1/characters/{character_id}/medals/` Alternate route: `/legacy/characters/{character_id}/medals/` Alternate route: `/dev/characters/{character_id}/medals/` --- This route is cached for up to 3600 seconds +Return a list of medals the character has --- Alternate route: `/dev/characters/{character_id}/medals/` Alternate route: `/legacy/characters/{character_id}/medals/` Alternate route: `/v1/characters/{character_id}/medals/` --- This route is cached for up to 3600 seconds ### Example ```php @@ -301,17 +392,22 @@ Return a list of medals the character has --- Alternate route: `/v1/characters require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\CharacterApi(); -$characterId = 56; // int | ID for a character +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\CharacterApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCharactersCharacterIdMedals($characterId, $datasource, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getCharactersCharacterIdMedals($characterId, $datasource, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling CharacterApi->getCharactersCharacterIdMedals: ', $e->getMessage(), PHP_EOL; @@ -323,15 +419,137 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **characterId** | **int**| ID for a character | + **characterId** | **int**| An EVE character ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMedals200Ok[]**](../Model/GetCharactersCharacterIdMedals200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCharactersCharacterIdNotifications** +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdNotifications200Ok[] getCharactersCharacterIdNotifications($characterId, $datasource, $token, $userAgent, $xUserAgent) + +Get character notifications + +Return character notifications --- Alternate route: `/dev/characters/{character_id}/notifications/` Alternate route: `/legacy/characters/{character_id}/notifications/` Alternate route: `/v1/characters/{character_id}/notifications/` --- This route is cached for up to 600 seconds + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\CharacterApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID +$datasource = "tranquility"; // string | The server name you would like data from +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCharactersCharacterIdNotifications($characterId, $datasource, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling CharacterApi->getCharactersCharacterIdNotifications: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **characterId** | **int**| An EVE character ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetCharactersCharacterIdMedals200Ok[]**](../Model/GetCharactersCharacterIdMedals200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdNotifications200Ok[]**](../Model/GetCharactersCharacterIdNotifications200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCharactersCharacterIdNotificationsContacts** +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdNotificationsContacts200Ok[] getCharactersCharacterIdNotificationsContacts($characterId, $datasource, $token, $userAgent, $xUserAgent) + +Get new contact notifications + +Return notifications about having been added to someone's contact list --- Alternate route: `/dev/characters/{character_id}/notifications/contacts/` Alternate route: `/legacy/characters/{character_id}/notifications/contacts/` Alternate route: `/v1/characters/{character_id}/notifications/contacts/` --- This route is cached for up to 600 seconds + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\CharacterApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID +$datasource = "tranquility"; // string | The server name you would like data from +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCharactersCharacterIdNotificationsContacts($characterId, $datasource, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling CharacterApi->getCharactersCharacterIdNotificationsContacts: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **characterId** | **int**| An EVE character ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdNotificationsContacts200Ok[]**](../Model/GetCharactersCharacterIdNotificationsContacts200Ok.md) ### Authorization @@ -345,25 +563,29 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getCharactersCharacterIdPortrait** -> \nullx27\ESI\Models\GetCharactersCharacterIdPortraitOk getCharactersCharacterIdPortrait($characterId, $datasource, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPortraitOk getCharactersCharacterIdPortrait($characterId, $datasource, $userAgent, $xUserAgent) Get character portraits -Get portrait urls for a character --- Alternate route: `/v2/characters/{character_id}/portrait/` Alternate route: `/dev/characters/{character_id}/portrait/` --- This route is cached for up to 3600 seconds +Get portrait urls for a character --- Alternate route: `/dev/characters/{character_id}/portrait/` Alternate route: `/v2/characters/{character_id}/portrait/` --- This route is cached for up to 3600 seconds ### Example ```php getCharactersCharacterIdPortrait($characterId, $datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getCharactersCharacterIdPortrait($characterId, $datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling CharacterApi->getCharactersCharacterIdPortrait: ', $e->getMessage(), PHP_EOL; @@ -382,7 +604,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetCharactersCharacterIdPortraitOk**](../Model/GetCharactersCharacterIdPortraitOk.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPortraitOk**](../Model/GetCharactersCharacterIdPortraitOk.md) ### Authorization @@ -396,11 +618,11 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getCharactersCharacterIdRoles** -> string[] getCharactersCharacterIdRoles($characterId, $datasource, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdRolesOk getCharactersCharacterIdRoles($characterId, $datasource, $token, $userAgent, $xUserAgent) Get character corporation roles -Returns a character's corporation roles --- Alternate route: `/v1/characters/{character_id}/roles/` Alternate route: `/legacy/characters/{character_id}/roles/` Alternate route: `/dev/characters/{character_id}/roles/` --- This route is cached for up to 3600 seconds +Returns a character's corporation roles --- Alternate route: `/dev/characters/{character_id}/roles/` Alternate route: `/v2/characters/{character_id}/roles/` --- This route is cached for up to 3600 seconds ### Example ```php @@ -408,17 +630,22 @@ Returns a character's corporation roles --- Alternate route: `/v1/characters/{ require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\CharacterApi(); -$characterId = 56; // int | A character ID +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\CharacterApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCharactersCharacterIdRoles($characterId, $datasource, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getCharactersCharacterIdRoles($characterId, $datasource, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling CharacterApi->getCharactersCharacterIdRoles: ', $e->getMessage(), PHP_EOL; @@ -430,15 +657,15 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **characterId** | **int**| A character ID | + **characterId** | **int**| An EVE character ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -**string[]** +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdRolesOk**](../Model/GetCharactersCharacterIdRolesOk.md) ### Authorization @@ -452,11 +679,11 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getCharactersCharacterIdStandings** -> \nullx27\ESI\Models\GetCharactersCharacterIdStandings200Ok[] getCharactersCharacterIdStandings($characterId, $datasource, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStandings200Ok[] getCharactersCharacterIdStandings($characterId, $datasource, $token, $userAgent, $xUserAgent) Get standings -Return character standings from agents, NPC corporations, and factions --- Alternate route: `/v1/characters/{character_id}/standings/` Alternate route: `/legacy/characters/{character_id}/standings/` Alternate route: `/dev/characters/{character_id}/standings/` --- This route is cached for up to 3600 seconds +Return character standings from agents, NPC corporations, and factions --- Alternate route: `/dev/characters/{character_id}/standings/` Alternate route: `/legacy/characters/{character_id}/standings/` Alternate route: `/v1/characters/{character_id}/standings/` --- This route is cached for up to 3600 seconds ### Example ```php @@ -464,17 +691,22 @@ Return character standings from agents, NPC corporations, and factions --- Alt require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\CharacterApi(); -$characterId = 56; // int | ID for a character +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\CharacterApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCharactersCharacterIdStandings($characterId, $datasource, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getCharactersCharacterIdStandings($characterId, $datasource, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling CharacterApi->getCharactersCharacterIdStandings: ', $e->getMessage(), PHP_EOL; @@ -486,15 +718,137 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **characterId** | **int**| ID for a character | + **characterId** | **int**| An EVE character ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetCharactersCharacterIdStandings200Ok[]**](../Model/GetCharactersCharacterIdStandings200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStandings200Ok[]**](../Model/GetCharactersCharacterIdStandings200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCharactersCharacterIdStats** +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStats200Ok[] getCharactersCharacterIdStats($characterId, $datasource, $token, $userAgent, $xUserAgent) + +Yearly aggregate stats + +Returns aggregate yearly stats for a character --- Alternate route: `/dev/characters/{character_id}/stats/` Alternate route: `/v2/characters/{character_id}/stats/` --- This route is cached for up to 86400 seconds + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\CharacterApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID +$datasource = "tranquility"; // string | The server name you would like data from +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCharactersCharacterIdStats($characterId, $datasource, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling CharacterApi->getCharactersCharacterIdStats: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **characterId** | **int**| An EVE character ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStats200Ok[]**](../Model/GetCharactersCharacterIdStats200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCharactersCharacterIdTitles** +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdTitles200Ok[] getCharactersCharacterIdTitles($characterId, $datasource, $token, $userAgent, $xUserAgent) + +Get character corporation titles + +Returns a character's titles --- Alternate route: `/dev/characters/{character_id}/titles/` Alternate route: `/legacy/characters/{character_id}/titles/` Alternate route: `/v1/characters/{character_id}/titles/` --- This route is cached for up to 3600 seconds + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\CharacterApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID +$datasource = "tranquility"; // string | The server name you would like data from +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCharactersCharacterIdTitles($characterId, $datasource, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling CharacterApi->getCharactersCharacterIdTitles: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **characterId** | **int**| An EVE character ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdTitles200Ok[]**](../Model/GetCharactersCharacterIdTitles200Ok.md) ### Authorization @@ -508,25 +862,29 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getCharactersNames** -> \nullx27\ESI\Models\GetCharactersNames200Ok[] getCharactersNames($characterIds, $datasource, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCharactersNames200Ok[] getCharactersNames($characterIds, $datasource, $userAgent, $xUserAgent) Get character names -Resolve a set of character IDs to character names --- Alternate route: `/v1/characters/names/` Alternate route: `/legacy/characters/names/` Alternate route: `/dev/characters/names/` --- This route is cached for up to 3600 seconds +Resolve a set of character IDs to character names --- Alternate route: `/dev/characters/names/` Alternate route: `/legacy/characters/names/` Alternate route: `/v1/characters/names/` --- This route is cached for up to 3600 seconds ### Example ```php getCharactersNames($characterIds, $datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getCharactersNames($characterIds, $datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling CharacterApi->getCharactersNames: ', $e->getMessage(), PHP_EOL; @@ -545,7 +903,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetCharactersNames200Ok[]**](../Model/GetCharactersNames200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersNames200Ok[]**](../Model/GetCharactersNames200Ok.md) ### Authorization @@ -559,25 +917,29 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **postCharactersAffiliation** -> \nullx27\ESI\Models\PostCharactersAffiliation200Ok[] postCharactersAffiliation($characters, $datasource, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\PostCharactersAffiliation200Ok[] postCharactersAffiliation($characters, $datasource, $userAgent, $xUserAgent) Character affiliation -Bulk lookup of character IDs to corporation, alliance and faction --- Alternate route: `/v1/characters/affiliation/` Alternate route: `/legacy/characters/affiliation/` Alternate route: `/dev/characters/affiliation/` --- This route is cached for up to 3600 seconds +Bulk lookup of character IDs to corporation, alliance and faction --- Alternate route: `/dev/characters/affiliation/` Alternate route: `/legacy/characters/affiliation/` Alternate route: `/v1/characters/affiliation/` --- This route is cached for up to 3600 seconds ### Example ```php postCharactersAffiliation($characters, $datasource, $userAgent, $xUserAgent); + $result = $apiInstance->postCharactersAffiliation($characters, $datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling CharacterApi->postCharactersAffiliation: ', $e->getMessage(), PHP_EOL; @@ -589,14 +951,14 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **characters** | **int[]**| The character IDs to fetch affiliations for | + **characters** | **int[]**| The character IDs to fetch affiliations for. All characters must exist, or none will be returned. | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\PostCharactersAffiliation200Ok[]**](../Model/PostCharactersAffiliation200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\PostCharactersAffiliation200Ok[]**](../Model/PostCharactersAffiliation200Ok.md) ### Authorization @@ -610,11 +972,11 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **postCharactersCharacterIdCspa** -> \nullx27\ESI\Models\PostCharactersCharacterIdCspaCreated postCharactersCharacterIdCspa($characterId, $characters, $datasource, $token, $userAgent, $xUserAgent) +> float postCharactersCharacterIdCspa($characterId, $characters, $datasource, $token, $userAgent, $xUserAgent) Calculate a CSPA charge cost -Takes a source character ID in the url and a set of target character ID's in the body, returns a CSPA charge cost --- Alternate route: `/v3/characters/{character_id}/cspa/` Alternate route: `/legacy/characters/{character_id}/cspa/` Alternate route: `/dev/characters/{character_id}/cspa/` +Takes a source character ID in the url and a set of target character ID's in the body, returns a CSPA charge cost --- Alternate route: `/dev/characters/{character_id}/cspa/` Alternate route: `/v4/characters/{character_id}/cspa/` ### Example ```php @@ -622,18 +984,23 @@ Takes a source character ID in the url and a set of target character ID's in the require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\CharacterApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\CharacterApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $characterId = 56; // int | An EVE character ID -$characters = new \nullx27\ESI\Models\PostCharactersCharacterIdCspaCharacters(); // \nullx27\ESI\Models\PostCharactersCharacterIdCspaCharacters | The target characters to calculate the charge for +$characters = array(new \nullx27ESI\nullx27\ESI\Models\int[]()); // int[] | The target characters to calculate the charge for $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->postCharactersCharacterIdCspa($characterId, $characters, $datasource, $token, $userAgent, $xUserAgent); + $result = $apiInstance->postCharactersCharacterIdCspa($characterId, $characters, $datasource, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling CharacterApi->postCharactersCharacterIdCspa: ', $e->getMessage(), PHP_EOL; @@ -646,15 +1013,15 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **characterId** | **int**| An EVE character ID | - **characters** | [**\nullx27\ESI\Models\PostCharactersCharacterIdCspaCharacters**](../Model/\nullx27\ESI\Models\PostCharactersCharacterIdCspaCharacters.md)| The target characters to calculate the charge for | + **characters** | **int[]**| The target characters to calculate the charge for | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\PostCharactersCharacterIdCspaCreated**](../Model/PostCharactersCharacterIdCspaCreated.md) +**float** ### Authorization diff --git a/docs/Api/ClonesApi.md b/docs/Api/ClonesApi.md index b20914a..a5593eb 100644 --- a/docs/Api/ClonesApi.md +++ b/docs/Api/ClonesApi.md @@ -1,18 +1,19 @@ -# nullx27\ESI\ClonesApi +# nullx27ESI\ClonesApi All URIs are relative to *https://esi.tech.ccp.is/latest* Method | HTTP request | Description ------------- | ------------- | ------------- [**getCharactersCharacterIdClones**](ClonesApi.md#getCharactersCharacterIdClones) | **GET** /characters/{character_id}/clones/ | Get clones +[**getCharactersCharacterIdImplants**](ClonesApi.md#getCharactersCharacterIdImplants) | **GET** /characters/{character_id}/implants/ | Get active implants # **getCharactersCharacterIdClones** -> \nullx27\ESI\Models\GetCharactersCharacterIdClonesOk getCharactersCharacterIdClones($characterId, $datasource, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdClonesOk getCharactersCharacterIdClones($characterId, $datasource, $token, $userAgent, $xUserAgent) Get clones -A list of the character's clones --- Alternate route: `/v2/characters/{character_id}/clones/` Alternate route: `/dev/characters/{character_id}/clones/` --- This route is cached for up to 120 seconds +A list of the character's clones --- Alternate route: `/dev/characters/{character_id}/clones/` Alternate route: `/v3/characters/{character_id}/clones/` --- This route is cached for up to 120 seconds ### Example ```php @@ -20,17 +21,22 @@ A list of the character's clones --- Alternate route: `/v2/characters/{charact require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\ClonesApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\ClonesApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $characterId = 56; // int | An EVE character ID $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCharactersCharacterIdClones($characterId, $datasource, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getCharactersCharacterIdClones($characterId, $datasource, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling ClonesApi->getCharactersCharacterIdClones: ', $e->getMessage(), PHP_EOL; @@ -44,13 +50,74 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **characterId** | **int**| An EVE character ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdClonesOk**](../Model/GetCharactersCharacterIdClonesOk.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCharactersCharacterIdImplants** +> int[] getCharactersCharacterIdImplants($characterId, $datasource, $token, $userAgent, $xUserAgent) + +Get active implants + +Return implants on the active clone of a character --- Alternate route: `/dev/characters/{character_id}/implants/` Alternate route: `/legacy/characters/{character_id}/implants/` Alternate route: `/v1/characters/{character_id}/implants/` --- This route is cached for up to 300 seconds + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\ClonesApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID +$datasource = "tranquility"; // string | The server name you would like data from +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCharactersCharacterIdImplants($characterId, $datasource, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ClonesApi->getCharactersCharacterIdImplants: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **characterId** | **int**| An EVE character ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetCharactersCharacterIdClonesOk**](../Model/GetCharactersCharacterIdClonesOk.md) +**int[]** ### Authorization diff --git a/docs/Api/ContactsApi.md b/docs/Api/ContactsApi.md index 425a5e6..d45274b 100644 --- a/docs/Api/ContactsApi.md +++ b/docs/Api/ContactsApi.md @@ -1,12 +1,14 @@ -# nullx27\ESI\ContactsApi +# nullx27ESI\ContactsApi All URIs are relative to *https://esi.tech.ccp.is/latest* Method | HTTP request | Description ------------- | ------------- | ------------- [**deleteCharactersCharacterIdContacts**](ContactsApi.md#deleteCharactersCharacterIdContacts) | **DELETE** /characters/{character_id}/contacts/ | Delete contacts +[**getAlliancesAllianceIdContacts**](ContactsApi.md#getAlliancesAllianceIdContacts) | **GET** /alliances/{alliance_id}/contacts/ | Get alliance contacts [**getCharactersCharacterIdContacts**](ContactsApi.md#getCharactersCharacterIdContacts) | **GET** /characters/{character_id}/contacts/ | Get contacts [**getCharactersCharacterIdContactsLabels**](ContactsApi.md#getCharactersCharacterIdContactsLabels) | **GET** /characters/{character_id}/contacts/labels/ | Get contact labels +[**getCorporationsCorporationIdContacts**](ContactsApi.md#getCorporationsCorporationIdContacts) | **GET** /corporations/{corporation_id}/contacts/ | Get corporation contacts [**postCharactersCharacterIdContacts**](ContactsApi.md#postCharactersCharacterIdContacts) | **POST** /characters/{character_id}/contacts/ | Add contacts [**putCharactersCharacterIdContacts**](ContactsApi.md#putCharactersCharacterIdContacts) | **PUT** /characters/{character_id}/contacts/ | Edit contacts @@ -16,7 +18,7 @@ Method | HTTP request | Description Delete contacts -Bulk delete contacts --- Alternate route: `/v1/characters/{character_id}/contacts/` Alternate route: `/legacy/characters/{character_id}/contacts/` Alternate route: `/dev/characters/{character_id}/contacts/` +Bulk delete contacts --- Alternate route: `/dev/characters/{character_id}/contacts/` Alternate route: `/v2/characters/{character_id}/contacts/` ### Example ```php @@ -24,18 +26,23 @@ Bulk delete contacts --- Alternate route: `/v1/characters/{character_id}/conta require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\ContactsApi(); -$characterId = 56; // int | ID for a character -$contactIds = array(new int[]()); // int[] | A list of contacts to edit +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\ContactsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID +$contactIds = array(56); // int[] | A list of contacts to delete $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $api_instance->deleteCharactersCharacterIdContacts($characterId, $contactIds, $datasource, $token, $userAgent, $xUserAgent); + $apiInstance->deleteCharactersCharacterIdContacts($characterId, $contactIds, $datasource, $token, $userAgent, $xUserAgent); } catch (Exception $e) { echo 'Exception when calling ContactsApi->deleteCharactersCharacterIdContacts: ', $e->getMessage(), PHP_EOL; } @@ -46,10 +53,10 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **characterId** | **int**| ID for a character | - **contactIds** | **int[]**| A list of contacts to edit | + **characterId** | **int**| An EVE character ID | + **contactIds** | [**int[]**](../Model/int.md)| A list of contacts to delete | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] @@ -68,12 +75,75 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) +# **getAlliancesAllianceIdContacts** +> \nullx27ESI\nullx27\ESI\Models\GetAlliancesAllianceIdContacts200Ok[] getAlliancesAllianceIdContacts($allianceId, $datasource, $page, $token, $userAgent, $xUserAgent) + +Get alliance contacts + +Return contacts of an alliance --- Alternate route: `/dev/alliances/{alliance_id}/contacts/` Alternate route: `/legacy/alliances/{alliance_id}/contacts/` Alternate route: `/v1/alliances/{alliance_id}/contacts/` --- This route is cached for up to 300 seconds + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\ContactsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$allianceId = 56; // int | An EVE alliance ID +$datasource = "tranquility"; // string | The server name you would like data from +$page = 1; // int | Which page of results to return +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getAlliancesAllianceIdContacts($allianceId, $datasource, $page, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ContactsApi->getAlliancesAllianceIdContacts: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allianceId** | **int**| An EVE alliance ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **page** | **int**| Which page of results to return | [optional] [default to 1] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetAlliancesAllianceIdContacts200Ok[]**](../Model/GetAlliancesAllianceIdContacts200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + # **getCharactersCharacterIdContacts** -> \nullx27\ESI\Models\GetCharactersCharacterIdContacts200Ok[] getCharactersCharacterIdContacts($characterId, $datasource, $page, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdContacts200Ok[] getCharactersCharacterIdContacts($characterId, $datasource, $page, $token, $userAgent, $xUserAgent) Get contacts -Return contacts of a character --- Alternate route: `/v1/characters/{character_id}/contacts/` Alternate route: `/legacy/characters/{character_id}/contacts/` Alternate route: `/dev/characters/{character_id}/contacts/` --- This route is cached for up to 300 seconds +Return contacts of a character --- Alternate route: `/dev/characters/{character_id}/contacts/` Alternate route: `/legacy/characters/{character_id}/contacts/` Alternate route: `/v1/characters/{character_id}/contacts/` --- This route is cached for up to 300 seconds ### Example ```php @@ -81,18 +151,23 @@ Return contacts of a character --- Alternate route: `/v1/characters/{character require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\ContactsApi(); -$characterId = 56; // int | ID for a character +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\ContactsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID $datasource = "tranquility"; // string | The server name you would like data from -$page = 1; // int | page integer -$token = "token_example"; // string | Access token to use, if preferred over a header +$page = 1; // int | Which page of results to return +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCharactersCharacterIdContacts($characterId, $datasource, $page, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getCharactersCharacterIdContacts($characterId, $datasource, $page, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling ContactsApi->getCharactersCharacterIdContacts: ', $e->getMessage(), PHP_EOL; @@ -104,16 +179,16 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **characterId** | **int**| ID for a character | + **characterId** | **int**| An EVE character ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **page** | **int**| page integer | [optional] [default to 1] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **page** | **int**| Which page of results to return | [optional] [default to 1] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetCharactersCharacterIdContacts200Ok[]**](../Model/GetCharactersCharacterIdContacts200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdContacts200Ok[]**](../Model/GetCharactersCharacterIdContacts200Ok.md) ### Authorization @@ -127,11 +202,11 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getCharactersCharacterIdContactsLabels** -> \nullx27\ESI\Models\GetCharactersCharacterIdContactsLabels200Ok[] getCharactersCharacterIdContactsLabels($characterId, $datasource, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdContactsLabels200Ok[] getCharactersCharacterIdContactsLabels($characterId, $datasource, $token, $userAgent, $xUserAgent) Get contact labels -Return custom labels for contacts the character defined --- Alternate route: `/v1/characters/{character_id}/contacts/labels/` Alternate route: `/legacy/characters/{character_id}/contacts/labels/` Alternate route: `/dev/characters/{character_id}/contacts/labels/` --- This route is cached for up to 300 seconds +Return custom labels for contacts the character defined --- Alternate route: `/dev/characters/{character_id}/contacts/labels/` Alternate route: `/legacy/characters/{character_id}/contacts/labels/` Alternate route: `/v1/characters/{character_id}/contacts/labels/` --- This route is cached for up to 300 seconds ### Example ```php @@ -139,17 +214,22 @@ Return custom labels for contacts the character defined --- Alternate route: ` require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\ContactsApi(); -$characterId = 56; // int | ID for a character +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\ContactsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCharactersCharacterIdContactsLabels($characterId, $datasource, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getCharactersCharacterIdContactsLabels($characterId, $datasource, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling ContactsApi->getCharactersCharacterIdContactsLabels: ', $e->getMessage(), PHP_EOL; @@ -161,15 +241,78 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **characterId** | **int**| ID for a character | + **characterId** | **int**| An EVE character ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetCharactersCharacterIdContactsLabels200Ok[]**](../Model/GetCharactersCharacterIdContactsLabels200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdContactsLabels200Ok[]**](../Model/GetCharactersCharacterIdContactsLabels200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCorporationsCorporationIdContacts** +> \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdContacts200Ok[] getCorporationsCorporationIdContacts($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) + +Get corporation contacts + +Return contacts of a corporation --- Alternate route: `/dev/corporations/{corporation_id}/contacts/` Alternate route: `/legacy/corporations/{corporation_id}/contacts/` Alternate route: `/v1/corporations/{corporation_id}/contacts/` --- This route is cached for up to 300 seconds + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\ContactsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$corporationId = 56; // int | An EVE corporation ID +$datasource = "tranquility"; // string | The server name you would like data from +$page = 1; // int | Which page of results to return +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCorporationsCorporationIdContacts($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ContactsApi->getCorporationsCorporationIdContacts: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **corporationId** | **int**| An EVE corporation ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **page** | **int**| Which page of results to return | [optional] [default to 1] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdContacts200Ok[]**](../Model/GetCorporationsCorporationIdContacts200Ok.md) ### Authorization @@ -187,7 +330,7 @@ Name | Type | Description | Notes Add contacts -Bulk add contacts with same settings --- Alternate route: `/v1/characters/{character_id}/contacts/` Alternate route: `/legacy/characters/{character_id}/contacts/` Alternate route: `/dev/characters/{character_id}/contacts/` +Bulk add contacts with same settings --- Alternate route: `/dev/characters/{character_id}/contacts/` Alternate route: `/legacy/characters/{character_id}/contacts/` Alternate route: `/v1/characters/{character_id}/contacts/` ### Example ```php @@ -195,21 +338,26 @@ Bulk add contacts with same settings --- Alternate route: `/v1/characters/{cha require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\ContactsApi(); -$characterId = 56; // int | ID for a character -$contactIds = array(new int[]()); // int[] | A list of contacts to add +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\ContactsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID +$contactIds = array(new \nullx27ESI\nullx27\ESI\Models\int[]()); // int[] | A list of contacts to add $standing = 3.4; // float | Standing for the new contact $datasource = "tranquility"; // string | The server name you would like data from $labelId = 0; // int | Add a custom label to the new contact -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $watched = false; // bool | Whether the new contact should be watched, note this is only effective on characters $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->postCharactersCharacterIdContacts($characterId, $contactIds, $standing, $datasource, $labelId, $token, $userAgent, $watched, $xUserAgent); + $result = $apiInstance->postCharactersCharacterIdContacts($characterId, $contactIds, $standing, $datasource, $labelId, $token, $userAgent, $watched, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling ContactsApi->postCharactersCharacterIdContacts: ', $e->getMessage(), PHP_EOL; @@ -221,12 +369,12 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **characterId** | **int**| ID for a character | + **characterId** | **int**| An EVE character ID | **contactIds** | **int[]**| A list of contacts to add | **standing** | **float**| Standing for the new contact | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] **labelId** | **int**| Add a custom label to the new contact | [optional] [default to 0] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **watched** | **bool**| Whether the new contact should be watched, note this is only effective on characters | [optional] [default to false] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] @@ -251,7 +399,7 @@ Name | Type | Description | Notes Edit contacts -Bulk edit contacts with same settings --- Alternate route: `/v1/characters/{character_id}/contacts/` Alternate route: `/legacy/characters/{character_id}/contacts/` Alternate route: `/dev/characters/{character_id}/contacts/` +Bulk edit contacts with same settings --- Alternate route: `/dev/characters/{character_id}/contacts/` Alternate route: `/legacy/characters/{character_id}/contacts/` Alternate route: `/v1/characters/{character_id}/contacts/` ### Example ```php @@ -259,21 +407,26 @@ Bulk edit contacts with same settings --- Alternate route: `/v1/characters/{ch require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\ContactsApi(); -$characterId = 56; // int | ID for a character -$contactIds = array(new int[]()); // int[] | A list of contacts to edit +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\ContactsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID +$contactIds = array(new \nullx27ESI\nullx27\ESI\Models\int[]()); // int[] | A list of contacts to edit $standing = 3.4; // float | Standing for the contact $datasource = "tranquility"; // string | The server name you would like data from $labelId = 0; // int | Add a custom label to the contact, use 0 for clearing label -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $watched = false; // bool | Whether the contact should be watched, note this is only effective on characters $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $api_instance->putCharactersCharacterIdContacts($characterId, $contactIds, $standing, $datasource, $labelId, $token, $userAgent, $watched, $xUserAgent); + $apiInstance->putCharactersCharacterIdContacts($characterId, $contactIds, $standing, $datasource, $labelId, $token, $userAgent, $watched, $xUserAgent); } catch (Exception $e) { echo 'Exception when calling ContactsApi->putCharactersCharacterIdContacts: ', $e->getMessage(), PHP_EOL; } @@ -284,12 +437,12 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **characterId** | **int**| ID for a character | + **characterId** | **int**| An EVE character ID | **contactIds** | **int[]**| A list of contacts to edit | **standing** | **float**| Standing for the contact | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] **labelId** | **int**| Add a custom label to the contact, use 0 for clearing label | [optional] [default to 0] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **watched** | **bool**| Whether the contact should be watched, note this is only effective on characters | [optional] [default to false] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] diff --git a/docs/Api/ContractsApi.md b/docs/Api/ContractsApi.md new file mode 100644 index 0000000..c09caf8 --- /dev/null +++ b/docs/Api/ContractsApi.md @@ -0,0 +1,390 @@ +# nullx27ESI\ContractsApi + +All URIs are relative to *https://esi.tech.ccp.is/latest* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getCharactersCharacterIdContracts**](ContractsApi.md#getCharactersCharacterIdContracts) | **GET** /characters/{character_id}/contracts/ | Get contracts +[**getCharactersCharacterIdContractsContractIdBids**](ContractsApi.md#getCharactersCharacterIdContractsContractIdBids) | **GET** /characters/{character_id}/contracts/{contract_id}/bids/ | Get contract bids +[**getCharactersCharacterIdContractsContractIdItems**](ContractsApi.md#getCharactersCharacterIdContractsContractIdItems) | **GET** /characters/{character_id}/contracts/{contract_id}/items/ | Get contract items +[**getCorporationsCorporationIdContracts**](ContractsApi.md#getCorporationsCorporationIdContracts) | **GET** /corporations/{corporation_id}/contracts/ | Get coporation contracts +[**getCorporationsCorporationIdContractsContractIdBids**](ContractsApi.md#getCorporationsCorporationIdContractsContractIdBids) | **GET** /corporations/{corporation_id}/contracts/{contract_id}/bids/ | Get corporation contract bids +[**getCorporationsCorporationIdContractsContractIdItems**](ContractsApi.md#getCorporationsCorporationIdContractsContractIdItems) | **GET** /corporations/{corporation_id}/contracts/{contract_id}/items/ | Get corporation contract items + + +# **getCharactersCharacterIdContracts** +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdContracts200Ok[] getCharactersCharacterIdContracts($characterId, $datasource, $token, $userAgent, $xUserAgent) + +Get contracts + +Returns contracts available to a character, only if the character is issuer, acceptor or assignee. Only returns contracts no older than 30 days, or if the status is \"in_progress\". --- Alternate route: `/dev/characters/{character_id}/contracts/` Alternate route: `/legacy/characters/{character_id}/contracts/` Alternate route: `/v1/characters/{character_id}/contracts/` --- This route is cached for up to 300 seconds + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\ContractsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID +$datasource = "tranquility"; // string | The server name you would like data from +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCharactersCharacterIdContracts($characterId, $datasource, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ContractsApi->getCharactersCharacterIdContracts: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **characterId** | **int**| An EVE character ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdContracts200Ok[]**](../Model/GetCharactersCharacterIdContracts200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCharactersCharacterIdContractsContractIdBids** +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdContractsContractIdBids200Ok[] getCharactersCharacterIdContractsContractIdBids($characterId, $contractId, $datasource, $token, $userAgent, $xUserAgent) + +Get contract bids + +Lists bids on a particular auction contract --- Alternate route: `/dev/characters/{character_id}/contracts/{contract_id}/bids/` Alternate route: `/legacy/characters/{character_id}/contracts/{contract_id}/bids/` Alternate route: `/v1/characters/{character_id}/contracts/{contract_id}/bids/` --- This route is cached for up to 300 seconds + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\ContractsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID +$contractId = 56; // int | ID of a contract +$datasource = "tranquility"; // string | The server name you would like data from +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCharactersCharacterIdContractsContractIdBids($characterId, $contractId, $datasource, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ContractsApi->getCharactersCharacterIdContractsContractIdBids: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **characterId** | **int**| An EVE character ID | + **contractId** | **int**| ID of a contract | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdContractsContractIdBids200Ok[]**](../Model/GetCharactersCharacterIdContractsContractIdBids200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCharactersCharacterIdContractsContractIdItems** +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdContractsContractIdItems200Ok[] getCharactersCharacterIdContractsContractIdItems($characterId, $contractId, $datasource, $token, $userAgent, $xUserAgent) + +Get contract items + +Lists items of a particular contract --- Alternate route: `/dev/characters/{character_id}/contracts/{contract_id}/items/` Alternate route: `/legacy/characters/{character_id}/contracts/{contract_id}/items/` Alternate route: `/v1/characters/{character_id}/contracts/{contract_id}/items/` --- This route is cached for up to 3600 seconds + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\ContractsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID +$contractId = 56; // int | ID of a contract +$datasource = "tranquility"; // string | The server name you would like data from +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCharactersCharacterIdContractsContractIdItems($characterId, $contractId, $datasource, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ContractsApi->getCharactersCharacterIdContractsContractIdItems: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **characterId** | **int**| An EVE character ID | + **contractId** | **int**| ID of a contract | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdContractsContractIdItems200Ok[]**](../Model/GetCharactersCharacterIdContractsContractIdItems200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCorporationsCorporationIdContracts** +> \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdContracts200Ok[] getCorporationsCorporationIdContracts($corporationId, $datasource, $token, $userAgent, $xUserAgent) + +Get coporation contracts + +Returns contracts available to a coporation, only if the corporation is issuer, acceptor or assignee. Only returns contracts no older than 30 days, or if the status is \"in_progress\". --- Alternate route: `/dev/corporations/{corporation_id}/contracts/` Alternate route: `/legacy/corporations/{corporation_id}/contracts/` Alternate route: `/v1/corporations/{corporation_id}/contracts/` --- This route is cached for up to 3600 seconds + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\ContractsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$corporationId = 56; // int | An EVE corporation ID +$datasource = "tranquility"; // string | The server name you would like data from +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCorporationsCorporationIdContracts($corporationId, $datasource, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ContractsApi->getCorporationsCorporationIdContracts: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **corporationId** | **int**| An EVE corporation ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdContracts200Ok[]**](../Model/GetCorporationsCorporationIdContracts200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCorporationsCorporationIdContractsContractIdBids** +> \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdContractsContractIdBids200Ok[] getCorporationsCorporationIdContractsContractIdBids($contractId, $corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) + +Get corporation contract bids + +Lists bids on a particular auction contract --- Alternate route: `/dev/corporations/{corporation_id}/contracts/{contract_id}/bids/` Alternate route: `/legacy/corporations/{corporation_id}/contracts/{contract_id}/bids/` Alternate route: `/v1/corporations/{corporation_id}/contracts/{contract_id}/bids/` --- This route is cached for up to 3600 seconds + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\ContractsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$contractId = 56; // int | ID of a contract +$corporationId = 56; // int | An EVE corporation ID +$datasource = "tranquility"; // string | The server name you would like data from +$page = 1; // int | Which page of results to return +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCorporationsCorporationIdContractsContractIdBids($contractId, $corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ContractsApi->getCorporationsCorporationIdContractsContractIdBids: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **contractId** | **int**| ID of a contract | + **corporationId** | **int**| An EVE corporation ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **page** | **int**| Which page of results to return | [optional] [default to 1] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdContractsContractIdBids200Ok[]**](../Model/GetCorporationsCorporationIdContractsContractIdBids200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCorporationsCorporationIdContractsContractIdItems** +> \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdContractsContractIdItems200Ok[] getCorporationsCorporationIdContractsContractIdItems($contractId, $corporationId, $datasource, $token, $userAgent, $xUserAgent) + +Get corporation contract items + +Lists items of a particular contract --- Alternate route: `/dev/corporations/{corporation_id}/contracts/{contract_id}/items/` Alternate route: `/legacy/corporations/{corporation_id}/contracts/{contract_id}/items/` Alternate route: `/v1/corporations/{corporation_id}/contracts/{contract_id}/items/` --- This route is cached for up to 3600 seconds + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\ContractsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$contractId = 56; // int | ID of a contract +$corporationId = 56; // int | An EVE corporation ID +$datasource = "tranquility"; // string | The server name you would like data from +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCorporationsCorporationIdContractsContractIdItems($contractId, $corporationId, $datasource, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ContractsApi->getCorporationsCorporationIdContractsContractIdItems: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **contractId** | **int**| ID of a contract | + **corporationId** | **int**| An EVE corporation ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdContractsContractIdItems200Ok[]**](../Model/GetCorporationsCorporationIdContractsContractIdItems200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + diff --git a/docs/Api/CorporationApi.md b/docs/Api/CorporationApi.md index b7e6b8b..b962450 100644 --- a/docs/Api/CorporationApi.md +++ b/docs/Api/CorporationApi.md @@ -1,4 +1,4 @@ -# nullx27\ESI\CorporationApi +# nullx27ESI\CorporationApi All URIs are relative to *https://esi.tech.ccp.is/latest* @@ -6,38 +6,786 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**getCorporationsCorporationId**](CorporationApi.md#getCorporationsCorporationId) | **GET** /corporations/{corporation_id}/ | Get corporation information [**getCorporationsCorporationIdAlliancehistory**](CorporationApi.md#getCorporationsCorporationIdAlliancehistory) | **GET** /corporations/{corporation_id}/alliancehistory/ | Get alliance history +[**getCorporationsCorporationIdBlueprints**](CorporationApi.md#getCorporationsCorporationIdBlueprints) | **GET** /corporations/{corporation_id}/blueprints/ | Get corporation blueprints +[**getCorporationsCorporationIdContainersLogs**](CorporationApi.md#getCorporationsCorporationIdContainersLogs) | **GET** /corporations/{corporation_id}/containers/logs/ | Get all corporation ALSC logs +[**getCorporationsCorporationIdDivisions**](CorporationApi.md#getCorporationsCorporationIdDivisions) | **GET** /corporations/{corporation_id}/divisions/ | Get corporation divisions +[**getCorporationsCorporationIdFacilities**](CorporationApi.md#getCorporationsCorporationIdFacilities) | **GET** /corporations/{corporation_id}/facilities/ | Get corporation facilities [**getCorporationsCorporationIdIcons**](CorporationApi.md#getCorporationsCorporationIdIcons) | **GET** /corporations/{corporation_id}/icons/ | Get corporation icon +[**getCorporationsCorporationIdMedals**](CorporationApi.md#getCorporationsCorporationIdMedals) | **GET** /corporations/{corporation_id}/medals/ | Get corporation medals +[**getCorporationsCorporationIdMedalsIssued**](CorporationApi.md#getCorporationsCorporationIdMedalsIssued) | **GET** /corporations/{corporation_id}/medals/issued/ | Get corporation issued medals [**getCorporationsCorporationIdMembers**](CorporationApi.md#getCorporationsCorporationIdMembers) | **GET** /corporations/{corporation_id}/members/ | Get corporation members +[**getCorporationsCorporationIdMembersLimit**](CorporationApi.md#getCorporationsCorporationIdMembersLimit) | **GET** /corporations/{corporation_id}/members/limit/ | Get corporation member limit +[**getCorporationsCorporationIdMembersTitles**](CorporationApi.md#getCorporationsCorporationIdMembersTitles) | **GET** /corporations/{corporation_id}/members/titles/ | Get corporation's members' titles +[**getCorporationsCorporationIdMembertracking**](CorporationApi.md#getCorporationsCorporationIdMembertracking) | **GET** /corporations/{corporation_id}/membertracking/ | Track corporation members +[**getCorporationsCorporationIdOutposts**](CorporationApi.md#getCorporationsCorporationIdOutposts) | **GET** /corporations/{corporation_id}/outposts/ | Get corporation outposts +[**getCorporationsCorporationIdOutpostsOutpostId**](CorporationApi.md#getCorporationsCorporationIdOutpostsOutpostId) | **GET** /corporations/{corporation_id}/outposts/{outpost_id}/ | Get corporation outpost details [**getCorporationsCorporationIdRoles**](CorporationApi.md#getCorporationsCorporationIdRoles) | **GET** /corporations/{corporation_id}/roles/ | Get corporation member roles +[**getCorporationsCorporationIdRolesHistory**](CorporationApi.md#getCorporationsCorporationIdRolesHistory) | **GET** /corporations/{corporation_id}/roles/history/ | Get corporation member roles history +[**getCorporationsCorporationIdShareholders**](CorporationApi.md#getCorporationsCorporationIdShareholders) | **GET** /corporations/{corporation_id}/shareholders/ | Get corporation members +[**getCorporationsCorporationIdStandings**](CorporationApi.md#getCorporationsCorporationIdStandings) | **GET** /corporations/{corporation_id}/standings/ | Get corporation standings +[**getCorporationsCorporationIdStarbases**](CorporationApi.md#getCorporationsCorporationIdStarbases) | **GET** /corporations/{corporation_id}/starbases/ | Get corporation starbases (POSes) +[**getCorporationsCorporationIdStarbasesStarbaseId**](CorporationApi.md#getCorporationsCorporationIdStarbasesStarbaseId) | **GET** /corporations/{corporation_id}/starbases/{starbase_id}/ | Get starbase (POS) detail [**getCorporationsCorporationIdStructures**](CorporationApi.md#getCorporationsCorporationIdStructures) | **GET** /corporations/{corporation_id}/structures/ | Get corporation structures +[**getCorporationsCorporationIdTitles**](CorporationApi.md#getCorporationsCorporationIdTitles) | **GET** /corporations/{corporation_id}/titles/ | Get corporation titles [**getCorporationsNames**](CorporationApi.md#getCorporationsNames) | **GET** /corporations/names/ | Get corporation names [**getCorporationsNpccorps**](CorporationApi.md#getCorporationsNpccorps) | **GET** /corporations/npccorps/ | Get npc corporations [**putCorporationsCorporationIdStructuresStructureId**](CorporationApi.md#putCorporationsCorporationIdStructuresStructureId) | **PUT** /corporations/{corporation_id}/structures/{structure_id}/ | Update structure vulnerability schedule # **getCorporationsCorporationId** -> \nullx27\ESI\Models\GetCorporationsCorporationIdOk getCorporationsCorporationId($corporationId, $datasource, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdOk getCorporationsCorporationId($corporationId, $datasource, $userAgent, $xUserAgent) Get corporation information -Public information about a corporation --- Alternate route: `/v3/corporations/{corporation_id}/` Alternate route: `/dev/corporations/{corporation_id}/` --- This route is cached for up to 3600 seconds +Public information about a corporation --- Alternate route: `/dev/corporations/{corporation_id}/` Alternate route: `/v4/corporations/{corporation_id}/` --- This route is cached for up to 3600 seconds ### Example ```php getCorporationsCorporationId($corporationId, $datasource, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling CorporationApi->getCorporationsCorporationId: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **corporationId** | **int**| An EVE corporation ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdOk**](../Model/GetCorporationsCorporationIdOk.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCorporationsCorporationIdAlliancehistory** +> \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdAlliancehistory200Ok[] getCorporationsCorporationIdAlliancehistory($corporationId, $datasource, $userAgent, $xUserAgent) + +Get alliance history + +Get a list of all the alliances a corporation has been a member of --- Alternate route: `/dev/corporations/{corporation_id}/alliancehistory/` Alternate route: `/v2/corporations/{corporation_id}/alliancehistory/` --- This route is cached for up to 3600 seconds + +### Example +```php +getCorporationsCorporationIdAlliancehistory($corporationId, $datasource, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling CorporationApi->getCorporationsCorporationIdAlliancehistory: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **corporationId** | **int**| An EVE corporation ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdAlliancehistory200Ok[]**](../Model/GetCorporationsCorporationIdAlliancehistory200Ok.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCorporationsCorporationIdBlueprints** +> \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdBlueprints200Ok[] getCorporationsCorporationIdBlueprints($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) + +Get corporation blueprints + +Returns a list of blueprints the corporation owns --- Alternate route: `/dev/corporations/{corporation_id}/blueprints/` Alternate route: `/legacy/corporations/{corporation_id}/blueprints/` Alternate route: `/v1/corporations/{corporation_id}/blueprints/` --- This route is cached for up to 3600 seconds --- Requires one of the following EVE corporation role(s): Director + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\CorporationApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$corporationId = 56; // int | An EVE corporation ID +$datasource = "tranquility"; // string | The server name you would like data from +$page = 1; // int | Which page of results to return +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCorporationsCorporationIdBlueprints($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling CorporationApi->getCorporationsCorporationIdBlueprints: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **corporationId** | **int**| An EVE corporation ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **page** | **int**| Which page of results to return | [optional] [default to 1] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdBlueprints200Ok[]**](../Model/GetCorporationsCorporationIdBlueprints200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCorporationsCorporationIdContainersLogs** +> \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdContainersLogs200Ok[] getCorporationsCorporationIdContainersLogs($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) + +Get all corporation ALSC logs + +Returns logs recorded in the past seven days from all audit log secure containers (ALSC) owned by a given corporation --- Alternate route: `/dev/corporations/{corporation_id}/containers/logs/` Alternate route: `/legacy/corporations/{corporation_id}/containers/logs/` Alternate route: `/v1/corporations/{corporation_id}/containers/logs/` --- This route is cached for up to 600 seconds --- Requires one of the following EVE corporation role(s): Director + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\CorporationApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$corporationId = 56; // int | An EVE corporation ID +$datasource = "tranquility"; // string | The server name you would like data from +$page = 1; // int | Which page of results to return +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCorporationsCorporationIdContainersLogs($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling CorporationApi->getCorporationsCorporationIdContainersLogs: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **corporationId** | **int**| An EVE corporation ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **page** | **int**| Which page of results to return | [optional] [default to 1] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdContainersLogs200Ok[]**](../Model/GetCorporationsCorporationIdContainersLogs200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCorporationsCorporationIdDivisions** +> \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdDivisionsOk getCorporationsCorporationIdDivisions($corporationId, $datasource, $token, $userAgent, $xUserAgent) + +Get corporation divisions + +Return corporation hangar and wallet division names, only show if a division is not using the default name --- Alternate route: `/dev/corporations/{corporation_id}/divisions/` Alternate route: `/legacy/corporations/{corporation_id}/divisions/` Alternate route: `/v1/corporations/{corporation_id}/divisions/` --- This route is cached for up to 3600 seconds --- Requires one of the following EVE corporation role(s): Director + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\CorporationApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$corporationId = 56; // int | An EVE corporation ID +$datasource = "tranquility"; // string | The server name you would like data from +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCorporationsCorporationIdDivisions($corporationId, $datasource, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling CorporationApi->getCorporationsCorporationIdDivisions: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **corporationId** | **int**| An EVE corporation ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdDivisionsOk**](../Model/GetCorporationsCorporationIdDivisionsOk.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCorporationsCorporationIdFacilities** +> \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdFacilities200Ok[] getCorporationsCorporationIdFacilities($corporationId, $datasource, $token, $userAgent, $xUserAgent) + +Get corporation facilities + +Return a corporation's facilities --- Alternate route: `/dev/corporations/{corporation_id}/facilities/` Alternate route: `/legacy/corporations/{corporation_id}/facilities/` Alternate route: `/v1/corporations/{corporation_id}/facilities/` --- This route is cached for up to 3600 seconds --- Requires one of the following EVE corporation role(s): Factory_Manager + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\CorporationApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$corporationId = 56; // int | An EVE corporation ID +$datasource = "tranquility"; // string | The server name you would like data from +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCorporationsCorporationIdFacilities($corporationId, $datasource, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling CorporationApi->getCorporationsCorporationIdFacilities: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **corporationId** | **int**| An EVE corporation ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdFacilities200Ok[]**](../Model/GetCorporationsCorporationIdFacilities200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCorporationsCorporationIdIcons** +> \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdIconsOk getCorporationsCorporationIdIcons($corporationId, $datasource, $userAgent, $xUserAgent) + +Get corporation icon + +Get the icon urls for a corporation --- Alternate route: `/dev/corporations/{corporation_id}/icons/` Alternate route: `/legacy/corporations/{corporation_id}/icons/` Alternate route: `/v1/corporations/{corporation_id}/icons/` --- This route is cached for up to 3600 seconds + +### Example +```php +getCorporationsCorporationIdIcons($corporationId, $datasource, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling CorporationApi->getCorporationsCorporationIdIcons: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **corporationId** | **int**| An EVE corporation ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdIconsOk**](../Model/GetCorporationsCorporationIdIconsOk.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCorporationsCorporationIdMedals** +> \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdMedals200Ok[] getCorporationsCorporationIdMedals($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) + +Get corporation medals + +Returns a corporation's medals --- Alternate route: `/dev/corporations/{corporation_id}/medals/` Alternate route: `/legacy/corporations/{corporation_id}/medals/` Alternate route: `/v1/corporations/{corporation_id}/medals/` --- This route is cached for up to 3600 seconds + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\CorporationApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$corporationId = 56; // int | An EVE corporation ID +$datasource = "tranquility"; // string | The server name you would like data from +$page = 1; // int | Which page of results to return +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCorporationsCorporationIdMedals($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling CorporationApi->getCorporationsCorporationIdMedals: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **corporationId** | **int**| An EVE corporation ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **page** | **int**| Which page of results to return | [optional] [default to 1] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdMedals200Ok[]**](../Model/GetCorporationsCorporationIdMedals200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCorporationsCorporationIdMedalsIssued** +> \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdMedalsIssued200Ok[] getCorporationsCorporationIdMedalsIssued($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) + +Get corporation issued medals + +Returns medals issued by a corporation --- Alternate route: `/dev/corporations/{corporation_id}/medals/issued/` Alternate route: `/legacy/corporations/{corporation_id}/medals/issued/` Alternate route: `/v1/corporations/{corporation_id}/medals/issued/` --- This route is cached for up to 3600 seconds --- Requires one of the following EVE corporation role(s): Director + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\CorporationApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$corporationId = 56; // int | An EVE corporation ID +$datasource = "tranquility"; // string | The server name you would like data from +$page = 1; // int | Which page of results to return +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCorporationsCorporationIdMedalsIssued($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling CorporationApi->getCorporationsCorporationIdMedalsIssued: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **corporationId** | **int**| An EVE corporation ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **page** | **int**| Which page of results to return | [optional] [default to 1] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdMedalsIssued200Ok[]**](../Model/GetCorporationsCorporationIdMedalsIssued200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCorporationsCorporationIdMembers** +> int[] getCorporationsCorporationIdMembers($corporationId, $datasource, $token, $userAgent, $xUserAgent) + +Get corporation members + +Return the current member list of a corporation, the token's character need to be a member of the corporation. --- Alternate route: `/dev/corporations/{corporation_id}/members/` Alternate route: `/v3/corporations/{corporation_id}/members/` --- This route is cached for up to 3600 seconds + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\CorporationApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$corporationId = 56; // int | An EVE corporation ID +$datasource = "tranquility"; // string | The server name you would like data from +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCorporationsCorporationIdMembers($corporationId, $datasource, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling CorporationApi->getCorporationsCorporationIdMembers: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **corporationId** | **int**| An EVE corporation ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +**int[]** + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCorporationsCorporationIdMembersLimit** +> int getCorporationsCorporationIdMembersLimit($corporationId, $datasource, $token, $userAgent, $xUserAgent) + +Get corporation member limit + +Return a corporation's member limit, not including CEO himself --- Alternate route: `/dev/corporations/{corporation_id}/members/limit/` Alternate route: `/legacy/corporations/{corporation_id}/members/limit/` Alternate route: `/v1/corporations/{corporation_id}/members/limit/` --- This route is cached for up to 3600 seconds --- Requires one of the following EVE corporation role(s): Director + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\CorporationApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$corporationId = 56; // int | An EVE corporation ID +$datasource = "tranquility"; // string | The server name you would like data from +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCorporationsCorporationIdMembersLimit($corporationId, $datasource, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling CorporationApi->getCorporationsCorporationIdMembersLimit: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **corporationId** | **int**| An EVE corporation ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +**int** + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCorporationsCorporationIdMembersTitles** +> \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdMembersTitles200Ok[] getCorporationsCorporationIdMembersTitles($corporationId, $datasource, $token, $userAgent, $xUserAgent) + +Get corporation's members' titles + +Returns a corporation's members' titles --- Alternate route: `/dev/corporations/{corporation_id}/members/titles/` Alternate route: `/legacy/corporations/{corporation_id}/members/titles/` Alternate route: `/v1/corporations/{corporation_id}/members/titles/` --- This route is cached for up to 3600 seconds --- Requires one of the following EVE corporation role(s): Director + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\CorporationApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$corporationId = 56; // int | An EVE corporation ID +$datasource = "tranquility"; // string | The server name you would like data from +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCorporationsCorporationIdMembersTitles($corporationId, $datasource, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling CorporationApi->getCorporationsCorporationIdMembersTitles: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **corporationId** | **int**| An EVE corporation ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdMembersTitles200Ok[]**](../Model/GetCorporationsCorporationIdMembersTitles200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCorporationsCorporationIdMembertracking** +> \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdMembertracking200Ok[] getCorporationsCorporationIdMembertracking($corporationId, $datasource, $token, $userAgent, $xUserAgent) + +Track corporation members + +Returns additional information about a corporation's members which helps tracking their activities --- Alternate route: `/dev/corporations/{corporation_id}/membertracking/` Alternate route: `/legacy/corporations/{corporation_id}/membertracking/` Alternate route: `/v1/corporations/{corporation_id}/membertracking/` --- This route is cached for up to 3600 seconds --- Requires one of the following EVE corporation role(s): Director + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\CorporationApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$corporationId = 56; // int | An EVE corporation ID $datasource = "tranquility"; // string | The server name you would like data from +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCorporationsCorporationId($corporationId, $datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getCorporationsCorporationIdMembertracking($corporationId, $datasource, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { - echo 'Exception when calling CorporationApi->getCorporationsCorporationId: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling CorporationApi->getCorporationsCorporationIdMembertracking: ', $e->getMessage(), PHP_EOL; } ?> ``` @@ -46,18 +794,19 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **corporationId** | **int**| An Eve corporation ID | + **corporationId** | **int**| An EVE corporation ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetCorporationsCorporationIdOk**](../Model/GetCorporationsCorporationIdOk.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdMembertracking200Ok[]**](../Model/GetCorporationsCorporationIdMembertracking200Ok.md) ### Authorization -No authorization required +[evesso](../../README.md#evesso) ### HTTP request headers @@ -66,29 +815,39 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) -# **getCorporationsCorporationIdAlliancehistory** -> \nullx27\ESI\Models\GetCorporationsCorporationIdAlliancehistory200Ok[] getCorporationsCorporationIdAlliancehistory($corporationId, $datasource, $userAgent, $xUserAgent) +# **getCorporationsCorporationIdOutposts** +> int[] getCorporationsCorporationIdOutposts($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) -Get alliance history +Get corporation outposts -Get a list of all the alliances a corporation has been a member of --- Alternate route: `/v1/corporations/{corporation_id}/alliancehistory/` Alternate route: `/legacy/corporations/{corporation_id}/alliancehistory/` Alternate route: `/dev/corporations/{corporation_id}/alliancehistory/` --- This route is cached for up to 3600 seconds +Get a list of corporation outpost IDs Note: This endpoint will be removed once outposts are migrated to Citadels as talked about in this blog: https://community.eveonline.com/news/dev-blogs/the-next-steps-in-structure-transition/ --- Alternate route: `/dev/corporations/{corporation_id}/outposts/` Alternate route: `/legacy/corporations/{corporation_id}/outposts/` Alternate route: `/v1/corporations/{corporation_id}/outposts/` --- This route is cached for up to 3600 seconds --- Requires one of the following EVE corporation role(s): Director ### Example ```php setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\CorporationApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $corporationId = 56; // int | An EVE corporation ID $datasource = "tranquility"; // string | The server name you would like data from +$page = 1; // int | Which page of results to return +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCorporationsCorporationIdAlliancehistory($corporationId, $datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getCorporationsCorporationIdOutposts($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { - echo 'Exception when calling CorporationApi->getCorporationsCorporationIdAlliancehistory: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling CorporationApi->getCorporationsCorporationIdOutposts: ', $e->getMessage(), PHP_EOL; } ?> ``` @@ -99,16 +858,18 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **corporationId** | **int**| An EVE corporation ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **page** | **int**| Which page of results to return | [optional] [default to 1] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetCorporationsCorporationIdAlliancehistory200Ok[]**](../Model/GetCorporationsCorporationIdAlliancehistory200Ok.md) +**int[]** ### Authorization -No authorization required +[evesso](../../README.md#evesso) ### HTTP request headers @@ -117,29 +878,39 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) -# **getCorporationsCorporationIdIcons** -> \nullx27\ESI\Models\GetCorporationsCorporationIdIconsOk getCorporationsCorporationIdIcons($corporationId, $datasource, $userAgent, $xUserAgent) +# **getCorporationsCorporationIdOutpostsOutpostId** +> \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdOutpostsOutpostIdOk getCorporationsCorporationIdOutpostsOutpostId($corporationId, $outpostId, $datasource, $token, $userAgent, $xUserAgent) -Get corporation icon +Get corporation outpost details -Get the icon urls for a corporation --- Alternate route: `/v1/corporations/{corporation_id}/icons/` Alternate route: `/legacy/corporations/{corporation_id}/icons/` Alternate route: `/dev/corporations/{corporation_id}/icons/` --- This route is cached for up to 3600 seconds +Get details about a given outpost. Note: This endpoint will be removed once outposts are migrated to Citadels as talked about in this blog: https://community.eveonline.com/news/dev-blogs/the-next-steps-in-structure-transition/ --- Alternate route: `/dev/corporations/{corporation_id}/outposts/{outpost_id}/` Alternate route: `/legacy/corporations/{corporation_id}/outposts/{outpost_id}/` Alternate route: `/v1/corporations/{corporation_id}/outposts/{outpost_id}/` --- This route is cached for up to 3600 seconds --- Requires one of the following EVE corporation role(s): Director ### Example ```php setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\CorporationApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $corporationId = 56; // int | An EVE corporation ID +$outpostId = 56; // int | A station (outpost) ID $datasource = "tranquility"; // string | The server name you would like data from +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCorporationsCorporationIdIcons($corporationId, $datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getCorporationsCorporationIdOutpostsOutpostId($corporationId, $outpostId, $datasource, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { - echo 'Exception when calling CorporationApi->getCorporationsCorporationIdIcons: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling CorporationApi->getCorporationsCorporationIdOutpostsOutpostId: ', $e->getMessage(), PHP_EOL; } ?> ``` @@ -149,17 +920,19 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **corporationId** | **int**| An EVE corporation ID | + **outpostId** | **int**| A station (outpost) ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetCorporationsCorporationIdIconsOk**](../Model/GetCorporationsCorporationIdIconsOk.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdOutpostsOutpostIdOk**](../Model/GetCorporationsCorporationIdOutpostsOutpostIdOk.md) ### Authorization -No authorization required +[evesso](../../README.md#evesso) ### HTTP request headers @@ -168,12 +941,136 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) -# **getCorporationsCorporationIdMembers** -> \nullx27\ESI\Models\GetCorporationsCorporationIdMembers200Ok[] getCorporationsCorporationIdMembers($corporationId, $datasource, $token, $userAgent, $xUserAgent) +# **getCorporationsCorporationIdRoles** +> \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdRoles200Ok[] getCorporationsCorporationIdRoles($corporationId, $datasource, $token, $userAgent, $xUserAgent) + +Get corporation member roles + +Return the roles of all members if the character has the personnel manager role or any grantable role. --- Alternate route: `/dev/corporations/{corporation_id}/roles/` Alternate route: `/legacy/corporations/{corporation_id}/roles/` Alternate route: `/v1/corporations/{corporation_id}/roles/` --- This route is cached for up to 3600 seconds + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\CorporationApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$corporationId = 56; // int | An EVE corporation ID +$datasource = "tranquility"; // string | The server name you would like data from +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCorporationsCorporationIdRoles($corporationId, $datasource, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling CorporationApi->getCorporationsCorporationIdRoles: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **corporationId** | **int**| An EVE corporation ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdRoles200Ok[]**](../Model/GetCorporationsCorporationIdRoles200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCorporationsCorporationIdRolesHistory** +> \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdRolesHistory200Ok[] getCorporationsCorporationIdRolesHistory($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) + +Get corporation member roles history + +Return how roles have changed for a coporation's members, up to a month --- Alternate route: `/dev/corporations/{corporation_id}/roles/history/` Alternate route: `/legacy/corporations/{corporation_id}/roles/history/` Alternate route: `/v1/corporations/{corporation_id}/roles/history/` --- This route is cached for up to 3600 seconds --- Requires one of the following EVE corporation role(s): Director + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\CorporationApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$corporationId = 56; // int | An EVE corporation ID +$datasource = "tranquility"; // string | The server name you would like data from +$page = 1; // int | Which page of results to return +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCorporationsCorporationIdRolesHistory($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling CorporationApi->getCorporationsCorporationIdRolesHistory: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **corporationId** | **int**| An EVE corporation ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **page** | **int**| Which page of results to return | [optional] [default to 1] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdRolesHistory200Ok[]**](../Model/GetCorporationsCorporationIdRolesHistory200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCorporationsCorporationIdShareholders** +> \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdShareholders200Ok[] getCorporationsCorporationIdShareholders($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) Get corporation members -Read the current list of members if the calling character is a member. --- Alternate route: `/v2/corporations/{corporation_id}/members/` Alternate route: `/legacy/corporations/{corporation_id}/members/` Alternate route: `/dev/corporations/{corporation_id}/members/` --- This route is cached for up to 3600 seconds +Return the current member list of a corporation, the token's character need to be a member of the corporation. --- Alternate route: `/dev/corporations/{corporation_id}/shareholders/` Alternate route: `/legacy/corporations/{corporation_id}/shareholders/` Alternate route: `/v1/corporations/{corporation_id}/shareholders/` --- This route is cached for up to 3600 seconds ### Example ```php @@ -181,20 +1078,89 @@ Read the current list of members if the calling character is a member. --- Alt require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\CorporationApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$corporationId = 56; // int | An EVE corporation ID +$datasource = "tranquility"; // string | The server name you would like data from +$page = 1; // int | Which page of results to return +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCorporationsCorporationIdShareholders($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling CorporationApi->getCorporationsCorporationIdShareholders: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **corporationId** | **int**| An EVE corporation ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **page** | **int**| Which page of results to return | [optional] [default to 1] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdShareholders200Ok[]**](../Model/GetCorporationsCorporationIdShareholders200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json -$api_instance = new nullx27\ESI\Api\CorporationApi(); -$corporationId = 56; // int | A corporation ID +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCorporationsCorporationIdStandings** +> \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStandings200Ok[] getCorporationsCorporationIdStandings($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) + +Get corporation standings + +Return corporation standings from agents, NPC corporations, and factions --- Alternate route: `/dev/corporations/{corporation_id}/standings/` Alternate route: `/legacy/corporations/{corporation_id}/standings/` Alternate route: `/v1/corporations/{corporation_id}/standings/` --- This route is cached for up to 3600 seconds + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\CorporationApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$corporationId = 56; // int | An EVE corporation ID $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$page = 1; // int | Which page of results to return +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCorporationsCorporationIdMembers($corporationId, $datasource, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getCorporationsCorporationIdStandings($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { - echo 'Exception when calling CorporationApi->getCorporationsCorporationIdMembers: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling CorporationApi->getCorporationsCorporationIdStandings: ', $e->getMessage(), PHP_EOL; } ?> ``` @@ -203,15 +1169,16 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **corporationId** | **int**| A corporation ID | + **corporationId** | **int**| An EVE corporation ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **page** | **int**| Which page of results to return | [optional] [default to 1] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetCorporationsCorporationIdMembers200Ok[]**](../Model/GetCorporationsCorporationIdMembers200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStandings200Ok[]**](../Model/GetCorporationsCorporationIdStandings200Ok.md) ### Authorization @@ -224,12 +1191,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) -# **getCorporationsCorporationIdRoles** -> \nullx27\ESI\Models\GetCorporationsCorporationIdRoles200Ok[] getCorporationsCorporationIdRoles($corporationId, $datasource, $token, $userAgent, $xUserAgent) +# **getCorporationsCorporationIdStarbases** +> \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStarbases200Ok[] getCorporationsCorporationIdStarbases($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) -Get corporation member roles +Get corporation starbases (POSes) -Return the roles of all members if the character has the personnel manager role or any grantable role. --- Alternate route: `/v1/corporations/{corporation_id}/roles/` Alternate route: `/legacy/corporations/{corporation_id}/roles/` Alternate route: `/dev/corporations/{corporation_id}/roles/` --- This route is cached for up to 3600 seconds +Returns list of corporation starbases (POSes) --- Alternate route: `/dev/corporations/{corporation_id}/starbases/` Alternate route: `/legacy/corporations/{corporation_id}/starbases/` Alternate route: `/v1/corporations/{corporation_id}/starbases/` --- This route is cached for up to 3600 seconds --- Requires one of the following EVE corporation role(s): Director ### Example ```php @@ -237,20 +1204,91 @@ Return the roles of all members if the character has the personnel manager role require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\CorporationApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$corporationId = 56; // int | An EVE corporation ID +$datasource = "tranquility"; // string | The server name you would like data from +$page = 1; // int | Which page of results to return +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCorporationsCorporationIdStarbases($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling CorporationApi->getCorporationsCorporationIdStarbases: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **corporationId** | **int**| An EVE corporation ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **page** | **int**| Which page of results to return | [optional] [default to 1] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStarbases200Ok[]**](../Model/GetCorporationsCorporationIdStarbases200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json -$api_instance = new nullx27\ESI\Api\CorporationApi(); -$corporationId = 56; // int | A corporation ID +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCorporationsCorporationIdStarbasesStarbaseId** +> \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStarbasesStarbaseIdOk getCorporationsCorporationIdStarbasesStarbaseId($corporationId, $starbaseId, $systemId, $datasource, $page, $token, $userAgent, $xUserAgent) + +Get starbase (POS) detail + +Returns various settings and fuels of a starbase (POS) --- Alternate route: `/dev/corporations/{corporation_id}/starbases/{starbase_id}/` Alternate route: `/legacy/corporations/{corporation_id}/starbases/{starbase_id}/` Alternate route: `/v1/corporations/{corporation_id}/starbases/{starbase_id}/` --- This route is cached for up to 3600 seconds --- Requires one of the following EVE corporation role(s): Director + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\CorporationApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$corporationId = 56; // int | An EVE corporation ID +$starbaseId = 789; // int | An EVE starbase (POS) ID +$systemId = 56; // int | The solar system this starbase (POS) is located in, $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$page = 1; // int | Which page of results to return +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCorporationsCorporationIdRoles($corporationId, $datasource, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getCorporationsCorporationIdStarbasesStarbaseId($corporationId, $starbaseId, $systemId, $datasource, $page, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { - echo 'Exception when calling CorporationApi->getCorporationsCorporationIdRoles: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling CorporationApi->getCorporationsCorporationIdStarbasesStarbaseId: ', $e->getMessage(), PHP_EOL; } ?> ``` @@ -259,15 +1297,18 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **corporationId** | **int**| A corporation ID | + **corporationId** | **int**| An EVE corporation ID | + **starbaseId** | **int**| An EVE starbase (POS) ID | + **systemId** | **int**| The solar system this starbase (POS) is located in, | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **page** | **int**| Which page of results to return | [optional] [default to 1] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetCorporationsCorporationIdRoles200Ok[]**](../Model/GetCorporationsCorporationIdRoles200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStarbasesStarbaseIdOk**](../Model/GetCorporationsCorporationIdStarbasesStarbaseIdOk.md) ### Authorization @@ -281,11 +1322,11 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getCorporationsCorporationIdStructures** -> \nullx27\ESI\Models\GetCorporationsCorporationIdStructures200Ok[] getCorporationsCorporationIdStructures($corporationId, $datasource, $language, $page, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStructures200Ok[] getCorporationsCorporationIdStructures($corporationId, $datasource, $language, $page, $token, $userAgent, $xUserAgent) Get corporation structures -Get a list of corporation structures --- Alternate route: `/v1/corporations/{corporation_id}/structures/` Alternate route: `/legacy/corporations/{corporation_id}/structures/` Alternate route: `/dev/corporations/{corporation_id}/structures/` --- This route is cached for up to 3600 seconds +Get a list of corporation structures --- Alternate route: `/dev/corporations/{corporation_id}/structures/` Alternate route: `/legacy/corporations/{corporation_id}/structures/` Alternate route: `/v1/corporations/{corporation_id}/structures/` --- This route is cached for up to 3600 seconds --- Requires one of the following EVE corporation role(s): StationManager ### Example ```php @@ -293,19 +1334,24 @@ Get a list of corporation structures --- Alternate route: `/v1/corporations/{c require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\CorporationApi(); -$corporationId = 56; // int | A corporation ID +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\CorporationApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$corporationId = 56; // int | An EVE corporation ID $datasource = "tranquility"; // string | The server name you would like data from $language = "en-us"; // string | Language to use in the response -$page = 56; // int | Which page to query, 250 structures per page -$token = "token_example"; // string | Access token to use, if preferred over a header +$page = 1; // int | Which page of results to return +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCorporationsCorporationIdStructures($corporationId, $datasource, $language, $page, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getCorporationsCorporationIdStructures($corporationId, $datasource, $language, $page, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling CorporationApi->getCorporationsCorporationIdStructures: ', $e->getMessage(), PHP_EOL; @@ -317,17 +1363,78 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **corporationId** | **int**| A corporation ID | + **corporationId** | **int**| An EVE corporation ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] **language** | **string**| Language to use in the response | [optional] [default to en-us] - **page** | **int**| Which page to query, 250 structures per page | [optional] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **page** | **int**| Which page of results to return | [optional] [default to 1] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStructures200Ok[]**](../Model/GetCorporationsCorporationIdStructures200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCorporationsCorporationIdTitles** +> \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdTitles200Ok[] getCorporationsCorporationIdTitles($corporationId, $datasource, $token, $userAgent, $xUserAgent) + +Get corporation titles + +Returns a corporation's titles --- Alternate route: `/dev/corporations/{corporation_id}/titles/` Alternate route: `/legacy/corporations/{corporation_id}/titles/` Alternate route: `/v1/corporations/{corporation_id}/titles/` --- This route is cached for up to 3600 seconds --- Requires one of the following EVE corporation role(s): Director + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\CorporationApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$corporationId = 56; // int | An EVE corporation ID +$datasource = "tranquility"; // string | The server name you would like data from +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCorporationsCorporationIdTitles($corporationId, $datasource, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling CorporationApi->getCorporationsCorporationIdTitles: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **corporationId** | **int**| An EVE corporation ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetCorporationsCorporationIdStructures200Ok[]**](../Model/GetCorporationsCorporationIdStructures200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdTitles200Ok[]**](../Model/GetCorporationsCorporationIdTitles200Ok.md) ### Authorization @@ -341,25 +1448,29 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getCorporationsNames** -> \nullx27\ESI\Models\GetCorporationsNames200Ok[] getCorporationsNames($corporationIds, $datasource, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCorporationsNames200Ok[] getCorporationsNames($corporationIds, $datasource, $userAgent, $xUserAgent) Get corporation names -Resolve a set of corporation IDs to corporation names --- Alternate route: `/v1/corporations/names/` Alternate route: `/legacy/corporations/names/` Alternate route: `/dev/corporations/names/` --- This route is cached for up to 3600 seconds +Resolve a set of corporation IDs to corporation names --- Alternate route: `/dev/corporations/names/` Alternate route: `/v2/corporations/names/` --- This route is cached for up to 3600 seconds ### Example ```php getCorporationsNames($corporationIds, $datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getCorporationsNames($corporationIds, $datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling CorporationApi->getCorporationsNames: ', $e->getMessage(), PHP_EOL; @@ -378,7 +1489,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetCorporationsNames200Ok[]**](../Model/GetCorporationsNames200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationsNames200Ok[]**](../Model/GetCorporationsNames200Ok.md) ### Authorization @@ -396,20 +1507,24 @@ No authorization required Get npc corporations -Get a list of npc corporations --- Alternate route: `/v1/corporations/npccorps/` Alternate route: `/legacy/corporations/npccorps/` Alternate route: `/dev/corporations/npccorps/` --- This route is cached for up to 3600 seconds +Get a list of npc corporations --- Alternate route: `/dev/corporations/npccorps/` Alternate route: `/legacy/corporations/npccorps/` Alternate route: `/v1/corporations/npccorps/` --- This route expires daily at 11:05 ### Example ```php getCorporationsNpccorps($datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getCorporationsNpccorps($datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling CorporationApi->getCorporationsNpccorps: ', $e->getMessage(), PHP_EOL; @@ -445,7 +1560,7 @@ No authorization required Update structure vulnerability schedule -Update the vulnerability window schedule of a corporation structure --- Alternate route: `/v1/corporations/{corporation_id}/structures/{structure_id}/` Alternate route: `/legacy/corporations/{corporation_id}/structures/{structure_id}/` Alternate route: `/dev/corporations/{corporation_id}/structures/{structure_id}/` +Update the vulnerability window schedule of a corporation structure --- Alternate route: `/dev/corporations/{corporation_id}/structures/{structure_id}/` Alternate route: `/legacy/corporations/{corporation_id}/structures/{structure_id}/` Alternate route: `/v1/corporations/{corporation_id}/structures/{structure_id}/` ### Example ```php @@ -453,19 +1568,24 @@ Update the vulnerability window schedule of a corporation structure --- Altern require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\CorporationApi(); -$corporationId = 56; // int | A corporation ID -$newSchedule = array(new PutCorporationsCorporationIdStructuresStructureIdNewSchedule()); // \nullx27\ESI\Models\PutCorporationsCorporationIdStructuresStructureIdNewSchedule[] | New vulnerability window schedule for the structure +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\CorporationApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$corporationId = 56; // int | An EVE corporation ID +$newSchedule = array(new \nullx27ESI\nullx27\ESI\Models\PutCorporationsCorporationIdStructuresStructureIdNewSchedule()); // \nullx27ESI\nullx27\ESI\Models\PutCorporationsCorporationIdStructuresStructureIdNewSchedule[] | New vulnerability window schedule for the structure $structureId = 789; // int | A structure ID $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $api_instance->putCorporationsCorporationIdStructuresStructureId($corporationId, $newSchedule, $structureId, $datasource, $token, $userAgent, $xUserAgent); + $apiInstance->putCorporationsCorporationIdStructuresStructureId($corporationId, $newSchedule, $structureId, $datasource, $token, $userAgent, $xUserAgent); } catch (Exception $e) { echo 'Exception when calling CorporationApi->putCorporationsCorporationIdStructuresStructureId: ', $e->getMessage(), PHP_EOL; } @@ -476,11 +1596,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **corporationId** | **int**| A corporation ID | - **newSchedule** | [**\nullx27\ESI\Models\PutCorporationsCorporationIdStructuresStructureIdNewSchedule[]**](../Model/PutCorporationsCorporationIdStructuresStructureIdNewSchedule.md)| New vulnerability window schedule for the structure | + **corporationId** | **int**| An EVE corporation ID | + **newSchedule** | [**\nullx27ESI\nullx27\ESI\Models\PutCorporationsCorporationIdStructuresStructureIdNewSchedule[]**](../Model/PutCorporationsCorporationIdStructuresStructureIdNewSchedule.md)| New vulnerability window schedule for the structure | **structureId** | **int**| A structure ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] diff --git a/docs/Api/DogmaApi.md b/docs/Api/DogmaApi.md index dabe934..a8d3458 100644 --- a/docs/Api/DogmaApi.md +++ b/docs/Api/DogmaApi.md @@ -1,4 +1,4 @@ -# nullx27\ESI\DogmaApi +# nullx27ESI\DogmaApi All URIs are relative to *https://esi.tech.ccp.is/latest* @@ -15,20 +15,24 @@ Method | HTTP request | Description Get attributes -Get a list of dogma attribute ids --- Alternate route: `/v1/dogma/attributes/` Alternate route: `/legacy/dogma/attributes/` Alternate route: `/dev/dogma/attributes/` --- This route is cached for up to 3600 seconds +Get a list of dogma attribute ids --- Alternate route: `/dev/dogma/attributes/` Alternate route: `/legacy/dogma/attributes/` Alternate route: `/v1/dogma/attributes/` --- This route expires daily at 11:05 ### Example ```php getDogmaAttributes($datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getDogmaAttributes($datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling DogmaApi->getDogmaAttributes: ', $e->getMessage(), PHP_EOL; @@ -60,25 +64,29 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getDogmaAttributesAttributeId** -> \nullx27\ESI\Models\GetDogmaAttributesAttributeIdOk getDogmaAttributesAttributeId($attributeId, $datasource, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetDogmaAttributesAttributeIdOk getDogmaAttributesAttributeId($attributeId, $datasource, $userAgent, $xUserAgent) Get attribute information -Get information on a dogma attribute --- Alternate route: `/v1/dogma/attributes/{attribute_id}/` Alternate route: `/legacy/dogma/attributes/{attribute_id}/` Alternate route: `/dev/dogma/attributes/{attribute_id}/` --- This route is cached for up to 3600 seconds +Get information on a dogma attribute --- Alternate route: `/dev/dogma/attributes/{attribute_id}/` Alternate route: `/legacy/dogma/attributes/{attribute_id}/` Alternate route: `/v1/dogma/attributes/{attribute_id}/` --- This route expires daily at 11:05 ### Example ```php getDogmaAttributesAttributeId($attributeId, $datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getDogmaAttributesAttributeId($attributeId, $datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling DogmaApi->getDogmaAttributesAttributeId: ', $e->getMessage(), PHP_EOL; @@ -97,7 +105,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetDogmaAttributesAttributeIdOk**](../Model/GetDogmaAttributesAttributeIdOk.md) +[**\nullx27ESI\nullx27\ESI\Models\GetDogmaAttributesAttributeIdOk**](../Model/GetDogmaAttributesAttributeIdOk.md) ### Authorization @@ -115,20 +123,24 @@ No authorization required Get effects -Get a list of dogma effect ids --- Alternate route: `/v1/dogma/effects/` Alternate route: `/legacy/dogma/effects/` Alternate route: `/dev/dogma/effects/` --- This route is cached for up to 3600 seconds +Get a list of dogma effect ids --- Alternate route: `/dev/dogma/effects/` Alternate route: `/legacy/dogma/effects/` Alternate route: `/v1/dogma/effects/` --- This route expires daily at 11:05 ### Example ```php getDogmaEffects($datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getDogmaEffects($datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling DogmaApi->getDogmaEffects: ', $e->getMessage(), PHP_EOL; @@ -160,25 +172,29 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getDogmaEffectsEffectId** -> \nullx27\ESI\Models\GetDogmaEffectsEffectIdOk getDogmaEffectsEffectId($effectId, $datasource, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetDogmaEffectsEffectIdOk getDogmaEffectsEffectId($effectId, $datasource, $userAgent, $xUserAgent) Get effect information -Get information on a dogma effect --- Alternate route: `/v1/dogma/effects/{effect_id}/` Alternate route: `/legacy/dogma/effects/{effect_id}/` --- This route is cached for up to 3600 seconds +Get information on a dogma effect --- Alternate route: `/dev/dogma/effects/{effect_id}/` Alternate route: `/v2/dogma/effects/{effect_id}/` --- This route expires daily at 11:05 ### Example ```php getDogmaEffectsEffectId($effectId, $datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getDogmaEffectsEffectId($effectId, $datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling DogmaApi->getDogmaEffectsEffectId: ', $e->getMessage(), PHP_EOL; @@ -197,7 +213,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetDogmaEffectsEffectIdOk**](../Model/GetDogmaEffectsEffectIdOk.md) +[**\nullx27ESI\nullx27\ESI\Models\GetDogmaEffectsEffectIdOk**](../Model/GetDogmaEffectsEffectIdOk.md) ### Authorization diff --git a/docs/Api/FactionWarfareApi.md b/docs/Api/FactionWarfareApi.md new file mode 100644 index 0000000..4bb29c4 --- /dev/null +++ b/docs/Api/FactionWarfareApi.md @@ -0,0 +1,456 @@ +# nullx27ESI\FactionWarfareApi + +All URIs are relative to *https://esi.tech.ccp.is/latest* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getCharactersCharacterIdFwStats**](FactionWarfareApi.md#getCharactersCharacterIdFwStats) | **GET** /characters/{character_id}/fw/stats/ | Overview of a character involved in faction warfare +[**getCorporationsCorporationIdFwStats**](FactionWarfareApi.md#getCorporationsCorporationIdFwStats) | **GET** /corporations/{corporation_id}/fw/stats/ | Overview of a corporation involved in faction warfare +[**getFwLeaderboards**](FactionWarfareApi.md#getFwLeaderboards) | **GET** /fw/leaderboards/ | List of the top factions in faction warfare +[**getFwLeaderboardsCharacters**](FactionWarfareApi.md#getFwLeaderboardsCharacters) | **GET** /fw/leaderboards/characters/ | List of the top pilots in faction warfare +[**getFwLeaderboardsCorporations**](FactionWarfareApi.md#getFwLeaderboardsCorporations) | **GET** /fw/leaderboards/corporations/ | List of the top corporations in faction warfare +[**getFwStats**](FactionWarfareApi.md#getFwStats) | **GET** /fw/stats/ | An overview of statistics about factions involved in faction warfare +[**getFwSystems**](FactionWarfareApi.md#getFwSystems) | **GET** /fw/systems/ | Ownership of faction warfare systems +[**getFwWars**](FactionWarfareApi.md#getFwWars) | **GET** /fw/wars/ | Data about which NPC factions are at war + + +# **getCharactersCharacterIdFwStats** +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFwStatsOk getCharactersCharacterIdFwStats($characterId, $datasource, $token, $userAgent, $xUserAgent) + +Overview of a character involved in faction warfare + +Statistical overview of a character involved in faction warfare --- Alternate route: `/dev/characters/{character_id}/fw/stats/` Alternate route: `/legacy/characters/{character_id}/fw/stats/` Alternate route: `/v1/characters/{character_id}/fw/stats/` --- This route expires daily at 11:05 + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\FactionWarfareApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID +$datasource = "tranquility"; // string | The server name you would like data from +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCharactersCharacterIdFwStats($characterId, $datasource, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling FactionWarfareApi->getCharactersCharacterIdFwStats: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **characterId** | **int**| An EVE character ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFwStatsOk**](../Model/GetCharactersCharacterIdFwStatsOk.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCorporationsCorporationIdFwStats** +> \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdFwStatsOk getCorporationsCorporationIdFwStats($corporationId, $datasource, $token, $userAgent, $xUserAgent) + +Overview of a corporation involved in faction warfare + +Statistics about a corporation involved in faction warfare --- Alternate route: `/dev/corporations/{corporation_id}/fw/stats/` Alternate route: `/legacy/corporations/{corporation_id}/fw/stats/` Alternate route: `/v1/corporations/{corporation_id}/fw/stats/` --- This route expires daily at 11:05 + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\FactionWarfareApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$corporationId = 56; // int | An EVE corporation ID +$datasource = "tranquility"; // string | The server name you would like data from +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCorporationsCorporationIdFwStats($corporationId, $datasource, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling FactionWarfareApi->getCorporationsCorporationIdFwStats: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **corporationId** | **int**| An EVE corporation ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdFwStatsOk**](../Model/GetCorporationsCorporationIdFwStatsOk.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getFwLeaderboards** +> \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsOk getFwLeaderboards($datasource, $userAgent, $xUserAgent) + +List of the top factions in faction warfare + +Top 4 leaderboard of factions for kills and victory points separated by total, last week and yesterday. --- Alternate route: `/dev/fw/leaderboards/` Alternate route: `/legacy/fw/leaderboards/` Alternate route: `/v1/fw/leaderboards/` --- This route expires daily at 11:05 + +### Example +```php +getFwLeaderboards($datasource, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling FactionWarfareApi->getFwLeaderboards: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsOk**](../Model/GetFwLeaderboardsOk.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getFwLeaderboardsCharacters** +> \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersOk getFwLeaderboardsCharacters($datasource, $userAgent, $xUserAgent) + +List of the top pilots in faction warfare + +Top 100 leaderboard of pilots for kills and victory points separated by total, last week and yesterday. --- Alternate route: `/dev/fw/leaderboards/characters/` Alternate route: `/legacy/fw/leaderboards/characters/` Alternate route: `/v1/fw/leaderboards/characters/` --- This route expires daily at 11:05 + +### Example +```php +getFwLeaderboardsCharacters($datasource, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling FactionWarfareApi->getFwLeaderboardsCharacters: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersOk**](../Model/GetFwLeaderboardsCharactersOk.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getFwLeaderboardsCorporations** +> \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsOk getFwLeaderboardsCorporations($datasource, $userAgent, $xUserAgent) + +List of the top corporations in faction warfare + +Top 10 leaderboard of corporations for kills and victory points separated by total, last week and yesterday. --- Alternate route: `/dev/fw/leaderboards/corporations/` Alternate route: `/legacy/fw/leaderboards/corporations/` Alternate route: `/v1/fw/leaderboards/corporations/` --- This route expires daily at 11:05 + +### Example +```php +getFwLeaderboardsCorporations($datasource, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling FactionWarfareApi->getFwLeaderboardsCorporations: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsOk**](../Model/GetFwLeaderboardsCorporationsOk.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getFwStats** +> \nullx27ESI\nullx27\ESI\Models\GetFwStats200Ok[] getFwStats($datasource, $userAgent, $xUserAgent) + +An overview of statistics about factions involved in faction warfare + +Statistical overviews of factions involved in faction warfare --- Alternate route: `/dev/fw/stats/` Alternate route: `/legacy/fw/stats/` Alternate route: `/v1/fw/stats/` --- This route expires daily at 11:05 + +### Example +```php +getFwStats($datasource, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling FactionWarfareApi->getFwStats: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetFwStats200Ok[]**](../Model/GetFwStats200Ok.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getFwSystems** +> \nullx27ESI\nullx27\ESI\Models\GetFwSystems200Ok[] getFwSystems($datasource, $userAgent, $xUserAgent) + +Ownership of faction warfare systems + +An overview of the current ownership of faction warfare solar systems --- Alternate route: `/dev/fw/systems/` Alternate route: `/legacy/fw/systems/` Alternate route: `/v1/fw/systems/` --- This route is cached for up to 1800 seconds + +### Example +```php +getFwSystems($datasource, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling FactionWarfareApi->getFwSystems: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetFwSystems200Ok[]**](../Model/GetFwSystems200Ok.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getFwWars** +> \nullx27ESI\nullx27\ESI\Models\GetFwWars200Ok[] getFwWars($datasource, $userAgent, $xUserAgent) + +Data about which NPC factions are at war + +Data about which NPC factions are at war --- Alternate route: `/dev/fw/wars/` Alternate route: `/legacy/fw/wars/` Alternate route: `/v1/fw/wars/` --- This route expires daily at 11:05 + +### Example +```php +getFwWars($datasource, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling FactionWarfareApi->getFwWars: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetFwWars200Ok[]**](../Model/GetFwWars200Ok.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + diff --git a/docs/Api/FittingsApi.md b/docs/Api/FittingsApi.md index a8d41bb..a66a2f2 100644 --- a/docs/Api/FittingsApi.md +++ b/docs/Api/FittingsApi.md @@ -1,4 +1,4 @@ -# nullx27\ESI\FittingsApi +# nullx27ESI\FittingsApi All URIs are relative to *https://esi.tech.ccp.is/latest* @@ -14,7 +14,7 @@ Method | HTTP request | Description Delete fitting -Delete a fitting from a character --- Alternate route: `/v1/characters/{character_id}/fittings/{fitting_id}/` Alternate route: `/legacy/characters/{character_id}/fittings/{fitting_id}/` Alternate route: `/dev/characters/{character_id}/fittings/{fitting_id}/` +Delete a fitting from a character --- Alternate route: `/dev/characters/{character_id}/fittings/{fitting_id}/` Alternate route: `/legacy/characters/{character_id}/fittings/{fitting_id}/` Alternate route: `/v1/characters/{character_id}/fittings/{fitting_id}/` ### Example ```php @@ -22,18 +22,23 @@ Delete a fitting from a character --- Alternate route: `/v1/characters/{charac require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\FittingsApi(); -$characterId = 56; // int | ID for a character +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\FittingsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID $fittingId = 56; // int | ID for a fitting of this character $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $api_instance->deleteCharactersCharacterIdFittingsFittingId($characterId, $fittingId, $datasource, $token, $userAgent, $xUserAgent); + $apiInstance->deleteCharactersCharacterIdFittingsFittingId($characterId, $fittingId, $datasource, $token, $userAgent, $xUserAgent); } catch (Exception $e) { echo 'Exception when calling FittingsApi->deleteCharactersCharacterIdFittingsFittingId: ', $e->getMessage(), PHP_EOL; } @@ -44,10 +49,10 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **characterId** | **int**| ID for a character | + **characterId** | **int**| An EVE character ID | **fittingId** | **int**| ID for a fitting of this character | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] @@ -67,11 +72,11 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getCharactersCharacterIdFittings** -> \nullx27\ESI\Models\GetCharactersCharacterIdFittings200Ok[] getCharactersCharacterIdFittings($characterId, $datasource, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFittings200Ok[] getCharactersCharacterIdFittings($characterId, $datasource, $token, $userAgent, $xUserAgent) Get fittings -Return fittings of a character --- Alternate route: `/v1/characters/{character_id}/fittings/` Alternate route: `/legacy/characters/{character_id}/fittings/` Alternate route: `/dev/characters/{character_id}/fittings/` --- This route is cached for up to 300 seconds +Return fittings of a character --- Alternate route: `/dev/characters/{character_id}/fittings/` Alternate route: `/legacy/characters/{character_id}/fittings/` Alternate route: `/v1/characters/{character_id}/fittings/` --- This route is cached for up to 300 seconds ### Example ```php @@ -79,17 +84,22 @@ Return fittings of a character --- Alternate route: `/v1/characters/{character require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\FittingsApi(); -$characterId = 56; // int | ID for a character +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\FittingsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCharactersCharacterIdFittings($characterId, $datasource, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getCharactersCharacterIdFittings($characterId, $datasource, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling FittingsApi->getCharactersCharacterIdFittings: ', $e->getMessage(), PHP_EOL; @@ -101,15 +111,15 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **characterId** | **int**| ID for a character | + **characterId** | **int**| An EVE character ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetCharactersCharacterIdFittings200Ok[]**](../Model/GetCharactersCharacterIdFittings200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFittings200Ok[]**](../Model/GetCharactersCharacterIdFittings200Ok.md) ### Authorization @@ -123,11 +133,11 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **postCharactersCharacterIdFittings** -> \nullx27\ESI\Models\PostCharactersCharacterIdFittingsCreated postCharactersCharacterIdFittings($characterId, $datasource, $fitting, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdFittingsCreated postCharactersCharacterIdFittings($characterId, $datasource, $fitting, $token, $userAgent, $xUserAgent) Create fitting -Save a new fitting for a character --- Alternate route: `/v1/characters/{character_id}/fittings/` Alternate route: `/legacy/characters/{character_id}/fittings/` Alternate route: `/dev/characters/{character_id}/fittings/` +Save a new fitting for a character --- Alternate route: `/dev/characters/{character_id}/fittings/` Alternate route: `/legacy/characters/{character_id}/fittings/` Alternate route: `/v1/characters/{character_id}/fittings/` ### Example ```php @@ -135,18 +145,23 @@ Save a new fitting for a character --- Alternate route: `/v1/characters/{chara require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\FittingsApi(); -$characterId = 56; // int | ID for a character +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\FittingsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID $datasource = "tranquility"; // string | The server name you would like data from -$fitting = new \nullx27\ESI\Models\PostCharactersCharacterIdFittingsFitting(); // \nullx27\ESI\Models\PostCharactersCharacterIdFittingsFitting | Details about the new fitting -$token = "token_example"; // string | Access token to use, if preferred over a header +$fitting = new \nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdFittingsFitting(); // \nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdFittingsFitting | Details about the new fitting +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->postCharactersCharacterIdFittings($characterId, $datasource, $fitting, $token, $userAgent, $xUserAgent); + $result = $apiInstance->postCharactersCharacterIdFittings($characterId, $datasource, $fitting, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling FittingsApi->postCharactersCharacterIdFittings: ', $e->getMessage(), PHP_EOL; @@ -158,16 +173,16 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **characterId** | **int**| ID for a character | + **characterId** | **int**| An EVE character ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **fitting** | [**\nullx27\ESI\Models\PostCharactersCharacterIdFittingsFitting**](../Model/\nullx27\ESI\Models\PostCharactersCharacterIdFittingsFitting.md)| Details about the new fitting | [optional] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **fitting** | [**\nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdFittingsFitting**](../Model/PostCharactersCharacterIdFittingsFitting.md)| Details about the new fitting | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\PostCharactersCharacterIdFittingsCreated**](../Model/PostCharactersCharacterIdFittingsCreated.md) +[**\nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdFittingsCreated**](../Model/PostCharactersCharacterIdFittingsCreated.md) ### Authorization diff --git a/docs/Api/FleetsApi.md b/docs/Api/FleetsApi.md index 7498fa4..681d6fb 100644 --- a/docs/Api/FleetsApi.md +++ b/docs/Api/FleetsApi.md @@ -1,4 +1,4 @@ -# nullx27\ESI\FleetsApi +# nullx27ESI\FleetsApi All URIs are relative to *https://esi.tech.ccp.is/latest* @@ -7,6 +7,7 @@ Method | HTTP request | Description [**deleteFleetsFleetIdMembersMemberId**](FleetsApi.md#deleteFleetsFleetIdMembersMemberId) | **DELETE** /fleets/{fleet_id}/members/{member_id}/ | Kick fleet member [**deleteFleetsFleetIdSquadsSquadId**](FleetsApi.md#deleteFleetsFleetIdSquadsSquadId) | **DELETE** /fleets/{fleet_id}/squads/{squad_id}/ | Delete fleet squad [**deleteFleetsFleetIdWingsWingId**](FleetsApi.md#deleteFleetsFleetIdWingsWingId) | **DELETE** /fleets/{fleet_id}/wings/{wing_id}/ | Delete fleet wing +[**getCharactersCharacterIdFleet**](FleetsApi.md#getCharactersCharacterIdFleet) | **GET** /characters/{character_id}/fleet/ | Get character fleet info [**getFleetsFleetId**](FleetsApi.md#getFleetsFleetId) | **GET** /fleets/{fleet_id}/ | Get fleet information [**getFleetsFleetIdMembers**](FleetsApi.md#getFleetsFleetIdMembers) | **GET** /fleets/{fleet_id}/members/ | Get fleet members [**getFleetsFleetIdWings**](FleetsApi.md#getFleetsFleetIdWings) | **GET** /fleets/{fleet_id}/wings/ | Get fleet wings @@ -24,7 +25,7 @@ Method | HTTP request | Description Kick fleet member -Kick a fleet member --- Alternate route: `/v1/fleets/{fleet_id}/members/{member_id}/` Alternate route: `/legacy/fleets/{fleet_id}/members/{member_id}/` Alternate route: `/dev/fleets/{fleet_id}/members/{member_id}/` +Kick a fleet member --- Alternate route: `/dev/fleets/{fleet_id}/members/{member_id}/` Alternate route: `/legacy/fleets/{fleet_id}/members/{member_id}/` Alternate route: `/v1/fleets/{fleet_id}/members/{member_id}/` ### Example ```php @@ -32,18 +33,23 @@ Kick a fleet member --- Alternate route: `/v1/fleets/{fleet_id}/members/{membe require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\FleetsApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\FleetsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $fleetId = 789; // int | ID for a fleet $memberId = 56; // int | The character ID of a member in this fleet $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $api_instance->deleteFleetsFleetIdMembersMemberId($fleetId, $memberId, $datasource, $token, $userAgent, $xUserAgent); + $apiInstance->deleteFleetsFleetIdMembersMemberId($fleetId, $memberId, $datasource, $token, $userAgent, $xUserAgent); } catch (Exception $e) { echo 'Exception when calling FleetsApi->deleteFleetsFleetIdMembersMemberId: ', $e->getMessage(), PHP_EOL; } @@ -57,7 +63,7 @@ Name | Type | Description | Notes **fleetId** | **int**| ID for a fleet | **memberId** | **int**| The character ID of a member in this fleet | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] @@ -81,7 +87,7 @@ void (empty response body) Delete fleet squad -Delete a fleet squad, only empty squads can be deleted --- Alternate route: `/v1/fleets/{fleet_id}/squads/{squad_id}/` Alternate route: `/legacy/fleets/{fleet_id}/squads/{squad_id}/` Alternate route: `/dev/fleets/{fleet_id}/squads/{squad_id}/` +Delete a fleet squad, only empty squads can be deleted --- Alternate route: `/dev/fleets/{fleet_id}/squads/{squad_id}/` Alternate route: `/legacy/fleets/{fleet_id}/squads/{squad_id}/` Alternate route: `/v1/fleets/{fleet_id}/squads/{squad_id}/` ### Example ```php @@ -89,18 +95,23 @@ Delete a fleet squad, only empty squads can be deleted --- Alternate route: `/ require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\FleetsApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\FleetsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $fleetId = 789; // int | ID for a fleet $squadId = 789; // int | The squad to delete $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $api_instance->deleteFleetsFleetIdSquadsSquadId($fleetId, $squadId, $datasource, $token, $userAgent, $xUserAgent); + $apiInstance->deleteFleetsFleetIdSquadsSquadId($fleetId, $squadId, $datasource, $token, $userAgent, $xUserAgent); } catch (Exception $e) { echo 'Exception when calling FleetsApi->deleteFleetsFleetIdSquadsSquadId: ', $e->getMessage(), PHP_EOL; } @@ -114,7 +125,7 @@ Name | Type | Description | Notes **fleetId** | **int**| ID for a fleet | **squadId** | **int**| The squad to delete | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] @@ -138,7 +149,7 @@ void (empty response body) Delete fleet wing -Delete a fleet wing, only empty wings can be deleted. The wing may contain squads, but the squads must be empty --- Alternate route: `/v1/fleets/{fleet_id}/wings/{wing_id}/` Alternate route: `/legacy/fleets/{fleet_id}/wings/{wing_id}/` Alternate route: `/dev/fleets/{fleet_id}/wings/{wing_id}/` +Delete a fleet wing, only empty wings can be deleted. The wing may contain squads, but the squads must be empty --- Alternate route: `/dev/fleets/{fleet_id}/wings/{wing_id}/` Alternate route: `/legacy/fleets/{fleet_id}/wings/{wing_id}/` Alternate route: `/v1/fleets/{fleet_id}/wings/{wing_id}/` ### Example ```php @@ -146,18 +157,23 @@ Delete a fleet wing, only empty wings can be deleted. The wing may contain squad require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\FleetsApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\FleetsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $fleetId = 789; // int | ID for a fleet $wingId = 789; // int | The wing to delete $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $api_instance->deleteFleetsFleetIdWingsWingId($fleetId, $wingId, $datasource, $token, $userAgent, $xUserAgent); + $apiInstance->deleteFleetsFleetIdWingsWingId($fleetId, $wingId, $datasource, $token, $userAgent, $xUserAgent); } catch (Exception $e) { echo 'Exception when calling FleetsApi->deleteFleetsFleetIdWingsWingId: ', $e->getMessage(), PHP_EOL; } @@ -171,7 +187,7 @@ Name | Type | Description | Notes **fleetId** | **int**| ID for a fleet | **wingId** | **int**| The wing to delete | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] @@ -190,12 +206,73 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) +# **getCharactersCharacterIdFleet** +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFleetOk getCharactersCharacterIdFleet($characterId, $datasource, $token, $userAgent, $xUserAgent) + +Get character fleet info + +Return the fleet ID the character is in, if any. --- Alternate route: `/dev/characters/{character_id}/fleet/` Alternate route: `/legacy/characters/{character_id}/fleet/` Alternate route: `/v1/characters/{character_id}/fleet/` --- This route is cached for up to 60 seconds + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\FleetsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID +$datasource = "tranquility"; // string | The server name you would like data from +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCharactersCharacterIdFleet($characterId, $datasource, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling FleetsApi->getCharactersCharacterIdFleet: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **characterId** | **int**| An EVE character ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFleetOk**](../Model/GetCharactersCharacterIdFleetOk.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + # **getFleetsFleetId** -> \nullx27\ESI\Models\GetFleetsFleetIdOk getFleetsFleetId($fleetId, $datasource, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetFleetsFleetIdOk getFleetsFleetId($fleetId, $datasource, $token, $userAgent, $xUserAgent) Get fleet information -Return details about a fleet --- Alternate route: `/v1/fleets/{fleet_id}/` Alternate route: `/legacy/fleets/{fleet_id}/` Alternate route: `/dev/fleets/{fleet_id}/` --- This route is cached for up to 5 seconds +Return details about a fleet --- Alternate route: `/dev/fleets/{fleet_id}/` Alternate route: `/legacy/fleets/{fleet_id}/` Alternate route: `/v1/fleets/{fleet_id}/` --- This route is cached for up to 5 seconds ### Example ```php @@ -203,17 +280,22 @@ Return details about a fleet --- Alternate route: `/v1/fleets/{fleet_id}/` Al require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\FleetsApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\FleetsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $fleetId = 789; // int | ID for a fleet $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getFleetsFleetId($fleetId, $datasource, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getFleetsFleetId($fleetId, $datasource, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling FleetsApi->getFleetsFleetId: ', $e->getMessage(), PHP_EOL; @@ -227,13 +309,13 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **fleetId** | **int**| ID for a fleet | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetFleetsFleetIdOk**](../Model/GetFleetsFleetIdOk.md) +[**\nullx27ESI\nullx27\ESI\Models\GetFleetsFleetIdOk**](../Model/GetFleetsFleetIdOk.md) ### Authorization @@ -247,11 +329,11 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getFleetsFleetIdMembers** -> \nullx27\ESI\Models\GetFleetsFleetIdMembers200Ok[] getFleetsFleetIdMembers($fleetId, $datasource, $language, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetFleetsFleetIdMembers200Ok[] getFleetsFleetIdMembers($fleetId, $datasource, $language, $token, $userAgent, $xUserAgent) Get fleet members -Return information about fleet members --- Alternate route: `/v1/fleets/{fleet_id}/members/` Alternate route: `/legacy/fleets/{fleet_id}/members/` Alternate route: `/dev/fleets/{fleet_id}/members/` --- This route is cached for up to 5 seconds +Return information about fleet members --- Alternate route: `/dev/fleets/{fleet_id}/members/` Alternate route: `/legacy/fleets/{fleet_id}/members/` Alternate route: `/v1/fleets/{fleet_id}/members/` --- This route is cached for up to 5 seconds ### Example ```php @@ -259,18 +341,23 @@ Return information about fleet members --- Alternate route: `/v1/fleets/{fleet require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\FleetsApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\FleetsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $fleetId = 789; // int | ID for a fleet $datasource = "tranquility"; // string | The server name you would like data from $language = "en-us"; // string | Language to use in the response -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getFleetsFleetIdMembers($fleetId, $datasource, $language, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getFleetsFleetIdMembers($fleetId, $datasource, $language, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling FleetsApi->getFleetsFleetIdMembers: ', $e->getMessage(), PHP_EOL; @@ -285,13 +372,13 @@ Name | Type | Description | Notes **fleetId** | **int**| ID for a fleet | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] **language** | **string**| Language to use in the response | [optional] [default to en-us] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetFleetsFleetIdMembers200Ok[]**](../Model/GetFleetsFleetIdMembers200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetFleetsFleetIdMembers200Ok[]**](../Model/GetFleetsFleetIdMembers200Ok.md) ### Authorization @@ -305,11 +392,11 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getFleetsFleetIdWings** -> \nullx27\ESI\Models\GetFleetsFleetIdWings200Ok[] getFleetsFleetIdWings($fleetId, $datasource, $language, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetFleetsFleetIdWings200Ok[] getFleetsFleetIdWings($fleetId, $datasource, $language, $token, $userAgent, $xUserAgent) Get fleet wings -Return information about wings in a fleet --- Alternate route: `/v1/fleets/{fleet_id}/wings/` Alternate route: `/legacy/fleets/{fleet_id}/wings/` Alternate route: `/dev/fleets/{fleet_id}/wings/` --- This route is cached for up to 5 seconds +Return information about wings in a fleet --- Alternate route: `/dev/fleets/{fleet_id}/wings/` Alternate route: `/legacy/fleets/{fleet_id}/wings/` Alternate route: `/v1/fleets/{fleet_id}/wings/` --- This route is cached for up to 5 seconds ### Example ```php @@ -317,18 +404,23 @@ Return information about wings in a fleet --- Alternate route: `/v1/fleets/{fl require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\FleetsApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\FleetsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $fleetId = 789; // int | ID for a fleet $datasource = "tranquility"; // string | The server name you would like data from $language = "en-us"; // string | Language to use in the response -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getFleetsFleetIdWings($fleetId, $datasource, $language, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getFleetsFleetIdWings($fleetId, $datasource, $language, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling FleetsApi->getFleetsFleetIdWings: ', $e->getMessage(), PHP_EOL; @@ -343,13 +435,13 @@ Name | Type | Description | Notes **fleetId** | **int**| ID for a fleet | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] **language** | **string**| Language to use in the response | [optional] [default to en-us] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetFleetsFleetIdWings200Ok[]**](../Model/GetFleetsFleetIdWings200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetFleetsFleetIdWings200Ok[]**](../Model/GetFleetsFleetIdWings200Ok.md) ### Authorization @@ -367,7 +459,7 @@ Name | Type | Description | Notes Create fleet invitation -Invite a character into the fleet, if a character has a CSPA charge set, it is not possible to invite them to the fleet using ESI --- Alternate route: `/v1/fleets/{fleet_id}/members/` Alternate route: `/legacy/fleets/{fleet_id}/members/` Alternate route: `/dev/fleets/{fleet_id}/members/` +Invite a character into the fleet. If a character has a CSPA charge set it is not possible to invite them to the fleet using ESI --- Alternate route: `/dev/fleets/{fleet_id}/members/` Alternate route: `/legacy/fleets/{fleet_id}/members/` Alternate route: `/v1/fleets/{fleet_id}/members/` ### Example ```php @@ -375,18 +467,23 @@ Invite a character into the fleet, if a character has a CSPA charge set, it is n require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\FleetsApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\FleetsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $fleetId = 789; // int | ID for a fleet -$invitation = new \nullx27\ESI\Models\PostFleetsFleetIdMembersInvitation(); // \nullx27\ESI\Models\PostFleetsFleetIdMembersInvitation | Details of the invitation +$invitation = new \nullx27ESI\nullx27\ESI\Models\PostFleetsFleetIdMembersInvitation(); // \nullx27ESI\nullx27\ESI\Models\PostFleetsFleetIdMembersInvitation | Details of the invitation $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $api_instance->postFleetsFleetIdMembers($fleetId, $invitation, $datasource, $token, $userAgent, $xUserAgent); + $apiInstance->postFleetsFleetIdMembers($fleetId, $invitation, $datasource, $token, $userAgent, $xUserAgent); } catch (Exception $e) { echo 'Exception when calling FleetsApi->postFleetsFleetIdMembers: ', $e->getMessage(), PHP_EOL; } @@ -398,9 +495,9 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **fleetId** | **int**| ID for a fleet | - **invitation** | [**\nullx27\ESI\Models\PostFleetsFleetIdMembersInvitation**](../Model/\nullx27\ESI\Models\PostFleetsFleetIdMembersInvitation.md)| Details of the invitation | + **invitation** | [**\nullx27ESI\nullx27\ESI\Models\PostFleetsFleetIdMembersInvitation**](../Model/PostFleetsFleetIdMembersInvitation.md)| Details of the invitation | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] @@ -420,11 +517,11 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **postFleetsFleetIdWings** -> \nullx27\ESI\Models\PostFleetsFleetIdWingsCreated postFleetsFleetIdWings($fleetId, $datasource, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\PostFleetsFleetIdWingsCreated postFleetsFleetIdWings($fleetId, $datasource, $token, $userAgent, $xUserAgent) Create fleet wing -Create a new wing in a fleet --- Alternate route: `/v1/fleets/{fleet_id}/wings/` Alternate route: `/legacy/fleets/{fleet_id}/wings/` Alternate route: `/dev/fleets/{fleet_id}/wings/` +Create a new wing in a fleet --- Alternate route: `/dev/fleets/{fleet_id}/wings/` Alternate route: `/legacy/fleets/{fleet_id}/wings/` Alternate route: `/v1/fleets/{fleet_id}/wings/` ### Example ```php @@ -432,17 +529,22 @@ Create a new wing in a fleet --- Alternate route: `/v1/fleets/{fleet_id}/wings require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\FleetsApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\FleetsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $fleetId = 789; // int | ID for a fleet $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->postFleetsFleetIdWings($fleetId, $datasource, $token, $userAgent, $xUserAgent); + $result = $apiInstance->postFleetsFleetIdWings($fleetId, $datasource, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling FleetsApi->postFleetsFleetIdWings: ', $e->getMessage(), PHP_EOL; @@ -456,13 +558,13 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **fleetId** | **int**| ID for a fleet | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\PostFleetsFleetIdWingsCreated**](../Model/PostFleetsFleetIdWingsCreated.md) +[**\nullx27ESI\nullx27\ESI\Models\PostFleetsFleetIdWingsCreated**](../Model/PostFleetsFleetIdWingsCreated.md) ### Authorization @@ -476,11 +578,11 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **postFleetsFleetIdWingsWingIdSquads** -> \nullx27\ESI\Models\PostFleetsFleetIdWingsWingIdSquadsCreated postFleetsFleetIdWingsWingIdSquads($fleetId, $wingId, $datasource, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\PostFleetsFleetIdWingsWingIdSquadsCreated postFleetsFleetIdWingsWingIdSquads($fleetId, $wingId, $datasource, $token, $userAgent, $xUserAgent) Create fleet squad -Create a new squad in a fleet --- Alternate route: `/v1/fleets/{fleet_id}/wings/{wing_id}/squads/` Alternate route: `/legacy/fleets/{fleet_id}/wings/{wing_id}/squads/` Alternate route: `/dev/fleets/{fleet_id}/wings/{wing_id}/squads/` +Create a new squad in a fleet --- Alternate route: `/dev/fleets/{fleet_id}/wings/{wing_id}/squads/` Alternate route: `/legacy/fleets/{fleet_id}/wings/{wing_id}/squads/` Alternate route: `/v1/fleets/{fleet_id}/wings/{wing_id}/squads/` ### Example ```php @@ -488,18 +590,23 @@ Create a new squad in a fleet --- Alternate route: `/v1/fleets/{fleet_id}/wing require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\FleetsApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\FleetsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $fleetId = 789; // int | ID for a fleet $wingId = 789; // int | The wing_id to create squad in $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->postFleetsFleetIdWingsWingIdSquads($fleetId, $wingId, $datasource, $token, $userAgent, $xUserAgent); + $result = $apiInstance->postFleetsFleetIdWingsWingIdSquads($fleetId, $wingId, $datasource, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling FleetsApi->postFleetsFleetIdWingsWingIdSquads: ', $e->getMessage(), PHP_EOL; @@ -514,13 +621,13 @@ Name | Type | Description | Notes **fleetId** | **int**| ID for a fleet | **wingId** | **int**| The wing_id to create squad in | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\PostFleetsFleetIdWingsWingIdSquadsCreated**](../Model/PostFleetsFleetIdWingsWingIdSquadsCreated.md) +[**\nullx27ESI\nullx27\ESI\Models\PostFleetsFleetIdWingsWingIdSquadsCreated**](../Model/PostFleetsFleetIdWingsWingIdSquadsCreated.md) ### Authorization @@ -538,7 +645,7 @@ Name | Type | Description | Notes Update fleet -Update settings about a fleet --- Alternate route: `/v1/fleets/{fleet_id}/` Alternate route: `/legacy/fleets/{fleet_id}/` Alternate route: `/dev/fleets/{fleet_id}/` +Update settings about a fleet --- Alternate route: `/dev/fleets/{fleet_id}/` Alternate route: `/legacy/fleets/{fleet_id}/` Alternate route: `/v1/fleets/{fleet_id}/` ### Example ```php @@ -546,18 +653,23 @@ Update settings about a fleet --- Alternate route: `/v1/fleets/{fleet_id}/` A require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\FleetsApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\FleetsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $fleetId = 789; // int | ID for a fleet -$newSettings = new \nullx27\ESI\Models\PutFleetsFleetIdNewSettings(); // \nullx27\ESI\Models\PutFleetsFleetIdNewSettings | What to update for this fleet +$newSettings = new \nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdNewSettings(); // \nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdNewSettings | What to update for this fleet $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $api_instance->putFleetsFleetId($fleetId, $newSettings, $datasource, $token, $userAgent, $xUserAgent); + $apiInstance->putFleetsFleetId($fleetId, $newSettings, $datasource, $token, $userAgent, $xUserAgent); } catch (Exception $e) { echo 'Exception when calling FleetsApi->putFleetsFleetId: ', $e->getMessage(), PHP_EOL; } @@ -569,9 +681,9 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **fleetId** | **int**| ID for a fleet | - **newSettings** | [**\nullx27\ESI\Models\PutFleetsFleetIdNewSettings**](../Model/\nullx27\ESI\Models\PutFleetsFleetIdNewSettings.md)| What to update for this fleet | + **newSettings** | [**\nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdNewSettings**](../Model/PutFleetsFleetIdNewSettings.md)| What to update for this fleet | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] @@ -595,7 +707,7 @@ void (empty response body) Move fleet member -Move a fleet member around --- Alternate route: `/v1/fleets/{fleet_id}/members/{member_id}/` Alternate route: `/legacy/fleets/{fleet_id}/members/{member_id}/` Alternate route: `/dev/fleets/{fleet_id}/members/{member_id}/` +Move a fleet member around --- Alternate route: `/dev/fleets/{fleet_id}/members/{member_id}/` Alternate route: `/legacy/fleets/{fleet_id}/members/{member_id}/` Alternate route: `/v1/fleets/{fleet_id}/members/{member_id}/` ### Example ```php @@ -603,19 +715,24 @@ Move a fleet member around --- Alternate route: `/v1/fleets/{fleet_id}/members require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\FleetsApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\FleetsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $fleetId = 789; // int | ID for a fleet $memberId = 56; // int | The character ID of a member in this fleet -$movement = new \nullx27\ESI\Models\PutFleetsFleetIdMembersMemberIdMovement(); // \nullx27\ESI\Models\PutFleetsFleetIdMembersMemberIdMovement | Details of the invitation +$movement = new \nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdMembersMemberIdMovement(); // \nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdMembersMemberIdMovement | Details of the invitation $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $api_instance->putFleetsFleetIdMembersMemberId($fleetId, $memberId, $movement, $datasource, $token, $userAgent, $xUserAgent); + $apiInstance->putFleetsFleetIdMembersMemberId($fleetId, $memberId, $movement, $datasource, $token, $userAgent, $xUserAgent); } catch (Exception $e) { echo 'Exception when calling FleetsApi->putFleetsFleetIdMembersMemberId: ', $e->getMessage(), PHP_EOL; } @@ -628,9 +745,9 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **fleetId** | **int**| ID for a fleet | **memberId** | **int**| The character ID of a member in this fleet | - **movement** | [**\nullx27\ESI\Models\PutFleetsFleetIdMembersMemberIdMovement**](../Model/\nullx27\ESI\Models\PutFleetsFleetIdMembersMemberIdMovement.md)| Details of the invitation | + **movement** | [**\nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdMembersMemberIdMovement**](../Model/PutFleetsFleetIdMembersMemberIdMovement.md)| Details of the invitation | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] @@ -654,7 +771,7 @@ void (empty response body) Rename fleet squad -Rename a fleet squad --- Alternate route: `/v1/fleets/{fleet_id}/squads/{squad_id}/` Alternate route: `/legacy/fleets/{fleet_id}/squads/{squad_id}/` Alternate route: `/dev/fleets/{fleet_id}/squads/{squad_id}/` +Rename a fleet squad --- Alternate route: `/dev/fleets/{fleet_id}/squads/{squad_id}/` Alternate route: `/legacy/fleets/{fleet_id}/squads/{squad_id}/` Alternate route: `/v1/fleets/{fleet_id}/squads/{squad_id}/` ### Example ```php @@ -662,19 +779,24 @@ Rename a fleet squad --- Alternate route: `/v1/fleets/{fleet_id}/squads/{squad require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\FleetsApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\FleetsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $fleetId = 789; // int | ID for a fleet -$naming = new \nullx27\ESI\Models\PutFleetsFleetIdSquadsSquadIdNaming(); // \nullx27\ESI\Models\PutFleetsFleetIdSquadsSquadIdNaming | New name of the squad +$naming = new \nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdSquadsSquadIdNaming(); // \nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdSquadsSquadIdNaming | New name of the squad $squadId = 789; // int | The squad to rename $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $api_instance->putFleetsFleetIdSquadsSquadId($fleetId, $naming, $squadId, $datasource, $token, $userAgent, $xUserAgent); + $apiInstance->putFleetsFleetIdSquadsSquadId($fleetId, $naming, $squadId, $datasource, $token, $userAgent, $xUserAgent); } catch (Exception $e) { echo 'Exception when calling FleetsApi->putFleetsFleetIdSquadsSquadId: ', $e->getMessage(), PHP_EOL; } @@ -686,10 +808,10 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **fleetId** | **int**| ID for a fleet | - **naming** | [**\nullx27\ESI\Models\PutFleetsFleetIdSquadsSquadIdNaming**](../Model/\nullx27\ESI\Models\PutFleetsFleetIdSquadsSquadIdNaming.md)| New name of the squad | + **naming** | [**\nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdSquadsSquadIdNaming**](../Model/PutFleetsFleetIdSquadsSquadIdNaming.md)| New name of the squad | **squadId** | **int**| The squad to rename | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] @@ -713,7 +835,7 @@ void (empty response body) Rename fleet wing -Rename a fleet wing --- Alternate route: `/v1/fleets/{fleet_id}/wings/{wing_id}/` Alternate route: `/legacy/fleets/{fleet_id}/wings/{wing_id}/` Alternate route: `/dev/fleets/{fleet_id}/wings/{wing_id}/` +Rename a fleet wing --- Alternate route: `/dev/fleets/{fleet_id}/wings/{wing_id}/` Alternate route: `/legacy/fleets/{fleet_id}/wings/{wing_id}/` Alternate route: `/v1/fleets/{fleet_id}/wings/{wing_id}/` ### Example ```php @@ -721,19 +843,24 @@ Rename a fleet wing --- Alternate route: `/v1/fleets/{fleet_id}/wings/{wing_id require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\FleetsApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\FleetsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $fleetId = 789; // int | ID for a fleet -$naming = new \nullx27\ESI\Models\PutFleetsFleetIdWingsWingIdNaming(); // \nullx27\ESI\Models\PutFleetsFleetIdWingsWingIdNaming | New name of the wing +$naming = new \nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdWingsWingIdNaming(); // \nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdWingsWingIdNaming | New name of the wing $wingId = 789; // int | The wing to rename $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $api_instance->putFleetsFleetIdWingsWingId($fleetId, $naming, $wingId, $datasource, $token, $userAgent, $xUserAgent); + $apiInstance->putFleetsFleetIdWingsWingId($fleetId, $naming, $wingId, $datasource, $token, $userAgent, $xUserAgent); } catch (Exception $e) { echo 'Exception when calling FleetsApi->putFleetsFleetIdWingsWingId: ', $e->getMessage(), PHP_EOL; } @@ -745,10 +872,10 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **fleetId** | **int**| ID for a fleet | - **naming** | [**\nullx27\ESI\Models\PutFleetsFleetIdWingsWingIdNaming**](../Model/\nullx27\ESI\Models\PutFleetsFleetIdWingsWingIdNaming.md)| New name of the wing | + **naming** | [**\nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdWingsWingIdNaming**](../Model/PutFleetsFleetIdWingsWingIdNaming.md)| New name of the wing | **wingId** | **int**| The wing to rename | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] diff --git a/docs/Api/IncursionsApi.md b/docs/Api/IncursionsApi.md index 5fb1df4..1c2d680 100644 --- a/docs/Api/IncursionsApi.md +++ b/docs/Api/IncursionsApi.md @@ -1,4 +1,4 @@ -# nullx27\ESI\IncursionsApi +# nullx27ESI\IncursionsApi All URIs are relative to *https://esi.tech.ccp.is/latest* @@ -8,24 +8,28 @@ Method | HTTP request | Description # **getIncursions** -> \nullx27\ESI\Models\GetIncursions200Ok[] getIncursions($datasource, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetIncursions200Ok[] getIncursions($datasource, $userAgent, $xUserAgent) List incursions -Return a list of current incursions --- Alternate route: `/v1/incursions/` Alternate route: `/legacy/incursions/` Alternate route: `/dev/incursions/` --- This route is cached for up to 300 seconds +Return a list of current incursions --- Alternate route: `/dev/incursions/` Alternate route: `/legacy/incursions/` Alternate route: `/v1/incursions/` --- This route is cached for up to 300 seconds ### Example ```php getIncursions($datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getIncursions($datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling IncursionsApi->getIncursions: ', $e->getMessage(), PHP_EOL; @@ -43,7 +47,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetIncursions200Ok[]**](../Model/GetIncursions200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetIncursions200Ok[]**](../Model/GetIncursions200Ok.md) ### Authorization diff --git a/docs/Api/IndustryApi.md b/docs/Api/IndustryApi.md index 99db554..7a66bcf 100644 --- a/docs/Api/IndustryApi.md +++ b/docs/Api/IndustryApi.md @@ -1,20 +1,25 @@ -# nullx27\ESI\IndustryApi +# nullx27ESI\IndustryApi All URIs are relative to *https://esi.tech.ccp.is/latest* Method | HTTP request | Description ------------- | ------------- | ------------- [**getCharactersCharacterIdIndustryJobs**](IndustryApi.md#getCharactersCharacterIdIndustryJobs) | **GET** /characters/{character_id}/industry/jobs/ | List character industry jobs +[**getCharactersCharacterIdMining**](IndustryApi.md#getCharactersCharacterIdMining) | **GET** /characters/{character_id}/mining/ | Character mining ledger +[**getCorporationCorporationIdMiningExtractions**](IndustryApi.md#getCorporationCorporationIdMiningExtractions) | **GET** /corporation/{corporation_id}/mining/extractions/ | Moon extraction timers +[**getCorporationCorporationIdMiningObservers**](IndustryApi.md#getCorporationCorporationIdMiningObservers) | **GET** /corporation/{corporation_id}/mining/observers/ | Corporation mining observers +[**getCorporationCorporationIdMiningObserversObserverId**](IndustryApi.md#getCorporationCorporationIdMiningObserversObserverId) | **GET** /corporation/{corporation_id}/mining/observers/{observer_id}/ | Observed corporation mining +[**getCorporationsCorporationIdIndustryJobs**](IndustryApi.md#getCorporationsCorporationIdIndustryJobs) | **GET** /corporations/{corporation_id}/industry/jobs/ | List corporation industry jobs [**getIndustryFacilities**](IndustryApi.md#getIndustryFacilities) | **GET** /industry/facilities/ | List industry facilities [**getIndustrySystems**](IndustryApi.md#getIndustrySystems) | **GET** /industry/systems/ | List solar system cost indices # **getCharactersCharacterIdIndustryJobs** -> \nullx27\ESI\Models\GetCharactersCharacterIdIndustryJobs200Ok[] getCharactersCharacterIdIndustryJobs($characterId, $datasource, $includeCompleted, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdIndustryJobs200Ok[] getCharactersCharacterIdIndustryJobs($characterId, $datasource, $includeCompleted, $token, $userAgent, $xUserAgent) List character industry jobs -List industry jobs placed by a character --- Alternate route: `/v1/characters/{character_id}/industry/jobs/` Alternate route: `/legacy/characters/{character_id}/industry/jobs/` Alternate route: `/dev/characters/{character_id}/industry/jobs/` --- This route is cached for up to 300 seconds +List industry jobs placed by a character --- Alternate route: `/dev/characters/{character_id}/industry/jobs/` Alternate route: `/legacy/characters/{character_id}/industry/jobs/` Alternate route: `/v1/characters/{character_id}/industry/jobs/` --- This route is cached for up to 300 seconds ### Example ```php @@ -22,18 +27,23 @@ List industry jobs placed by a character --- Alternate route: `/v1/characters/ require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\IndustryApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\IndustryApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $characterId = 56; // int | An EVE character ID $datasource = "tranquility"; // string | The server name you would like data from $includeCompleted = true; // bool | Whether retrieve completed character industry jobs as well -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCharactersCharacterIdIndustryJobs($characterId, $datasource, $includeCompleted, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getCharactersCharacterIdIndustryJobs($characterId, $datasource, $includeCompleted, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling IndustryApi->getCharactersCharacterIdIndustryJobs: ', $e->getMessage(), PHP_EOL; @@ -48,13 +58,330 @@ Name | Type | Description | Notes **characterId** | **int**| An EVE character ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] **includeCompleted** | **bool**| Whether retrieve completed character industry jobs as well | [optional] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdIndustryJobs200Ok[]**](../Model/GetCharactersCharacterIdIndustryJobs200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCharactersCharacterIdMining** +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMining200Ok[] getCharactersCharacterIdMining($characterId, $datasource, $page, $token, $userAgent, $xUserAgent) + +Character mining ledger + +Paginated record of all mining done by a character for the past 30 days --- Alternate route: `/dev/characters/{character_id}/mining/` Alternate route: `/legacy/characters/{character_id}/mining/` Alternate route: `/v1/characters/{character_id}/mining/` --- This route is cached for up to 600 seconds + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\IndustryApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID +$datasource = "tranquility"; // string | The server name you would like data from +$page = 1; // int | Which page of results to return +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCharactersCharacterIdMining($characterId, $datasource, $page, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling IndustryApi->getCharactersCharacterIdMining: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **characterId** | **int**| An EVE character ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **page** | **int**| Which page of results to return | [optional] [default to 1] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMining200Ok[]**](../Model/GetCharactersCharacterIdMining200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCorporationCorporationIdMiningExtractions** +> \nullx27ESI\nullx27\ESI\Models\GetCorporationCorporationIdMiningExtractions200Ok[] getCorporationCorporationIdMiningExtractions($corporationId, $datasource, $token, $userAgent, $xUserAgent) + +Moon extraction timers + +Extraction timers for all moon chunks being extracted by refineries belonging to a corporation. --- Alternate route: `/dev/corporation/{corporation_id}/mining/extractions/` Alternate route: `/legacy/corporation/{corporation_id}/mining/extractions/` Alternate route: `/v1/corporation/{corporation_id}/mining/extractions/` --- This route is cached for up to 1800 seconds --- Requires one of the following EVE corporation role(s): Structure_manager + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\IndustryApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$corporationId = 56; // int | An EVE corporation ID +$datasource = "tranquility"; // string | The server name you would like data from +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCorporationCorporationIdMiningExtractions($corporationId, $datasource, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling IndustryApi->getCorporationCorporationIdMiningExtractions: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **corporationId** | **int**| An EVE corporation ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationCorporationIdMiningExtractions200Ok[]**](../Model/GetCorporationCorporationIdMiningExtractions200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCorporationCorporationIdMiningObservers** +> \nullx27ESI\nullx27\ESI\Models\GetCorporationCorporationIdMiningObservers200Ok[] getCorporationCorporationIdMiningObservers($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) + +Corporation mining observers + +Paginated list of all entities capable of observing and recording mining for a corporation --- Alternate route: `/dev/corporation/{corporation_id}/mining/observers/` Alternate route: `/legacy/corporation/{corporation_id}/mining/observers/` Alternate route: `/v1/corporation/{corporation_id}/mining/observers/` --- This route is cached for up to 3600 seconds --- Requires one of the following EVE corporation role(s): Accountant + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\IndustryApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$corporationId = 56; // int | An EVE corporation ID +$datasource = "tranquility"; // string | The server name you would like data from +$page = 1; // int | Which page of results to return +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCorporationCorporationIdMiningObservers($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling IndustryApi->getCorporationCorporationIdMiningObservers: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **corporationId** | **int**| An EVE corporation ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **page** | **int**| Which page of results to return | [optional] [default to 1] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationCorporationIdMiningObservers200Ok[]**](../Model/GetCorporationCorporationIdMiningObservers200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCorporationCorporationIdMiningObserversObserverId** +> \nullx27ESI\nullx27\ESI\Models\GetCorporationCorporationIdMiningObserversObserverId200Ok[] getCorporationCorporationIdMiningObserversObserverId($corporationId, $observerId, $datasource, $page, $token, $userAgent, $xUserAgent) + +Observed corporation mining + +Paginated record of all mining seen by an observer --- Alternate route: `/dev/corporation/{corporation_id}/mining/observers/{observer_id}/` Alternate route: `/legacy/corporation/{corporation_id}/mining/observers/{observer_id}/` Alternate route: `/v1/corporation/{corporation_id}/mining/observers/{observer_id}/` --- This route is cached for up to 3600 seconds --- Requires one of the following EVE corporation role(s): Accountant + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\IndustryApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$corporationId = 56; // int | An EVE corporation ID +$observerId = 789; // int | A mining observer id +$datasource = "tranquility"; // string | The server name you would like data from +$page = 1; // int | Which page of results to return +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCorporationCorporationIdMiningObserversObserverId($corporationId, $observerId, $datasource, $page, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling IndustryApi->getCorporationCorporationIdMiningObserversObserverId: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **corporationId** | **int**| An EVE corporation ID | + **observerId** | **int**| A mining observer id | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **page** | **int**| Which page of results to return | [optional] [default to 1] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationCorporationIdMiningObserversObserverId200Ok[]**](../Model/GetCorporationCorporationIdMiningObserversObserverId200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCorporationsCorporationIdIndustryJobs** +> \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdIndustryJobs200Ok[] getCorporationsCorporationIdIndustryJobs($corporationId, $datasource, $includeCompleted, $page, $token, $userAgent, $xUserAgent) + +List corporation industry jobs + +List industry jobs run by a corporation --- Alternate route: `/dev/corporations/{corporation_id}/industry/jobs/` Alternate route: `/legacy/corporations/{corporation_id}/industry/jobs/` Alternate route: `/v1/corporations/{corporation_id}/industry/jobs/` --- This route is cached for up to 300 seconds --- Requires one of the following EVE corporation role(s): FactoryManager + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\IndustryApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$corporationId = 56; // int | An EVE corporation ID +$datasource = "tranquility"; // string | The server name you would like data from +$includeCompleted = false; // bool | Whether retrieve completed industry jobs as well +$page = 1; // int | Which page of results to return +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCorporationsCorporationIdIndustryJobs($corporationId, $datasource, $includeCompleted, $page, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling IndustryApi->getCorporationsCorporationIdIndustryJobs: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **corporationId** | **int**| An EVE corporation ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **includeCompleted** | **bool**| Whether retrieve completed industry jobs as well | [optional] [default to false] + **page** | **int**| Which page of results to return | [optional] [default to 1] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetCharactersCharacterIdIndustryJobs200Ok[]**](../Model/GetCharactersCharacterIdIndustryJobs200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdIndustryJobs200Ok[]**](../Model/GetCorporationsCorporationIdIndustryJobs200Ok.md) ### Authorization @@ -68,24 +395,28 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getIndustryFacilities** -> \nullx27\ESI\Models\GetIndustryFacilities200Ok[] getIndustryFacilities($datasource, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetIndustryFacilities200Ok[] getIndustryFacilities($datasource, $userAgent, $xUserAgent) List industry facilities -Return a list of industry facilities --- Alternate route: `/v1/industry/facilities/` Alternate route: `/legacy/industry/facilities/` Alternate route: `/dev/industry/facilities/` --- This route is cached for up to 3600 seconds +Return a list of industry facilities --- Alternate route: `/dev/industry/facilities/` Alternate route: `/legacy/industry/facilities/` Alternate route: `/v1/industry/facilities/` --- This route is cached for up to 3600 seconds ### Example ```php getIndustryFacilities($datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getIndustryFacilities($datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling IndustryApi->getIndustryFacilities: ', $e->getMessage(), PHP_EOL; @@ -103,7 +434,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetIndustryFacilities200Ok[]**](../Model/GetIndustryFacilities200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetIndustryFacilities200Ok[]**](../Model/GetIndustryFacilities200Ok.md) ### Authorization @@ -117,24 +448,28 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getIndustrySystems** -> \nullx27\ESI\Models\GetIndustrySystems200Ok[] getIndustrySystems($datasource, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetIndustrySystems200Ok[] getIndustrySystems($datasource, $userAgent, $xUserAgent) List solar system cost indices -Return cost indices for solar systems --- Alternate route: `/v1/industry/systems/` Alternate route: `/legacy/industry/systems/` Alternate route: `/dev/industry/systems/` --- This route is cached for up to 3600 seconds +Return cost indices for solar systems --- Alternate route: `/dev/industry/systems/` Alternate route: `/legacy/industry/systems/` Alternate route: `/v1/industry/systems/` --- This route is cached for up to 3600 seconds ### Example ```php getIndustrySystems($datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getIndustrySystems($datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling IndustryApi->getIndustrySystems: ', $e->getMessage(), PHP_EOL; @@ -152,7 +487,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetIndustrySystems200Ok[]**](../Model/GetIndustrySystems200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetIndustrySystems200Ok[]**](../Model/GetIndustrySystems200Ok.md) ### Authorization diff --git a/docs/Api/InsuranceApi.md b/docs/Api/InsuranceApi.md index 6bf1ec1..e5bbf00 100644 --- a/docs/Api/InsuranceApi.md +++ b/docs/Api/InsuranceApi.md @@ -1,4 +1,4 @@ -# nullx27\ESI\InsuranceApi +# nullx27ESI\InsuranceApi All URIs are relative to *https://esi.tech.ccp.is/latest* @@ -8,25 +8,29 @@ Method | HTTP request | Description # **getInsurancePrices** -> \nullx27\ESI\Models\GetInsurancePrices200Ok[] getInsurancePrices($datasource, $language, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetInsurancePrices200Ok[] getInsurancePrices($datasource, $language, $userAgent, $xUserAgent) List insurance levels -Return available insurance levels for all ship types --- Alternate route: `/v1/insurance/prices/` Alternate route: `/legacy/insurance/prices/` Alternate route: `/dev/insurance/prices/` --- This route is cached for up to 3600 seconds +Return available insurance levels for all ship types --- Alternate route: `/dev/insurance/prices/` Alternate route: `/legacy/insurance/prices/` Alternate route: `/v1/insurance/prices/` --- This route is cached for up to 3600 seconds ### Example ```php getInsurancePrices($datasource, $language, $userAgent, $xUserAgent); + $result = $apiInstance->getInsurancePrices($datasource, $language, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling InsuranceApi->getInsurancePrices: ', $e->getMessage(), PHP_EOL; @@ -45,7 +49,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetInsurancePrices200Ok[]**](../Model/GetInsurancePrices200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetInsurancePrices200Ok[]**](../Model/GetInsurancePrices200Ok.md) ### Authorization diff --git a/docs/Api/KillmailsApi.md b/docs/Api/KillmailsApi.md index 714a9dd..a5cfa0d 100644 --- a/docs/Api/KillmailsApi.md +++ b/docs/Api/KillmailsApi.md @@ -1,19 +1,20 @@ -# nullx27\ESI\KillmailsApi +# nullx27ESI\KillmailsApi All URIs are relative to *https://esi.tech.ccp.is/latest* Method | HTTP request | Description ------------- | ------------- | ------------- -[**getCharactersCharacterIdKillmailsRecent**](KillmailsApi.md#getCharactersCharacterIdKillmailsRecent) | **GET** /characters/{character_id}/killmails/recent/ | List kills and losses +[**getCharactersCharacterIdKillmailsRecent**](KillmailsApi.md#getCharactersCharacterIdKillmailsRecent) | **GET** /characters/{character_id}/killmails/recent/ | Get character kills and losses +[**getCorporationsCorporationIdKillmailsRecent**](KillmailsApi.md#getCorporationsCorporationIdKillmailsRecent) | **GET** /corporations/{corporation_id}/killmails/recent/ | Get corporation kills and losses [**getKillmailsKillmailIdKillmailHash**](KillmailsApi.md#getKillmailsKillmailIdKillmailHash) | **GET** /killmails/{killmail_id}/{killmail_hash}/ | Get a single killmail # **getCharactersCharacterIdKillmailsRecent** -> \nullx27\ESI\Models\GetCharactersCharacterIdKillmailsRecent200Ok[] getCharactersCharacterIdKillmailsRecent($characterId, $datasource, $maxCount, $maxKillId, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdKillmailsRecent200Ok[] getCharactersCharacterIdKillmailsRecent($characterId, $datasource, $maxCount, $maxKillId, $token, $userAgent, $xUserAgent) -List kills and losses +Get character kills and losses -Return a list of character's recent kills and losses --- Alternate route: `/v1/characters/{character_id}/killmails/recent/` Alternate route: `/legacy/characters/{character_id}/killmails/recent/` Alternate route: `/dev/characters/{character_id}/killmails/recent/` --- This route is cached for up to 120 seconds +Return a list of character's recent kills and losses --- Alternate route: `/dev/characters/{character_id}/killmails/recent/` Alternate route: `/legacy/characters/{character_id}/killmails/recent/` Alternate route: `/v1/characters/{character_id}/killmails/recent/` --- This route is cached for up to 120 seconds ### Example ```php @@ -21,19 +22,24 @@ Return a list of character's recent kills and losses --- Alternate route: `/v1 require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\KillmailsApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\KillmailsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $characterId = 56; // int | An EVE character ID $datasource = "tranquility"; // string | The server name you would like data from $maxCount = 50; // int | How many killmails to return at maximum $maxKillId = 56; // int | Only return killmails with ID smaller than this. -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCharactersCharacterIdKillmailsRecent($characterId, $datasource, $maxCount, $maxKillId, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getCharactersCharacterIdKillmailsRecent($characterId, $datasource, $maxCount, $maxKillId, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling KillmailsApi->getCharactersCharacterIdKillmailsRecent: ', $e->getMessage(), PHP_EOL; @@ -49,13 +55,76 @@ Name | Type | Description | Notes **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] **maxCount** | **int**| How many killmails to return at maximum | [optional] [default to 50] **maxKillId** | **int**| Only return killmails with ID smaller than this. | [optional] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdKillmailsRecent200Ok[]**](../Model/GetCharactersCharacterIdKillmailsRecent200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCorporationsCorporationIdKillmailsRecent** +> \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdKillmailsRecent200Ok[] getCorporationsCorporationIdKillmailsRecent($corporationId, $datasource, $maxKillId, $token, $userAgent, $xUserAgent) + +Get corporation kills and losses + +Get a list of corporation's recent kills and losses --- Alternate route: `/dev/corporations/{corporation_id}/killmails/recent/` Alternate route: `/legacy/corporations/{corporation_id}/killmails/recent/` Alternate route: `/v1/corporations/{corporation_id}/killmails/recent/` --- This route is cached for up to 300 seconds --- Requires one of the following EVE corporation role(s): Director + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\KillmailsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$corporationId = 56; // int | An EVE corporation ID +$datasource = "tranquility"; // string | The server name you would like data from +$maxKillId = 56; // int | Only return killmails with ID smaller than this +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCorporationsCorporationIdKillmailsRecent($corporationId, $datasource, $maxKillId, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling KillmailsApi->getCorporationsCorporationIdKillmailsRecent: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **corporationId** | **int**| An EVE corporation ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **maxKillId** | **int**| Only return killmails with ID smaller than this | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetCharactersCharacterIdKillmailsRecent200Ok[]**](../Model/GetCharactersCharacterIdKillmailsRecent200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdKillmailsRecent200Ok[]**](../Model/GetCorporationsCorporationIdKillmailsRecent200Ok.md) ### Authorization @@ -69,18 +138,22 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getKillmailsKillmailIdKillmailHash** -> \nullx27\ESI\Models\GetKillmailsKillmailIdKillmailHashOk getKillmailsKillmailIdKillmailHash($killmailHash, $killmailId, $datasource, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetKillmailsKillmailIdKillmailHashOk getKillmailsKillmailIdKillmailHash($killmailHash, $killmailId, $datasource, $userAgent, $xUserAgent) Get a single killmail -Return a single killmail from its ID and hash --- Alternate route: `/v1/killmails/{killmail_id}/{killmail_hash}/` Alternate route: `/legacy/killmails/{killmail_id}/{killmail_hash}/` Alternate route: `/dev/killmails/{killmail_id}/{killmail_hash}/` --- This route is cached for up to 3600 seconds +Return a single killmail from its ID and hash --- Alternate route: `/dev/killmails/{killmail_id}/{killmail_hash}/` Alternate route: `/legacy/killmails/{killmail_id}/{killmail_hash}/` Alternate route: `/v1/killmails/{killmail_id}/{killmail_hash}/` --- This route is cached for up to 3600 seconds ### Example ```php getKillmailsKillmailIdKillmailHash($killmailHash, $killmailId, $datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getKillmailsKillmailIdKillmailHash($killmailHash, $killmailId, $datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling KillmailsApi->getKillmailsKillmailIdKillmailHash: ', $e->getMessage(), PHP_EOL; @@ -108,7 +181,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetKillmailsKillmailIdKillmailHashOk**](../Model/GetKillmailsKillmailIdKillmailHashOk.md) +[**\nullx27ESI\nullx27\ESI\Models\GetKillmailsKillmailIdKillmailHashOk**](../Model/GetKillmailsKillmailIdKillmailHashOk.md) ### Authorization diff --git a/docs/Api/LocationApi.md b/docs/Api/LocationApi.md index a835770..901c606 100644 --- a/docs/Api/LocationApi.md +++ b/docs/Api/LocationApi.md @@ -1,4 +1,4 @@ -# nullx27\ESI\LocationApi +# nullx27ESI\LocationApi All URIs are relative to *https://esi.tech.ccp.is/latest* @@ -10,11 +10,11 @@ Method | HTTP request | Description # **getCharactersCharacterIdLocation** -> \nullx27\ESI\Models\GetCharactersCharacterIdLocationOk getCharactersCharacterIdLocation($characterId, $datasource, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdLocationOk getCharactersCharacterIdLocation($characterId, $datasource, $token, $userAgent, $xUserAgent) Get character location -Information about the characters current location. Returns the current solar system id, and also the current station or structure ID if applicable. --- Alternate route: `/v1/characters/{character_id}/location/` Alternate route: `/legacy/characters/{character_id}/location/` Alternate route: `/dev/characters/{character_id}/location/` --- This route is cached for up to 5 seconds +Information about the characters current location. Returns the current solar system id, and also the current station or structure ID if applicable. --- Alternate route: `/dev/characters/{character_id}/location/` Alternate route: `/legacy/characters/{character_id}/location/` Alternate route: `/v1/characters/{character_id}/location/` --- This route is cached for up to 5 seconds ### Example ```php @@ -22,17 +22,22 @@ Information about the characters current location. Returns the current solar sys require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\LocationApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\LocationApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $characterId = 56; // int | An EVE character ID $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCharactersCharacterIdLocation($characterId, $datasource, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getCharactersCharacterIdLocation($characterId, $datasource, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling LocationApi->getCharactersCharacterIdLocation: ', $e->getMessage(), PHP_EOL; @@ -46,13 +51,13 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **characterId** | **int**| An EVE character ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetCharactersCharacterIdLocationOk**](../Model/GetCharactersCharacterIdLocationOk.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdLocationOk**](../Model/GetCharactersCharacterIdLocationOk.md) ### Authorization @@ -66,11 +71,11 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getCharactersCharacterIdOnline** -> bool getCharactersCharacterIdOnline($characterId, $datasource, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdOnlineOk getCharactersCharacterIdOnline($characterId, $datasource, $token, $userAgent, $xUserAgent) Get character online -Checks if the character is currently online --- Alternate route: `/v1/characters/{character_id}/online/` Alternate route: `/legacy/characters/{character_id}/online/` Alternate route: `/dev/characters/{character_id}/online/` --- This route is cached for up to 60 seconds +Checks if the character is currently online --- Alternate route: `/dev/characters/{character_id}/online/` Alternate route: `/v2/characters/{character_id}/online/` --- This route is cached for up to 60 seconds ### Example ```php @@ -78,17 +83,22 @@ Checks if the character is currently online --- Alternate route: `/v1/characte require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\LocationApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\LocationApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $characterId = 56; // int | An EVE character ID $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCharactersCharacterIdOnline($characterId, $datasource, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getCharactersCharacterIdOnline($characterId, $datasource, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling LocationApi->getCharactersCharacterIdOnline: ', $e->getMessage(), PHP_EOL; @@ -102,13 +112,13 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **characterId** | **int**| An EVE character ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -**bool** +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdOnlineOk**](../Model/GetCharactersCharacterIdOnlineOk.md) ### Authorization @@ -122,11 +132,11 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getCharactersCharacterIdShip** -> \nullx27\ESI\Models\GetCharactersCharacterIdShipOk getCharactersCharacterIdShip($characterId, $datasource, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdShipOk getCharactersCharacterIdShip($characterId, $datasource, $token, $userAgent, $xUserAgent) Get current ship -Get the current ship type, name and id --- Alternate route: `/v1/characters/{character_id}/ship/` Alternate route: `/legacy/characters/{character_id}/ship/` Alternate route: `/dev/characters/{character_id}/ship/` --- This route is cached for up to 5 seconds +Get the current ship type, name and id --- Alternate route: `/dev/characters/{character_id}/ship/` Alternate route: `/legacy/characters/{character_id}/ship/` Alternate route: `/v1/characters/{character_id}/ship/` --- This route is cached for up to 5 seconds ### Example ```php @@ -134,17 +144,22 @@ Get the current ship type, name and id --- Alternate route: `/v1/characters/{c require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\LocationApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\LocationApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $characterId = 56; // int | An EVE character ID $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCharactersCharacterIdShip($characterId, $datasource, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getCharactersCharacterIdShip($characterId, $datasource, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling LocationApi->getCharactersCharacterIdShip: ', $e->getMessage(), PHP_EOL; @@ -158,13 +173,13 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **characterId** | **int**| An EVE character ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetCharactersCharacterIdShipOk**](../Model/GetCharactersCharacterIdShipOk.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdShipOk**](../Model/GetCharactersCharacterIdShipOk.md) ### Authorization diff --git a/docs/Api/LoyaltyApi.md b/docs/Api/LoyaltyApi.md index 6db5e6b..5a7d1fa 100644 --- a/docs/Api/LoyaltyApi.md +++ b/docs/Api/LoyaltyApi.md @@ -1,4 +1,4 @@ -# nullx27\ESI\LoyaltyApi +# nullx27ESI\LoyaltyApi All URIs are relative to *https://esi.tech.ccp.is/latest* @@ -9,11 +9,11 @@ Method | HTTP request | Description # **getCharactersCharacterIdLoyaltyPoints** -> \nullx27\ESI\Models\GetCharactersCharacterIdLoyaltyPoints200Ok[] getCharactersCharacterIdLoyaltyPoints($characterId, $datasource, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdLoyaltyPoints200Ok[] getCharactersCharacterIdLoyaltyPoints($characterId, $datasource, $token, $userAgent, $xUserAgent) Get loyalty points -Return a list of loyalty points for all corporations the character has worked for --- Alternate route: `/v1/characters/{character_id}/loyalty/points/` Alternate route: `/legacy/characters/{character_id}/loyalty/points/` Alternate route: `/dev/characters/{character_id}/loyalty/points/` +Return a list of loyalty points for all corporations the character has worked for --- Alternate route: `/dev/characters/{character_id}/loyalty/points/` Alternate route: `/legacy/characters/{character_id}/loyalty/points/` Alternate route: `/v1/characters/{character_id}/loyalty/points/` --- This route is cached for up to 3600 seconds ### Example ```php @@ -21,17 +21,22 @@ Return a list of loyalty points for all corporations the character has worked fo require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\LoyaltyApi(); -$characterId = 56; // int | ID for a character +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\LoyaltyApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCharactersCharacterIdLoyaltyPoints($characterId, $datasource, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getCharactersCharacterIdLoyaltyPoints($characterId, $datasource, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling LoyaltyApi->getCharactersCharacterIdLoyaltyPoints: ', $e->getMessage(), PHP_EOL; @@ -43,15 +48,15 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **characterId** | **int**| ID for a character | + **characterId** | **int**| An EVE character ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetCharactersCharacterIdLoyaltyPoints200Ok[]**](../Model/GetCharactersCharacterIdLoyaltyPoints200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdLoyaltyPoints200Ok[]**](../Model/GetCharactersCharacterIdLoyaltyPoints200Ok.md) ### Authorization @@ -65,25 +70,29 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getLoyaltyStoresCorporationIdOffers** -> \nullx27\ESI\Models\GetLoyaltyStoresCorporationIdOffers200Ok[] getLoyaltyStoresCorporationIdOffers($corporationId, $datasource, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetLoyaltyStoresCorporationIdOffers200Ok[] getLoyaltyStoresCorporationIdOffers($corporationId, $datasource, $userAgent, $xUserAgent) List loyalty store offers -Return a list of offers from a specific corporation's loyalty store --- Alternate route: `/v1/loyalty/stores/{corporation_id}/offers/` Alternate route: `/legacy/loyalty/stores/{corporation_id}/offers/` Alternate route: `/dev/loyalty/stores/{corporation_id}/offers/` --- This route is cached for up to 3600 seconds +Return a list of offers from a specific corporation's loyalty store --- Alternate route: `/dev/loyalty/stores/{corporation_id}/offers/` Alternate route: `/legacy/loyalty/stores/{corporation_id}/offers/` Alternate route: `/v1/loyalty/stores/{corporation_id}/offers/` --- This route expires daily at 11:05 ### Example ```php getLoyaltyStoresCorporationIdOffers($corporationId, $datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getLoyaltyStoresCorporationIdOffers($corporationId, $datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling LoyaltyApi->getLoyaltyStoresCorporationIdOffers: ', $e->getMessage(), PHP_EOL; @@ -95,14 +104,14 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **corporationId** | **int**| ID of a corporation | + **corporationId** | **int**| An EVE corporation ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetLoyaltyStoresCorporationIdOffers200Ok[]**](../Model/GetLoyaltyStoresCorporationIdOffers200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetLoyaltyStoresCorporationIdOffers200Ok[]**](../Model/GetLoyaltyStoresCorporationIdOffers200Ok.md) ### Authorization diff --git a/docs/Api/MailApi.md b/docs/Api/MailApi.md index 04a256a..233c9d5 100644 --- a/docs/Api/MailApi.md +++ b/docs/Api/MailApi.md @@ -1,4 +1,4 @@ -# nullx27\ESI\MailApi +# nullx27ESI\MailApi All URIs are relative to *https://esi.tech.ccp.is/latest* @@ -20,7 +20,7 @@ Method | HTTP request | Description Delete a mail label -Delete a mail label --- Alternate route: `/v1/characters/{character_id}/mail/labels/{label_id}/` Alternate route: `/legacy/characters/{character_id}/mail/labels/{label_id}/` Alternate route: `/dev/characters/{character_id}/mail/labels/{label_id}/` +Delete a mail label --- Alternate route: `/dev/characters/{character_id}/mail/labels/{label_id}/` Alternate route: `/legacy/characters/{character_id}/mail/labels/{label_id}/` Alternate route: `/v1/characters/{character_id}/mail/labels/{label_id}/` ### Example ```php @@ -28,18 +28,23 @@ Delete a mail label --- Alternate route: `/v1/characters/{character_id}/mail/l require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\MailApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\MailApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $characterId = 56; // int | An EVE character ID $labelId = 56; // int | An EVE label id $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $api_instance->deleteCharactersCharacterIdMailLabelsLabelId($characterId, $labelId, $datasource, $token, $userAgent, $xUserAgent); + $apiInstance->deleteCharactersCharacterIdMailLabelsLabelId($characterId, $labelId, $datasource, $token, $userAgent, $xUserAgent); } catch (Exception $e) { echo 'Exception when calling MailApi->deleteCharactersCharacterIdMailLabelsLabelId: ', $e->getMessage(), PHP_EOL; } @@ -53,7 +58,7 @@ Name | Type | Description | Notes **characterId** | **int**| An EVE character ID | **labelId** | **int**| An EVE label id | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] @@ -77,7 +82,7 @@ void (empty response body) Delete a mail -Delete a mail --- Alternate route: `/v1/characters/{character_id}/mail/{mail_id}/` Alternate route: `/legacy/characters/{character_id}/mail/{mail_id}/` Alternate route: `/dev/characters/{character_id}/mail/{mail_id}/` +Delete a mail --- Alternate route: `/dev/characters/{character_id}/mail/{mail_id}/` Alternate route: `/legacy/characters/{character_id}/mail/{mail_id}/` Alternate route: `/v1/characters/{character_id}/mail/{mail_id}/` ### Example ```php @@ -85,18 +90,23 @@ Delete a mail --- Alternate route: `/v1/characters/{character_id}/mail/{mail_i require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\MailApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\MailApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $characterId = 56; // int | An EVE character ID $mailId = 56; // int | An EVE mail ID $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $api_instance->deleteCharactersCharacterIdMailMailId($characterId, $mailId, $datasource, $token, $userAgent, $xUserAgent); + $apiInstance->deleteCharactersCharacterIdMailMailId($characterId, $mailId, $datasource, $token, $userAgent, $xUserAgent); } catch (Exception $e) { echo 'Exception when calling MailApi->deleteCharactersCharacterIdMailMailId: ', $e->getMessage(), PHP_EOL; } @@ -110,7 +120,7 @@ Name | Type | Description | Notes **characterId** | **int**| An EVE character ID | **mailId** | **int**| An EVE mail ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] @@ -130,11 +140,11 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getCharactersCharacterIdMail** -> \nullx27\ESI\Models\GetCharactersCharacterIdMail200Ok[] getCharactersCharacterIdMail($characterId, $datasource, $labels, $lastMailId, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMail200Ok[] getCharactersCharacterIdMail($characterId, $datasource, $labels, $lastMailId, $token, $userAgent, $xUserAgent) Return mail headers -Return the 50 most recent mail headers belonging to the character that match the query criteria. Queries can be filtered by label, and last_mail_id can be used to paginate backwards. --- Alternate route: `/v1/characters/{character_id}/mail/` Alternate route: `/legacy/characters/{character_id}/mail/` Alternate route: `/dev/characters/{character_id}/mail/` --- This route is cached for up to 30 seconds +Return the 50 most recent mail headers belonging to the character that match the query criteria. Queries can be filtered by label, and last_mail_id can be used to paginate backwards. --- Alternate route: `/dev/characters/{character_id}/mail/` Alternate route: `/legacy/characters/{character_id}/mail/` Alternate route: `/v1/characters/{character_id}/mail/` --- This route is cached for up to 30 seconds ### Example ```php @@ -142,19 +152,24 @@ Return the 50 most recent mail headers belonging to the character that match the require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\MailApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\MailApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $characterId = 56; // int | An EVE character ID $datasource = "tranquility"; // string | The server name you would like data from $labels = array(56); // int[] | Fetch only mails that match one or more of the given labels $lastMailId = 56; // int | List only mail with an ID lower than the given ID, if present -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCharactersCharacterIdMail($characterId, $datasource, $labels, $lastMailId, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getCharactersCharacterIdMail($characterId, $datasource, $labels, $lastMailId, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling MailApi->getCharactersCharacterIdMail: ', $e->getMessage(), PHP_EOL; @@ -170,13 +185,13 @@ Name | Type | Description | Notes **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] **labels** | [**int[]**](../Model/int.md)| Fetch only mails that match one or more of the given labels | [optional] **lastMailId** | **int**| List only mail with an ID lower than the given ID, if present | [optional] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetCharactersCharacterIdMail200Ok[]**](../Model/GetCharactersCharacterIdMail200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMail200Ok[]**](../Model/GetCharactersCharacterIdMail200Ok.md) ### Authorization @@ -190,11 +205,11 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getCharactersCharacterIdMailLabels** -> \nullx27\ESI\Models\GetCharactersCharacterIdMailLabelsOk getCharactersCharacterIdMailLabels($characterId, $datasource, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMailLabelsOk getCharactersCharacterIdMailLabels($characterId, $datasource, $token, $userAgent, $xUserAgent) Get mail labels and unread counts -Return a list of the users mail labels, unread counts for each label and a total unread count. --- Alternate route: `/v3/characters/{character_id}/mail/labels/` Alternate route: `/dev/characters/{character_id}/mail/labels/` --- This route is cached for up to 30 seconds +Return a list of the users mail labels, unread counts for each label and a total unread count. --- Alternate route: `/dev/characters/{character_id}/mail/labels/` Alternate route: `/v3/characters/{character_id}/mail/labels/` --- This route is cached for up to 30 seconds ### Example ```php @@ -202,17 +217,22 @@ Return a list of the users mail labels, unread counts for each label and a total require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\MailApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\MailApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $characterId = 56; // int | An EVE character ID $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCharactersCharacterIdMailLabels($characterId, $datasource, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getCharactersCharacterIdMailLabels($characterId, $datasource, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling MailApi->getCharactersCharacterIdMailLabels: ', $e->getMessage(), PHP_EOL; @@ -226,13 +246,13 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **characterId** | **int**| An EVE character ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetCharactersCharacterIdMailLabelsOk**](../Model/GetCharactersCharacterIdMailLabelsOk.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMailLabelsOk**](../Model/GetCharactersCharacterIdMailLabelsOk.md) ### Authorization @@ -246,11 +266,11 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getCharactersCharacterIdMailLists** -> \nullx27\ESI\Models\GetCharactersCharacterIdMailLists200Ok[] getCharactersCharacterIdMailLists($characterId, $datasource, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMailLists200Ok[] getCharactersCharacterIdMailLists($characterId, $datasource, $token, $userAgent, $xUserAgent) Return mailing list subscriptions -Return all mailing lists that the character is subscribed to --- Alternate route: `/v1/characters/{character_id}/mail/lists/` Alternate route: `/legacy/characters/{character_id}/mail/lists/` Alternate route: `/dev/characters/{character_id}/mail/lists/` --- This route is cached for up to 120 seconds +Return all mailing lists that the character is subscribed to --- Alternate route: `/dev/characters/{character_id}/mail/lists/` Alternate route: `/legacy/characters/{character_id}/mail/lists/` Alternate route: `/v1/characters/{character_id}/mail/lists/` --- This route is cached for up to 120 seconds ### Example ```php @@ -258,17 +278,22 @@ Return all mailing lists that the character is subscribed to --- Alternate ro require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\MailApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\MailApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $characterId = 56; // int | An EVE character ID $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCharactersCharacterIdMailLists($characterId, $datasource, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getCharactersCharacterIdMailLists($characterId, $datasource, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling MailApi->getCharactersCharacterIdMailLists: ', $e->getMessage(), PHP_EOL; @@ -282,13 +307,13 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **characterId** | **int**| An EVE character ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetCharactersCharacterIdMailLists200Ok[]**](../Model/GetCharactersCharacterIdMailLists200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMailLists200Ok[]**](../Model/GetCharactersCharacterIdMailLists200Ok.md) ### Authorization @@ -302,11 +327,11 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getCharactersCharacterIdMailMailId** -> \nullx27\ESI\Models\GetCharactersCharacterIdMailMailIdOk getCharactersCharacterIdMailMailId($characterId, $mailId, $datasource, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMailMailIdOk getCharactersCharacterIdMailMailId($characterId, $mailId, $datasource, $token, $userAgent, $xUserAgent) Return a mail -Return the contents of an EVE mail --- Alternate route: `/v1/characters/{character_id}/mail/{mail_id}/` Alternate route: `/legacy/characters/{character_id}/mail/{mail_id}/` Alternate route: `/dev/characters/{character_id}/mail/{mail_id}/` --- This route is cached for up to 30 seconds +Return the contents of an EVE mail --- Alternate route: `/dev/characters/{character_id}/mail/{mail_id}/` Alternate route: `/legacy/characters/{character_id}/mail/{mail_id}/` Alternate route: `/v1/characters/{character_id}/mail/{mail_id}/` --- This route is cached for up to 30 seconds ### Example ```php @@ -314,18 +339,23 @@ Return the contents of an EVE mail --- Alternate route: `/v1/characters/{chara require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\MailApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\MailApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $characterId = 56; // int | An EVE character ID $mailId = 56; // int | An EVE mail ID $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCharactersCharacterIdMailMailId($characterId, $mailId, $datasource, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getCharactersCharacterIdMailMailId($characterId, $mailId, $datasource, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling MailApi->getCharactersCharacterIdMailMailId: ', $e->getMessage(), PHP_EOL; @@ -340,13 +370,13 @@ Name | Type | Description | Notes **characterId** | **int**| An EVE character ID | **mailId** | **int**| An EVE mail ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetCharactersCharacterIdMailMailIdOk**](../Model/GetCharactersCharacterIdMailMailIdOk.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMailMailIdOk**](../Model/GetCharactersCharacterIdMailMailIdOk.md) ### Authorization @@ -364,7 +394,7 @@ Name | Type | Description | Notes Send a new mail -Create and send a new mail --- Alternate route: `/v1/characters/{character_id}/mail/` Alternate route: `/legacy/characters/{character_id}/mail/` Alternate route: `/dev/characters/{character_id}/mail/` +Create and send a new mail --- Alternate route: `/dev/characters/{character_id}/mail/` Alternate route: `/legacy/characters/{character_id}/mail/` Alternate route: `/v1/characters/{character_id}/mail/` ### Example ```php @@ -372,18 +402,23 @@ Create and send a new mail --- Alternate route: `/v1/characters/{character_id} require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\MailApi(); -$characterId = 56; // int | The sender's character ID -$mail = new \nullx27\ESI\Models\PostCharactersCharacterIdMailMail(); // \nullx27\ESI\Models\PostCharactersCharacterIdMailMail | The mail to send +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\MailApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID +$mail = new \nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdMailMail(); // \nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdMailMail | The mail to send $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->postCharactersCharacterIdMail($characterId, $mail, $datasource, $token, $userAgent, $xUserAgent); + $result = $apiInstance->postCharactersCharacterIdMail($characterId, $mail, $datasource, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling MailApi->postCharactersCharacterIdMail: ', $e->getMessage(), PHP_EOL; @@ -395,10 +430,10 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **characterId** | **int**| The sender's character ID | - **mail** | [**\nullx27\ESI\Models\PostCharactersCharacterIdMailMail**](../Model/\nullx27\ESI\Models\PostCharactersCharacterIdMailMail.md)| The mail to send | + **characterId** | **int**| An EVE character ID | + **mail** | [**\nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdMailMail**](../Model/PostCharactersCharacterIdMailMail.md)| The mail to send | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] @@ -422,7 +457,7 @@ Name | Type | Description | Notes Create a mail label -Create a mail label --- Alternate route: `/v2/characters/{character_id}/mail/labels/` Alternate route: `/legacy/characters/{character_id}/mail/labels/` Alternate route: `/dev/characters/{character_id}/mail/labels/` +Create a mail label --- Alternate route: `/dev/characters/{character_id}/mail/labels/` Alternate route: `/legacy/characters/{character_id}/mail/labels/` Alternate route: `/v2/characters/{character_id}/mail/labels/` ### Example ```php @@ -430,18 +465,23 @@ Create a mail label --- Alternate route: `/v2/characters/{character_id}/mail/l require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\MailApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\MailApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $characterId = 56; // int | An EVE character ID $datasource = "tranquility"; // string | The server name you would like data from -$label = new \nullx27\ESI\Models\PostCharactersCharacterIdMailLabelsLabel(); // \nullx27\ESI\Models\PostCharactersCharacterIdMailLabelsLabel | Label to create -$token = "token_example"; // string | Access token to use, if preferred over a header +$label = new \nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdMailLabelsLabel(); // \nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdMailLabelsLabel | Label to create +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->postCharactersCharacterIdMailLabels($characterId, $datasource, $label, $token, $userAgent, $xUserAgent); + $result = $apiInstance->postCharactersCharacterIdMailLabels($characterId, $datasource, $label, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling MailApi->postCharactersCharacterIdMailLabels: ', $e->getMessage(), PHP_EOL; @@ -455,8 +495,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **characterId** | **int**| An EVE character ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **label** | [**\nullx27\ESI\Models\PostCharactersCharacterIdMailLabelsLabel**](../Model/\nullx27\ESI\Models\PostCharactersCharacterIdMailLabelsLabel.md)| Label to create | [optional] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **label** | [**\nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdMailLabelsLabel**](../Model/PostCharactersCharacterIdMailLabelsLabel.md)| Label to create | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] @@ -480,7 +520,7 @@ Name | Type | Description | Notes Update metadata about a mail -Update metadata about a mail --- Alternate route: `/v1/characters/{character_id}/mail/{mail_id}/` Alternate route: `/legacy/characters/{character_id}/mail/{mail_id}/` Alternate route: `/dev/characters/{character_id}/mail/{mail_id}/` +Update metadata about a mail --- Alternate route: `/dev/characters/{character_id}/mail/{mail_id}/` Alternate route: `/legacy/characters/{character_id}/mail/{mail_id}/` Alternate route: `/v1/characters/{character_id}/mail/{mail_id}/` ### Example ```php @@ -488,19 +528,24 @@ Update metadata about a mail --- Alternate route: `/v1/characters/{character_i require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\MailApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\MailApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $characterId = 56; // int | An EVE character ID -$contents = new \nullx27\ESI\Models\PutCharactersCharacterIdMailMailIdContents(); // \nullx27\ESI\Models\PutCharactersCharacterIdMailMailIdContents | Data used to update the mail +$contents = new \nullx27ESI\nullx27\ESI\Models\PutCharactersCharacterIdMailMailIdContents(); // \nullx27ESI\nullx27\ESI\Models\PutCharactersCharacterIdMailMailIdContents | Data used to update the mail $mailId = 56; // int | An EVE mail ID $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $api_instance->putCharactersCharacterIdMailMailId($characterId, $contents, $mailId, $datasource, $token, $userAgent, $xUserAgent); + $apiInstance->putCharactersCharacterIdMailMailId($characterId, $contents, $mailId, $datasource, $token, $userAgent, $xUserAgent); } catch (Exception $e) { echo 'Exception when calling MailApi->putCharactersCharacterIdMailMailId: ', $e->getMessage(), PHP_EOL; } @@ -512,10 +557,10 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **characterId** | **int**| An EVE character ID | - **contents** | [**\nullx27\ESI\Models\PutCharactersCharacterIdMailMailIdContents**](../Model/\nullx27\ESI\Models\PutCharactersCharacterIdMailMailIdContents.md)| Data used to update the mail | + **contents** | [**\nullx27ESI\nullx27\ESI\Models\PutCharactersCharacterIdMailMailIdContents**](../Model/PutCharactersCharacterIdMailMailIdContents.md)| Data used to update the mail | **mailId** | **int**| An EVE mail ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] diff --git a/docs/Api/MarketApi.md b/docs/Api/MarketApi.md index 5f1c100..0b4b48e 100644 --- a/docs/Api/MarketApi.md +++ b/docs/Api/MarketApi.md @@ -1,24 +1,26 @@ -# nullx27\ESI\MarketApi +# nullx27ESI\MarketApi All URIs are relative to *https://esi.tech.ccp.is/latest* Method | HTTP request | Description ------------- | ------------- | ------------- [**getCharactersCharacterIdOrders**](MarketApi.md#getCharactersCharacterIdOrders) | **GET** /characters/{character_id}/orders/ | List orders from a character +[**getCorporationsCorporationIdOrders**](MarketApi.md#getCorporationsCorporationIdOrders) | **GET** /corporations/{corporation_id}/orders/ | List orders from a corporation [**getMarketsGroups**](MarketApi.md#getMarketsGroups) | **GET** /markets/groups/ | Get item groups [**getMarketsGroupsMarketGroupId**](MarketApi.md#getMarketsGroupsMarketGroupId) | **GET** /markets/groups/{market_group_id}/ | Get item group information [**getMarketsPrices**](MarketApi.md#getMarketsPrices) | **GET** /markets/prices/ | List market prices [**getMarketsRegionIdHistory**](MarketApi.md#getMarketsRegionIdHistory) | **GET** /markets/{region_id}/history/ | List historical market statistics in a region [**getMarketsRegionIdOrders**](MarketApi.md#getMarketsRegionIdOrders) | **GET** /markets/{region_id}/orders/ | List orders in a region +[**getMarketsRegionIdTypes**](MarketApi.md#getMarketsRegionIdTypes) | **GET** /markets/{region_id}/types/ | List type IDs relevant to a market [**getMarketsStructuresStructureId**](MarketApi.md#getMarketsStructuresStructureId) | **GET** /markets/structures/{structure_id}/ | List orders in a structure # **getCharactersCharacterIdOrders** -> \nullx27\ESI\Models\GetCharactersCharacterIdOrders200Ok[] getCharactersCharacterIdOrders($characterId, $datasource, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdOrders200Ok[] getCharactersCharacterIdOrders($characterId, $datasource, $token, $userAgent, $xUserAgent) List orders from a character -List market orders placed by a character --- Alternate route: `/v1/characters/{character_id}/orders/` Alternate route: `/legacy/characters/{character_id}/orders/` Alternate route: `/dev/characters/{character_id}/orders/` --- This route is cached for up to 3600 seconds +List market orders placed by a character --- Alternate route: `/dev/characters/{character_id}/orders/` Alternate route: `/legacy/characters/{character_id}/orders/` Alternate route: `/v1/characters/{character_id}/orders/` --- This route is cached for up to 3600 seconds ### Example ```php @@ -26,17 +28,22 @@ List market orders placed by a character --- Alternate route: `/v1/characters/ require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\MarketApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\MarketApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $characterId = 56; // int | An EVE character ID $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCharactersCharacterIdOrders($characterId, $datasource, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getCharactersCharacterIdOrders($characterId, $datasource, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling MarketApi->getCharactersCharacterIdOrders: ', $e->getMessage(), PHP_EOL; @@ -50,13 +57,76 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **characterId** | **int**| An EVE character ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdOrders200Ok[]**](../Model/GetCharactersCharacterIdOrders200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCorporationsCorporationIdOrders** +> \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdOrders200Ok[] getCorporationsCorporationIdOrders($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) + +List orders from a corporation + +List market orders placed on behalf of a corporation --- Alternate route: `/dev/corporations/{corporation_id}/orders/` Alternate route: `/legacy/corporations/{corporation_id}/orders/` Alternate route: `/v1/corporations/{corporation_id}/orders/` --- This route is cached for up to 3600 seconds --- Requires one of the following EVE corporation role(s): Accountant, Trader + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\MarketApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$corporationId = 56; // int | An EVE corporation ID +$datasource = "tranquility"; // string | The server name you would like data from +$page = 1; // int | Which page of results to return +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCorporationsCorporationIdOrders($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling MarketApi->getCorporationsCorporationIdOrders: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **corporationId** | **int**| An EVE corporation ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **page** | **int**| Which page of results to return | [optional] [default to 1] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetCharactersCharacterIdOrders200Ok[]**](../Model/GetCharactersCharacterIdOrders200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdOrders200Ok[]**](../Model/GetCorporationsCorporationIdOrders200Ok.md) ### Authorization @@ -74,20 +144,24 @@ Name | Type | Description | Notes Get item groups -Get a list of item groups --- Alternate route: `/v1/markets/groups/` Alternate route: `/legacy/markets/groups/` Alternate route: `/dev/markets/groups/` --- This route is cached for up to 3600 seconds +Get a list of item groups --- Alternate route: `/dev/markets/groups/` Alternate route: `/legacy/markets/groups/` Alternate route: `/v1/markets/groups/` --- This route expires daily at 11:05 ### Example ```php getMarketsGroups($datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getMarketsGroups($datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling MarketApi->getMarketsGroups: ', $e->getMessage(), PHP_EOL; @@ -119,18 +193,22 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getMarketsGroupsMarketGroupId** -> \nullx27\ESI\Models\GetMarketsGroupsMarketGroupIdOk getMarketsGroupsMarketGroupId($marketGroupId, $datasource, $language, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetMarketsGroupsMarketGroupIdOk getMarketsGroupsMarketGroupId($marketGroupId, $datasource, $language, $userAgent, $xUserAgent) Get item group information -Get information on an item group --- Alternate route: `/v1/markets/groups/{market_group_id}/` Alternate route: `/legacy/markets/groups/{market_group_id}/` Alternate route: `/dev/markets/groups/{market_group_id}/` --- This route is cached for up to 3600 seconds +Get information on an item group --- Alternate route: `/dev/markets/groups/{market_group_id}/` Alternate route: `/legacy/markets/groups/{market_group_id}/` Alternate route: `/v1/markets/groups/{market_group_id}/` --- This route expires daily at 11:05 ### Example ```php getMarketsGroupsMarketGroupId($marketGroupId, $datasource, $language, $userAgent, $xUserAgent); + $result = $apiInstance->getMarketsGroupsMarketGroupId($marketGroupId, $datasource, $language, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling MarketApi->getMarketsGroupsMarketGroupId: ', $e->getMessage(), PHP_EOL; @@ -158,7 +236,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetMarketsGroupsMarketGroupIdOk**](../Model/GetMarketsGroupsMarketGroupIdOk.md) +[**\nullx27ESI\nullx27\ESI\Models\GetMarketsGroupsMarketGroupIdOk**](../Model/GetMarketsGroupsMarketGroupIdOk.md) ### Authorization @@ -172,24 +250,28 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getMarketsPrices** -> \nullx27\ESI\Models\GetMarketsPrices200Ok[] getMarketsPrices($datasource, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetMarketsPrices200Ok[] getMarketsPrices($datasource, $userAgent, $xUserAgent) List market prices -Return a list of prices --- Alternate route: `/v1/markets/prices/` Alternate route: `/legacy/markets/prices/` Alternate route: `/dev/markets/prices/` --- This route is cached for up to 3600 seconds +Return a list of prices --- Alternate route: `/dev/markets/prices/` Alternate route: `/legacy/markets/prices/` Alternate route: `/v1/markets/prices/` --- This route is cached for up to 3600 seconds ### Example ```php getMarketsPrices($datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getMarketsPrices($datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling MarketApi->getMarketsPrices: ', $e->getMessage(), PHP_EOL; @@ -207,7 +289,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetMarketsPrices200Ok[]**](../Model/GetMarketsPrices200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetMarketsPrices200Ok[]**](../Model/GetMarketsPrices200Ok.md) ### Authorization @@ -221,18 +303,22 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getMarketsRegionIdHistory** -> \nullx27\ESI\Models\GetMarketsRegionIdHistory200Ok[] getMarketsRegionIdHistory($regionId, $typeId, $datasource, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetMarketsRegionIdHistory200Ok[] getMarketsRegionIdHistory($regionId, $typeId, $datasource, $userAgent, $xUserAgent) List historical market statistics in a region -Return a list of historical market statistics for the specified type in a region --- Alternate route: `/v1/markets/{region_id}/history/` Alternate route: `/legacy/markets/{region_id}/history/` Alternate route: `/dev/markets/{region_id}/history/` --- This route is cached for up to 3600 seconds +Return a list of historical market statistics for the specified type in a region --- Alternate route: `/dev/markets/{region_id}/history/` Alternate route: `/legacy/markets/{region_id}/history/` Alternate route: `/v1/markets/{region_id}/history/` --- This route is cached for up to 3600 seconds ### Example ```php getMarketsRegionIdHistory($regionId, $typeId, $datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getMarketsRegionIdHistory($regionId, $typeId, $datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling MarketApi->getMarketsRegionIdHistory: ', $e->getMessage(), PHP_EOL; @@ -260,7 +346,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetMarketsRegionIdHistory200Ok[]**](../Model/GetMarketsRegionIdHistory200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetMarketsRegionIdHistory200Ok[]**](../Model/GetMarketsRegionIdHistory200Ok.md) ### Authorization @@ -274,28 +360,32 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getMarketsRegionIdOrders** -> \nullx27\ESI\Models\GetMarketsRegionIdOrders200Ok[] getMarketsRegionIdOrders($orderType, $regionId, $datasource, $page, $typeId, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetMarketsRegionIdOrders200Ok[] getMarketsRegionIdOrders($orderType, $regionId, $datasource, $page, $typeId, $userAgent, $xUserAgent) List orders in a region -Return a list of orders in a region --- Alternate route: `/v1/markets/{region_id}/orders/` Alternate route: `/legacy/markets/{region_id}/orders/` Alternate route: `/dev/markets/{region_id}/orders/` --- This route is cached for up to 300 seconds +Return a list of orders in a region --- Alternate route: `/dev/markets/{region_id}/orders/` Alternate route: `/legacy/markets/{region_id}/orders/` Alternate route: `/v1/markets/{region_id}/orders/` --- This route is cached for up to 300 seconds ### Example ```php getMarketsRegionIdOrders($orderType, $regionId, $datasource, $page, $typeId, $userAgent, $xUserAgent); + $result = $apiInstance->getMarketsRegionIdOrders($orderType, $regionId, $datasource, $page, $typeId, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling MarketApi->getMarketsRegionIdOrders: ', $e->getMessage(), PHP_EOL; @@ -310,14 +400,71 @@ Name | Type | Description | Notes **orderType** | **string**| Filter buy/sell orders, return all orders by default. If you query without type_id, we always return both buy and sell orders. | [default to all] **regionId** | **int**| Return orders in this region | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **page** | **int**| Which page to query, only used for querying without type_id. Starting at 1 | [optional] [default to 1] + **page** | **int**| Which page of results to return | [optional] [default to 1] **typeId** | **int**| Return orders only for this type | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetMarketsRegionIdOrders200Ok[]**](../Model/GetMarketsRegionIdOrders200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetMarketsRegionIdOrders200Ok[]**](../Model/GetMarketsRegionIdOrders200Ok.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getMarketsRegionIdTypes** +> int[] getMarketsRegionIdTypes($regionId, $datasource, $page, $userAgent, $xUserAgent) + +List type IDs relevant to a market + +Return a list of type IDs that have active orders in the region, for efficient market indexing. --- Alternate route: `/dev/markets/{region_id}/types/` Alternate route: `/legacy/markets/{region_id}/types/` Alternate route: `/v1/markets/{region_id}/types/` --- This route is cached for up to 600 seconds + +### Example +```php +getMarketsRegionIdTypes($regionId, $datasource, $page, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling MarketApi->getMarketsRegionIdTypes: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **regionId** | **int**| Return statistics in this region | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **page** | **int**| Which page of results to return | [optional] [default to 1] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +**int[]** ### Authorization @@ -331,11 +478,11 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getMarketsStructuresStructureId** -> \nullx27\ESI\Models\GetMarketsStructuresStructureId200Ok[] getMarketsStructuresStructureId($structureId, $datasource, $page, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetMarketsStructuresStructureId200Ok[] getMarketsStructuresStructureId($structureId, $datasource, $page, $token, $userAgent, $xUserAgent) List orders in a structure -Return all orders in a structure --- Alternate route: `/v1/markets/structures/{structure_id}/` Alternate route: `/legacy/markets/structures/{structure_id}/` Alternate route: `/dev/markets/structures/{structure_id}/` --- This route is cached for up to 300 seconds +Return all orders in a structure --- Alternate route: `/dev/markets/structures/{structure_id}/` Alternate route: `/legacy/markets/structures/{structure_id}/` Alternate route: `/v1/markets/structures/{structure_id}/` --- This route is cached for up to 300 seconds ### Example ```php @@ -343,18 +490,23 @@ Return all orders in a structure --- Alternate route: `/v1/markets/structures/ require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\MarketApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\MarketApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $structureId = 789; // int | Return orders in this structure $datasource = "tranquility"; // string | The server name you would like data from -$page = 1; // int | Which page to query, starting at 1 -$token = "token_example"; // string | Access token to use, if preferred over a header +$page = 1; // int | Which page of results to return +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getMarketsStructuresStructureId($structureId, $datasource, $page, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getMarketsStructuresStructureId($structureId, $datasource, $page, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling MarketApi->getMarketsStructuresStructureId: ', $e->getMessage(), PHP_EOL; @@ -368,14 +520,14 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **structureId** | **int**| Return orders in this structure | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **page** | **int**| Which page to query, starting at 1 | [optional] [default to 1] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **page** | **int**| Which page of results to return | [optional] [default to 1] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetMarketsStructuresStructureId200Ok[]**](../Model/GetMarketsStructuresStructureId200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetMarketsStructuresStructureId200Ok[]**](../Model/GetMarketsStructuresStructureId200Ok.md) ### Authorization diff --git a/docs/Api/OpportunitiesApi.md b/docs/Api/OpportunitiesApi.md index 4b465be..bc97f2d 100644 --- a/docs/Api/OpportunitiesApi.md +++ b/docs/Api/OpportunitiesApi.md @@ -1,4 +1,4 @@ -# nullx27\ESI\OpportunitiesApi +# nullx27ESI\OpportunitiesApi All URIs are relative to *https://esi.tech.ccp.is/latest* @@ -12,11 +12,11 @@ Method | HTTP request | Description # **getCharactersCharacterIdOpportunities** -> \nullx27\ESI\Models\GetCharactersCharacterIdOpportunities200Ok[] getCharactersCharacterIdOpportunities($characterId, $datasource, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdOpportunities200Ok[] getCharactersCharacterIdOpportunities($characterId, $datasource, $token, $userAgent, $xUserAgent) Get a character's completed tasks -Return a list of tasks finished by a character --- Alternate route: `/v1/characters/{character_id}/opportunities/` Alternate route: `/legacy/characters/{character_id}/opportunities/` Alternate route: `/dev/characters/{character_id}/opportunities/` --- This route is cached for up to 3600 seconds +Return a list of tasks finished by a character --- Alternate route: `/dev/characters/{character_id}/opportunities/` Alternate route: `/legacy/characters/{character_id}/opportunities/` Alternate route: `/v1/characters/{character_id}/opportunities/` --- This route is cached for up to 3600 seconds ### Example ```php @@ -24,17 +24,22 @@ Return a list of tasks finished by a character --- Alternate route: `/v1/chara require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\OpportunitiesApi(); -$characterId = 56; // int | ID for a character +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\OpportunitiesApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCharactersCharacterIdOpportunities($characterId, $datasource, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getCharactersCharacterIdOpportunities($characterId, $datasource, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling OpportunitiesApi->getCharactersCharacterIdOpportunities: ', $e->getMessage(), PHP_EOL; @@ -46,15 +51,15 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **characterId** | **int**| ID for a character | + **characterId** | **int**| An EVE character ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetCharactersCharacterIdOpportunities200Ok[]**](../Model/GetCharactersCharacterIdOpportunities200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdOpportunities200Ok[]**](../Model/GetCharactersCharacterIdOpportunities200Ok.md) ### Authorization @@ -72,20 +77,24 @@ Name | Type | Description | Notes Get opportunities groups -Return a list of opportunities groups --- Alternate route: `/v1/opportunities/groups/` Alternate route: `/legacy/opportunities/groups/` Alternate route: `/dev/opportunities/groups/` --- This route is cached for up to 3600 seconds +Return a list of opportunities groups --- Alternate route: `/dev/opportunities/groups/` Alternate route: `/legacy/opportunities/groups/` Alternate route: `/v1/opportunities/groups/` --- This route expires daily at 11:05 ### Example ```php getOpportunitiesGroups($datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getOpportunitiesGroups($datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling OpportunitiesApi->getOpportunitiesGroups: ', $e->getMessage(), PHP_EOL; @@ -117,18 +126,22 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getOpportunitiesGroupsGroupId** -> \nullx27\ESI\Models\GetOpportunitiesGroupsGroupIdOk getOpportunitiesGroupsGroupId($groupId, $datasource, $language, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetOpportunitiesGroupsGroupIdOk getOpportunitiesGroupsGroupId($groupId, $datasource, $language, $userAgent, $xUserAgent) Get opportunities group -Return information of an opportunities group --- Alternate route: `/v1/opportunities/groups/{group_id}/` Alternate route: `/legacy/opportunities/groups/{group_id}/` Alternate route: `/dev/opportunities/groups/{group_id}/` --- This route is cached for up to 3600 seconds +Return information of an opportunities group --- Alternate route: `/dev/opportunities/groups/{group_id}/` Alternate route: `/legacy/opportunities/groups/{group_id}/` Alternate route: `/v1/opportunities/groups/{group_id}/` --- This route expires daily at 11:05 ### Example ```php getOpportunitiesGroupsGroupId($groupId, $datasource, $language, $userAgent, $xUserAgent); + $result = $apiInstance->getOpportunitiesGroupsGroupId($groupId, $datasource, $language, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling OpportunitiesApi->getOpportunitiesGroupsGroupId: ', $e->getMessage(), PHP_EOL; @@ -156,7 +169,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetOpportunitiesGroupsGroupIdOk**](../Model/GetOpportunitiesGroupsGroupIdOk.md) +[**\nullx27ESI\nullx27\ESI\Models\GetOpportunitiesGroupsGroupIdOk**](../Model/GetOpportunitiesGroupsGroupIdOk.md) ### Authorization @@ -174,20 +187,24 @@ No authorization required Get opportunities tasks -Return a list of opportunities tasks --- Alternate route: `/v1/opportunities/tasks/` Alternate route: `/legacy/opportunities/tasks/` Alternate route: `/dev/opportunities/tasks/` --- This route is cached for up to 3600 seconds +Return a list of opportunities tasks --- Alternate route: `/dev/opportunities/tasks/` Alternate route: `/legacy/opportunities/tasks/` Alternate route: `/v1/opportunities/tasks/` --- This route expires daily at 11:05 ### Example ```php getOpportunitiesTasks($datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getOpportunitiesTasks($datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling OpportunitiesApi->getOpportunitiesTasks: ', $e->getMessage(), PHP_EOL; @@ -219,25 +236,29 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getOpportunitiesTasksTaskId** -> \nullx27\ESI\Models\GetOpportunitiesTasksTaskIdOk getOpportunitiesTasksTaskId($taskId, $datasource, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetOpportunitiesTasksTaskIdOk getOpportunitiesTasksTaskId($taskId, $datasource, $userAgent, $xUserAgent) Get opportunities task -Return information of an opportunities task --- Alternate route: `/v1/opportunities/tasks/{task_id}/` Alternate route: `/legacy/opportunities/tasks/{task_id}/` Alternate route: `/dev/opportunities/tasks/{task_id}/` --- This route is cached for up to 3600 seconds +Return information of an opportunities task --- Alternate route: `/dev/opportunities/tasks/{task_id}/` Alternate route: `/legacy/opportunities/tasks/{task_id}/` Alternate route: `/v1/opportunities/tasks/{task_id}/` --- This route expires daily at 11:05 ### Example ```php getOpportunitiesTasksTaskId($taskId, $datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getOpportunitiesTasksTaskId($taskId, $datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling OpportunitiesApi->getOpportunitiesTasksTaskId: ', $e->getMessage(), PHP_EOL; @@ -256,7 +277,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetOpportunitiesTasksTaskIdOk**](../Model/GetOpportunitiesTasksTaskIdOk.md) +[**\nullx27ESI\nullx27\ESI\Models\GetOpportunitiesTasksTaskIdOk**](../Model/GetOpportunitiesTasksTaskIdOk.md) ### Authorization diff --git a/docs/Api/PlanetaryInteractionApi.md b/docs/Api/PlanetaryInteractionApi.md index 49daeb9..639785b 100644 --- a/docs/Api/PlanetaryInteractionApi.md +++ b/docs/Api/PlanetaryInteractionApi.md @@ -1,4 +1,4 @@ -# nullx27\ESI\PlanetaryInteractionApi +# nullx27ESI\PlanetaryInteractionApi All URIs are relative to *https://esi.tech.ccp.is/latest* @@ -6,15 +6,16 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**getCharactersCharacterIdPlanets**](PlanetaryInteractionApi.md#getCharactersCharacterIdPlanets) | **GET** /characters/{character_id}/planets/ | Get colonies [**getCharactersCharacterIdPlanetsPlanetId**](PlanetaryInteractionApi.md#getCharactersCharacterIdPlanetsPlanetId) | **GET** /characters/{character_id}/planets/{planet_id}/ | Get colony layout +[**getCorporationsCorporationIdCustomsOffices**](PlanetaryInteractionApi.md#getCorporationsCorporationIdCustomsOffices) | **GET** /corporations/{corporation_id}/customs_offices/ | List corporation customs offices [**getUniverseSchematicsSchematicId**](PlanetaryInteractionApi.md#getUniverseSchematicsSchematicId) | **GET** /universe/schematics/{schematic_id}/ | Get schematic information # **getCharactersCharacterIdPlanets** -> \nullx27\ESI\Models\GetCharactersCharacterIdPlanets200Ok[] getCharactersCharacterIdPlanets($characterId, $datasource, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanets200Ok[] getCharactersCharacterIdPlanets($characterId, $datasource, $token, $userAgent, $xUserAgent) Get colonies -Returns a list of all planetary colonies owned by a character. --- Alternate route: `/v1/characters/{character_id}/planets/` Alternate route: `/legacy/characters/{character_id}/planets/` Alternate route: `/dev/characters/{character_id}/planets/` --- This route is cached for up to 600 seconds +Returns a list of all planetary colonies owned by a character. --- Alternate route: `/dev/characters/{character_id}/planets/` Alternate route: `/legacy/characters/{character_id}/planets/` Alternate route: `/v1/characters/{character_id}/planets/` --- This route is cached for up to 600 seconds ### Example ```php @@ -22,17 +23,22 @@ Returns a list of all planetary colonies owned by a character. --- Alternate r require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\PlanetaryInteractionApi(); -$characterId = 56; // int | Character id of the target character +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\PlanetaryInteractionApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCharactersCharacterIdPlanets($characterId, $datasource, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getCharactersCharacterIdPlanets($characterId, $datasource, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling PlanetaryInteractionApi->getCharactersCharacterIdPlanets: ', $e->getMessage(), PHP_EOL; @@ -44,15 +50,15 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **characterId** | **int**| Character id of the target character | + **characterId** | **int**| An EVE character ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetCharactersCharacterIdPlanets200Ok[]**](../Model/GetCharactersCharacterIdPlanets200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanets200Ok[]**](../Model/GetCharactersCharacterIdPlanets200Ok.md) ### Authorization @@ -66,11 +72,11 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getCharactersCharacterIdPlanetsPlanetId** -> \nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdOk getCharactersCharacterIdPlanetsPlanetId($characterId, $planetId, $datasource, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdOk getCharactersCharacterIdPlanetsPlanetId($characterId, $planetId, $datasource, $token, $userAgent, $xUserAgent) Get colony layout -Returns full details on the layout of a single planetary colony, including links, pins and routes. Note: Planetary information is only recalculated when the colony is viewed through the client. Information on this endpoint will not update until this criteria is met. --- Alternate route: `/v2/characters/{character_id}/planets/{planet_id}/` Alternate route: `/dev/characters/{character_id}/planets/{planet_id}/` --- This route is cached for up to 600 seconds +Returns full details on the layout of a single planetary colony, including links, pins and routes. Note: Planetary information is only recalculated when the colony is viewed through the client. Information will not update until this criteria is met. --- Alternate route: `/dev/characters/{character_id}/planets/{planet_id}/` Alternate route: `/v3/characters/{character_id}/planets/{planet_id}/` --- This route is cached for up to 600 seconds ### Example ```php @@ -78,18 +84,23 @@ Returns full details on the layout of a single planetary colony, including links require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\PlanetaryInteractionApi(); -$characterId = 56; // int | Character id of the target character +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\PlanetaryInteractionApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID $planetId = 56; // int | Planet id of the target planet $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCharactersCharacterIdPlanetsPlanetId($characterId, $planetId, $datasource, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getCharactersCharacterIdPlanetsPlanetId($characterId, $planetId, $datasource, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling PlanetaryInteractionApi->getCharactersCharacterIdPlanetsPlanetId: ', $e->getMessage(), PHP_EOL; @@ -101,16 +112,79 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **characterId** | **int**| Character id of the target character | + **characterId** | **int**| An EVE character ID | **planetId** | **int**| Planet id of the target planet | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdOk**](../Model/GetCharactersCharacterIdPlanetsPlanetIdOk.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCorporationsCorporationIdCustomsOffices** +> \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdCustomsOffices200Ok[] getCorporationsCorporationIdCustomsOffices($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) + +List corporation customs offices + +List customs offices owned by a corporation --- Alternate route: `/dev/corporations/{corporation_id}/customs_offices/` Alternate route: `/legacy/corporations/{corporation_id}/customs_offices/` Alternate route: `/v1/corporations/{corporation_id}/customs_offices/` --- This route is cached for up to 3600 seconds --- Requires one of the following EVE corporation role(s): Director + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\PlanetaryInteractionApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$corporationId = 56; // int | An EVE corporation ID +$datasource = "tranquility"; // string | The server name you would like data from +$page = 1; // int | Which page of results to return +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCorporationsCorporationIdCustomsOffices($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling PlanetaryInteractionApi->getCorporationsCorporationIdCustomsOffices: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **corporationId** | **int**| An EVE corporation ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **page** | **int**| Which page of results to return | [optional] [default to 1] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdOk**](../Model/GetCharactersCharacterIdPlanetsPlanetIdOk.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdCustomsOffices200Ok[]**](../Model/GetCorporationsCorporationIdCustomsOffices200Ok.md) ### Authorization @@ -124,25 +198,29 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getUniverseSchematicsSchematicId** -> \nullx27\ESI\Models\GetUniverseSchematicsSchematicIdOk getUniverseSchematicsSchematicId($schematicId, $datasource, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetUniverseSchematicsSchematicIdOk getUniverseSchematicsSchematicId($schematicId, $datasource, $userAgent, $xUserAgent) Get schematic information -Get information on a planetary factory schematic --- Alternate route: `/v1/universe/schematics/{schematic_id}/` Alternate route: `/legacy/universe/schematics/{schematic_id}/` Alternate route: `/dev/universe/schematics/{schematic_id}/` --- This route is cached for up to 3600 seconds +Get information on a planetary factory schematic --- Alternate route: `/dev/universe/schematics/{schematic_id}/` Alternate route: `/legacy/universe/schematics/{schematic_id}/` Alternate route: `/v1/universe/schematics/{schematic_id}/` --- This route is cached for up to 3600 seconds ### Example ```php getUniverseSchematicsSchematicId($schematicId, $datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getUniverseSchematicsSchematicId($schematicId, $datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling PlanetaryInteractionApi->getUniverseSchematicsSchematicId: ', $e->getMessage(), PHP_EOL; @@ -161,7 +239,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetUniverseSchematicsSchematicIdOk**](../Model/GetUniverseSchematicsSchematicIdOk.md) +[**\nullx27ESI\nullx27\ESI\Models\GetUniverseSchematicsSchematicIdOk**](../Model/GetUniverseSchematicsSchematicIdOk.md) ### Authorization diff --git a/docs/Api/RoutesApi.md b/docs/Api/RoutesApi.md index 52e8aff..db0700b 100644 --- a/docs/Api/RoutesApi.md +++ b/docs/Api/RoutesApi.md @@ -1,4 +1,4 @@ -# nullx27\ESI\RoutesApi +# nullx27ESI\RoutesApi All URIs are relative to *https://esi.tech.ccp.is/latest* @@ -12,25 +12,29 @@ Method | HTTP request | Description Get route -Get the systems between origin and destination --- Alternate route: `/legacy/route/{origin}/{destination}/` Alternate route: `/dev/route/{origin}/{destination}/` Alternate route: `/v1/route/{origin}/{destination}/` --- This route is cached for up to 86400 seconds +Get the systems between origin and destination --- Alternate route: `/dev/route/{origin}/{destination}/` Alternate route: `/legacy/route/{origin}/{destination}/` Alternate route: `/v1/route/{origin}/{destination}/` --- This route is cached for up to 86400 seconds ### Example ```php getRouteOriginDestination($destination, $origin, $avoid, $connections, $datasource, $flag, $userAgent, $xUserAgent); + $result = $apiInstance->getRouteOriginDestination($destination, $origin, $avoid, $connections, $datasource, $flag, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling RoutesApi->getRouteOriginDestination: ', $e->getMessage(), PHP_EOL; diff --git a/docs/Api/SearchApi.md b/docs/Api/SearchApi.md index 87a3c35..63e99d8 100644 --- a/docs/Api/SearchApi.md +++ b/docs/Api/SearchApi.md @@ -1,4 +1,4 @@ -# nullx27\ESI\SearchApi +# nullx27ESI\SearchApi All URIs are relative to *https://esi.tech.ccp.is/latest* @@ -9,11 +9,11 @@ Method | HTTP request | Description # **getCharactersCharacterIdSearch** -> \nullx27\ESI\Models\GetCharactersCharacterIdSearchOk getCharactersCharacterIdSearch($categories, $characterId, $search, $datasource, $language, $strict, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdSearchOk getCharactersCharacterIdSearch($categories, $characterId, $search, $datasource, $language, $strict, $token, $userAgent, $xUserAgent) Search on a string -Search for entities that match a given sub-string. --- Alternate route: `/v2/characters/{character_id}/search/` --- This route is cached for up to 3600 seconds +Search for entities that match a given sub-string. --- Alternate route: `/dev/characters/{character_id}/search/` Alternate route: `/v3/characters/{character_id}/search/` --- This route is cached for up to 3600 seconds ### Example ```php @@ -21,21 +21,26 @@ Search for entities that match a given sub-string. --- Alternate route: `/v2/c require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\SearchApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\SearchApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $categories = array("categories_example"); // string[] | Type of entities to search for $characterId = 56; // int | An EVE character ID $search = "search_example"; // string | The string to search on $datasource = "tranquility"; // string | The server name you would like data from -$language = "en-us"; // string | Search locale +$language = "en-us"; // string | Language to use in the response $strict = false; // bool | Whether the search should be a strict match -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCharactersCharacterIdSearch($categories, $characterId, $search, $datasource, $language, $strict, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getCharactersCharacterIdSearch($categories, $characterId, $search, $datasource, $language, $strict, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling SearchApi->getCharactersCharacterIdSearch: ', $e->getMessage(), PHP_EOL; @@ -51,15 +56,15 @@ Name | Type | Description | Notes **characterId** | **int**| An EVE character ID | **search** | **string**| The string to search on | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **language** | **string**| Search locale | [optional] [default to en-us] + **language** | **string**| Language to use in the response | [optional] [default to en-us] **strict** | **bool**| Whether the search should be a strict match | [optional] [default to false] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetCharactersCharacterIdSearchOk**](../Model/GetCharactersCharacterIdSearchOk.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdSearchOk**](../Model/GetCharactersCharacterIdSearchOk.md) ### Authorization @@ -73,28 +78,32 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getSearch** -> \nullx27\ESI\Models\GetSearchOk getSearch($categories, $search, $datasource, $language, $strict, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetSearchOk getSearch($categories, $search, $datasource, $language, $strict, $userAgent, $xUserAgent) Search on a string -Search for entities that match a given sub-string. --- Alternate route: `/v1/search/` Alternate route: `/legacy/search/` --- This route is cached for up to 3600 seconds +Search for entities that match a given sub-string. --- Alternate route: `/dev/search/` Alternate route: `/v2/search/` --- This route is cached for up to 3600 seconds ### Example ```php getSearch($categories, $search, $datasource, $language, $strict, $userAgent, $xUserAgent); + $result = $apiInstance->getSearch($categories, $search, $datasource, $language, $strict, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling SearchApi->getSearch: ', $e->getMessage(), PHP_EOL; @@ -109,14 +118,14 @@ Name | Type | Description | Notes **categories** | [**string[]**](../Model/string.md)| Type of entities to search for | **search** | **string**| The string to search on | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **language** | **string**| Search locale | [optional] [default to en-us] + **language** | **string**| Language to use in the response | [optional] [default to en-us] **strict** | **bool**| Whether the search should be a strict match | [optional] [default to false] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetSearchOk**](../Model/GetSearchOk.md) +[**\nullx27ESI\nullx27\ESI\Models\GetSearchOk**](../Model/GetSearchOk.md) ### Authorization diff --git a/docs/Api/SkillsApi.md b/docs/Api/SkillsApi.md index 94313c4..5c234ee 100644 --- a/docs/Api/SkillsApi.md +++ b/docs/Api/SkillsApi.md @@ -1,19 +1,81 @@ -# nullx27\ESI\SkillsApi +# nullx27ESI\SkillsApi All URIs are relative to *https://esi.tech.ccp.is/latest* Method | HTTP request | Description ------------- | ------------- | ------------- +[**getCharactersCharacterIdAttributes**](SkillsApi.md#getCharactersCharacterIdAttributes) | **GET** /characters/{character_id}/attributes/ | Get character attributes [**getCharactersCharacterIdSkillqueue**](SkillsApi.md#getCharactersCharacterIdSkillqueue) | **GET** /characters/{character_id}/skillqueue/ | Get character's skill queue [**getCharactersCharacterIdSkills**](SkillsApi.md#getCharactersCharacterIdSkills) | **GET** /characters/{character_id}/skills/ | Get character skills +# **getCharactersCharacterIdAttributes** +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdAttributesOk getCharactersCharacterIdAttributes($characterId, $datasource, $token, $userAgent, $xUserAgent) + +Get character attributes + +Return attributes of a character --- Alternate route: `/dev/characters/{character_id}/attributes/` Alternate route: `/legacy/characters/{character_id}/attributes/` Alternate route: `/v1/characters/{character_id}/attributes/` --- This route is cached for up to 3600 seconds + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\SkillsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID +$datasource = "tranquility"; // string | The server name you would like data from +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCharactersCharacterIdAttributes($characterId, $datasource, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling SkillsApi->getCharactersCharacterIdAttributes: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **characterId** | **int**| An EVE character ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdAttributesOk**](../Model/GetCharactersCharacterIdAttributesOk.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + # **getCharactersCharacterIdSkillqueue** -> \nullx27\ESI\Models\GetCharactersCharacterIdSkillqueue200Ok[] getCharactersCharacterIdSkillqueue($characterId, $datasource, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdSkillqueue200Ok[] getCharactersCharacterIdSkillqueue($characterId, $datasource, $token, $userAgent, $xUserAgent) Get character's skill queue -List the configured skill queue for the given character --- Alternate route: `/v2/characters/{character_id}/skillqueue/` Alternate route: `/legacy/characters/{character_id}/skillqueue/` Alternate route: `/dev/characters/{character_id}/skillqueue/` --- This route is cached for up to 120 seconds +List the configured skill queue for the given character --- Alternate route: `/dev/characters/{character_id}/skillqueue/` Alternate route: `/legacy/characters/{character_id}/skillqueue/` Alternate route: `/v2/characters/{character_id}/skillqueue/` --- This route is cached for up to 120 seconds ### Example ```php @@ -21,17 +83,22 @@ List the configured skill queue for the given character --- Alternate route: ` require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\SkillsApi(); -$characterId = 56; // int | Character id of the target character +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\SkillsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCharactersCharacterIdSkillqueue($characterId, $datasource, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getCharactersCharacterIdSkillqueue($characterId, $datasource, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling SkillsApi->getCharactersCharacterIdSkillqueue: ', $e->getMessage(), PHP_EOL; @@ -43,15 +110,15 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **characterId** | **int**| Character id of the target character | + **characterId** | **int**| An EVE character ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetCharactersCharacterIdSkillqueue200Ok[]**](../Model/GetCharactersCharacterIdSkillqueue200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdSkillqueue200Ok[]**](../Model/GetCharactersCharacterIdSkillqueue200Ok.md) ### Authorization @@ -65,11 +132,11 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getCharactersCharacterIdSkills** -> \nullx27\ESI\Models\GetCharactersCharacterIdSkillsOk getCharactersCharacterIdSkills($characterId, $datasource, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdSkillsOk getCharactersCharacterIdSkills($characterId, $datasource, $token, $userAgent, $xUserAgent) Get character skills -List all trained skills for the given character --- Alternate route: `/v3/characters/{character_id}/skills/` Alternate route: `/dev/characters/{character_id}/skills/` --- This route is cached for up to 120 seconds +List all trained skills for the given character --- Alternate route: `/dev/characters/{character_id}/skills/` Alternate route: `/v4/characters/{character_id}/skills/` --- This route is cached for up to 120 seconds ### Example ```php @@ -77,17 +144,22 @@ List all trained skills for the given character --- Alternate route: `/v3/char require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\SkillsApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\SkillsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $characterId = 56; // int | An EVE character ID $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCharactersCharacterIdSkills($characterId, $datasource, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getCharactersCharacterIdSkills($characterId, $datasource, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling SkillsApi->getCharactersCharacterIdSkills: ', $e->getMessage(), PHP_EOL; @@ -101,13 +173,13 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **characterId** | **int**| An EVE character ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetCharactersCharacterIdSkillsOk**](../Model/GetCharactersCharacterIdSkillsOk.md) +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdSkillsOk**](../Model/GetCharactersCharacterIdSkillsOk.md) ### Authorization diff --git a/docs/Api/SovereigntyApi.md b/docs/Api/SovereigntyApi.md index 8320d27..33a86b3 100644 --- a/docs/Api/SovereigntyApi.md +++ b/docs/Api/SovereigntyApi.md @@ -1,4 +1,4 @@ -# nullx27\ESI\SovereigntyApi +# nullx27ESI\SovereigntyApi All URIs are relative to *https://esi.tech.ccp.is/latest* @@ -10,24 +10,28 @@ Method | HTTP request | Description # **getSovereigntyCampaigns** -> \nullx27\ESI\Models\GetSovereigntyCampaigns200Ok[] getSovereigntyCampaigns($datasource, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetSovereigntyCampaigns200Ok[] getSovereigntyCampaigns($datasource, $userAgent, $xUserAgent) List sovereignty campaigns -Shows sovereignty data for campaigns. --- Alternate route: `/v1/sovereignty/campaigns/` Alternate route: `/legacy/sovereignty/campaigns/` Alternate route: `/dev/sovereignty/campaigns/` --- This route is cached for up to 5 seconds +Shows sovereignty data for campaigns. --- Alternate route: `/dev/sovereignty/campaigns/` Alternate route: `/legacy/sovereignty/campaigns/` Alternate route: `/v1/sovereignty/campaigns/` --- This route is cached for up to 5 seconds ### Example ```php getSovereigntyCampaigns($datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getSovereigntyCampaigns($datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling SovereigntyApi->getSovereigntyCampaigns: ', $e->getMessage(), PHP_EOL; @@ -45,7 +49,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetSovereigntyCampaigns200Ok[]**](../Model/GetSovereigntyCampaigns200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetSovereigntyCampaigns200Ok[]**](../Model/GetSovereigntyCampaigns200Ok.md) ### Authorization @@ -59,24 +63,28 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getSovereigntyMap** -> \nullx27\ESI\Models\GetSovereigntyMap200Ok[] getSovereigntyMap($datasource, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetSovereigntyMap200Ok[] getSovereigntyMap($datasource, $userAgent, $xUserAgent) List sovereignty of systems -Shows sovereignty information for solar systems --- Alternate route: `/v1/sovereignty/map/` Alternate route: `/legacy/sovereignty/map/` Alternate route: `/dev/sovereignty/map/` --- This route is cached for up to 3600 seconds +Shows sovereignty information for solar systems --- Alternate route: `/dev/sovereignty/map/` Alternate route: `/legacy/sovereignty/map/` Alternate route: `/v1/sovereignty/map/` --- This route is cached for up to 3600 seconds ### Example ```php getSovereigntyMap($datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getSovereigntyMap($datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling SovereigntyApi->getSovereigntyMap: ', $e->getMessage(), PHP_EOL; @@ -94,7 +102,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetSovereigntyMap200Ok[]**](../Model/GetSovereigntyMap200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetSovereigntyMap200Ok[]**](../Model/GetSovereigntyMap200Ok.md) ### Authorization @@ -108,24 +116,28 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getSovereigntyStructures** -> \nullx27\ESI\Models\GetSovereigntyStructures200Ok[] getSovereigntyStructures($datasource, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetSovereigntyStructures200Ok[] getSovereigntyStructures($datasource, $userAgent, $xUserAgent) List sovereignty structures -Shows sovereignty data for structures. --- Alternate route: `/v1/sovereignty/structures/` Alternate route: `/legacy/sovereignty/structures/` Alternate route: `/dev/sovereignty/structures/` --- This route is cached for up to 120 seconds +Shows sovereignty data for structures. --- Alternate route: `/dev/sovereignty/structures/` Alternate route: `/legacy/sovereignty/structures/` Alternate route: `/v1/sovereignty/structures/` --- This route is cached for up to 120 seconds ### Example ```php getSovereigntyStructures($datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getSovereigntyStructures($datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling SovereigntyApi->getSovereigntyStructures: ', $e->getMessage(), PHP_EOL; @@ -143,7 +155,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetSovereigntyStructures200Ok[]**](../Model/GetSovereigntyStructures200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetSovereigntyStructures200Ok[]**](../Model/GetSovereigntyStructures200Ok.md) ### Authorization diff --git a/docs/Api/StatusApi.md b/docs/Api/StatusApi.md index eb5b2f1..2243dc5 100644 --- a/docs/Api/StatusApi.md +++ b/docs/Api/StatusApi.md @@ -1,4 +1,4 @@ -# nullx27\ESI\StatusApi +# nullx27ESI\StatusApi All URIs are relative to *https://esi.tech.ccp.is/latest* @@ -8,24 +8,28 @@ Method | HTTP request | Description # **getStatus** -> \nullx27\ESI\Models\GetStatusOk getStatus($datasource, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetStatusOk getStatus($datasource, $userAgent, $xUserAgent) Retrieve the uptime and player counts -EVE Server status --- Alternate route: `/v1/status/` Alternate route: `/legacy/status/` Alternate route: `/dev/status/` --- This route is cached for up to 30 seconds +EVE Server status --- Alternate route: `/dev/status/` Alternate route: `/legacy/status/` Alternate route: `/v1/status/` --- This route is cached for up to 30 seconds ### Example ```php getStatus($datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getStatus($datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling StatusApi->getStatus: ', $e->getMessage(), PHP_EOL; @@ -43,7 +47,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetStatusOk**](../Model/GetStatusOk.md) +[**\nullx27ESI\nullx27\ESI\Models\GetStatusOk**](../Model/GetStatusOk.md) ### Authorization diff --git a/docs/Api/UniverseApi.md b/docs/Api/UniverseApi.md index ab69952..2418193 100644 --- a/docs/Api/UniverseApi.md +++ b/docs/Api/UniverseApi.md @@ -1,4 +1,4 @@ -# nullx27\ESI\UniverseApi +# nullx27ESI\UniverseApi All URIs are relative to *https://esi.tech.ccp.is/latest* @@ -20,6 +20,7 @@ Method | HTTP request | Description [**getUniverseRegions**](UniverseApi.md#getUniverseRegions) | **GET** /universe/regions/ | Get regions [**getUniverseRegionsRegionId**](UniverseApi.md#getUniverseRegionsRegionId) | **GET** /universe/regions/{region_id}/ | Get region information [**getUniverseStargatesStargateId**](UniverseApi.md#getUniverseStargatesStargateId) | **GET** /universe/stargates/{stargate_id}/ | Get stargate information +[**getUniverseStarsStarId**](UniverseApi.md#getUniverseStarsStarId) | **GET** /universe/stars/{star_id}/ | Get star information [**getUniverseStationsStationId**](UniverseApi.md#getUniverseStationsStationId) | **GET** /universe/stations/{station_id}/ | Get station information [**getUniverseStructures**](UniverseApi.md#getUniverseStructures) | **GET** /universe/structures/ | List all public structures [**getUniverseStructuresStructureId**](UniverseApi.md#getUniverseStructuresStructureId) | **GET** /universe/structures/{structure_id}/ | Get structure information @@ -29,29 +30,34 @@ Method | HTTP request | Description [**getUniverseSystemsSystemId**](UniverseApi.md#getUniverseSystemsSystemId) | **GET** /universe/systems/{system_id}/ | Get solar system information [**getUniverseTypes**](UniverseApi.md#getUniverseTypes) | **GET** /universe/types/ | Get types [**getUniverseTypesTypeId**](UniverseApi.md#getUniverseTypesTypeId) | **GET** /universe/types/{type_id}/ | Get type information +[**postUniverseIds**](UniverseApi.md#postUniverseIds) | **POST** /universe/ids/ | Bulk names to IDs [**postUniverseNames**](UniverseApi.md#postUniverseNames) | **POST** /universe/names/ | Get names and categories for a set of ID's # **getUniverseBloodlines** -> \nullx27\ESI\Models\GetUniverseBloodlines200Ok[] getUniverseBloodlines($datasource, $language, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetUniverseBloodlines200Ok[] getUniverseBloodlines($datasource, $language, $userAgent, $xUserAgent) Get bloodlines -Get a list of bloodlines --- Alternate route: `/v1/universe/bloodlines/` Alternate route: `/legacy/universe/bloodlines/` Alternate route: `/dev/universe/bloodlines/` --- This route expires daily at 11:05 +Get a list of bloodlines --- Alternate route: `/dev/universe/bloodlines/` Alternate route: `/legacy/universe/bloodlines/` Alternate route: `/v1/universe/bloodlines/` --- This route expires daily at 11:05 ### Example ```php getUniverseBloodlines($datasource, $language, $userAgent, $xUserAgent); + $result = $apiInstance->getUniverseBloodlines($datasource, $language, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling UniverseApi->getUniverseBloodlines: ', $e->getMessage(), PHP_EOL; @@ -70,7 +76,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetUniverseBloodlines200Ok[]**](../Model/GetUniverseBloodlines200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetUniverseBloodlines200Ok[]**](../Model/GetUniverseBloodlines200Ok.md) ### Authorization @@ -88,20 +94,24 @@ No authorization required Get item categories -Get a list of item categories --- Alternate route: `/v1/universe/categories/` Alternate route: `/legacy/universe/categories/` Alternate route: `/dev/universe/categories/` --- This route expires daily at 11:05 +Get a list of item categories --- Alternate route: `/dev/universe/categories/` Alternate route: `/legacy/universe/categories/` Alternate route: `/v1/universe/categories/` --- This route expires daily at 11:05 ### Example ```php getUniverseCategories($datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getUniverseCategories($datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling UniverseApi->getUniverseCategories: ', $e->getMessage(), PHP_EOL; @@ -133,18 +143,22 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getUniverseCategoriesCategoryId** -> \nullx27\ESI\Models\GetUniverseCategoriesCategoryIdOk getUniverseCategoriesCategoryId($categoryId, $datasource, $language, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetUniverseCategoriesCategoryIdOk getUniverseCategoriesCategoryId($categoryId, $datasource, $language, $userAgent, $xUserAgent) Get item category information -Get information of an item category --- Alternate route: `/v1/universe/categories/{category_id}/` Alternate route: `/legacy/universe/categories/{category_id}/` Alternate route: `/dev/universe/categories/{category_id}/` --- This route expires daily at 11:05 +Get information of an item category --- Alternate route: `/dev/universe/categories/{category_id}/` Alternate route: `/legacy/universe/categories/{category_id}/` Alternate route: `/v1/universe/categories/{category_id}/` --- This route expires daily at 11:05 ### Example ```php getUniverseCategoriesCategoryId($categoryId, $datasource, $language, $userAgent, $xUserAgent); + $result = $apiInstance->getUniverseCategoriesCategoryId($categoryId, $datasource, $language, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling UniverseApi->getUniverseCategoriesCategoryId: ', $e->getMessage(), PHP_EOL; @@ -172,7 +186,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetUniverseCategoriesCategoryIdOk**](../Model/GetUniverseCategoriesCategoryIdOk.md) +[**\nullx27ESI\nullx27\ESI\Models\GetUniverseCategoriesCategoryIdOk**](../Model/GetUniverseCategoriesCategoryIdOk.md) ### Authorization @@ -190,20 +204,24 @@ No authorization required Get constellations -Get a list of constellations --- Alternate route: `/v1/universe/constellations/` Alternate route: `/legacy/universe/constellations/` Alternate route: `/dev/universe/constellations/` --- This route expires daily at 11:05 +Get a list of constellations --- Alternate route: `/dev/universe/constellations/` Alternate route: `/legacy/universe/constellations/` Alternate route: `/v1/universe/constellations/` --- This route expires daily at 11:05 ### Example ```php getUniverseConstellations($datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getUniverseConstellations($datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling UniverseApi->getUniverseConstellations: ', $e->getMessage(), PHP_EOL; @@ -235,18 +253,22 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getUniverseConstellationsConstellationId** -> \nullx27\ESI\Models\GetUniverseConstellationsConstellationIdOk getUniverseConstellationsConstellationId($constellationId, $datasource, $language, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetUniverseConstellationsConstellationIdOk getUniverseConstellationsConstellationId($constellationId, $datasource, $language, $userAgent, $xUserAgent) Get constellation information -Get information on a constellation --- Alternate route: `/v1/universe/constellations/{constellation_id}/` Alternate route: `/legacy/universe/constellations/{constellation_id}/` Alternate route: `/dev/universe/constellations/{constellation_id}/` --- This route expires daily at 11:05 +Get information on a constellation --- Alternate route: `/dev/universe/constellations/{constellation_id}/` Alternate route: `/legacy/universe/constellations/{constellation_id}/` Alternate route: `/v1/universe/constellations/{constellation_id}/` --- This route expires daily at 11:05 ### Example ```php getUniverseConstellationsConstellationId($constellationId, $datasource, $language, $userAgent, $xUserAgent); + $result = $apiInstance->getUniverseConstellationsConstellationId($constellationId, $datasource, $language, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling UniverseApi->getUniverseConstellationsConstellationId: ', $e->getMessage(), PHP_EOL; @@ -274,7 +296,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetUniverseConstellationsConstellationIdOk**](../Model/GetUniverseConstellationsConstellationIdOk.md) +[**\nullx27ESI\nullx27\ESI\Models\GetUniverseConstellationsConstellationIdOk**](../Model/GetUniverseConstellationsConstellationIdOk.md) ### Authorization @@ -288,25 +310,29 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getUniverseFactions** -> \nullx27\ESI\Models\GetUniverseFactions200Ok[] getUniverseFactions($datasource, $language, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetUniverseFactions200Ok[] getUniverseFactions($datasource, $language, $userAgent, $xUserAgent) Get factions -Get a list of factions --- Alternate route: `/v1/universe/factions/` Alternate route: `/legacy/universe/factions/` Alternate route: `/dev/universe/factions/` --- This route expires daily at 11:05 +Get a list of factions --- Alternate route: `/dev/universe/factions/` Alternate route: `/v2/universe/factions/` --- This route expires daily at 11:05 ### Example ```php getUniverseFactions($datasource, $language, $userAgent, $xUserAgent); + $result = $apiInstance->getUniverseFactions($datasource, $language, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling UniverseApi->getUniverseFactions: ', $e->getMessage(), PHP_EOL; @@ -325,7 +351,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetUniverseFactions200Ok[]**](../Model/GetUniverseFactions200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetUniverseFactions200Ok[]**](../Model/GetUniverseFactions200Ok.md) ### Authorization @@ -343,20 +369,24 @@ No authorization required Get graphics -Get a list of graphics --- Alternate route: `/v1/universe/graphics/` Alternate route: `/legacy/universe/graphics/` Alternate route: `/dev/universe/graphics/` --- This route expires daily at 11:05 +Get a list of graphics --- Alternate route: `/dev/universe/graphics/` Alternate route: `/legacy/universe/graphics/` Alternate route: `/v1/universe/graphics/` --- This route expires daily at 11:05 ### Example ```php getUniverseGraphics($datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getUniverseGraphics($datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling UniverseApi->getUniverseGraphics: ', $e->getMessage(), PHP_EOL; @@ -388,25 +418,29 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getUniverseGraphicsGraphicId** -> \nullx27\ESI\Models\GetUniverseGraphicsGraphicIdOk getUniverseGraphicsGraphicId($graphicId, $datasource, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetUniverseGraphicsGraphicIdOk getUniverseGraphicsGraphicId($graphicId, $datasource, $userAgent, $xUserAgent) Get graphic information -Get information on a graphic --- Alternate route: `/v1/universe/graphics/{graphic_id}/` Alternate route: `/legacy/universe/graphics/{graphic_id}/` Alternate route: `/dev/universe/graphics/{graphic_id}/` --- This route expires daily at 11:05 +Get information on a graphic --- Alternate route: `/dev/universe/graphics/{graphic_id}/` Alternate route: `/legacy/universe/graphics/{graphic_id}/` Alternate route: `/v1/universe/graphics/{graphic_id}/` --- This route expires daily at 11:05 ### Example ```php getUniverseGraphicsGraphicId($graphicId, $datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getUniverseGraphicsGraphicId($graphicId, $datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling UniverseApi->getUniverseGraphicsGraphicId: ', $e->getMessage(), PHP_EOL; @@ -425,7 +459,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetUniverseGraphicsGraphicIdOk**](../Model/GetUniverseGraphicsGraphicIdOk.md) +[**\nullx27ESI\nullx27\ESI\Models\GetUniverseGraphicsGraphicIdOk**](../Model/GetUniverseGraphicsGraphicIdOk.md) ### Authorization @@ -443,21 +477,25 @@ No authorization required Get item groups -Get a list of item groups --- Alternate route: `/v1/universe/groups/` Alternate route: `/legacy/universe/groups/` Alternate route: `/dev/universe/groups/` --- This route expires daily at 11:05 +Get a list of item groups --- Alternate route: `/dev/universe/groups/` Alternate route: `/legacy/universe/groups/` Alternate route: `/v1/universe/groups/` --- This route expires daily at 11:05 ### Example ```php getUniverseGroups($datasource, $page, $userAgent, $xUserAgent); + $result = $apiInstance->getUniverseGroups($datasource, $page, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling UniverseApi->getUniverseGroups: ', $e->getMessage(), PHP_EOL; @@ -470,7 +508,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **page** | **int**| Which page to query | [optional] + **page** | **int**| Which page of results to return | [optional] [default to 1] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] @@ -490,18 +528,22 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getUniverseGroupsGroupId** -> \nullx27\ESI\Models\GetUniverseGroupsGroupIdOk getUniverseGroupsGroupId($groupId, $datasource, $language, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetUniverseGroupsGroupIdOk getUniverseGroupsGroupId($groupId, $datasource, $language, $userAgent, $xUserAgent) Get item group information -Get information on an item group --- Alternate route: `/v1/universe/groups/{group_id}/` Alternate route: `/legacy/universe/groups/{group_id}/` Alternate route: `/dev/universe/groups/{group_id}/` --- This route expires daily at 11:05 +Get information on an item group --- Alternate route: `/dev/universe/groups/{group_id}/` Alternate route: `/legacy/universe/groups/{group_id}/` Alternate route: `/v1/universe/groups/{group_id}/` --- This route expires daily at 11:05 ### Example ```php getUniverseGroupsGroupId($groupId, $datasource, $language, $userAgent, $xUserAgent); + $result = $apiInstance->getUniverseGroupsGroupId($groupId, $datasource, $language, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling UniverseApi->getUniverseGroupsGroupId: ', $e->getMessage(), PHP_EOL; @@ -529,7 +571,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetUniverseGroupsGroupIdOk**](../Model/GetUniverseGroupsGroupIdOk.md) +[**\nullx27ESI\nullx27\ESI\Models\GetUniverseGroupsGroupIdOk**](../Model/GetUniverseGroupsGroupIdOk.md) ### Authorization @@ -543,25 +585,29 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getUniverseMoonsMoonId** -> \nullx27\ESI\Models\GetUniverseMoonsMoonIdOk getUniverseMoonsMoonId($moonId, $datasource, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetUniverseMoonsMoonIdOk getUniverseMoonsMoonId($moonId, $datasource, $userAgent, $xUserAgent) Get moon information -Get information on a moon --- Alternate route: `/v1/universe/moons/{moon_id}/` Alternate route: `/legacy/universe/moons/{moon_id}/` Alternate route: `/dev/universe/moons/{moon_id}/` --- This route expires daily at 11:05 +Get information on a moon --- Alternate route: `/dev/universe/moons/{moon_id}/` Alternate route: `/legacy/universe/moons/{moon_id}/` Alternate route: `/v1/universe/moons/{moon_id}/` --- This route expires daily at 11:05 ### Example ```php getUniverseMoonsMoonId($moonId, $datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getUniverseMoonsMoonId($moonId, $datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling UniverseApi->getUniverseMoonsMoonId: ', $e->getMessage(), PHP_EOL; @@ -580,7 +626,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetUniverseMoonsMoonIdOk**](../Model/GetUniverseMoonsMoonIdOk.md) +[**\nullx27ESI\nullx27\ESI\Models\GetUniverseMoonsMoonIdOk**](../Model/GetUniverseMoonsMoonIdOk.md) ### Authorization @@ -594,25 +640,29 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getUniversePlanetsPlanetId** -> \nullx27\ESI\Models\GetUniversePlanetsPlanetIdOk getUniversePlanetsPlanetId($planetId, $datasource, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetUniversePlanetsPlanetIdOk getUniversePlanetsPlanetId($planetId, $datasource, $userAgent, $xUserAgent) Get planet information -Get information on a planet --- Alternate route: `/v1/universe/planets/{planet_id}/` Alternate route: `/legacy/universe/planets/{planet_id}/` Alternate route: `/dev/universe/planets/{planet_id}/` --- This route expires daily at 11:05 +Get information on a planet --- Alternate route: `/dev/universe/planets/{planet_id}/` Alternate route: `/legacy/universe/planets/{planet_id}/` Alternate route: `/v1/universe/planets/{planet_id}/` --- This route expires daily at 11:05 ### Example ```php getUniversePlanetsPlanetId($planetId, $datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getUniversePlanetsPlanetId($planetId, $datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling UniverseApi->getUniversePlanetsPlanetId: ', $e->getMessage(), PHP_EOL; @@ -631,7 +681,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetUniversePlanetsPlanetIdOk**](../Model/GetUniversePlanetsPlanetIdOk.md) +[**\nullx27ESI\nullx27\ESI\Models\GetUniversePlanetsPlanetIdOk**](../Model/GetUniversePlanetsPlanetIdOk.md) ### Authorization @@ -645,25 +695,29 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getUniverseRaces** -> \nullx27\ESI\Models\GetUniverseRaces200Ok[] getUniverseRaces($datasource, $language, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetUniverseRaces200Ok[] getUniverseRaces($datasource, $language, $userAgent, $xUserAgent) Get character races -Get a list of character races --- Alternate route: `/v1/universe/races/` Alternate route: `/legacy/universe/races/` Alternate route: `/dev/universe/races/` --- This route expires daily at 11:05 +Get a list of character races --- Alternate route: `/dev/universe/races/` Alternate route: `/legacy/universe/races/` Alternate route: `/v1/universe/races/` --- This route expires daily at 11:05 ### Example ```php getUniverseRaces($datasource, $language, $userAgent, $xUserAgent); + $result = $apiInstance->getUniverseRaces($datasource, $language, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling UniverseApi->getUniverseRaces: ', $e->getMessage(), PHP_EOL; @@ -682,7 +736,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetUniverseRaces200Ok[]**](../Model/GetUniverseRaces200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetUniverseRaces200Ok[]**](../Model/GetUniverseRaces200Ok.md) ### Authorization @@ -700,20 +754,24 @@ No authorization required Get regions -Get a list of regions --- Alternate route: `/v1/universe/regions/` Alternate route: `/legacy/universe/regions/` Alternate route: `/dev/universe/regions/` --- This route expires daily at 11:05 +Get a list of regions --- Alternate route: `/dev/universe/regions/` Alternate route: `/legacy/universe/regions/` Alternate route: `/v1/universe/regions/` --- This route expires daily at 11:05 ### Example ```php getUniverseRegions($datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getUniverseRegions($datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling UniverseApi->getUniverseRegions: ', $e->getMessage(), PHP_EOL; @@ -745,18 +803,22 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getUniverseRegionsRegionId** -> \nullx27\ESI\Models\GetUniverseRegionsRegionIdOk getUniverseRegionsRegionId($regionId, $datasource, $language, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetUniverseRegionsRegionIdOk getUniverseRegionsRegionId($regionId, $datasource, $language, $userAgent, $xUserAgent) Get region information -Get information on a region --- Alternate route: `/v1/universe/regions/{region_id}/` Alternate route: `/legacy/universe/regions/{region_id}/` Alternate route: `/dev/universe/regions/{region_id}/` --- This route expires daily at 11:05 +Get information on a region --- Alternate route: `/dev/universe/regions/{region_id}/` Alternate route: `/legacy/universe/regions/{region_id}/` Alternate route: `/v1/universe/regions/{region_id}/` --- This route expires daily at 11:05 ### Example ```php getUniverseRegionsRegionId($regionId, $datasource, $language, $userAgent, $xUserAgent); + $result = $apiInstance->getUniverseRegionsRegionId($regionId, $datasource, $language, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling UniverseApi->getUniverseRegionsRegionId: ', $e->getMessage(), PHP_EOL; @@ -784,7 +846,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetUniverseRegionsRegionIdOk**](../Model/GetUniverseRegionsRegionIdOk.md) +[**\nullx27ESI\nullx27\ESI\Models\GetUniverseRegionsRegionIdOk**](../Model/GetUniverseRegionsRegionIdOk.md) ### Authorization @@ -798,25 +860,29 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getUniverseStargatesStargateId** -> \nullx27\ESI\Models\GetUniverseStargatesStargateIdOk getUniverseStargatesStargateId($stargateId, $datasource, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetUniverseStargatesStargateIdOk getUniverseStargatesStargateId($stargateId, $datasource, $userAgent, $xUserAgent) Get stargate information -Get information on a stargate --- Alternate route: `/v1/universe/stargates/{stargate_id}/` Alternate route: `/legacy/universe/stargates/{stargate_id}/` Alternate route: `/dev/universe/stargates/{stargate_id}/` --- This route expires daily at 11:05 +Get information on a stargate --- Alternate route: `/dev/universe/stargates/{stargate_id}/` Alternate route: `/legacy/universe/stargates/{stargate_id}/` Alternate route: `/v1/universe/stargates/{stargate_id}/` --- This route expires daily at 11:05 ### Example ```php getUniverseStargatesStargateId($stargateId, $datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getUniverseStargatesStargateId($stargateId, $datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling UniverseApi->getUniverseStargatesStargateId: ', $e->getMessage(), PHP_EOL; @@ -835,7 +901,62 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetUniverseStargatesStargateIdOk**](../Model/GetUniverseStargatesStargateIdOk.md) +[**\nullx27ESI\nullx27\ESI\Models\GetUniverseStargatesStargateIdOk**](../Model/GetUniverseStargatesStargateIdOk.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getUniverseStarsStarId** +> \nullx27ESI\nullx27\ESI\Models\GetUniverseStarsStarIdOk getUniverseStarsStarId($starId, $datasource, $userAgent, $xUserAgent) + +Get star information + +Get information on a star --- Alternate route: `/dev/universe/stars/{star_id}/` Alternate route: `/legacy/universe/stars/{star_id}/` Alternate route: `/v1/universe/stars/{star_id}/` --- This route expires daily at 11:05 + +### Example +```php +getUniverseStarsStarId($starId, $datasource, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling UniverseApi->getUniverseStarsStarId: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **starId** | **int**| star_id integer | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetUniverseStarsStarIdOk**](../Model/GetUniverseStarsStarIdOk.md) ### Authorization @@ -849,25 +970,29 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getUniverseStationsStationId** -> \nullx27\ESI\Models\GetUniverseStationsStationIdOk getUniverseStationsStationId($stationId, $datasource, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetUniverseStationsStationIdOk getUniverseStationsStationId($stationId, $datasource, $userAgent, $xUserAgent) Get station information -Get information on a station --- Alternate route: `/v2/universe/stations/{station_id}/` Alternate route: `/dev/universe/stations/{station_id}/` --- This route is cached for up to 300 seconds +Get information on a station --- Alternate route: `/dev/universe/stations/{station_id}/` Alternate route: `/v2/universe/stations/{station_id}/` --- This route is cached for up to 300 seconds ### Example ```php getUniverseStationsStationId($stationId, $datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getUniverseStationsStationId($stationId, $datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling UniverseApi->getUniverseStationsStationId: ', $e->getMessage(), PHP_EOL; @@ -886,7 +1011,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetUniverseStationsStationIdOk**](../Model/GetUniverseStationsStationIdOk.md) +[**\nullx27ESI\nullx27\ESI\Models\GetUniverseStationsStationIdOk**](../Model/GetUniverseStationsStationIdOk.md) ### Authorization @@ -904,20 +1029,24 @@ No authorization required List all public structures -List all public structures --- Alternate route: `/v1/universe/structures/` Alternate route: `/legacy/universe/structures/` Alternate route: `/dev/universe/structures/` --- This route is cached for up to 3600 seconds +List all public structures --- Alternate route: `/dev/universe/structures/` Alternate route: `/legacy/universe/structures/` Alternate route: `/v1/universe/structures/` --- This route is cached for up to 3600 seconds ### Example ```php getUniverseStructures($datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getUniverseStructures($datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling UniverseApi->getUniverseStructures: ', $e->getMessage(), PHP_EOL; @@ -949,11 +1078,11 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getUniverseStructuresStructureId** -> \nullx27\ESI\Models\GetUniverseStructuresStructureIdOk getUniverseStructuresStructureId($structureId, $datasource, $token, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetUniverseStructuresStructureIdOk getUniverseStructuresStructureId($structureId, $datasource, $token, $userAgent, $xUserAgent) Get structure information -Returns information on requested structure, if you are on the ACL. Otherwise, returns \"Forbidden\" for all inputs. --- Alternate route: `/v1/universe/structures/{structure_id}/` Alternate route: `/legacy/universe/structures/{structure_id}/` Alternate route: `/dev/universe/structures/{structure_id}/` --- This route is cached for up to 3600 seconds +Returns information on requested structure, if you are on the ACL. Otherwise, returns \"Forbidden\" for all inputs. --- Alternate route: `/dev/universe/structures/{structure_id}/` Alternate route: `/legacy/universe/structures/{structure_id}/` Alternate route: `/v1/universe/structures/{structure_id}/` --- This route is cached for up to 3600 seconds ### Example ```php @@ -961,17 +1090,22 @@ Returns information on requested structure, if you are on the ACL. Otherwise, re require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\UniverseApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\UniverseApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $structureId = 789; // int | An Eve structure ID $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getUniverseStructuresStructureId($structureId, $datasource, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getUniverseStructuresStructureId($structureId, $datasource, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling UniverseApi->getUniverseStructuresStructureId: ', $e->getMessage(), PHP_EOL; @@ -985,13 +1119,13 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **structureId** | **int**| An Eve structure ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetUniverseStructuresStructureIdOk**](../Model/GetUniverseStructuresStructureIdOk.md) +[**\nullx27ESI\nullx27\ESI\Models\GetUniverseStructuresStructureIdOk**](../Model/GetUniverseStructuresStructureIdOk.md) ### Authorization @@ -1005,24 +1139,28 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getUniverseSystemJumps** -> \nullx27\ESI\Models\GetUniverseSystemJumps200Ok[] getUniverseSystemJumps($datasource, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetUniverseSystemJumps200Ok[] getUniverseSystemJumps($datasource, $userAgent, $xUserAgent) Get system jumps -Get the number of jumps in solar systems within the last hour, excluding wormhole space. Only systems with jumps will be listed --- Alternate route: `/v1/universe/system_jumps/` Alternate route: `/legacy/universe/system_jumps/` Alternate route: `/dev/universe/system_jumps/` --- This route is cached for up to 3600 seconds +Get the number of jumps in solar systems within the last hour ending at the timestamp of the Last-Modified header, excluding wormhole space. Only systems with jumps will be listed --- Alternate route: `/dev/universe/system_jumps/` Alternate route: `/legacy/universe/system_jumps/` Alternate route: `/v1/universe/system_jumps/` --- This route is cached for up to 3600 seconds ### Example ```php getUniverseSystemJumps($datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getUniverseSystemJumps($datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling UniverseApi->getUniverseSystemJumps: ', $e->getMessage(), PHP_EOL; @@ -1040,7 +1178,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetUniverseSystemJumps200Ok[]**](../Model/GetUniverseSystemJumps200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetUniverseSystemJumps200Ok[]**](../Model/GetUniverseSystemJumps200Ok.md) ### Authorization @@ -1054,24 +1192,28 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getUniverseSystemKills** -> \nullx27\ESI\Models\GetUniverseSystemKills200Ok[] getUniverseSystemKills($datasource, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetUniverseSystemKills200Ok[] getUniverseSystemKills($datasource, $userAgent, $xUserAgent) Get system kills -Get the number of ship, pod and NPC kills per solar system within the last hour, excluding wormhole space. Only systems with kills will be listed --- Alternate route: `/v1/universe/system_kills/` Alternate route: `/legacy/universe/system_kills/` Alternate route: `/dev/universe/system_kills/` --- This route is cached for up to 3600 seconds +Get the number of ship, pod and NPC kills per solar system within the last hour ending at the timestamp of the Last-Modified header, excluding wormhole space. Only systems with kills will be listed --- Alternate route: `/dev/universe/system_kills/` Alternate route: `/v2/universe/system_kills/` --- This route is cached for up to 3600 seconds ### Example ```php getUniverseSystemKills($datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getUniverseSystemKills($datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling UniverseApi->getUniverseSystemKills: ', $e->getMessage(), PHP_EOL; @@ -1089,7 +1231,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetUniverseSystemKills200Ok[]**](../Model/GetUniverseSystemKills200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetUniverseSystemKills200Ok[]**](../Model/GetUniverseSystemKills200Ok.md) ### Authorization @@ -1107,20 +1249,24 @@ No authorization required Get solar systems -Get a list of solar systems --- Alternate route: `/v1/universe/systems/` Alternate route: `/legacy/universe/systems/` Alternate route: `/dev/universe/systems/` --- This route expires daily at 11:05 +Get a list of solar systems --- Alternate route: `/dev/universe/systems/` Alternate route: `/legacy/universe/systems/` Alternate route: `/v1/universe/systems/` --- This route expires daily at 11:05 ### Example ```php getUniverseSystems($datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getUniverseSystems($datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling UniverseApi->getUniverseSystems: ', $e->getMessage(), PHP_EOL; @@ -1152,18 +1298,22 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getUniverseSystemsSystemId** -> \nullx27\ESI\Models\GetUniverseSystemsSystemIdOk getUniverseSystemsSystemId($systemId, $datasource, $language, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetUniverseSystemsSystemIdOk getUniverseSystemsSystemId($systemId, $datasource, $language, $userAgent, $xUserAgent) Get solar system information -Get information on a solar system --- Alternate route: `/v2/universe/systems/{system_id}/` Alternate route: `/dev/universe/systems/{system_id}/` --- This route expires daily at 11:05 +Get information on a solar system --- Alternate route: `/dev/universe/systems/{system_id}/` Alternate route: `/v3/universe/systems/{system_id}/` --- This route expires daily at 11:05 ### Example ```php getUniverseSystemsSystemId($systemId, $datasource, $language, $userAgent, $xUserAgent); + $result = $apiInstance->getUniverseSystemsSystemId($systemId, $datasource, $language, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling UniverseApi->getUniverseSystemsSystemId: ', $e->getMessage(), PHP_EOL; @@ -1191,7 +1341,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetUniverseSystemsSystemIdOk**](../Model/GetUniverseSystemsSystemIdOk.md) +[**\nullx27ESI\nullx27\ESI\Models\GetUniverseSystemsSystemIdOk**](../Model/GetUniverseSystemsSystemIdOk.md) ### Authorization @@ -1209,21 +1359,25 @@ No authorization required Get types -Get a list of type ids --- Alternate route: `/v1/universe/types/` Alternate route: `/legacy/universe/types/` Alternate route: `/dev/universe/types/` --- This route expires daily at 11:05 +Get a list of type ids --- Alternate route: `/dev/universe/types/` Alternate route: `/legacy/universe/types/` Alternate route: `/v1/universe/types/` --- This route expires daily at 11:05 ### Example ```php getUniverseTypes($datasource, $page, $userAgent, $xUserAgent); + $result = $apiInstance->getUniverseTypes($datasource, $page, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling UniverseApi->getUniverseTypes: ', $e->getMessage(), PHP_EOL; @@ -1236,7 +1390,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **page** | **int**| Which page to query | [optional] + **page** | **int**| Which page of results to return | [optional] [default to 1] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] @@ -1256,18 +1410,22 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getUniverseTypesTypeId** -> \nullx27\ESI\Models\GetUniverseTypesTypeIdOk getUniverseTypesTypeId($typeId, $datasource, $language, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetUniverseTypesTypeIdOk getUniverseTypesTypeId($typeId, $datasource, $language, $userAgent, $xUserAgent) Get type information -Get information on a type --- Alternate route: `/v2/universe/types/{type_id}/` --- This route expires daily at 11:05 +Get information on a type --- Alternate route: `/dev/universe/types/{type_id}/` Alternate route: `/v3/universe/types/{type_id}/` --- This route expires daily at 11:05 ### Example ```php getUniverseTypesTypeId($typeId, $datasource, $language, $userAgent, $xUserAgent); + $result = $apiInstance->getUniverseTypesTypeId($typeId, $datasource, $language, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling UniverseApi->getUniverseTypesTypeId: ', $e->getMessage(), PHP_EOL; @@ -1295,7 +1453,64 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetUniverseTypesTypeIdOk**](../Model/GetUniverseTypesTypeIdOk.md) +[**\nullx27ESI\nullx27\ESI\Models\GetUniverseTypesTypeIdOk**](../Model/GetUniverseTypesTypeIdOk.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **postUniverseIds** +> \nullx27ESI\nullx27\ESI\Models\PostUniverseIdsOk postUniverseIds($names, $datasource, $language, $userAgent, $xUserAgent) + +Bulk names to IDs + +Resolve a set of names to IDs in the following categories: agents, alliances, characters, constellations, corporations factions, inventory_types, regions, stations, and systems. Only exact matches will be returned. All names searched for are cached for 12 hours. --- Alternate route: `/dev/universe/ids/` Alternate route: `/legacy/universe/ids/` Alternate route: `/v1/universe/ids/` + +### Example +```php +postUniverseIds($names, $datasource, $language, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling UniverseApi->postUniverseIds: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **names** | **string[]**| The names to resolve | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **language** | **string**| Language to use in the response | [optional] [default to en-us] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\PostUniverseIdsOk**](../Model/PostUniverseIdsOk.md) ### Authorization @@ -1309,25 +1524,29 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **postUniverseNames** -> \nullx27\ESI\Models\PostUniverseNames200Ok[] postUniverseNames($ids, $datasource, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\PostUniverseNames200Ok[] postUniverseNames($ids, $datasource, $userAgent, $xUserAgent) Get names and categories for a set of ID's -Resolve a set of IDs to names and categories. Supported ID's for resolving are: Characters, Corporations, Alliances, Stations, Solar Systems, Constellations, Regions, Types. --- Alternate route: `/v2/universe/names/` Alternate route: `/dev/universe/names/` +Resolve a set of IDs to names and categories. Supported ID's for resolving are: Characters, Corporations, Alliances, Stations, Solar Systems, Constellations, Regions, Types. --- Alternate route: `/dev/universe/names/` Alternate route: `/v2/universe/names/` ### Example ```php postUniverseNames($ids, $datasource, $userAgent, $xUserAgent); + $result = $apiInstance->postUniverseNames($ids, $datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling UniverseApi->postUniverseNames: ', $e->getMessage(), PHP_EOL; @@ -1346,7 +1565,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\PostUniverseNames200Ok[]**](../Model/PostUniverseNames200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\PostUniverseNames200Ok[]**](../Model/PostUniverseNames200Ok.md) ### Authorization diff --git a/docs/Api/UserInterfaceApi.md b/docs/Api/UserInterfaceApi.md index 37d22fe..c0d2e30 100644 --- a/docs/Api/UserInterfaceApi.md +++ b/docs/Api/UserInterfaceApi.md @@ -1,4 +1,4 @@ -# nullx27\ESI\UserInterfaceApi +# nullx27ESI\UserInterfaceApi All URIs are relative to *https://esi.tech.ccp.is/latest* @@ -16,7 +16,7 @@ Method | HTTP request | Description Set Autopilot Waypoint -Set a solar system as autopilot waypoint --- Alternate route: `/v2/ui/autopilot/waypoint/` Alternate route: `/dev/ui/autopilot/waypoint/` +Set a solar system as autopilot waypoint --- Alternate route: `/dev/ui/autopilot/waypoint/` Alternate route: `/v2/ui/autopilot/waypoint/` ### Example ```php @@ -24,19 +24,24 @@ Set a solar system as autopilot waypoint --- Alternate route: `/v2/ui/autopilo require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\UserInterfaceApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\UserInterfaceApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $addToBeginning = false; // bool | Whether this solar system should be added to the beginning of all waypoints $clearOtherWaypoints = false; // bool | Whether clean other waypoints beforing adding this one $destinationId = 789; // int | The destination to travel to, can be solar system, station or structure's id $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $api_instance->postUiAutopilotWaypoint($addToBeginning, $clearOtherWaypoints, $destinationId, $datasource, $token, $userAgent, $xUserAgent); + $apiInstance->postUiAutopilotWaypoint($addToBeginning, $clearOtherWaypoints, $destinationId, $datasource, $token, $userAgent, $xUserAgent); } catch (Exception $e) { echo 'Exception when calling UserInterfaceApi->postUiAutopilotWaypoint: ', $e->getMessage(), PHP_EOL; } @@ -51,7 +56,7 @@ Name | Type | Description | Notes **clearOtherWaypoints** | **bool**| Whether clean other waypoints beforing adding this one | [default to false] **destinationId** | **int**| The destination to travel to, can be solar system, station or structure's id | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] @@ -75,7 +80,7 @@ void (empty response body) Open Contract Window -Open the contract window inside the client --- Alternate route: `/v1/ui/openwindow/contract/` Alternate route: `/legacy/ui/openwindow/contract/` Alternate route: `/dev/ui/openwindow/contract/` +Open the contract window inside the client --- Alternate route: `/dev/ui/openwindow/contract/` Alternate route: `/legacy/ui/openwindow/contract/` Alternate route: `/v1/ui/openwindow/contract/` ### Example ```php @@ -83,17 +88,22 @@ Open the contract window inside the client --- Alternate route: `/v1/ui/openwi require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\UserInterfaceApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\UserInterfaceApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $contractId = 56; // int | The contract to open $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $api_instance->postUiOpenwindowContract($contractId, $datasource, $token, $userAgent, $xUserAgent); + $apiInstance->postUiOpenwindowContract($contractId, $datasource, $token, $userAgent, $xUserAgent); } catch (Exception $e) { echo 'Exception when calling UserInterfaceApi->postUiOpenwindowContract: ', $e->getMessage(), PHP_EOL; } @@ -106,7 +116,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **contractId** | **int**| The contract to open | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] @@ -130,7 +140,7 @@ void (empty response body) Open Information Window -Open the information window for a character, corporation or alliance inside the client --- Alternate route: `/v1/ui/openwindow/information/` Alternate route: `/legacy/ui/openwindow/information/` Alternate route: `/dev/ui/openwindow/information/` +Open the information window for a character, corporation or alliance inside the client --- Alternate route: `/dev/ui/openwindow/information/` Alternate route: `/legacy/ui/openwindow/information/` Alternate route: `/v1/ui/openwindow/information/` ### Example ```php @@ -138,17 +148,22 @@ Open the information window for a character, corporation or alliance inside the require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\UserInterfaceApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\UserInterfaceApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $targetId = 56; // int | The target to open $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $api_instance->postUiOpenwindowInformation($targetId, $datasource, $token, $userAgent, $xUserAgent); + $apiInstance->postUiOpenwindowInformation($targetId, $datasource, $token, $userAgent, $xUserAgent); } catch (Exception $e) { echo 'Exception when calling UserInterfaceApi->postUiOpenwindowInformation: ', $e->getMessage(), PHP_EOL; } @@ -161,7 +176,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **targetId** | **int**| The target to open | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] @@ -185,7 +200,7 @@ void (empty response body) Open Market Details -Open the market details window for a specific typeID inside the client --- Alternate route: `/v1/ui/openwindow/marketdetails/` Alternate route: `/legacy/ui/openwindow/marketdetails/` Alternate route: `/dev/ui/openwindow/marketdetails/` +Open the market details window for a specific typeID inside the client --- Alternate route: `/dev/ui/openwindow/marketdetails/` Alternate route: `/legacy/ui/openwindow/marketdetails/` Alternate route: `/v1/ui/openwindow/marketdetails/` ### Example ```php @@ -193,17 +208,22 @@ Open the market details window for a specific typeID inside the client --- Alt require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\UserInterfaceApi(); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\UserInterfaceApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $typeId = 56; // int | The item type to open in market window $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $api_instance->postUiOpenwindowMarketdetails($typeId, $datasource, $token, $userAgent, $xUserAgent); + $apiInstance->postUiOpenwindowMarketdetails($typeId, $datasource, $token, $userAgent, $xUserAgent); } catch (Exception $e) { echo 'Exception when calling UserInterfaceApi->postUiOpenwindowMarketdetails: ', $e->getMessage(), PHP_EOL; } @@ -216,7 +236,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **typeId** | **int**| The item type to open in market window | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] @@ -240,7 +260,7 @@ void (empty response body) Open New Mail Window -Open the New Mail window, according to settings from the request if applicable --- Alternate route: `/v1/ui/openwindow/newmail/` Alternate route: `/legacy/ui/openwindow/newmail/` Alternate route: `/dev/ui/openwindow/newmail/` +Open the New Mail window, according to settings from the request if applicable --- Alternate route: `/dev/ui/openwindow/newmail/` Alternate route: `/legacy/ui/openwindow/newmail/` Alternate route: `/v1/ui/openwindow/newmail/` ### Example ```php @@ -248,17 +268,22 @@ Open the New Mail window, according to settings from the request if applicable require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - -$api_instance = new nullx27\ESI\Api\UserInterfaceApi(); -$newMail = new \nullx27\ESI\Models\PostUiOpenwindowNewmailNewMail(); // \nullx27\ESI\Models\PostUiOpenwindowNewmailNewMail | The details of mail to create +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\UserInterfaceApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$newMail = new \nullx27ESI\nullx27\ESI\Models\PostUiOpenwindowNewmailNewMail(); // \nullx27ESI\nullx27\ESI\Models\PostUiOpenwindowNewmailNewMail | The details of mail to create $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $api_instance->postUiOpenwindowNewmail($newMail, $datasource, $token, $userAgent, $xUserAgent); + $apiInstance->postUiOpenwindowNewmail($newMail, $datasource, $token, $userAgent, $xUserAgent); } catch (Exception $e) { echo 'Exception when calling UserInterfaceApi->postUiOpenwindowNewmail: ', $e->getMessage(), PHP_EOL; } @@ -269,9 +294,9 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **newMail** | [**\nullx27\ESI\Models\PostUiOpenwindowNewmailNewMail**](../Model/\nullx27\ESI\Models\PostUiOpenwindowNewmailNewMail.md)| The details of mail to create | + **newMail** | [**\nullx27ESI\nullx27\ESI\Models\PostUiOpenwindowNewmailNewMail**](../Model/PostUiOpenwindowNewmailNewMail.md)| The details of mail to create | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] diff --git a/docs/Api/WalletApi.md b/docs/Api/WalletApi.md index 61620c8..d51e7de 100644 --- a/docs/Api/WalletApi.md +++ b/docs/Api/WalletApi.md @@ -1,18 +1,23 @@ -# nullx27\ESI\WalletApi +# nullx27ESI\WalletApi All URIs are relative to *https://esi.tech.ccp.is/latest* Method | HTTP request | Description ------------- | ------------- | ------------- -[**getCharactersCharacterIdWallets**](WalletApi.md#getCharactersCharacterIdWallets) | **GET** /characters/{character_id}/wallets/ | List wallets and balances +[**getCharactersCharacterIdWallet**](WalletApi.md#getCharactersCharacterIdWallet) | **GET** /characters/{character_id}/wallet/ | Get a character's wallet balance +[**getCharactersCharacterIdWalletJournal**](WalletApi.md#getCharactersCharacterIdWalletJournal) | **GET** /characters/{character_id}/wallet/journal/ | Get character wallet journal +[**getCharactersCharacterIdWalletTransactions**](WalletApi.md#getCharactersCharacterIdWalletTransactions) | **GET** /characters/{character_id}/wallet/transactions/ | Get wallet transactions +[**getCorporationsCorporationIdWallets**](WalletApi.md#getCorporationsCorporationIdWallets) | **GET** /corporations/{corporation_id}/wallets/ | Returns a corporation's wallet balance +[**getCorporationsCorporationIdWalletsDivisionJournal**](WalletApi.md#getCorporationsCorporationIdWalletsDivisionJournal) | **GET** /corporations/{corporation_id}/wallets/{division}/journal/ | Get corporation wallet journal +[**getCorporationsCorporationIdWalletsDivisionTransactions**](WalletApi.md#getCorporationsCorporationIdWalletsDivisionTransactions) | **GET** /corporations/{corporation_id}/wallets/{division}/transactions/ | Get corporation wallet transactions -# **getCharactersCharacterIdWallets** -> \nullx27\ESI\Models\GetCharactersCharacterIdWallets200Ok[] getCharactersCharacterIdWallets($characterId, $datasource, $token, $userAgent, $xUserAgent) +# **getCharactersCharacterIdWallet** +> double getCharactersCharacterIdWallet($characterId, $datasource, $token, $userAgent, $xUserAgent) -List wallets and balances +Get a character's wallet balance -List your wallets and their balances. Characters typically have only one wallet, with wallet_id 1000 being the master wallet. --- Alternate route: `/v1/characters/{character_id}/wallets/` Alternate route: `/legacy/characters/{character_id}/wallets/` Alternate route: `/dev/characters/{character_id}/wallets/` --- This route is cached for up to 120 seconds +Returns a character's wallet balance --- Alternate route: `/dev/characters/{character_id}/wallet/` Alternate route: `/legacy/characters/{character_id}/wallet/` Alternate route: `/v1/characters/{character_id}/wallet/` --- This route is cached for up to 120 seconds ### Example ```php @@ -20,20 +25,25 @@ List your wallets and their balances. Characters typically have only one wallet, require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: evesso -nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); +$config = nullx27ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); -$api_instance = new nullx27\ESI\Api\WalletApi(); +$apiInstance = new nullx27ESI\Api\WalletApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); $characterId = 56; // int | An EVE character ID $datasource = "tranquility"; // string | The server name you would like data from -$token = "token_example"; // string | Access token to use, if preferred over a header +$token = "token_example"; // string | Access token to use if unable to set a header $userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers $xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent try { - $result = $api_instance->getCharactersCharacterIdWallets($characterId, $datasource, $token, $userAgent, $xUserAgent); + $result = $apiInstance->getCharactersCharacterIdWallet($characterId, $datasource, $token, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { - echo 'Exception when calling WalletApi->getCharactersCharacterIdWallets: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling WalletApi->getCharactersCharacterIdWallet: ', $e->getMessage(), PHP_EOL; } ?> ``` @@ -44,13 +54,330 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **characterId** | **int**| An EVE character ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **token** | **string**| Access token to use, if preferred over a header | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetCharactersCharacterIdWallets200Ok[]**](../Model/GetCharactersCharacterIdWallets200Ok.md) +**double** + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCharactersCharacterIdWalletJournal** +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdWalletJournal200Ok[] getCharactersCharacterIdWalletJournal($characterId, $datasource, $fromId, $token, $userAgent, $xUserAgent) + +Get character wallet journal + +Retrieve character wallet journal --- Alternate route: `/dev/characters/{character_id}/wallet/journal/` Alternate route: `/v3/characters/{character_id}/wallet/journal/` --- This route is cached for up to 3600 seconds + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\WalletApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID +$datasource = "tranquility"; // string | The server name you would like data from +$fromId = 789; // int | Only show journal entries happened before the transaction referenced by this id +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCharactersCharacterIdWalletJournal($characterId, $datasource, $fromId, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling WalletApi->getCharactersCharacterIdWalletJournal: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **characterId** | **int**| An EVE character ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **fromId** | **int**| Only show journal entries happened before the transaction referenced by this id | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdWalletJournal200Ok[]**](../Model/GetCharactersCharacterIdWalletJournal200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCharactersCharacterIdWalletTransactions** +> \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdWalletTransactions200Ok[] getCharactersCharacterIdWalletTransactions($characterId, $datasource, $fromId, $token, $userAgent, $xUserAgent) + +Get wallet transactions + +Get wallet transactions of a character --- Alternate route: `/dev/characters/{character_id}/wallet/transactions/` Alternate route: `/legacy/characters/{character_id}/wallet/transactions/` Alternate route: `/v1/characters/{character_id}/wallet/transactions/` --- This route is cached for up to 3600 seconds + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\WalletApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$characterId = 56; // int | An EVE character ID +$datasource = "tranquility"; // string | The server name you would like data from +$fromId = 789; // int | Only show transactions happened before the one referenced by this id +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCharactersCharacterIdWalletTransactions($characterId, $datasource, $fromId, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling WalletApi->getCharactersCharacterIdWalletTransactions: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **characterId** | **int**| An EVE character ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **fromId** | **int**| Only show transactions happened before the one referenced by this id | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdWalletTransactions200Ok[]**](../Model/GetCharactersCharacterIdWalletTransactions200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCorporationsCorporationIdWallets** +> \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdWallets200Ok[] getCorporationsCorporationIdWallets($corporationId, $datasource, $token, $userAgent, $xUserAgent) + +Returns a corporation's wallet balance + +Get a corporation's wallets --- Alternate route: `/dev/corporations/{corporation_id}/wallets/` Alternate route: `/legacy/corporations/{corporation_id}/wallets/` Alternate route: `/v1/corporations/{corporation_id}/wallets/` --- This route is cached for up to 300 seconds --- Requires one of the following EVE corporation role(s): Accountant, Junior_Accountant + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\WalletApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$corporationId = 56; // int | An EVE corporation ID +$datasource = "tranquility"; // string | The server name you would like data from +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCorporationsCorporationIdWallets($corporationId, $datasource, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling WalletApi->getCorporationsCorporationIdWallets: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **corporationId** | **int**| An EVE corporation ID | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdWallets200Ok[]**](../Model/GetCorporationsCorporationIdWallets200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCorporationsCorporationIdWalletsDivisionJournal** +> \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdWalletsDivisionJournal200Ok[] getCorporationsCorporationIdWalletsDivisionJournal($corporationId, $division, $datasource, $fromId, $token, $userAgent, $xUserAgent) + +Get corporation wallet journal + +Retrieve corporation wallet journal --- Alternate route: `/dev/corporations/{corporation_id}/wallets/{division}/journal/` Alternate route: `/v2/corporations/{corporation_id}/wallets/{division}/journal/` --- This route is cached for up to 3600 seconds --- Requires one of the following EVE corporation role(s): Accountant, Junior_Accountant + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\WalletApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$corporationId = 56; // int | An EVE corporation ID +$division = 56; // int | Wallet key of the division to fetch journals from +$datasource = "tranquility"; // string | The server name you would like data from +$fromId = 789; // int | Only show journal entries happened before the transaction referenced by this id +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCorporationsCorporationIdWalletsDivisionJournal($corporationId, $division, $datasource, $fromId, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling WalletApi->getCorporationsCorporationIdWalletsDivisionJournal: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **corporationId** | **int**| An EVE corporation ID | + **division** | **int**| Wallet key of the division to fetch journals from | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **fromId** | **int**| Only show journal entries happened before the transaction referenced by this id | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdWalletsDivisionJournal200Ok[]**](../Model/GetCorporationsCorporationIdWalletsDivisionJournal200Ok.md) + +### Authorization + +[evesso](../../README.md#evesso) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **getCorporationsCorporationIdWalletsDivisionTransactions** +> \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdWalletsDivisionTransactions200Ok[] getCorporationsCorporationIdWalletsDivisionTransactions($corporationId, $division, $datasource, $fromId, $token, $userAgent, $xUserAgent) + +Get corporation wallet transactions + +Get wallet transactions of a corporation --- Alternate route: `/dev/corporations/{corporation_id}/wallets/{division}/transactions/` Alternate route: `/legacy/corporations/{corporation_id}/wallets/{division}/transactions/` Alternate route: `/v1/corporations/{corporation_id}/wallets/{division}/transactions/` --- This route is cached for up to 3600 seconds --- Requires one of the following EVE corporation role(s): Accountant, Junior_Accountant + +### Example +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new nullx27ESI\Api\WalletApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$corporationId = 56; // int | An EVE corporation ID +$division = 56; // int | Wallet key of the division to fetch journals from +$datasource = "tranquility"; // string | The server name you would like data from +$fromId = 789; // int | Only show journal entries happened before the transaction referenced by this id +$token = "token_example"; // string | Access token to use if unable to set a header +$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers +$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent + +try { + $result = $apiInstance->getCorporationsCorporationIdWalletsDivisionTransactions($corporationId, $division, $datasource, $fromId, $token, $userAgent, $xUserAgent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling WalletApi->getCorporationsCorporationIdWalletsDivisionTransactions: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **corporationId** | **int**| An EVE corporation ID | + **division** | **int**| Wallet key of the division to fetch journals from | + **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] + **fromId** | **int**| Only show journal entries happened before the transaction referenced by this id | [optional] + **token** | **string**| Access token to use if unable to set a header | [optional] + **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] + **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] + +### Return type + +[**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdWalletsDivisionTransactions200Ok[]**](../Model/GetCorporationsCorporationIdWalletsDivisionTransactions200Ok.md) ### Authorization diff --git a/docs/Api/WarsApi.md b/docs/Api/WarsApi.md index 8f8bfc1..73b08db 100644 --- a/docs/Api/WarsApi.md +++ b/docs/Api/WarsApi.md @@ -1,4 +1,4 @@ -# nullx27\ESI\WarsApi +# nullx27ESI\WarsApi All URIs are relative to *https://esi.tech.ccp.is/latest* @@ -14,21 +14,25 @@ Method | HTTP request | Description List wars -Return a list of wars --- Alternate route: `/v1/wars/` Alternate route: `/legacy/wars/` Alternate route: `/dev/wars/` --- This route is cached for up to 3600 seconds +Return a list of wars --- Alternate route: `/dev/wars/` Alternate route: `/legacy/wars/` Alternate route: `/v1/wars/` --- This route is cached for up to 3600 seconds ### Example ```php getWars($datasource, $maxWarId, $userAgent, $xUserAgent); + $result = $apiInstance->getWars($datasource, $maxWarId, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling WarsApi->getWars: ', $e->getMessage(), PHP_EOL; @@ -61,25 +65,29 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getWarsWarId** -> \nullx27\ESI\Models\GetWarsWarIdOk getWarsWarId($warId, $datasource, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetWarsWarIdOk getWarsWarId($warId, $datasource, $userAgent, $xUserAgent) Get war information -Return details about a war --- Alternate route: `/v1/wars/{war_id}/` Alternate route: `/legacy/wars/{war_id}/` Alternate route: `/dev/wars/{war_id}/` --- This route is cached for up to 3600 seconds +Return details about a war --- Alternate route: `/dev/wars/{war_id}/` Alternate route: `/legacy/wars/{war_id}/` Alternate route: `/v1/wars/{war_id}/` --- This route is cached for up to 3600 seconds ### Example ```php getWarsWarId($warId, $datasource, $userAgent, $xUserAgent); + $result = $apiInstance->getWarsWarId($warId, $datasource, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling WarsApi->getWarsWarId: ', $e->getMessage(), PHP_EOL; @@ -98,7 +106,7 @@ Name | Type | Description | Notes ### Return type -[**\nullx27\ESI\Models\GetWarsWarIdOk**](../Model/GetWarsWarIdOk.md) +[**\nullx27ESI\nullx27\ESI\Models\GetWarsWarIdOk**](../Model/GetWarsWarIdOk.md) ### Authorization @@ -112,26 +120,30 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getWarsWarIdKillmails** -> \nullx27\ESI\Models\GetWarsWarIdKillmails200Ok[] getWarsWarIdKillmails($warId, $datasource, $page, $userAgent, $xUserAgent) +> \nullx27ESI\nullx27\ESI\Models\GetWarsWarIdKillmails200Ok[] getWarsWarIdKillmails($warId, $datasource, $page, $userAgent, $xUserAgent) List kills for a war -Return a list of kills related to a war --- Alternate route: `/v1/wars/{war_id}/killmails/` Alternate route: `/legacy/wars/{war_id}/killmails/` Alternate route: `/dev/wars/{war_id}/killmails/` --- This route is cached for up to 3600 seconds +Return a list of kills related to a war --- Alternate route: `/dev/wars/{war_id}/killmails/` Alternate route: `/legacy/wars/{war_id}/killmails/` Alternate route: `/v1/wars/{war_id}/killmails/` --- This route is cached for up to 3600 seconds ### Example ```php getWarsWarIdKillmails($warId, $datasource, $page, $userAgent, $xUserAgent); + $result = $apiInstance->getWarsWarIdKillmails($warId, $datasource, $page, $userAgent, $xUserAgent); print_r($result); } catch (Exception $e) { echo 'Exception when calling WarsApi->getWarsWarIdKillmails: ', $e->getMessage(), PHP_EOL; @@ -145,13 +157,13 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **warId** | **int**| A valid war ID | **datasource** | **string**| The server name you would like data from | [optional] [default to tranquility] - **page** | **int**| Which page to query, starting at 1 | [optional] [default to 1] + **page** | **int**| Which page of results to return | [optional] [default to 1] **userAgent** | **string**| Client identifier, takes precedence over headers | [optional] **xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional] ### Return type -[**\nullx27\ESI\Models\GetWarsWarIdKillmails200Ok[]**](../Model/GetWarsWarIdKillmails200Ok.md) +[**\nullx27ESI\nullx27\ESI\Models\GetWarsWarIdKillmails200Ok[]**](../Model/GetWarsWarIdKillmails200Ok.md) ### Authorization diff --git a/docs/Model/Forbidden.md b/docs/Model/Forbidden.md new file mode 100644 index 0000000..df05f37 --- /dev/null +++ b/docs/Model/Forbidden.md @@ -0,0 +1,11 @@ +# Forbidden + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **string** | Forbidden message | +**ssoStatus** | **int** | Status code received from SSO | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetAlliancesAllianceIdContacts200Ok.md b/docs/Model/GetAlliancesAllianceIdContacts200Ok.md new file mode 100644 index 0000000..2fd99e7 --- /dev/null +++ b/docs/Model/GetAlliancesAllianceIdContacts200Ok.md @@ -0,0 +1,13 @@ +# GetAlliancesAllianceIdContacts200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**standing** | **float** | Standing of the contact | +**contactType** | **string** | contact_type string | +**contactId** | **int** | contact_id integer | +**labelId** | **int** | Custom label of the contact | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetAlliancesAllianceIdIconsOk.md b/docs/Model/GetAlliancesAllianceIdIconsOk.md index e13e451..73ca0e6 100644 --- a/docs/Model/GetAlliancesAllianceIdIconsOk.md +++ b/docs/Model/GetAlliancesAllianceIdIconsOk.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**px128x128** | **string** | px128x128 string | [optional] **px64x64** | **string** | px64x64 string | [optional] +**px128x128** | **string** | px128x128 string | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetAlliancesAllianceIdNotFound.md b/docs/Model/GetAlliancesAllianceIdNotFound.md index a349314..efa4ed1 100644 --- a/docs/Model/GetAlliancesAllianceIdNotFound.md +++ b/docs/Model/GetAlliancesAllianceIdNotFound.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**error** | **string** | error message | [optional] +**error** | **string** | Not found message | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetAlliancesAllianceIdOk.md b/docs/Model/GetAlliancesAllianceIdOk.md index 59453df..6aabfd2 100644 --- a/docs/Model/GetAlliancesAllianceIdOk.md +++ b/docs/Model/GetAlliancesAllianceIdOk.md @@ -3,10 +3,13 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**allianceName** | **string** | the full name of the alliance | -**dateFounded** | [**\DateTime**](\DateTime.md) | date_founded string | -**executorCorp** | **int** | the executor corporation ID, if this alliance is not closed | [optional] +**name** | **string** | the full name of the alliance | +**creatorId** | **int** | ID of the character that created the alliance | +**creatorCorporationId** | **int** | ID of the corporation that created the alliance | **ticker** | **string** | the short name of the alliance | +**executorCorporationId** | **int** | the executor corporation ID, if this alliance is not closed | [optional] +**dateFounded** | [**\DateTime**](\DateTime.md) | date_founded string | +**factionId** | **int** | Faction ID this alliance is fighting for, if this alliance is enlisted in factional warfare | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdAgentsResearch200Ok.md b/docs/Model/GetCharactersCharacterIdAgentsResearch200Ok.md index c99db24..aa6ae97 100644 --- a/docs/Model/GetCharactersCharacterIdAgentsResearch200Ok.md +++ b/docs/Model/GetCharactersCharacterIdAgentsResearch200Ok.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **agentId** | **int** | agent_id integer | -**pointsPerDay** | **float** | points_per_day number | -**remainderPoints** | **float** | remainder_points number | **skillTypeId** | **int** | skill_type_id integer | **startedAt** | [**\DateTime**](\DateTime.md) | started_at string | +**pointsPerDay** | **float** | points_per_day number | +**remainderPoints** | **float** | remainder_points number | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdAssets200Ok.md b/docs/Model/GetCharactersCharacterIdAssets200Ok.md index 5069e89..b4d7eba 100644 --- a/docs/Model/GetCharactersCharacterIdAssets200Ok.md +++ b/docs/Model/GetCharactersCharacterIdAssets200Ok.md @@ -3,13 +3,13 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**isSingleton** | **bool** | is_singleton boolean | -**itemId** | **int** | item_id integer | -**locationFlag** | **string** | location_flag string | +**typeId** | **int** | type_id integer | +**quantity** | **int** | quantity integer | **locationId** | **int** | location_id integer | **locationType** | **string** | location_type string | -**quantity** | **int** | quantity integer | [optional] -**typeId** | **int** | type_id integer | +**itemId** | **int** | item_id integer | +**locationFlag** | **string** | location_flag string | +**isSingleton** | **bool** | is_singleton boolean | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdAttributesOk.md b/docs/Model/GetCharactersCharacterIdAttributesOk.md new file mode 100644 index 0000000..b4d7de4 --- /dev/null +++ b/docs/Model/GetCharactersCharacterIdAttributesOk.md @@ -0,0 +1,17 @@ +# GetCharactersCharacterIdAttributesOk + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**charisma** | **int** | charisma integer | +**intelligence** | **int** | intelligence integer | +**memory** | **int** | memory integer | +**perception** | **int** | perception integer | +**willpower** | **int** | willpower integer | +**bonusRemaps** | **int** | Number of available bonus character neural remaps | [optional] +**lastRemapDate** | [**\DateTime**](\DateTime.md) | Datetime of last neural remap, including usage of bonus remaps | [optional] +**accruedRemapCooldownDate** | [**\DateTime**](\DateTime.md) | Neural remapping cooldown after a character uses remap accrued over time | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCharactersCharacterIdBlueprints200Ok.md b/docs/Model/GetCharactersCharacterIdBlueprints200Ok.md index 1bb1234..a9b6b88 100644 --- a/docs/Model/GetCharactersCharacterIdBlueprints200Ok.md +++ b/docs/Model/GetCharactersCharacterIdBlueprints200Ok.md @@ -3,14 +3,14 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**itemId** | **int** | Unique ID for this item. The ID of an item is stable if that item is not repackaged, stacked, detached from a stack, assembled, or otherwise altered. If an item is changed in one of these ways, then the ID will also change (see notes below). | -**locationFlag** | **string** | Indicates something about this item's storage location. The flag is used to differentiate between hangar divisions, drone bay, fitting location, and similar. | -**locationId** | **int** | References a solar system, station or itemID if this blueprint is located within a container. If an itemID the Character - AssetList API must be queried to find the container using the itemID, from which the correct location of the Blueprint can be derived. | -**materialEfficiency** | **int** | Material Efficiency Level of the blueprint, can be any integer between 0 and 10. | -**quantity** | **int** | Typically will be -1 or -2 designating a singleton item, where -1 is an original and -2 is a copy. It can be a positive integer if it is a stack of blueprint originals fresh from the market (no activities performed on them yet). | -**runs** | **int** | Number of runs remaining if the blueprint is a copy, -1 if it is an original. | -**timeEfficiency** | **int** | Time Efficiency Level of the blueprint, can be any even integer between 0 and 20. | +**itemId** | **int** | Unique ID for this item. | **typeId** | **int** | type_id integer | +**locationId** | **int** | References a solar system, station or item_id if this blueprint is located within a container. If the return value is an item_id, then the Character AssetList API must be queried to find the container using the given item_id to determine the correct location of the Blueprint. | +**locationFlag** | **string** | Type of the location_id | +**quantity** | **int** | A range of numbers with a minimum of -2 and no maximum value where -1 is an original and -2 is a copy. It can be a positive integer if it is a stack of blueprint originals fresh from the market (e.g. no activities performed on them yet). | +**timeEfficiency** | **int** | Time Efficiency Level of the blueprint. | +**materialEfficiency** | **int** | Material Efficiency Level of the blueprint. | +**runs** | **int** | Number of runs remaining if the blueprint is a copy, -1 if it is an original. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdBookmarks200Ok.md b/docs/Model/GetCharactersCharacterIdBookmarks200Ok.md index b880be7..c3b331a 100644 --- a/docs/Model/GetCharactersCharacterIdBookmarks200Ok.md +++ b/docs/Model/GetCharactersCharacterIdBookmarks200Ok.md @@ -4,13 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **bookmarkId** | **int** | bookmark_id integer | -**createDate** | [**\DateTime**](\DateTime.md) | create_date string | -**creatorId** | **int** | creator_id integer | **folderId** | **int** | folder_id integer | [optional] -**memo** | **string** | memo string | -**note** | **string** | note string | -**ownerId** | **int** | owner_id integer | -**target** | [**\nullx27\ESI\Models\GetCharactersCharacterIdBookmarksTarget**](GetCharactersCharacterIdBookmarksTarget.md) | | [optional] +**created** | [**\DateTime**](\DateTime.md) | created string | +**label** | **string** | label string | +**notes** | **string** | notes string | +**locationId** | **int** | location_id integer | +**creatorId** | **int** | creator_id integer | +**item** | [**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdBookmarksItem**](GetCharactersCharacterIdBookmarksItem.md) | | [optional] +**coordinates** | [**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdBookmarksCoordinates**](GetCharactersCharacterIdBookmarksCoordinates.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdBookmarksFolders200Ok.md b/docs/Model/GetCharactersCharacterIdBookmarksFolders200Ok.md index ee237d4..903fd51 100644 --- a/docs/Model/GetCharactersCharacterIdBookmarksFolders200Ok.md +++ b/docs/Model/GetCharactersCharacterIdBookmarksFolders200Ok.md @@ -3,9 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**folderId** | **int** | folder_id integer | [optional] -**name** | **string** | name string | [optional] -**ownerId** | **int** | owner_id integer | [optional] +**folderId** | **int** | folder_id integer | +**name** | **string** | name string | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdCalendar200Ok.md b/docs/Model/GetCharactersCharacterIdCalendar200Ok.md index c42ddfb..5dfaf75 100644 --- a/docs/Model/GetCharactersCharacterIdCalendar200Ok.md +++ b/docs/Model/GetCharactersCharacterIdCalendar200Ok.md @@ -3,11 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**eventDate** | [**\DateTime**](\DateTime.md) | event_date string | [optional] **eventId** | **int** | event_id integer | [optional] -**eventResponse** | **string** | event_response string | [optional] -**importance** | **int** | importance integer | [optional] +**eventDate** | [**\DateTime**](\DateTime.md) | event_date string | [optional] **title** | **string** | title string | [optional] +**importance** | **int** | importance integer | [optional] +**eventResponse** | **string** | event_response string | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdCalendarEventIdAttendees200Ok.md b/docs/Model/GetCharactersCharacterIdCalendarEventIdAttendees200Ok.md new file mode 100644 index 0000000..8d055cd --- /dev/null +++ b/docs/Model/GetCharactersCharacterIdCalendarEventIdAttendees200Ok.md @@ -0,0 +1,11 @@ +# GetCharactersCharacterIdCalendarEventIdAttendees200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**characterId** | **int** | character_id integer | [optional] +**eventResponse** | **string** | event_response string | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCharactersCharacterIdCalendarEventIdOk.md b/docs/Model/GetCharactersCharacterIdCalendarEventIdOk.md index b86ae77..359796d 100644 --- a/docs/Model/GetCharactersCharacterIdCalendarEventIdOk.md +++ b/docs/Model/GetCharactersCharacterIdCalendarEventIdOk.md @@ -3,16 +3,16 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**date** | [**\DateTime**](\DateTime.md) | date string | -**duration** | **int** | Length in minutes | **eventId** | **int** | event_id integer | -**importance** | **int** | importance integer | **ownerId** | **int** | owner_id integer | **ownerName** | **string** | owner_name string | -**ownerType** | **string** | owner_type string | +**date** | [**\DateTime**](\DateTime.md) | date string | +**title** | **string** | title string | +**duration** | **int** | Length in minutes | +**importance** | **int** | importance integer | **response** | **string** | response string | **text** | **string** | text string | -**title** | **string** | title string | +**ownerType** | **string** | owner_type string | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdChatChannels200Ok.md b/docs/Model/GetCharactersCharacterIdChatChannels200Ok.md index 9a36e71..2baa438 100644 --- a/docs/Model/GetCharactersCharacterIdChatChannels200Ok.md +++ b/docs/Model/GetCharactersCharacterIdChatChannels200Ok.md @@ -3,16 +3,16 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**allowed** | [**\nullx27\ESI\Models\GetCharactersCharacterIdChatChannelsAllowed[]**](GetCharactersCharacterIdChatChannelsAllowed.md) | allowed array | -**blocked** | [**\nullx27\ESI\Models\GetCharactersCharacterIdChatChannelsBlocked[]**](GetCharactersCharacterIdChatChannelsBlocked.md) | blocked array | **channelId** | **int** | Unique channel ID. Always negative for player-created channels. Permanent (CCP created) channels have a positive ID, but don't appear in the API | -**comparisonKey** | **string** | Normalized, unique string used to compare channel names | -**hasPassword** | **bool** | Whether this is a password protected channel | -**motd** | **string** | Message of the day for this channel | -**muted** | [**\nullx27\ESI\Models\GetCharactersCharacterIdChatChannelsMuted[]**](GetCharactersCharacterIdChatChannelsMuted.md) | muted array | **name** | **string** | Displayed name of channel | -**operators** | [**\nullx27\ESI\Models\GetCharactersCharacterIdChatChannelsOperator[]**](GetCharactersCharacterIdChatChannelsOperator.md) | operators array | **ownerId** | **int** | owner_id integer | +**comparisonKey** | **string** | Normalized, unique string used to compare channel names | +**hasPassword** | **bool** | If this is a password protected channel | +**motd** | **string** | Message of the day for this channel | +**allowed** | [**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdChatChannelsAllowed[]**](GetCharactersCharacterIdChatChannelsAllowed.md) | allowed array | +**operators** | [**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdChatChannelsOperator[]**](GetCharactersCharacterIdChatChannelsOperator.md) | operators array | +**blocked** | [**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdChatChannelsBlocked[]**](GetCharactersCharacterIdChatChannelsBlocked.md) | blocked array | +**muted** | [**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdChatChannelsMuted[]**](GetCharactersCharacterIdChatChannelsMuted.md) | muted array | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdChatChannelsBlocked.md b/docs/Model/GetCharactersCharacterIdChatChannelsBlocked.md index d51d34d..a776c3b 100644 --- a/docs/Model/GetCharactersCharacterIdChatChannelsBlocked.md +++ b/docs/Model/GetCharactersCharacterIdChatChannelsBlocked.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **accessorId** | **int** | ID of a blocked channel member | **accessorType** | **string** | accessor_type string | -**endAt** | [**\DateTime**](\DateTime.md) | Time at which this accessor will no longer be blocked | [optional] **reason** | **string** | Reason this accessor is blocked | [optional] +**endAt** | [**\DateTime**](\DateTime.md) | Time at which this accessor will no longer be blocked | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdChatChannelsMuted.md b/docs/Model/GetCharactersCharacterIdChatChannelsMuted.md index 3b2508c..3334c8b 100644 --- a/docs/Model/GetCharactersCharacterIdChatChannelsMuted.md +++ b/docs/Model/GetCharactersCharacterIdChatChannelsMuted.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **accessorId** | **int** | ID of a muted channel member | **accessorType** | **string** | accessor_type string | -**endAt** | [**\DateTime**](\DateTime.md) | Time at which this accessor will no longer be muted | [optional] **reason** | **string** | Reason this accessor is muted | [optional] +**endAt** | [**\DateTime**](\DateTime.md) | Time at which this accessor will no longer be muted | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdClonesJumpClone.md b/docs/Model/GetCharactersCharacterIdClonesJumpClone.md index 964724d..c20b38e 100644 --- a/docs/Model/GetCharactersCharacterIdClonesJumpClone.md +++ b/docs/Model/GetCharactersCharacterIdClonesJumpClone.md @@ -3,9 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**implants** | **int[]** | implants array | [optional] -**locationId** | **int** | location_id integer | [optional] -**locationType** | **string** | location_type string | [optional] +**jumpCloneId** | **int** | jump_clone_id integer | +**name** | **string** | name string | [optional] +**locationId** | **int** | location_id integer | +**locationType** | **string** | location_type string | +**implants** | **int[]** | implants array | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdClonesOk.md b/docs/Model/GetCharactersCharacterIdClonesOk.md index 03afb59..7501529 100644 --- a/docs/Model/GetCharactersCharacterIdClonesOk.md +++ b/docs/Model/GetCharactersCharacterIdClonesOk.md @@ -3,9 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**homeLocation** | [**\nullx27\ESI\Models\GetCharactersCharacterIdClonesHomeLocation**](GetCharactersCharacterIdClonesHomeLocation.md) | | [optional] -**jumpClones** | [**\nullx27\ESI\Models\GetCharactersCharacterIdClonesJumpClone[]**](GetCharactersCharacterIdClonesJumpClone.md) | jump_clones array | -**lastJumpDate** | [**\DateTime**](\DateTime.md) | last_jump_date string | [optional] +**lastCloneJumpDate** | [**\DateTime**](\DateTime.md) | last_clone_jump_date string | [optional] +**homeLocation** | [**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdClonesHomeLocation**](GetCharactersCharacterIdClonesHomeLocation.md) | | [optional] +**lastStationChangeDate** | [**\DateTime**](\DateTime.md) | last_station_change_date string | [optional] +**jumpClones** | [**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdClonesJumpClone[]**](GetCharactersCharacterIdClonesJumpClone.md) | jump_clones array | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdContacts200Ok.md b/docs/Model/GetCharactersCharacterIdContacts200Ok.md index e64c49a..2f7a904 100644 --- a/docs/Model/GetCharactersCharacterIdContacts200Ok.md +++ b/docs/Model/GetCharactersCharacterIdContacts200Ok.md @@ -3,12 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**contactId** | **int** | contact_id integer | +**standing** | **float** | Standing of the contact | **contactType** | **string** | contact_type string | -**isBlocked** | **bool** | Whether this contact is in the blocked list. Note a missing value denotes unknown, not true or false | [optional] +**contactId** | **int** | contact_id integer | **isWatched** | **bool** | Whether this contact is being watched | [optional] +**isBlocked** | **bool** | Whether this contact is in the blocked list. Note a missing value denotes unknown, not true or false | [optional] **labelId** | **int** | Custom label of the contact | [optional] -**standing** | **float** | Standing of the contact | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdContracts200Ok.md b/docs/Model/GetCharactersCharacterIdContracts200Ok.md new file mode 100644 index 0000000..972c3b5 --- /dev/null +++ b/docs/Model/GetCharactersCharacterIdContracts200Ok.md @@ -0,0 +1,31 @@ +# GetCharactersCharacterIdContracts200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**contractId** | **int** | contract_id integer | +**issuerId** | **int** | Character ID for the issuer | +**issuerCorporationId** | **int** | Character's corporation ID for the issuer | +**assigneeId** | **int** | ID to whom the contract is assigned, can be corporation or character ID | +**acceptorId** | **int** | Who will accept the contract | +**startLocationId** | **int** | Start location ID (for Couriers contract) | [optional] +**endLocationId** | **int** | End location ID (for Couriers contract) | [optional] +**type** | **string** | Type of the contract | +**status** | **string** | Status of the the contract | +**title** | **string** | Title of the contract | [optional] +**forCorporation** | **bool** | true if the contract was issued on behalf of the issuer's corporation | +**availability** | **string** | To whom the contract is available | +**dateIssued** | [**\DateTime**](\DateTime.md) | Сreation date of the contract | +**dateExpired** | [**\DateTime**](\DateTime.md) | Expiration date of the contract | +**dateAccepted** | [**\DateTime**](\DateTime.md) | Date of confirmation of contract | [optional] +**daysToComplete** | **int** | Number of days to perform the contract | [optional] +**dateCompleted** | [**\DateTime**](\DateTime.md) | Date of completed of contract | [optional] +**price** | **double** | Price of contract (for ItemsExchange and Auctions) | [optional] +**reward** | **double** | Remuneration for contract (for Couriers only) | [optional] +**collateral** | **double** | Collateral price (for Couriers only) | [optional] +**buyout** | **double** | Buyout price (for Auctions only) | [optional] +**volume** | **float** | Volume of items in the contract | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCharactersCharacterIdContractsContractIdBids200Ok.md b/docs/Model/GetCharactersCharacterIdContractsContractIdBids200Ok.md new file mode 100644 index 0000000..7b91880 --- /dev/null +++ b/docs/Model/GetCharactersCharacterIdContractsContractIdBids200Ok.md @@ -0,0 +1,13 @@ +# GetCharactersCharacterIdContractsContractIdBids200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bidId** | **int** | Unique ID for the bid | +**bidderId** | **int** | Character ID of the bidder | +**dateBid** | [**\DateTime**](\DateTime.md) | Datetime when the bid was placed | +**amount** | **float** | The amount bid, in ISK | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCharactersCharacterIdContractsContractIdItems200Ok.md b/docs/Model/GetCharactersCharacterIdContractsContractIdItems200Ok.md new file mode 100644 index 0000000..7c87a9b --- /dev/null +++ b/docs/Model/GetCharactersCharacterIdContractsContractIdItems200Ok.md @@ -0,0 +1,15 @@ +# GetCharactersCharacterIdContractsContractIdItems200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**recordId** | **int** | Unique ID for the item | +**typeId** | **int** | Type ID for item | +**quantity** | **int** | Number of items in the stack | +**rawQuantity** | **int** | -1 indicates that the item is a singleton (non-stackable). If the item happens to be a Blueprint, -1 is an Original and -2 is a Blueprint Copy | [optional] +**isSingleton** | **bool** | is_singleton boolean | +**isIncluded** | **bool** | true if the contract issuer has submitted this item with the contract, false if the isser is asking for this item in the contract. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCharactersCharacterIdCorporationhistory200Ok.md b/docs/Model/GetCharactersCharacterIdCorporationhistory200Ok.md index 5a2b891..cf2c76e 100644 --- a/docs/Model/GetCharactersCharacterIdCorporationhistory200Ok.md +++ b/docs/Model/GetCharactersCharacterIdCorporationhistory200Ok.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**corporationId** | **int** | corporation_id integer | [optional] +**startDate** | [**\DateTime**](\DateTime.md) | start_date string | +**corporationId** | **int** | corporation_id integer | **isDeleted** | **bool** | True if the corporation has been deleted | [optional] -**recordId** | **int** | An incrementing ID that can be used to canonically establish order of records in cases where dates may be ambiguous | [optional] -**startDate** | [**\DateTime**](\DateTime.md) | start_date string | [optional] +**recordId** | **int** | An incrementing ID that can be used to canonically establish order of records in cases where dates may be ambiguous | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdFatigueOk.md b/docs/Model/GetCharactersCharacterIdFatigueOk.md new file mode 100644 index 0000000..7e63aa6 --- /dev/null +++ b/docs/Model/GetCharactersCharacterIdFatigueOk.md @@ -0,0 +1,12 @@ +# GetCharactersCharacterIdFatigueOk + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lastJumpDate** | [**\DateTime**](\DateTime.md) | Character's last jump activation | [optional] +**jumpFatigueExpireDate** | [**\DateTime**](\DateTime.md) | Character's jump fatigue expiry | [optional] +**lastUpdateDate** | [**\DateTime**](\DateTime.md) | Character's last jump update | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCharactersCharacterIdFittings200Ok.md b/docs/Model/GetCharactersCharacterIdFittings200Ok.md index f526fce..044d8f1 100644 --- a/docs/Model/GetCharactersCharacterIdFittings200Ok.md +++ b/docs/Model/GetCharactersCharacterIdFittings200Ok.md @@ -3,11 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**description** | **string** | description string | **fittingId** | **int** | fitting_id integer | -**items** | [**\nullx27\ESI\Models\GetCharactersCharacterIdFittingsItem[]**](GetCharactersCharacterIdFittingsItem.md) | items array | **name** | **string** | name string | +**description** | **string** | description string | **shipTypeId** | **int** | ship_type_id integer | +**items** | [**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFittingsItem[]**](GetCharactersCharacterIdFittingsItem.md) | items array | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdFittingsItem.md b/docs/Model/GetCharactersCharacterIdFittingsItem.md index 663a5e1..928bfdb 100644 --- a/docs/Model/GetCharactersCharacterIdFittingsItem.md +++ b/docs/Model/GetCharactersCharacterIdFittingsItem.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**typeId** | **int** | type_id integer | **flag** | **int** | flag integer | **quantity** | **int** | quantity integer | -**typeId** | **int** | type_id integer | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdFleetNotFound.md b/docs/Model/GetCharactersCharacterIdFleetNotFound.md new file mode 100644 index 0000000..40c0741 --- /dev/null +++ b/docs/Model/GetCharactersCharacterIdFleetNotFound.md @@ -0,0 +1,10 @@ +# GetCharactersCharacterIdFleetNotFound + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **string** | Not found message | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCharactersCharacterIdFleetOk.md b/docs/Model/GetCharactersCharacterIdFleetOk.md new file mode 100644 index 0000000..6f26d83 --- /dev/null +++ b/docs/Model/GetCharactersCharacterIdFleetOk.md @@ -0,0 +1,13 @@ +# GetCharactersCharacterIdFleetOk + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fleetId** | **int** | The character's current fleet ID | +**wingId** | **int** | ID of the wing the member is in. If not applicable, will be set to -1 | +**squadId** | **int** | ID of the squad the member is in. If not applicable, will be set to -1 | +**role** | **string** | Member’s role in fleet | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCharactersCharacterIdFwStatsKills.md b/docs/Model/GetCharactersCharacterIdFwStatsKills.md new file mode 100644 index 0000000..08d138a --- /dev/null +++ b/docs/Model/GetCharactersCharacterIdFwStatsKills.md @@ -0,0 +1,12 @@ +# GetCharactersCharacterIdFwStatsKills + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**yesterday** | **int** | Yesterday's total number of kills by a given character against enemy factions | +**lastWeek** | **int** | Last week's total number of kills by a given character against enemy factions | +**total** | **int** | Total number of kills by a given character against enemy factions since the character enlisted | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCharactersCharacterIdFwStatsOk.md b/docs/Model/GetCharactersCharacterIdFwStatsOk.md new file mode 100644 index 0000000..79038e8 --- /dev/null +++ b/docs/Model/GetCharactersCharacterIdFwStatsOk.md @@ -0,0 +1,15 @@ +# GetCharactersCharacterIdFwStatsOk + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**factionId** | **int** | The faction the given character is enlisted to fight for. Will not be included if character is not enlisted in faction warfare | [optional] +**enlistedOn** | [**\DateTime**](\DateTime.md) | The enlistment date of the given character into faction warfare. Will not be included if character is not enlisted in faction warfare | [optional] +**currentRank** | **int** | The given character's current faction rank | [optional] +**highestRank** | **int** | The given character's highest faction rank achieved | [optional] +**kills** | [**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFwStatsKills**](GetCharactersCharacterIdFwStatsKills.md) | | +**victoryPoints** | [**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFwStatsVictoryPoints**](GetCharactersCharacterIdFwStatsVictoryPoints.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCharactersCharacterIdFwStatsVictoryPoints.md b/docs/Model/GetCharactersCharacterIdFwStatsVictoryPoints.md new file mode 100644 index 0000000..2413a6a --- /dev/null +++ b/docs/Model/GetCharactersCharacterIdFwStatsVictoryPoints.md @@ -0,0 +1,12 @@ +# GetCharactersCharacterIdFwStatsVictoryPoints + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**yesterday** | **int** | Yesterday's victory points gained by the given character | +**lastWeek** | **int** | Last week's victory points gained by the given character | +**total** | **int** | Total victory points gained since the given character enlisted | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCharactersCharacterIdIndustryJobs200Ok.md b/docs/Model/GetCharactersCharacterIdIndustryJobs200Ok.md index c9c061f..9f102c5 100644 --- a/docs/Model/GetCharactersCharacterIdIndustryJobs200Ok.md +++ b/docs/Model/GetCharactersCharacterIdIndustryJobs200Ok.md @@ -3,27 +3,27 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**jobId** | **int** | Unique job ID | +**installerId** | **int** | ID of the character which installed this job | +**facilityId** | **int** | ID of the facility where this job is running | +**stationId** | **int** | ID of the station where industry facility is located | **activityId** | **int** | Job activity ID | **blueprintId** | **int** | blueprint_id integer | -**blueprintLocationId** | **int** | Location ID of the location from which the blueprint was installed. Normally a station ID, but can also be an asset (e.g. container) or corporation facility | **blueprintTypeId** | **int** | blueprint_type_id integer | -**completedCharacterId** | **int** | ID of the character which completed this job | [optional] -**completedDate** | [**\DateTime**](\DateTime.md) | Date and time when this job was completed | [optional] -**cost** | **float** | The sume of job installation fee and industry facility tax | [optional] -**duration** | **int** | Job duration in seconds | -**endDate** | [**\DateTime**](\DateTime.md) | Date and time when this job finished | -**facilityId** | **int** | ID of the facility where this job is running | -**installerId** | **int** | ID of the character which installed this job | -**jobId** | **int** | Unique job ID | -**licensedRuns** | **int** | Number of runs blueprint is licensed for | [optional] +**blueprintLocationId** | **int** | Location ID of the location from which the blueprint was installed. Normally a station ID, but can also be an asset (e.g. container) or corporation facility | **outputLocationId** | **int** | Location ID of the location to which the output of the job will be delivered. Normally a station ID, but can also be a corporation facility | -**pauseDate** | [**\DateTime**](\DateTime.md) | Date and time when this job was paused (i.e. time when the facility where this job was installed went offline) | [optional] +**runs** | **int** | Number of runs for a manufacturing job, or number of copies to make for a blueprint copy | +**cost** | **double** | The sume of job installation fee and industry facility tax | [optional] +**licensedRuns** | **int** | Number of runs blueprint is licensed for | [optional] **probability** | **float** | Chance of success for invention | [optional] **productTypeId** | **int** | Type ID of product (manufactured, copied or invented) | [optional] -**runs** | **int** | Number of runs for a manufacturing job, or number of copies to make for a blueprint copy | -**startDate** | [**\DateTime**](\DateTime.md) | Date and time when this job started | -**stationId** | **int** | ID of the station where industry facility is located | **status** | **string** | status string | +**duration** | **int** | Job duration in seconds | +**startDate** | [**\DateTime**](\DateTime.md) | Date and time when this job started | +**endDate** | [**\DateTime**](\DateTime.md) | Date and time when this job finished | +**pauseDate** | [**\DateTime**](\DateTime.md) | Date and time when this job was paused (i.e. time when the facility where this job was installed went offline) | [optional] +**completedDate** | [**\DateTime**](\DateTime.md) | Date and time when this job was completed | [optional] +**completedCharacterId** | **int** | ID of the character which completed this job | [optional] **successfulRuns** | **int** | Number of successful runs for this job. Equal to runs unless this is an invention job | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdKillmailsRecent200Ok.md b/docs/Model/GetCharactersCharacterIdKillmailsRecent200Ok.md index f5c8f2d..7b4470d 100644 --- a/docs/Model/GetCharactersCharacterIdKillmailsRecent200Ok.md +++ b/docs/Model/GetCharactersCharacterIdKillmailsRecent200Ok.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**killmailHash** | **string** | A hash of this killmail | **killmailId** | **int** | ID of this killmail | +**killmailHash** | **string** | A hash of this killmail | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdMail200Ok.md b/docs/Model/GetCharactersCharacterIdMail200Ok.md index b1106b4..9b8b0c5 100644 --- a/docs/Model/GetCharactersCharacterIdMail200Ok.md +++ b/docs/Model/GetCharactersCharacterIdMail200Ok.md @@ -3,13 +3,13 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**from** | **int** | From whom the mail was sent | [optional] -**isRead** | **bool** | is_read boolean | [optional] -**labels** | **int[]** | labels array | [optional] **mailId** | **int** | mail_id integer | [optional] -**recipients** | [**\nullx27\ESI\Models\GetCharactersCharacterIdMailRecipient[]**](GetCharactersCharacterIdMailRecipient.md) | Recipients of the mail | [optional] **subject** | **string** | Mail subject | [optional] +**from** | **int** | From whom the mail was sent | [optional] **timestamp** | [**\DateTime**](\DateTime.md) | When the mail was sent | [optional] +**labels** | **int[]** | labels array | [optional] +**recipients** | [**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMailRecipient[]**](GetCharactersCharacterIdMailRecipient.md) | Recipients of the mail | [optional] +**isRead** | **bool** | is_read boolean | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdMailLabelsLabel.md b/docs/Model/GetCharactersCharacterIdMailLabelsLabel.md index cdd3cf0..569014d 100644 --- a/docs/Model/GetCharactersCharacterIdMailLabelsLabel.md +++ b/docs/Model/GetCharactersCharacterIdMailLabelsLabel.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**color** | **string** | color string | [optional] [default to '#ffffff'] +**unreadCount** | **int** | unread_count integer | [optional] **labelId** | **int** | label_id integer | [optional] **name** | **string** | name string | [optional] -**unreadCount** | **int** | unread_count integer | [optional] +**color** | **string** | color string | [optional] [default to '#ffffff'] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdMailLabelsOk.md b/docs/Model/GetCharactersCharacterIdMailLabelsOk.md index 117b117..1352a9b 100644 --- a/docs/Model/GetCharactersCharacterIdMailLabelsOk.md +++ b/docs/Model/GetCharactersCharacterIdMailLabelsOk.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**labels** | [**\nullx27\ESI\Models\GetCharactersCharacterIdMailLabelsLabel[]**](GetCharactersCharacterIdMailLabelsLabel.md) | labels array | [optional] **totalUnreadCount** | **int** | total_unread_count integer | [optional] +**labels** | [**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMailLabelsLabel[]**](GetCharactersCharacterIdMailLabelsLabel.md) | labels array | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdMailMailIdOk.md b/docs/Model/GetCharactersCharacterIdMailMailIdOk.md index b748b57..253c4f9 100644 --- a/docs/Model/GetCharactersCharacterIdMailMailIdOk.md +++ b/docs/Model/GetCharactersCharacterIdMailMailIdOk.md @@ -3,13 +3,13 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**body** | **string** | Mail's body | [optional] +**subject** | **string** | Mail subject | [optional] **from** | **int** | From whom the mail was sent | [optional] +**timestamp** | [**\DateTime**](\DateTime.md) | When the mail was sent | [optional] +**recipients** | [**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMailMailIdRecipient[]**](GetCharactersCharacterIdMailMailIdRecipient.md) | Recipients of the mail | [optional] +**body** | **string** | Mail's body | [optional] **labels** | **int[]** | Labels attached to the mail | [optional] **read** | **bool** | Whether the mail is flagged as read | [optional] -**recipients** | [**\nullx27\ESI\Models\GetCharactersCharacterIdMailMailIdRecipient[]**](GetCharactersCharacterIdMailMailIdRecipient.md) | Recipients of the mail | [optional] -**subject** | **string** | Mail subject | [optional] -**timestamp** | [**\DateTime**](\DateTime.md) | When the mail was sent | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdMailMailIdRecipient.md b/docs/Model/GetCharactersCharacterIdMailMailIdRecipient.md index b194e81..862161a 100644 --- a/docs/Model/GetCharactersCharacterIdMailMailIdRecipient.md +++ b/docs/Model/GetCharactersCharacterIdMailMailIdRecipient.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**recipientId** | **int** | recipient_id integer | **recipientType** | **string** | recipient_type string | +**recipientId** | **int** | recipient_id integer | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdMailRecipient.md b/docs/Model/GetCharactersCharacterIdMailRecipient.md index ce28473..01aa3f1 100644 --- a/docs/Model/GetCharactersCharacterIdMailRecipient.md +++ b/docs/Model/GetCharactersCharacterIdMailRecipient.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**recipientId** | **int** | recipient_id integer | **recipientType** | **string** | recipient_type string | +**recipientId** | **int** | recipient_id integer | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdMedals200Ok.md b/docs/Model/GetCharactersCharacterIdMedals200Ok.md index 69ef047..3a5a3f2 100644 --- a/docs/Model/GetCharactersCharacterIdMedals200Ok.md +++ b/docs/Model/GetCharactersCharacterIdMedals200Ok.md @@ -3,15 +3,15 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**corporationId** | **int** | corporation_id integer | -**date** | [**\DateTime**](\DateTime.md) | date string | +**medalId** | **int** | medal_id integer | +**title** | **string** | title string | **description** | **string** | description string | -**graphics** | [**\nullx27\ESI\Models\GetCharactersCharacterIdMedalsGraphic[]**](GetCharactersCharacterIdMedalsGraphic.md) | graphics array | +**corporationId** | **int** | corporation_id integer | **issuerId** | **int** | issuer_id integer | -**medalId** | **int** | medal_id integer | +**date** | [**\DateTime**](\DateTime.md) | date string | **reason** | **string** | reason string | **status** | **string** | status string | -**title** | **string** | title string | +**graphics** | [**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMedalsGraphic[]**](GetCharactersCharacterIdMedalsGraphic.md) | graphics array | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdMedalsGraphic.md b/docs/Model/GetCharactersCharacterIdMedalsGraphic.md index 5817070..24d1dd0 100644 --- a/docs/Model/GetCharactersCharacterIdMedalsGraphic.md +++ b/docs/Model/GetCharactersCharacterIdMedalsGraphic.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**color** | **int** | color integer | [optional] -**graphic** | **string** | graphic string | -**layer** | **int** | layer integer | **part** | **int** | part integer | +**layer** | **int** | layer integer | +**graphic** | **string** | graphic string | +**color** | **int** | color integer | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdMining200Ok.md b/docs/Model/GetCharactersCharacterIdMining200Ok.md new file mode 100644 index 0000000..e6c71a2 --- /dev/null +++ b/docs/Model/GetCharactersCharacterIdMining200Ok.md @@ -0,0 +1,13 @@ +# GetCharactersCharacterIdMining200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**date** | [**\DateTime**](\DateTime.md) | date string | +**solarSystemId** | **int** | solar_system_id integer | +**typeId** | **int** | type_id integer | +**quantity** | **int** | quantity integer | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCharactersCharacterIdNotifications200Ok.md b/docs/Model/GetCharactersCharacterIdNotifications200Ok.md new file mode 100644 index 0000000..837901f --- /dev/null +++ b/docs/Model/GetCharactersCharacterIdNotifications200Ok.md @@ -0,0 +1,16 @@ +# GetCharactersCharacterIdNotifications200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**notificationId** | **int** | notification_id integer | +**type** | **string** | type string | +**senderId** | **int** | sender_id integer | +**senderType** | **string** | sender_type string | +**timestamp** | [**\DateTime**](\DateTime.md) | timestamp string | +**isRead** | **bool** | is_read boolean | [optional] +**text** | **string** | text string | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCharactersCharacterIdNotificationsContacts200Ok.md b/docs/Model/GetCharactersCharacterIdNotificationsContacts200Ok.md new file mode 100644 index 0000000..d80e149 --- /dev/null +++ b/docs/Model/GetCharactersCharacterIdNotificationsContacts200Ok.md @@ -0,0 +1,14 @@ +# GetCharactersCharacterIdNotificationsContacts200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**notificationId** | **int** | notification_id integer | +**sendDate** | [**\DateTime**](\DateTime.md) | send_date string | +**standingLevel** | **float** | A number representing the standing level the receiver has been added at by the sender. The standing levels are as follows: -10 -> Terrible | -5 -> Bad | 0 -> Neutral | 5 -> Good | 10 -> Excellent | +**message** | **string** | message string | +**senderCharacterId** | **int** | sender_character_id integer | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCharactersCharacterIdOk.md b/docs/Model/GetCharactersCharacterIdOk.md index c5ba7f3..c38d0c7 100644 --- a/docs/Model/GetCharactersCharacterIdOk.md +++ b/docs/Model/GetCharactersCharacterIdOk.md @@ -3,16 +3,17 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**name** | **string** | name string | +**description** | **string** | description string | [optional] +**corporationId** | **int** | The character's corporation ID | **allianceId** | **int** | The character's alliance ID | [optional] -**ancestryId** | **int** | ancestry_id integer | [optional] **birthday** | [**\DateTime**](\DateTime.md) | Creation date of the character | -**bloodlineId** | **int** | bloodline_id integer | -**corporationId** | **int** | The character's corporation ID | -**description** | **string** | description string | [optional] **gender** | **string** | gender string | -**name** | **string** | name string | **raceId** | **int** | race_id integer | +**bloodlineId** | **int** | bloodline_id integer | +**ancestryId** | **int** | ancestry_id integer | [optional] **securityStatus** | **float** | security_status number | [optional] +**factionId** | **int** | ID of the faction the character is fighting for, if the character is enlisted in Factional Warfare | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdOnlineOk.md b/docs/Model/GetCharactersCharacterIdOnlineOk.md new file mode 100644 index 0000000..57e6ec1 --- /dev/null +++ b/docs/Model/GetCharactersCharacterIdOnlineOk.md @@ -0,0 +1,13 @@ +# GetCharactersCharacterIdOnlineOk + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**online** | **bool** | If the character is online | +**lastLogin** | [**\DateTime**](\DateTime.md) | Timestamp of the last login | [optional] +**lastLogout** | [**\DateTime**](\DateTime.md) | Timestamp of the last logout | [optional] +**logins** | **int** | Total number of times the character has logged in | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCharactersCharacterIdOpportunities200Ok.md b/docs/Model/GetCharactersCharacterIdOpportunities200Ok.md index 99f0e28..2031d1c 100644 --- a/docs/Model/GetCharactersCharacterIdOpportunities200Ok.md +++ b/docs/Model/GetCharactersCharacterIdOpportunities200Ok.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**completedAt** | [**\DateTime**](\DateTime.md) | completed_at string | **taskId** | **int** | task_id integer | +**completedAt** | [**\DateTime**](\DateTime.md) | completed_at string | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdOrders200Ok.md b/docs/Model/GetCharactersCharacterIdOrders200Ok.md index 6c0094d..265e959 100644 --- a/docs/Model/GetCharactersCharacterIdOrders200Ok.md +++ b/docs/Model/GetCharactersCharacterIdOrders200Ok.md @@ -3,22 +3,22 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**accountId** | **int** | Wallet division for the buyer or seller of this order. Always 1000 for characters. Currently 1000 through 1006 for corporations | -**duration** | **int** | Numer of days for which order is valid (starting from the issued date). An order expires at time issued + duration | -**escrow** | **float** | For buy orders, the amount of ISK in escrow | -**isBuyOrder** | **bool** | True for a bid (buy) order. False for an offer (sell) order | -**isCorp** | **bool** | is_corp boolean | -**issued** | [**\DateTime**](\DateTime.md) | Date and time when this order was issued | -**locationId** | **int** | ID of the location where order was placed | -**minVolume** | **int** | For bids (buy orders), the minimum quantity that will be accepted in a matching offer (sell order) | **orderId** | **int** | Unique order ID | -**price** | **float** | Cost per unit for this order | -**range** | **string** | Valid order range, numbers are ranges in jumps | -**regionId** | **int** | ID of the region where order was placed | -**state** | **string** | Current order state | **typeId** | **int** | The type ID of the item transacted in this order | -**volumeRemain** | **int** | Quantity of items still required or offered | +**regionId** | **int** | ID of the region where order was placed | +**locationId** | **int** | ID of the location where order was placed | +**range** | **string** | Valid order range, numbers are ranges in jumps | +**isBuyOrder** | **bool** | True for a bid (buy) order. False for an offer (sell) order | +**price** | **double** | Cost per unit for this order | **volumeTotal** | **int** | Quantity of items required or offered at time order was placed | +**volumeRemain** | **int** | Quantity of items still required or offered | +**issued** | [**\DateTime**](\DateTime.md) | Date and time when this order was issued | +**state** | **string** | Current order state | +**minVolume** | **int** | For bids (buy orders), the minimum quantity that will be accepted in a matching offer (sell order) | +**accountId** | **int** | Wallet division for the buyer or seller of this order. Always 1000 for characters. Currently 1000 through 1006 for corporations | +**duration** | **int** | Numer of days for which order is valid (starting from the issued date). An order expires at time issued + duration | +**isCorp** | **bool** | is_corp boolean | +**escrow** | **double** | For buy orders, the amount of ISK in escrow | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdPlanets200Ok.md b/docs/Model/GetCharactersCharacterIdPlanets200Ok.md index 4ff48bb..ca4c10e 100644 --- a/docs/Model/GetCharactersCharacterIdPlanets200Ok.md +++ b/docs/Model/GetCharactersCharacterIdPlanets200Ok.md @@ -3,13 +3,13 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**lastUpdate** | [**\DateTime**](\DateTime.md) | last_update string | -**numPins** | **int** | num_pins integer | -**ownerId** | **int** | owner_id integer | -**planetId** | **int** | planet_id integer | -**planetType** | **string** | planet_type string | **solarSystemId** | **int** | solar_system_id integer | +**planetId** | **int** | planet_id integer | +**ownerId** | **int** | owner_id integer | **upgradeLevel** | **int** | upgrade_level integer | +**numPins** | **int** | num_pins integer | +**lastUpdate** | [**\DateTime**](\DateTime.md) | last_update string | +**planetType** | **string** | planet_type string | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdPlanetsPlanetIdContent.md b/docs/Model/GetCharactersCharacterIdPlanetsPlanetIdContent.md new file mode 100644 index 0000000..0ccc7ce --- /dev/null +++ b/docs/Model/GetCharactersCharacterIdPlanetsPlanetIdContent.md @@ -0,0 +1,11 @@ +# GetCharactersCharacterIdPlanetsPlanetIdContent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**typeId** | **int** | type_id integer | +**amount** | **int** | amount integer | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCharactersCharacterIdPlanetsPlanetIdExtractorDetails.md b/docs/Model/GetCharactersCharacterIdPlanetsPlanetIdExtractorDetails.md index 297c9f9..0e6c224 100644 --- a/docs/Model/GetCharactersCharacterIdPlanetsPlanetIdExtractorDetails.md +++ b/docs/Model/GetCharactersCharacterIdPlanetsPlanetIdExtractorDetails.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**heads** | [**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdHead[]**](GetCharactersCharacterIdPlanetsPlanetIdHead.md) | heads array | +**productTypeId** | **int** | product_type_id integer | [optional] **cycleTime** | **int** | in seconds | [optional] **headRadius** | **float** | head_radius number | [optional] -**heads** | [**\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdHead[]**](GetCharactersCharacterIdPlanetsPlanetIdHead.md) | heads array | -**productTypeId** | **int** | product_type_id integer | [optional] **qtyPerCycle** | **int** | qty_per_cycle integer | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdPlanetsPlanetIdLink.md b/docs/Model/GetCharactersCharacterIdPlanetsPlanetIdLink.md index e90db02..e8950bd 100644 --- a/docs/Model/GetCharactersCharacterIdPlanetsPlanetIdLink.md +++ b/docs/Model/GetCharactersCharacterIdPlanetsPlanetIdLink.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**sourcePinId** | **int** | source_pin_id integer | **destinationPinId** | **int** | destination_pin_id integer | **linkLevel** | **int** | link_level integer | -**sourcePinId** | **int** | source_pin_id integer | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdPlanetsPlanetIdOk.md b/docs/Model/GetCharactersCharacterIdPlanetsPlanetIdOk.md index 1c02ab6..e9bc6f7 100644 --- a/docs/Model/GetCharactersCharacterIdPlanetsPlanetIdOk.md +++ b/docs/Model/GetCharactersCharacterIdPlanetsPlanetIdOk.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**links** | [**\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdLink[]**](GetCharactersCharacterIdPlanetsPlanetIdLink.md) | links array | -**pins** | [**\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdPin[]**](GetCharactersCharacterIdPlanetsPlanetIdPin.md) | pins array | -**routes** | [**\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdRoute[]**](GetCharactersCharacterIdPlanetsPlanetIdRoute.md) | routes array | +**links** | [**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdLink[]**](GetCharactersCharacterIdPlanetsPlanetIdLink.md) | links array | +**pins** | [**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdPin[]**](GetCharactersCharacterIdPlanetsPlanetIdPin.md) | pins array | +**routes** | [**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdRoute[]**](GetCharactersCharacterIdPlanetsPlanetIdRoute.md) | routes array | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdPlanetsPlanetIdPin.md b/docs/Model/GetCharactersCharacterIdPlanetsPlanetIdPin.md index c45944b..63fd049 100644 --- a/docs/Model/GetCharactersCharacterIdPlanetsPlanetIdPin.md +++ b/docs/Model/GetCharactersCharacterIdPlanetsPlanetIdPin.md @@ -3,16 +3,17 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**expiryTime** | [**\DateTime**](\DateTime.md) | expiry_time string | [optional] -**extractorDetails** | [**\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdExtractorDetails**](GetCharactersCharacterIdPlanetsPlanetIdExtractorDetails.md) | | [optional] -**factoryDetails** | [**\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdFactoryDetails**](GetCharactersCharacterIdPlanetsPlanetIdFactoryDetails.md) | | [optional] -**installTime** | [**\DateTime**](\DateTime.md) | install_time string | [optional] -**lastCycleStart** | [**\DateTime**](\DateTime.md) | last_cycle_start string | [optional] **latitude** | **float** | latitude number | **longitude** | **float** | longitude number | **pinId** | **int** | pin_id integer | -**schematicId** | **int** | schematic_id integer | [optional] **typeId** | **int** | type_id integer | +**schematicId** | **int** | schematic_id integer | [optional] +**extractorDetails** | [**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdExtractorDetails**](GetCharactersCharacterIdPlanetsPlanetIdExtractorDetails.md) | | [optional] +**factoryDetails** | [**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdFactoryDetails**](GetCharactersCharacterIdPlanetsPlanetIdFactoryDetails.md) | | [optional] +**contents** | [**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdContent[]**](GetCharactersCharacterIdPlanetsPlanetIdContent.md) | contents array | [optional] +**installTime** | [**\DateTime**](\DateTime.md) | install_time string | [optional] +**expiryTime** | [**\DateTime**](\DateTime.md) | expiry_time string | [optional] +**lastCycleStart** | [**\DateTime**](\DateTime.md) | last_cycle_start string | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdPlanetsPlanetIdRoute.md b/docs/Model/GetCharactersCharacterIdPlanetsPlanetIdRoute.md index 5268e0e..89d7b00 100644 --- a/docs/Model/GetCharactersCharacterIdPlanetsPlanetIdRoute.md +++ b/docs/Model/GetCharactersCharacterIdPlanetsPlanetIdRoute.md @@ -3,12 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**contentTypeId** | **int** | content_type_id integer | -**destinationPinId** | **int** | destination_pin_id integer | -**quantity** | **float** | quantity number | **routeId** | **int** | route_id integer | **sourcePinId** | **int** | source_pin_id integer | -**waypoints** | [**\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdWaypoint[]**](GetCharactersCharacterIdPlanetsPlanetIdWaypoint.md) | waypoints array | [optional] +**destinationPinId** | **int** | destination_pin_id integer | +**contentTypeId** | **int** | content_type_id integer | +**quantity** | **float** | quantity number | +**waypoints** | **int[]** | list of pin ID waypoints | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdPortraitOk.md b/docs/Model/GetCharactersCharacterIdPortraitOk.md index 22a252e..a12e0d4 100644 --- a/docs/Model/GetCharactersCharacterIdPortraitOk.md +++ b/docs/Model/GetCharactersCharacterIdPortraitOk.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**px64x64** | **string** | px64x64 string | [optional] **px128x128** | **string** | px128x128 string | [optional] **px256x256** | **string** | px256x256 string | [optional] **px512x512** | **string** | px512x512 string | [optional] -**px64x64** | **string** | px64x64 string | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdRolesOk.md b/docs/Model/GetCharactersCharacterIdRolesOk.md new file mode 100644 index 0000000..a116128 --- /dev/null +++ b/docs/Model/GetCharactersCharacterIdRolesOk.md @@ -0,0 +1,13 @@ +# GetCharactersCharacterIdRolesOk + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**roles** | **string[]** | roles array | [optional] +**rolesAtHq** | **string[]** | roles_at_hq array | [optional] +**rolesAtBase** | **string[]** | roles_at_base array | [optional] +**rolesAtOther** | **string[]** | roles_at_other array | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCharactersCharacterIdSearchOk.md b/docs/Model/GetCharactersCharacterIdSearchOk.md index 326fbb8..127aa85 100644 --- a/docs/Model/GetCharactersCharacterIdSearchOk.md +++ b/docs/Model/GetCharactersCharacterIdSearchOk.md @@ -9,12 +9,11 @@ Name | Type | Description | Notes **constellation** | **int[]** | constellation array | [optional] **corporation** | **int[]** | corporation array | [optional] **faction** | **int[]** | faction array | [optional] -**inventorytype** | **int[]** | inventorytype array | [optional] +**inventoryType** | **int[]** | inventory_type array | [optional] **region** | **int[]** | region array | [optional] -**solarsystem** | **int[]** | solarsystem array | [optional] +**solarSystem** | **int[]** | solar_system array | [optional] **station** | **int[]** | station array | [optional] **structure** | **int[]** | structure array | [optional] -**wormhole** | **int[]** | wormhole array | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdShipOk.md b/docs/Model/GetCharactersCharacterIdShipOk.md index 2d33973..49801eb 100644 --- a/docs/Model/GetCharactersCharacterIdShipOk.md +++ b/docs/Model/GetCharactersCharacterIdShipOk.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**shipTypeId** | **int** | ship_type_id integer | **shipItemId** | **int** | Item id's are unique to a ship and persist until it is repackaged. This value can be used to track repeated uses of a ship, or detect when a pilot changes into a different instance of the same ship type. | **shipName** | **string** | ship_name string | -**shipTypeId** | **int** | ship_type_id integer | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdSkillqueue200Ok.md b/docs/Model/GetCharactersCharacterIdSkillqueue200Ok.md index fff78a2..a565da5 100644 --- a/docs/Model/GetCharactersCharacterIdSkillqueue200Ok.md +++ b/docs/Model/GetCharactersCharacterIdSkillqueue200Ok.md @@ -3,14 +3,14 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**skillId** | **int** | skill_id integer | **finishDate** | [**\DateTime**](\DateTime.md) | finish_date string | [optional] +**startDate** | [**\DateTime**](\DateTime.md) | start_date string | [optional] **finishedLevel** | **int** | finished_level integer | -**levelEndSp** | **int** | level_end_sp integer | [optional] -**levelStartSp** | **int** | Amount of SP that was in the skill when it started training it's current level. Used to calculate % of current level complete. | [optional] **queuePosition** | **int** | queue_position integer | -**skillId** | **int** | skill_id integer | -**startDate** | [**\DateTime**](\DateTime.md) | start_date string | [optional] **trainingStartSp** | **int** | training_start_sp integer | [optional] +**levelEndSp** | **int** | level_end_sp integer | [optional] +**levelStartSp** | **int** | Amount of SP that was in the skill when it started training it's current level. Used to calculate % of current level complete. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdSkillsOk.md b/docs/Model/GetCharactersCharacterIdSkillsOk.md index d175013..c1377ac 100644 --- a/docs/Model/GetCharactersCharacterIdSkillsOk.md +++ b/docs/Model/GetCharactersCharacterIdSkillsOk.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**skills** | [**\nullx27\ESI\Models\GetCharactersCharacterIdSkillsSkill[]**](GetCharactersCharacterIdSkillsSkill.md) | skills array | [optional] -**totalSp** | **int** | total_sp integer | [optional] +**skills** | [**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdSkillsSkill[]**](GetCharactersCharacterIdSkillsSkill.md) | skills array | +**totalSp** | **int** | total_sp integer | +**unallocatedSp** | **int** | Skill points available to be assigned | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdSkillsSkill.md b/docs/Model/GetCharactersCharacterIdSkillsSkill.md index 75847dc..9799b69 100644 --- a/docs/Model/GetCharactersCharacterIdSkillsSkill.md +++ b/docs/Model/GetCharactersCharacterIdSkillsSkill.md @@ -3,9 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**currentSkillLevel** | **int** | current_skill_level integer | [optional] -**skillId** | **int** | skill_id integer | [optional] -**skillpointsInSkill** | **int** | skillpoints_in_skill integer | [optional] +**skillId** | **int** | skill_id integer | +**skillpointsInSkill** | **int** | skillpoints_in_skill integer | +**trainedSkillLevel** | **int** | trained_skill_level integer | +**activeSkillLevel** | **int** | active_skill_level integer | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCharactersCharacterIdStats200Ok.md b/docs/Model/GetCharactersCharacterIdStats200Ok.md new file mode 100644 index 0000000..69d6d18 --- /dev/null +++ b/docs/Model/GetCharactersCharacterIdStats200Ok.md @@ -0,0 +1,22 @@ +# GetCharactersCharacterIdStats200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**year** | **int** | Gregorian year for this set of aggregates | +**character** | [**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsCharacter**](GetCharactersCharacterIdStatsCharacter.md) | | [optional] +**combat** | [**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsCombat**](GetCharactersCharacterIdStatsCombat.md) | | [optional] +**industry** | [**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsIndustry**](GetCharactersCharacterIdStatsIndustry.md) | | [optional] +**inventory** | [**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsInventory**](GetCharactersCharacterIdStatsInventory.md) | | [optional] +**isk** | [**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsIsk**](GetCharactersCharacterIdStatsIsk.md) | | [optional] +**market** | [**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsMarket**](GetCharactersCharacterIdStatsMarket.md) | | [optional] +**mining** | [**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsMining**](GetCharactersCharacterIdStatsMining.md) | | [optional] +**module** | [**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsModule**](GetCharactersCharacterIdStatsModule.md) | | [optional] +**orbital** | [**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsOrbital**](GetCharactersCharacterIdStatsOrbital.md) | | [optional] +**pve** | [**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsPve**](GetCharactersCharacterIdStatsPve.md) | | [optional] +**social** | [**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsSocial**](GetCharactersCharacterIdStatsSocial.md) | | [optional] +**travel** | [**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsTravel**](GetCharactersCharacterIdStatsTravel.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCharactersCharacterIdStatsCharacter.md b/docs/Model/GetCharactersCharacterIdStatsCharacter.md new file mode 100644 index 0000000..325f953 --- /dev/null +++ b/docs/Model/GetCharactersCharacterIdStatsCharacter.md @@ -0,0 +1,12 @@ +# GetCharactersCharacterIdStatsCharacter + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**daysOfActivity** | **int** | days_of_activity integer | [optional] +**minutes** | **int** | minutes integer | [optional] +**sessionsStarted** | **int** | sessions_started integer | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCharactersCharacterIdStatsCombat.md b/docs/Model/GetCharactersCharacterIdStatsCombat.md new file mode 100644 index 0000000..5b503a7 --- /dev/null +++ b/docs/Model/GetCharactersCharacterIdStatsCombat.md @@ -0,0 +1,103 @@ +# GetCharactersCharacterIdStatsCombat + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**capDrainedbyNpc** | **int** | cap_drainedby_npc integer | [optional] +**capDrainedbyPc** | **int** | cap_drainedby_pc integer | [optional] +**capDrainingPc** | **int** | cap_draining_pc integer | [optional] +**criminalFlagSet** | **int** | criminal_flag_set integer | [optional] +**damageFromNpCsAmount** | **int** | damage_from_np_cs_amount integer | [optional] +**damageFromNpCsNumShots** | **int** | damage_from_np_cs_num_shots integer | [optional] +**damageFromPlayersBombAmount** | **int** | damage_from_players_bomb_amount integer | [optional] +**damageFromPlayersBombNumShots** | **int** | damage_from_players_bomb_num_shots integer | [optional] +**damageFromPlayersCombatDroneAmount** | **int** | damage_from_players_combat_drone_amount integer | [optional] +**damageFromPlayersCombatDroneNumShots** | **int** | damage_from_players_combat_drone_num_shots integer | [optional] +**damageFromPlayersEnergyAmount** | **int** | damage_from_players_energy_amount integer | [optional] +**damageFromPlayersEnergyNumShots** | **int** | damage_from_players_energy_num_shots integer | [optional] +**damageFromPlayersFighterBomberAmount** | **int** | damage_from_players_fighter_bomber_amount integer | [optional] +**damageFromPlayersFighterBomberNumShots** | **int** | damage_from_players_fighter_bomber_num_shots integer | [optional] +**damageFromPlayersFighterDroneAmount** | **int** | damage_from_players_fighter_drone_amount integer | [optional] +**damageFromPlayersFighterDroneNumShots** | **int** | damage_from_players_fighter_drone_num_shots integer | [optional] +**damageFromPlayersHybridAmount** | **int** | damage_from_players_hybrid_amount integer | [optional] +**damageFromPlayersHybridNumShots** | **int** | damage_from_players_hybrid_num_shots integer | [optional] +**damageFromPlayersMissileAmount** | **int** | damage_from_players_missile_amount integer | [optional] +**damageFromPlayersMissileNumShots** | **int** | damage_from_players_missile_num_shots integer | [optional] +**damageFromPlayersProjectileAmount** | **int** | damage_from_players_projectile_amount integer | [optional] +**damageFromPlayersProjectileNumShots** | **int** | damage_from_players_projectile_num_shots integer | [optional] +**damageFromPlayersSmartBombAmount** | **int** | damage_from_players_smart_bomb_amount integer | [optional] +**damageFromPlayersSmartBombNumShots** | **int** | damage_from_players_smart_bomb_num_shots integer | [optional] +**damageFromPlayersSuperAmount** | **int** | damage_from_players_super_amount integer | [optional] +**damageFromPlayersSuperNumShots** | **int** | damage_from_players_super_num_shots integer | [optional] +**damageFromStructuresTotalAmount** | **int** | damage_from_structures_total_amount integer | [optional] +**damageFromStructuresTotalNumShots** | **int** | damage_from_structures_total_num_shots integer | [optional] +**damageToPlayersBombAmount** | **int** | damage_to_players_bomb_amount integer | [optional] +**damageToPlayersBombNumShots** | **int** | damage_to_players_bomb_num_shots integer | [optional] +**damageToPlayersCombatDroneAmount** | **int** | damage_to_players_combat_drone_amount integer | [optional] +**damageToPlayersCombatDroneNumShots** | **int** | damage_to_players_combat_drone_num_shots integer | [optional] +**damageToPlayersEnergyAmount** | **int** | damage_to_players_energy_amount integer | [optional] +**damageToPlayersEnergyNumShots** | **int** | damage_to_players_energy_num_shots integer | [optional] +**damageToPlayersFighterBomberAmount** | **int** | damage_to_players_fighter_bomber_amount integer | [optional] +**damageToPlayersFighterBomberNumShots** | **int** | damage_to_players_fighter_bomber_num_shots integer | [optional] +**damageToPlayersFighterDroneAmount** | **int** | damage_to_players_fighter_drone_amount integer | [optional] +**damageToPlayersFighterDroneNumShots** | **int** | damage_to_players_fighter_drone_num_shots integer | [optional] +**damageToPlayersHybridAmount** | **int** | damage_to_players_hybrid_amount integer | [optional] +**damageToPlayersHybridNumShots** | **int** | damage_to_players_hybrid_num_shots integer | [optional] +**damageToPlayersMissileAmount** | **int** | damage_to_players_missile_amount integer | [optional] +**damageToPlayersMissileNumShots** | **int** | damage_to_players_missile_num_shots integer | [optional] +**damageToPlayersProjectileAmount** | **int** | damage_to_players_projectile_amount integer | [optional] +**damageToPlayersProjectileNumShots** | **int** | damage_to_players_projectile_num_shots integer | [optional] +**damageToPlayersSmartBombAmount** | **int** | damage_to_players_smart_bomb_amount integer | [optional] +**damageToPlayersSmartBombNumShots** | **int** | damage_to_players_smart_bomb_num_shots integer | [optional] +**damageToPlayersSuperAmount** | **int** | damage_to_players_super_amount integer | [optional] +**damageToPlayersSuperNumShots** | **int** | damage_to_players_super_num_shots integer | [optional] +**damageToStructuresTotalAmount** | **int** | damage_to_structures_total_amount integer | [optional] +**damageToStructuresTotalNumShots** | **int** | damage_to_structures_total_num_shots integer | [optional] +**deathsHighSec** | **int** | deaths_high_sec integer | [optional] +**deathsLowSec** | **int** | deaths_low_sec integer | [optional] +**deathsNullSec** | **int** | deaths_null_sec integer | [optional] +**deathsPodHighSec** | **int** | deaths_pod_high_sec integer | [optional] +**deathsPodLowSec** | **int** | deaths_pod_low_sec integer | [optional] +**deathsPodNullSec** | **int** | deaths_pod_null_sec integer | [optional] +**deathsPodWormhole** | **int** | deaths_pod_wormhole integer | [optional] +**deathsWormhole** | **int** | deaths_wormhole integer | [optional] +**droneEngage** | **int** | drone_engage integer | [optional] +**dscans** | **int** | dscans integer | [optional] +**duelRequested** | **int** | duel_requested integer | [optional] +**engagementRegister** | **int** | engagement_register integer | [optional] +**killsAssists** | **int** | kills_assists integer | [optional] +**killsHighSec** | **int** | kills_high_sec integer | [optional] +**killsLowSec** | **int** | kills_low_sec integer | [optional] +**killsNullSec** | **int** | kills_null_sec integer | [optional] +**killsPodHighSec** | **int** | kills_pod_high_sec integer | [optional] +**killsPodLowSec** | **int** | kills_pod_low_sec integer | [optional] +**killsPodNullSec** | **int** | kills_pod_null_sec integer | [optional] +**killsPodWormhole** | **int** | kills_pod_wormhole integer | [optional] +**killsWormhole** | **int** | kills_wormhole integer | [optional] +**npcFlagSet** | **int** | npc_flag_set integer | [optional] +**probeScans** | **int** | probe_scans integer | [optional] +**pvpFlagSet** | **int** | pvp_flag_set integer | [optional] +**repairArmorByRemoteAmount** | **int** | repair_armor_by_remote_amount integer | [optional] +**repairArmorRemoteAmount** | **int** | repair_armor_remote_amount integer | [optional] +**repairArmorSelfAmount** | **int** | repair_armor_self_amount integer | [optional] +**repairCapacitorByRemoteAmount** | **int** | repair_capacitor_by_remote_amount integer | [optional] +**repairCapacitorRemoteAmount** | **int** | repair_capacitor_remote_amount integer | [optional] +**repairCapacitorSelfAmount** | **int** | repair_capacitor_self_amount integer | [optional] +**repairHullByRemoteAmount** | **int** | repair_hull_by_remote_amount integer | [optional] +**repairHullRemoteAmount** | **int** | repair_hull_remote_amount integer | [optional] +**repairHullSelfAmount** | **int** | repair_hull_self_amount integer | [optional] +**repairShieldByRemoteAmount** | **int** | repair_shield_by_remote_amount integer | [optional] +**repairShieldRemoteAmount** | **int** | repair_shield_remote_amount integer | [optional] +**repairShieldSelfAmount** | **int** | repair_shield_self_amount integer | [optional] +**selfDestructs** | **int** | self_destructs integer | [optional] +**warpScramblePc** | **int** | warp_scramble_pc integer | [optional] +**warpScrambledbyNpc** | **int** | warp_scrambledby_npc integer | [optional] +**warpScrambledbyPc** | **int** | warp_scrambledby_pc integer | [optional] +**weaponFlagSet** | **int** | weapon_flag_set integer | [optional] +**webifiedbyNpc** | **int** | webifiedby_npc integer | [optional] +**webifiedbyPc** | **int** | webifiedby_pc integer | [optional] +**webifyingPc** | **int** | webifying_pc integer | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCharactersCharacterIdStatsIndustry.md b/docs/Model/GetCharactersCharacterIdStatsIndustry.md new file mode 100644 index 0000000..87535d9 --- /dev/null +++ b/docs/Model/GetCharactersCharacterIdStatsIndustry.md @@ -0,0 +1,45 @@ +# GetCharactersCharacterIdStatsIndustry + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hackingSuccesses** | **int** | hacking_successes integer | [optional] +**jobsCancelled** | **int** | jobs_cancelled integer | [optional] +**jobsCompletedCopyBlueprint** | **int** | jobs_completed_copy_blueprint integer | [optional] +**jobsCompletedInvention** | **int** | jobs_completed_invention integer | [optional] +**jobsCompletedManufacture** | **int** | jobs_completed_manufacture integer | [optional] +**jobsCompletedManufactureAsteroid** | **int** | jobs_completed_manufacture_asteroid integer | [optional] +**jobsCompletedManufactureAsteroidQuantity** | **int** | jobs_completed_manufacture_asteroid_quantity integer | [optional] +**jobsCompletedManufactureCharge** | **int** | jobs_completed_manufacture_charge integer | [optional] +**jobsCompletedManufactureChargeQuantity** | **int** | jobs_completed_manufacture_charge_quantity integer | [optional] +**jobsCompletedManufactureCommodity** | **int** | jobs_completed_manufacture_commodity integer | [optional] +**jobsCompletedManufactureCommodityQuantity** | **int** | jobs_completed_manufacture_commodity_quantity integer | [optional] +**jobsCompletedManufactureDeployable** | **int** | jobs_completed_manufacture_deployable integer | [optional] +**jobsCompletedManufactureDeployableQuantity** | **int** | jobs_completed_manufacture_deployable_quantity integer | [optional] +**jobsCompletedManufactureDrone** | **int** | jobs_completed_manufacture_drone integer | [optional] +**jobsCompletedManufactureDroneQuantity** | **int** | jobs_completed_manufacture_drone_quantity integer | [optional] +**jobsCompletedManufactureImplant** | **int** | jobs_completed_manufacture_implant integer | [optional] +**jobsCompletedManufactureImplantQuantity** | **int** | jobs_completed_manufacture_implant_quantity integer | [optional] +**jobsCompletedManufactureModule** | **int** | jobs_completed_manufacture_module integer | [optional] +**jobsCompletedManufactureModuleQuantity** | **int** | jobs_completed_manufacture_module_quantity integer | [optional] +**jobsCompletedManufactureOther** | **int** | jobs_completed_manufacture_other integer | [optional] +**jobsCompletedManufactureOtherQuantity** | **int** | jobs_completed_manufacture_other_quantity integer | [optional] +**jobsCompletedManufactureShip** | **int** | jobs_completed_manufacture_ship integer | [optional] +**jobsCompletedManufactureShipQuantity** | **int** | jobs_completed_manufacture_ship_quantity integer | [optional] +**jobsCompletedManufactureStructure** | **int** | jobs_completed_manufacture_structure integer | [optional] +**jobsCompletedManufactureStructureQuantity** | **int** | jobs_completed_manufacture_structure_quantity integer | [optional] +**jobsCompletedManufactureSubsystem** | **int** | jobs_completed_manufacture_subsystem integer | [optional] +**jobsCompletedManufactureSubsystemQuantity** | **int** | jobs_completed_manufacture_subsystem_quantity integer | [optional] +**jobsCompletedMaterialProductivity** | **int** | jobs_completed_material_productivity integer | [optional] +**jobsCompletedTimeProductivity** | **int** | jobs_completed_time_productivity integer | [optional] +**jobsStartedCopyBlueprint** | **int** | jobs_started_copy_blueprint integer | [optional] +**jobsStartedInvention** | **int** | jobs_started_invention integer | [optional] +**jobsStartedManufacture** | **int** | jobs_started_manufacture integer | [optional] +**jobsStartedMaterialProductivity** | **int** | jobs_started_material_productivity integer | [optional] +**jobsStartedTimeProductivity** | **int** | jobs_started_time_productivity integer | [optional] +**reprocessItem** | **int** | reprocess_item integer | [optional] +**reprocessItemQuantity** | **int** | reprocess_item_quantity integer | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCharactersCharacterIdStatsInventory.md b/docs/Model/GetCharactersCharacterIdStatsInventory.md new file mode 100644 index 0000000..dc67478 --- /dev/null +++ b/docs/Model/GetCharactersCharacterIdStatsInventory.md @@ -0,0 +1,11 @@ +# GetCharactersCharacterIdStatsInventory + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**abandonLootQuantity** | **int** | abandon_loot_quantity integer | [optional] +**trashItemQuantity** | **int** | trash_item_quantity integer | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCharactersCharacterIdStatsIsk.md b/docs/Model/GetCharactersCharacterIdStatsIsk.md new file mode 100644 index 0000000..b433900 --- /dev/null +++ b/docs/Model/GetCharactersCharacterIdStatsIsk.md @@ -0,0 +1,11 @@ +# GetCharactersCharacterIdStatsIsk + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**in** | **int** | in integer | [optional] +**out** | **int** | out integer | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCharactersCharacterIdStatsMarket.md b/docs/Model/GetCharactersCharacterIdStatsMarket.md new file mode 100644 index 0000000..bafa415 --- /dev/null +++ b/docs/Model/GetCharactersCharacterIdStatsMarket.md @@ -0,0 +1,22 @@ +# GetCharactersCharacterIdStatsMarket + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**acceptContractsCourier** | **int** | accept_contracts_courier integer | [optional] +**acceptContractsItemExchange** | **int** | accept_contracts_item_exchange integer | [optional] +**buyOrdersPlaced** | **int** | buy_orders_placed integer | [optional] +**cancelMarketOrder** | **int** | cancel_market_order integer | [optional] +**createContractsAuction** | **int** | create_contracts_auction integer | [optional] +**createContractsCourier** | **int** | create_contracts_courier integer | [optional] +**createContractsItemExchange** | **int** | create_contracts_item_exchange integer | [optional] +**deliverCourierContract** | **int** | deliver_courier_contract integer | [optional] +**iskGained** | **int** | isk_gained integer | [optional] +**iskSpent** | **int** | isk_spent integer | [optional] +**modifyMarketOrder** | **int** | modify_market_order integer | [optional] +**searchContracts** | **int** | search_contracts integer | [optional] +**sellOrdersPlaced** | **int** | sell_orders_placed integer | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCharactersCharacterIdStatsMining.md b/docs/Model/GetCharactersCharacterIdStatsMining.md new file mode 100644 index 0000000..15de650 --- /dev/null +++ b/docs/Model/GetCharactersCharacterIdStatsMining.md @@ -0,0 +1,28 @@ +# GetCharactersCharacterIdStatsMining + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**droneMine** | **int** | drone_mine integer | [optional] +**oreArkonor** | **int** | ore_arkonor integer | [optional] +**oreBistot** | **int** | ore_bistot integer | [optional] +**oreCrokite** | **int** | ore_crokite integer | [optional] +**oreDarkOchre** | **int** | ore_dark_ochre integer | [optional] +**oreGneiss** | **int** | ore_gneiss integer | [optional] +**oreHarvestableCloud** | **int** | ore_harvestable_cloud integer | [optional] +**oreHedbergite** | **int** | ore_hedbergite integer | [optional] +**oreHemorphite** | **int** | ore_hemorphite integer | [optional] +**oreIce** | **int** | ore_ice integer | [optional] +**oreJaspet** | **int** | ore_jaspet integer | [optional] +**oreKernite** | **int** | ore_kernite integer | [optional] +**oreMercoxit** | **int** | ore_mercoxit integer | [optional] +**oreOmber** | **int** | ore_omber integer | [optional] +**orePlagioclase** | **int** | ore_plagioclase integer | [optional] +**orePyroxeres** | **int** | ore_pyroxeres integer | [optional] +**oreScordite** | **int** | ore_scordite integer | [optional] +**oreSpodumain** | **int** | ore_spodumain integer | [optional] +**oreVeldspar** | **int** | ore_veldspar integer | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCharactersCharacterIdStatsModule.md b/docs/Model/GetCharactersCharacterIdStatsModule.md new file mode 100644 index 0000000..eb72d64 --- /dev/null +++ b/docs/Model/GetCharactersCharacterIdStatsModule.md @@ -0,0 +1,78 @@ +# GetCharactersCharacterIdStatsModule + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**activationsArmorHardener** | **int** | activations_armor_hardener integer | [optional] +**activationsArmorRepairUnit** | **int** | activations_armor_repair_unit integer | [optional] +**activationsArmorResistanceShiftHardener** | **int** | activations_armor_resistance_shift_hardener integer | [optional] +**activationsAutomatedTargetingSystem** | **int** | activations_automated_targeting_system integer | [optional] +**activationsBastion** | **int** | activations_bastion integer | [optional] +**activationsBombLauncher** | **int** | activations_bomb_launcher integer | [optional] +**activationsCapacitorBooster** | **int** | activations_capacitor_booster integer | [optional] +**activationsCargoScanner** | **int** | activations_cargo_scanner integer | [optional] +**activationsCloakingDevice** | **int** | activations_cloaking_device integer | [optional] +**activationsCloneVatBay** | **int** | activations_clone_vat_bay integer | [optional] +**activationsCynosuralField** | **int** | activations_cynosural_field integer | [optional] +**activationsDamageControl** | **int** | activations_damage_control integer | [optional] +**activationsDataMiners** | **int** | activations_data_miners integer | [optional] +**activationsDroneControlUnit** | **int** | activations_drone_control_unit integer | [optional] +**activationsDroneTrackingModules** | **int** | activations_drone_tracking_modules integer | [optional] +**activationsEccm** | **int** | activations_eccm integer | [optional] +**activationsEcm** | **int** | activations_ecm integer | [optional] +**activationsEcmBurst** | **int** | activations_ecm_burst integer | [optional] +**activationsEnergyDestabilizer** | **int** | activations_energy_destabilizer integer | [optional] +**activationsEnergyVampire** | **int** | activations_energy_vampire integer | [optional] +**activationsEnergyWeapon** | **int** | activations_energy_weapon integer | [optional] +**activationsFestivalLauncher** | **int** | activations_festival_launcher integer | [optional] +**activationsFrequencyMiningLaser** | **int** | activations_frequency_mining_laser integer | [optional] +**activationsFueledArmorRepairer** | **int** | activations_fueled_armor_repairer integer | [optional] +**activationsFueledShieldBooster** | **int** | activations_fueled_shield_booster integer | [optional] +**activationsGangCoordinator** | **int** | activations_gang_coordinator integer | [optional] +**activationsGasCloudHarvester** | **int** | activations_gas_cloud_harvester integer | [optional] +**activationsHullRepairUnit** | **int** | activations_hull_repair_unit integer | [optional] +**activationsHybridWeapon** | **int** | activations_hybrid_weapon integer | [optional] +**activationsIndustrialCore** | **int** | activations_industrial_core integer | [optional] +**activationsInterdictionSphereLauncher** | **int** | activations_interdiction_sphere_launcher integer | [optional] +**activationsMicroJumpDrive** | **int** | activations_micro_jump_drive integer | [optional] +**activationsMiningLaser** | **int** | activations_mining_laser integer | [optional] +**activationsMissileLauncher** | **int** | activations_missile_launcher integer | [optional] +**activationsPassiveTargetingSystem** | **int** | activations_passive_targeting_system integer | [optional] +**activationsProbeLauncher** | **int** | activations_probe_launcher integer | [optional] +**activationsProjectedEccm** | **int** | activations_projected_eccm integer | [optional] +**activationsProjectileWeapon** | **int** | activations_projectile_weapon integer | [optional] +**activationsPropulsionModule** | **int** | activations_propulsion_module integer | [optional] +**activationsRemoteArmorRepairer** | **int** | activations_remote_armor_repairer integer | [optional] +**activationsRemoteCapacitorTransmitter** | **int** | activations_remote_capacitor_transmitter integer | [optional] +**activationsRemoteEcmBurst** | **int** | activations_remote_ecm_burst integer | [optional] +**activationsRemoteHullRepairer** | **int** | activations_remote_hull_repairer integer | [optional] +**activationsRemoteSensorBooster** | **int** | activations_remote_sensor_booster integer | [optional] +**activationsRemoteSensorDamper** | **int** | activations_remote_sensor_damper integer | [optional] +**activationsRemoteShieldBooster** | **int** | activations_remote_shield_booster integer | [optional] +**activationsRemoteTrackingComputer** | **int** | activations_remote_tracking_computer integer | [optional] +**activationsSalvager** | **int** | activations_salvager integer | [optional] +**activationsSensorBooster** | **int** | activations_sensor_booster integer | [optional] +**activationsShieldBooster** | **int** | activations_shield_booster integer | [optional] +**activationsShieldHardener** | **int** | activations_shield_hardener integer | [optional] +**activationsShipScanner** | **int** | activations_ship_scanner integer | [optional] +**activationsSiege** | **int** | activations_siege integer | [optional] +**activationsSmartBomb** | **int** | activations_smart_bomb integer | [optional] +**activationsStasisWeb** | **int** | activations_stasis_web integer | [optional] +**activationsStripMiner** | **int** | activations_strip_miner integer | [optional] +**activationsSuperWeapon** | **int** | activations_super_weapon integer | [optional] +**activationsSurveyScanner** | **int** | activations_survey_scanner integer | [optional] +**activationsTargetBreaker** | **int** | activations_target_breaker integer | [optional] +**activationsTargetPainter** | **int** | activations_target_painter integer | [optional] +**activationsTrackingComputer** | **int** | activations_tracking_computer integer | [optional] +**activationsTrackingDisruptor** | **int** | activations_tracking_disruptor integer | [optional] +**activationsTractorBeam** | **int** | activations_tractor_beam integer | [optional] +**activationsTriage** | **int** | activations_triage integer | [optional] +**activationsWarpDisruptFieldGenerator** | **int** | activations_warp_disrupt_field_generator integer | [optional] +**activationsWarpScrambler** | **int** | activations_warp_scrambler integer | [optional] +**linkWeapons** | **int** | link_weapons integer | [optional] +**overload** | **int** | overload integer | [optional] +**repairs** | **int** | repairs integer | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCharactersCharacterIdStatsOrbital.md b/docs/Model/GetCharactersCharacterIdStatsOrbital.md new file mode 100644 index 0000000..6d2ac48 --- /dev/null +++ b/docs/Model/GetCharactersCharacterIdStatsOrbital.md @@ -0,0 +1,12 @@ +# GetCharactersCharacterIdStatsOrbital + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**strikeCharactersKilled** | **int** | strike_characters_killed integer | [optional] +**strikeDamageToPlayersArmorAmount** | **int** | strike_damage_to_players_armor_amount integer | [optional] +**strikeDamageToPlayersShieldAmount** | **int** | strike_damage_to_players_shield_amount integer | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCharactersCharacterIdStatsPve.md b/docs/Model/GetCharactersCharacterIdStatsPve.md new file mode 100644 index 0000000..b92c660 --- /dev/null +++ b/docs/Model/GetCharactersCharacterIdStatsPve.md @@ -0,0 +1,13 @@ +# GetCharactersCharacterIdStatsPve + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dungeonsCompletedAgent** | **int** | dungeons_completed_agent integer | [optional] +**dungeonsCompletedDistribution** | **int** | dungeons_completed_distribution integer | [optional] +**missionsSucceeded** | **int** | missions_succeeded integer | [optional] +**missionsSucceededEpicArc** | **int** | missions_succeeded_epic_arc integer | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCharactersCharacterIdStatsSocial.md b/docs/Model/GetCharactersCharacterIdStatsSocial.md new file mode 100644 index 0000000..902d814 --- /dev/null +++ b/docs/Model/GetCharactersCharacterIdStatsSocial.md @@ -0,0 +1,34 @@ +# GetCharactersCharacterIdStatsSocial + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**addContactBad** | **int** | add_contact_bad integer | [optional] +**addContactGood** | **int** | add_contact_good integer | [optional] +**addContactHigh** | **int** | add_contact_high integer | [optional] +**addContactHorrible** | **int** | add_contact_horrible integer | [optional] +**addContactNeutral** | **int** | add_contact_neutral integer | [optional] +**addNote** | **int** | add_note integer | [optional] +**addedAsContactBad** | **int** | added_as_contact_bad integer | [optional] +**addedAsContactGood** | **int** | added_as_contact_good integer | [optional] +**addedAsContactHigh** | **int** | added_as_contact_high integer | [optional] +**addedAsContactHorrible** | **int** | added_as_contact_horrible integer | [optional] +**addedAsContactNeutral** | **int** | added_as_contact_neutral integer | [optional] +**calendarEventCreated** | **int** | calendar_event_created integer | [optional] +**chatMessagesAlliance** | **int** | chat_messages_alliance integer | [optional] +**chatMessagesConstellation** | **int** | chat_messages_constellation integer | [optional] +**chatMessagesCorporation** | **int** | chat_messages_corporation integer | [optional] +**chatMessagesFleet** | **int** | chat_messages_fleet integer | [optional] +**chatMessagesRegion** | **int** | chat_messages_region integer | [optional] +**chatMessagesSolarsystem** | **int** | chat_messages_solarsystem integer | [optional] +**chatMessagesWarfaction** | **int** | chat_messages_warfaction integer | [optional] +**chatTotalMessageLength** | **int** | chat_total_message_length integer | [optional] +**directTrades** | **int** | direct_trades integer | [optional] +**fleetBroadcasts** | **int** | fleet_broadcasts integer | [optional] +**fleetJoins** | **int** | fleet_joins integer | [optional] +**mailsReceived** | **int** | mails_received integer | [optional] +**mailsSent** | **int** | mails_sent integer | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCharactersCharacterIdStatsTravel.md b/docs/Model/GetCharactersCharacterIdStatsTravel.md new file mode 100644 index 0000000..8c1be99 --- /dev/null +++ b/docs/Model/GetCharactersCharacterIdStatsTravel.md @@ -0,0 +1,30 @@ +# GetCharactersCharacterIdStatsTravel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accelerationGateActivations** | **int** | acceleration_gate_activations integer | [optional] +**alignTo** | **int** | align_to integer | [optional] +**distanceWarpedHighSec** | **int** | distance_warped_high_sec integer | [optional] +**distanceWarpedLowSec** | **int** | distance_warped_low_sec integer | [optional] +**distanceWarpedNullSec** | **int** | distance_warped_null_sec integer | [optional] +**distanceWarpedWormhole** | **int** | distance_warped_wormhole integer | [optional] +**docksHighSec** | **int** | docks_high_sec integer | [optional] +**docksLowSec** | **int** | docks_low_sec integer | [optional] +**docksNullSec** | **int** | docks_null_sec integer | [optional] +**jumpsStargateHighSec** | **int** | jumps_stargate_high_sec integer | [optional] +**jumpsStargateLowSec** | **int** | jumps_stargate_low_sec integer | [optional] +**jumpsStargateNullSec** | **int** | jumps_stargate_null_sec integer | [optional] +**jumpsWormhole** | **int** | jumps_wormhole integer | [optional] +**warpsHighSec** | **int** | warps_high_sec integer | [optional] +**warpsLowSec** | **int** | warps_low_sec integer | [optional] +**warpsNullSec** | **int** | warps_null_sec integer | [optional] +**warpsToBookmark** | **int** | warps_to_bookmark integer | [optional] +**warpsToCelestial** | **int** | warps_to_celestial integer | [optional] +**warpsToFleetMember** | **int** | warps_to_fleet_member integer | [optional] +**warpsToScanResult** | **int** | warps_to_scan_result integer | [optional] +**warpsWormhole** | **int** | warps_wormhole integer | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCharactersCharacterIdTitles200Ok.md b/docs/Model/GetCharactersCharacterIdTitles200Ok.md new file mode 100644 index 0000000..0816c20 --- /dev/null +++ b/docs/Model/GetCharactersCharacterIdTitles200Ok.md @@ -0,0 +1,11 @@ +# GetCharactersCharacterIdTitles200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**titleId** | **int** | title_id integer | [optional] +**name** | **string** | name string | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCharactersCharacterIdWalletJournal200Ok.md b/docs/Model/GetCharactersCharacterIdWalletJournal200Ok.md new file mode 100644 index 0000000..722bd36 --- /dev/null +++ b/docs/Model/GetCharactersCharacterIdWalletJournal200Ok.md @@ -0,0 +1,22 @@ +# GetCharactersCharacterIdWalletJournal200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**date** | [**\DateTime**](\DateTime.md) | Date and time of transaction | +**refId** | **int** | Unique journal reference ID | +**refType** | **string** | Transaction type, different type of transaction will populate different fields in `extra_info` Note: If you have an existing XML API application that is using ref_types, you will need to know which string ESI ref_type maps to which integer. You can use the following gist to see string->int mappings: https://gist.github.com/ccp-zoetrope/c03db66d90c2148724c06171bc52e0ec | +**firstPartyId** | **int** | first_party_id integer | [optional] +**firstPartyType** | **string** | first_party_type string | [optional] +**secondPartyId** | **int** | second_party_id integer | [optional] +**secondPartyType** | **string** | second_party_type string | [optional] +**amount** | **double** | Transaction amount. Positive when value transferred to the first party. Negative otherwise | [optional] +**balance** | **double** | Wallet balance after transaction occurred | [optional] +**reason** | **string** | reason string | [optional] +**taxReceiverId** | **int** | the corporation ID receiving any tax paid | [optional] +**tax** | **double** | Tax amount received for tax related transactions | [optional] +**extraInfo** | [**\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdWalletJournalExtraInfo**](GetCharactersCharacterIdWalletJournalExtraInfo.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCharactersCharacterIdWalletJournalExtraInfo.md b/docs/Model/GetCharactersCharacterIdWalletJournalExtraInfo.md new file mode 100644 index 0000000..b013ab2 --- /dev/null +++ b/docs/Model/GetCharactersCharacterIdWalletJournalExtraInfo.md @@ -0,0 +1,21 @@ +# GetCharactersCharacterIdWalletJournalExtraInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**locationId** | **int** | location_id integer | [optional] +**transactionId** | **int** | transaction_id integer | [optional] +**npcName** | **string** | npc_name string | [optional] +**npcId** | **int** | npc_id integer | [optional] +**destroyedShipTypeId** | **int** | destroyed_ship_type_id integer | [optional] +**characterId** | **int** | character_id integer | [optional] +**corporationId** | **int** | corporation_id integer | [optional] +**allianceId** | **int** | alliance_id integer | [optional] +**jobId** | **int** | job_id integer | [optional] +**contractId** | **int** | contract_id integer | [optional] +**systemId** | **int** | system_id integer | [optional] +**planetId** | **int** | planet_id integer | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCharactersCharacterIdWalletTransactions200Ok.md b/docs/Model/GetCharactersCharacterIdWalletTransactions200Ok.md new file mode 100644 index 0000000..8b5e827 --- /dev/null +++ b/docs/Model/GetCharactersCharacterIdWalletTransactions200Ok.md @@ -0,0 +1,19 @@ +# GetCharactersCharacterIdWalletTransactions200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**transactionId** | **int** | Unique transaction ID | +**date** | [**\DateTime**](\DateTime.md) | Date and time of transaction | +**typeId** | **int** | type_id integer | +**locationId** | **int** | location_id integer | +**unitPrice** | **double** | Amount paid per unit | +**quantity** | **int** | quantity integer | +**clientId** | **int** | client_id integer | +**isBuy** | **bool** | is_buy boolean | +**isPersonal** | **bool** | is_personal boolean | +**journalRefId** | **int** | journal_ref_id integer | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationCorporationIdMiningExtractions200Ok.md b/docs/Model/GetCorporationCorporationIdMiningExtractions200Ok.md new file mode 100644 index 0000000..e9c0282 --- /dev/null +++ b/docs/Model/GetCorporationCorporationIdMiningExtractions200Ok.md @@ -0,0 +1,14 @@ +# GetCorporationCorporationIdMiningExtractions200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**structureId** | **int** | structure_id integer | +**moonId** | **int** | moon_id integer | +**extractionStartTime** | [**\DateTime**](\DateTime.md) | The time at which the current extraction was initiated. | +**chunkArrivalTime** | [**\DateTime**](\DateTime.md) | The time at which the chunk being extracted will arrive and can be fractured by the moon mining drill. | +**naturalDecayTime** | [**\DateTime**](\DateTime.md) | The time at which the chunk being extracted will naturally fracture if it is not first fractured by the moon mining drill. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationCorporationIdMiningObservers200Ok.md b/docs/Model/GetCorporationCorporationIdMiningObservers200Ok.md new file mode 100644 index 0000000..3734b42 --- /dev/null +++ b/docs/Model/GetCorporationCorporationIdMiningObservers200Ok.md @@ -0,0 +1,12 @@ +# GetCorporationCorporationIdMiningObservers200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lastUpdated** | [**\DateTime**](\DateTime.md) | last_updated string | +**observerId** | **int** | The entity that was observing the asteroid field when it was mined. | +**observerType** | **string** | The category of the observing entity | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationCorporationIdMiningObserversObserverId200Ok.md b/docs/Model/GetCorporationCorporationIdMiningObserversObserverId200Ok.md new file mode 100644 index 0000000..66e533c --- /dev/null +++ b/docs/Model/GetCorporationCorporationIdMiningObserversObserverId200Ok.md @@ -0,0 +1,14 @@ +# GetCorporationCorporationIdMiningObserversObserverId200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lastUpdated** | [**\DateTime**](\DateTime.md) | last_updated string | +**characterId** | **int** | The character that did the mining | +**recordedCorporationId** | **int** | The corporation id of the character at the time data was recorded. | +**typeId** | **int** | type_id integer | +**quantity** | **int** | quantity integer | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdAlliancehistory200Ok.md b/docs/Model/GetCorporationsCorporationIdAlliancehistory200Ok.md index 78311a2..d30c05c 100644 --- a/docs/Model/GetCorporationsCorporationIdAlliancehistory200Ok.md +++ b/docs/Model/GetCorporationsCorporationIdAlliancehistory200Ok.md @@ -3,9 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**alliance** | [**\nullx27\ESI\Models\GetCorporationsCorporationIdAlliancehistoryAlliance**](GetCorporationsCorporationIdAlliancehistoryAlliance.md) | | [optional] -**recordId** | **int** | An incrementing ID that can be used to canonically establish order of records in cases where dates may be ambiguous | **startDate** | [**\DateTime**](\DateTime.md) | start_date string | +**allianceId** | **int** | alliance_id integer | [optional] +**isDeleted** | **bool** | True if the alliance has been closed | [optional] +**recordId** | **int** | An incrementing ID that can be used to canonically establish order of records in cases where dates may be ambiguous | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCorporationsCorporationIdAssets200Ok.md b/docs/Model/GetCorporationsCorporationIdAssets200Ok.md new file mode 100644 index 0000000..8eb0743 --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdAssets200Ok.md @@ -0,0 +1,16 @@ +# GetCorporationsCorporationIdAssets200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**typeId** | **int** | type_id integer | +**quantity** | **int** | quantity integer | +**locationId** | **int** | location_id integer | +**locationType** | **string** | location_type string | +**itemId** | **int** | item_id integer | +**locationFlag** | **string** | location_flag string | +**isSingleton** | **bool** | is_singleton boolean | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdBlueprints200Ok.md b/docs/Model/GetCorporationsCorporationIdBlueprints200Ok.md new file mode 100644 index 0000000..8c7d521 --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdBlueprints200Ok.md @@ -0,0 +1,17 @@ +# GetCorporationsCorporationIdBlueprints200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**itemId** | **int** | Unique ID for this item. | +**typeId** | **int** | type_id integer | +**locationId** | **int** | References a solar system, station or item_id if this blueprint is located within a container. | +**locationFlag** | **string** | Type of the location_id | +**quantity** | **int** | A range of numbers with a minimum of -2 and no maximum value where -1 is an original and -2 is a copy. It can be a positive integer if it is a stack of blueprint originals fresh from the market (e.g. no activities performed on them yet). | +**timeEfficiency** | **int** | Time Efficiency Level of the blueprint. | +**materialEfficiency** | **int** | Material Efficiency Level of the blueprint. | +**runs** | **int** | Number of runs remaining if the blueprint is a copy, -1 if it is an original. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdBookmarks200Ok.md b/docs/Model/GetCorporationsCorporationIdBookmarks200Ok.md new file mode 100644 index 0000000..6e2aebb --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdBookmarks200Ok.md @@ -0,0 +1,18 @@ +# GetCorporationsCorporationIdBookmarks200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bookmarkId** | **int** | bookmark_id integer | +**creatorId** | **int** | creator_id integer | +**folderId** | **int** | folder_id integer | [optional] +**created** | [**\DateTime**](\DateTime.md) | created string | +**label** | **string** | label string | +**notes** | **string** | notes string | +**locationId** | **int** | location_id integer | +**item** | [**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdBookmarksItem**](GetCorporationsCorporationIdBookmarksItem.md) | | [optional] +**coordinates** | [**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdBookmarksCoordinates**](GetCorporationsCorporationIdBookmarksCoordinates.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdBookmarksCoordinates.md b/docs/Model/GetCorporationsCorporationIdBookmarksCoordinates.md new file mode 100644 index 0000000..aa11a85 --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdBookmarksCoordinates.md @@ -0,0 +1,12 @@ +# GetCorporationsCorporationIdBookmarksCoordinates + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**x** | **double** | x number | +**y** | **double** | y number | +**z** | **double** | z number | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdBookmarksFolders200Ok.md b/docs/Model/GetCorporationsCorporationIdBookmarksFolders200Ok.md new file mode 100644 index 0000000..3253be5 --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdBookmarksFolders200Ok.md @@ -0,0 +1,12 @@ +# GetCorporationsCorporationIdBookmarksFolders200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**folderId** | **int** | folder_id integer | +**name** | **string** | name string | +**creatorId** | **int** | creator_id integer | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdBookmarksItem.md b/docs/Model/GetCorporationsCorporationIdBookmarksItem.md new file mode 100644 index 0000000..a846863 --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdBookmarksItem.md @@ -0,0 +1,11 @@ +# GetCorporationsCorporationIdBookmarksItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**itemId** | **int** | item_id integer | +**typeId** | **int** | type_id integer | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdContacts200Ok.md b/docs/Model/GetCorporationsCorporationIdContacts200Ok.md new file mode 100644 index 0000000..20be897 --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdContacts200Ok.md @@ -0,0 +1,14 @@ +# GetCorporationsCorporationIdContacts200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**standing** | **float** | Standing of the contact | +**contactType** | **string** | contact_type string | +**contactId** | **int** | contact_id integer | +**isWatched** | **bool** | Whether this contact is being watched | [optional] +**labelId** | **int** | Custom label of the contact | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdContainersLogs200Ok.md b/docs/Model/GetCorporationsCorporationIdContainersLogs200Ok.md new file mode 100644 index 0000000..2a97cef --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdContainersLogs200Ok.md @@ -0,0 +1,21 @@ +# GetCorporationsCorporationIdContainersLogs200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**loggedAt** | [**\DateTime**](\DateTime.md) | Timestamp when this log was created | +**containerId** | **int** | ID of the container | +**containerTypeId** | **int** | Type ID of the container | +**characterId** | **int** | ID of the character who performed the action. | +**locationId** | **int** | location_id integer | +**locationFlag** | **string** | location_flag string | +**action** | **string** | action string | +**passwordType** | **string** | Type of password set if action is of type SetPassword or EnterPassword | [optional] +**typeId** | **int** | Type ID of the item being acted upon | [optional] +**quantity** | **int** | Quantity of the item being acted upon | [optional] +**oldConfigBitmask** | **int** | old_config_bitmask integer | [optional] +**newConfigBitmask** | **int** | new_config_bitmask integer | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdContracts200Ok.md b/docs/Model/GetCorporationsCorporationIdContracts200Ok.md new file mode 100644 index 0000000..7c43481 --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdContracts200Ok.md @@ -0,0 +1,31 @@ +# GetCorporationsCorporationIdContracts200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**contractId** | **int** | contract_id integer | +**issuerId** | **int** | Character ID for the issuer | +**issuerCorporationId** | **int** | Character's corporation ID for the issuer | +**assigneeId** | **int** | ID to whom the contract is assigned, can be corporation or character ID | +**acceptorId** | **int** | Who will accept the contract | +**startLocationId** | **int** | Start location ID (for Couriers contract) | [optional] +**endLocationId** | **int** | End location ID (for Couriers contract) | [optional] +**type** | **string** | Type of the contract | +**status** | **string** | Status of the the contract | +**title** | **string** | Title of the contract | [optional] +**forCorporation** | **bool** | true if the contract was issued on behalf of the issuer's corporation | +**availability** | **string** | To whom the contract is available | +**dateIssued** | [**\DateTime**](\DateTime.md) | Сreation date of the contract | +**dateExpired** | [**\DateTime**](\DateTime.md) | Expiration date of the contract | +**dateAccepted** | [**\DateTime**](\DateTime.md) | Date of confirmation of contract | [optional] +**daysToComplete** | **int** | Number of days to perform the contract | [optional] +**dateCompleted** | [**\DateTime**](\DateTime.md) | Date of completed of contract | [optional] +**price** | **double** | Price of contract (for ItemsExchange and Auctions) | [optional] +**reward** | **double** | Remuneration for contract (for Couriers only) | [optional] +**collateral** | **double** | Collateral price (for Couriers only) | [optional] +**buyout** | **double** | Buyout price (for Auctions only) | [optional] +**volume** | **float** | Volume of items in the contract | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdContractsContractIdBids200Ok.md b/docs/Model/GetCorporationsCorporationIdContractsContractIdBids200Ok.md new file mode 100644 index 0000000..bca682f --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdContractsContractIdBids200Ok.md @@ -0,0 +1,13 @@ +# GetCorporationsCorporationIdContractsContractIdBids200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bidId** | **int** | Unique ID for the bid | +**bidderId** | **int** | Character ID of the bidder | +**dateBid** | [**\DateTime**](\DateTime.md) | Datetime when the bid was placed | +**amount** | **float** | The amount bid, in ISK | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdContractsContractIdItems200Ok.md b/docs/Model/GetCorporationsCorporationIdContractsContractIdItems200Ok.md new file mode 100644 index 0000000..055da49 --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdContractsContractIdItems200Ok.md @@ -0,0 +1,15 @@ +# GetCorporationsCorporationIdContractsContractIdItems200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**recordId** | **int** | Unique ID for the item | +**typeId** | **int** | Type ID for item | +**quantity** | **int** | Number of items in the stack | +**rawQuantity** | **int** | -1 indicates that the item is a singleton (non-stackable). If the item happens to be a Blueprint, -1 is an Original and -2 is a Blueprint Copy | [optional] +**isSingleton** | **bool** | is_singleton boolean | +**isIncluded** | **bool** | true if the contract issuer has submitted this item with the contract, false if the isser is asking for this item in the contract. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdCustomsOffices200Ok.md b/docs/Model/GetCorporationsCorporationIdCustomsOffices200Ok.md new file mode 100644 index 0000000..7721d1f --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdCustomsOffices200Ok.md @@ -0,0 +1,23 @@ +# GetCorporationsCorporationIdCustomsOffices200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**officeId** | **int** | unique ID of this customs office | +**systemId** | **int** | ID of the solar system this customs office is located in | +**reinforceExitStart** | **int** | Together with reinforce_exit_end, marks a 2-hour period where this customs office could exit reinforcement mode during the day after initial attack | +**reinforceExitEnd** | **int** | reinforce_exit_end integer | +**corporationTaxRate** | **float** | corporation_tax_rate number | [optional] +**allowAllianceAccess** | **bool** | allow_alliance_access boolean | +**allianceTaxRate** | **float** | Only present if alliance access is allowed | [optional] +**allowAccessWithStandings** | **bool** | standing_level and any standing related tax rate only present when this is true | +**standingLevel** | **string** | Access is allowed only for entities with this level of standing or better | [optional] +**excellentStandingTaxRate** | **float** | Tax rate for entities with excellent level of standing, only present if this level is allowed, same for all other standing related tax rates | [optional] +**goodStandingTaxRate** | **float** | good_standing_tax_rate number | [optional] +**neutralStandingTaxRate** | **float** | neutral_standing_tax_rate number | [optional] +**badStandingTaxRate** | **float** | bad_standing_tax_rate number | [optional] +**terribleStandingTaxRate** | **float** | terrible_standing_tax_rate number | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdDivisionsHangar.md b/docs/Model/GetCorporationsCorporationIdDivisionsHangar.md new file mode 100644 index 0000000..99a8d93 --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdDivisionsHangar.md @@ -0,0 +1,11 @@ +# GetCorporationsCorporationIdDivisionsHangar + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**division** | **int** | division integer | [optional] +**name** | **string** | name string | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdDivisionsOk.md b/docs/Model/GetCorporationsCorporationIdDivisionsOk.md new file mode 100644 index 0000000..f883167 --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdDivisionsOk.md @@ -0,0 +1,11 @@ +# GetCorporationsCorporationIdDivisionsOk + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hangar** | [**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdDivisionsHangar[]**](GetCorporationsCorporationIdDivisionsHangar.md) | hangar array | [optional] +**wallet** | [**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdDivisionsWallet[]**](GetCorporationsCorporationIdDivisionsWallet.md) | wallet array | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdDivisionsWallet.md b/docs/Model/GetCorporationsCorporationIdDivisionsWallet.md new file mode 100644 index 0000000..07371a5 --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdDivisionsWallet.md @@ -0,0 +1,11 @@ +# GetCorporationsCorporationIdDivisionsWallet + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**division** | **int** | division integer | [optional] +**name** | **string** | name string | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdFacilities200Ok.md b/docs/Model/GetCorporationsCorporationIdFacilities200Ok.md new file mode 100644 index 0000000..59806f0 --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdFacilities200Ok.md @@ -0,0 +1,12 @@ +# GetCorporationsCorporationIdFacilities200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**facilityId** | **int** | facility_id integer | +**typeId** | **int** | type_id integer | +**systemId** | **int** | system_id integer | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdFwStatsKills.md b/docs/Model/GetCorporationsCorporationIdFwStatsKills.md new file mode 100644 index 0000000..c4fa839 --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdFwStatsKills.md @@ -0,0 +1,12 @@ +# GetCorporationsCorporationIdFwStatsKills + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**yesterday** | **int** | Yesterday's total number of kills by members of the given corporation against enemy factions | +**lastWeek** | **int** | Last week's total number of kills by members of the given corporation against enemy factions | +**total** | **int** | Total number of kills by members of the given corporation against enemy factions since the corporation enlisted | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdFwStatsOk.md b/docs/Model/GetCorporationsCorporationIdFwStatsOk.md new file mode 100644 index 0000000..9d200b5 --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdFwStatsOk.md @@ -0,0 +1,14 @@ +# GetCorporationsCorporationIdFwStatsOk + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**factionId** | **int** | The faction the given corporation is enlisted to fight for. Will not be included if corporation is not enlisted in faction warfare | [optional] +**enlistedOn** | [**\DateTime**](\DateTime.md) | The enlistment date of the given corporation into faction warfare. Will not be included if corporation is not enlisted in faction warfare | [optional] +**pilots** | **int** | How many pilots the enlisted corporation has. Will not be included if corporation is not enlisted in faction warfare | [optional] +**kills** | [**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdFwStatsKills**](GetCorporationsCorporationIdFwStatsKills.md) | | +**victoryPoints** | [**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdFwStatsVictoryPoints**](GetCorporationsCorporationIdFwStatsVictoryPoints.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdFwStatsVictoryPoints.md b/docs/Model/GetCorporationsCorporationIdFwStatsVictoryPoints.md new file mode 100644 index 0000000..a9df1fd --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdFwStatsVictoryPoints.md @@ -0,0 +1,12 @@ +# GetCorporationsCorporationIdFwStatsVictoryPoints + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**yesterday** | **int** | Yesterday's victory points gained by members of the given corporation | +**lastWeek** | **int** | Last week's victory points gained by members of the given corporation | +**total** | **int** | Total victory points gained since the given corporation enlisted | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdIconsOk.md b/docs/Model/GetCorporationsCorporationIdIconsOk.md index 3e71a26..a6d62cd 100644 --- a/docs/Model/GetCorporationsCorporationIdIconsOk.md +++ b/docs/Model/GetCorporationsCorporationIdIconsOk.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**px64x64** | **string** | px64x64 string | [optional] **px128x128** | **string** | px128x128 string | [optional] **px256x256** | **string** | px256x256 string | [optional] -**px64x64** | **string** | px64x64 string | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCorporationsCorporationIdIndustryJobs200Ok.md b/docs/Model/GetCorporationsCorporationIdIndustryJobs200Ok.md new file mode 100644 index 0000000..b10f91e --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdIndustryJobs200Ok.md @@ -0,0 +1,31 @@ +# GetCorporationsCorporationIdIndustryJobs200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**jobId** | **int** | Unique job ID | +**installerId** | **int** | ID of the character which installed this job | +**facilityId** | **int** | ID of the facility where this job is running | +**locationId** | **int** | ID of the location for the industry facility | +**activityId** | **int** | Job activity ID | +**blueprintId** | **int** | blueprint_id integer | +**blueprintTypeId** | **int** | blueprint_type_id integer | +**blueprintLocationId** | **int** | Location ID of the location from which the blueprint was installed. Normally a station ID, but can also be an asset (e.g. container) or corporation facility | +**outputLocationId** | **int** | Location ID of the location to which the output of the job will be delivered. Normally a station ID, but can also be a corporation facility | +**runs** | **int** | Number of runs for a manufacturing job, or number of copies to make for a blueprint copy | +**cost** | **double** | The sume of job installation fee and industry facility tax | [optional] +**licensedRuns** | **int** | Number of runs blueprint is licensed for | [optional] +**probability** | **float** | Chance of success for invention | [optional] +**productTypeId** | **int** | Type ID of product (manufactured, copied or invented) | [optional] +**status** | **string** | status string | +**duration** | **int** | Job duration in seconds | +**startDate** | [**\DateTime**](\DateTime.md) | Date and time when this job started | +**endDate** | [**\DateTime**](\DateTime.md) | Date and time when this job finished | +**pauseDate** | [**\DateTime**](\DateTime.md) | Date and time when this job was paused (i.e. time when the facility where this job was installed went offline) | [optional] +**completedDate** | [**\DateTime**](\DateTime.md) | Date and time when this job was completed | [optional] +**completedCharacterId** | **int** | ID of the character which completed this job | [optional] +**successfulRuns** | **int** | Number of successful runs for this job. Equal to runs unless this is an invention job | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdKillmailsRecent200Ok.md b/docs/Model/GetCorporationsCorporationIdKillmailsRecent200Ok.md new file mode 100644 index 0000000..ce58b03 --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdKillmailsRecent200Ok.md @@ -0,0 +1,11 @@ +# GetCorporationsCorporationIdKillmailsRecent200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**killmailId** | **int** | ID of this killmail | +**killmailHash** | **string** | A hash of this killmail | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdMedals200Ok.md b/docs/Model/GetCorporationsCorporationIdMedals200Ok.md new file mode 100644 index 0000000..fc18bd8 --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdMedals200Ok.md @@ -0,0 +1,14 @@ +# GetCorporationsCorporationIdMedals200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**medalId** | **int** | medal_id integer | +**title** | **string** | title string | +**description** | **string** | description string | +**creatorId** | **int** | ID of the character who created this medal | +**createdAt** | [**\DateTime**](\DateTime.md) | created_at string | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdMedalsIssued200Ok.md b/docs/Model/GetCorporationsCorporationIdMedalsIssued200Ok.md new file mode 100644 index 0000000..3ff0e0b --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdMedalsIssued200Ok.md @@ -0,0 +1,15 @@ +# GetCorporationsCorporationIdMedalsIssued200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**medalId** | **int** | medal_id integer | +**characterId** | **int** | ID of the character who was rewarded this medal | +**reason** | **string** | reason string | +**status** | **string** | status string | +**issuerId** | **int** | ID of the character who issued the medal | +**issuedAt** | [**\DateTime**](\DateTime.md) | issued_at string | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdMembersTitles200Ok.md b/docs/Model/GetCorporationsCorporationIdMembersTitles200Ok.md new file mode 100644 index 0000000..3f18f07 --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdMembersTitles200Ok.md @@ -0,0 +1,11 @@ +# GetCorporationsCorporationIdMembersTitles200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**characterId** | **int** | character_id integer | +**titles** | **int[]** | A list of title_id | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdMembertracking200Ok.md b/docs/Model/GetCorporationsCorporationIdMembertracking200Ok.md new file mode 100644 index 0000000..34f4925 --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdMembertracking200Ok.md @@ -0,0 +1,16 @@ +# GetCorporationsCorporationIdMembertracking200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**characterId** | **int** | character_id integer | +**startDate** | [**\DateTime**](\DateTime.md) | start_date string | [optional] +**baseId** | **int** | base_id integer | [optional] +**logonDate** | [**\DateTime**](\DateTime.md) | logon_date string | [optional] +**logoffDate** | [**\DateTime**](\DateTime.md) | logoff_date string | [optional] +**locationId** | **int** | location_id integer | [optional] +**shipTypeId** | **int** | ship_type_id integer | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdOk.md b/docs/Model/GetCorporationsCorporationIdOk.md index 623fd44..7c6cfe1 100644 --- a/docs/Model/GetCorporationsCorporationIdOk.md +++ b/docs/Model/GetCorporationsCorporationIdOk.md @@ -3,17 +3,19 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**allianceId** | **int** | id of alliance that corporation is a member of, if any | [optional] -**ceoId** | **int** | ceo_id integer | -**corporationDescription** | **string** | corporation_description string | -**corporationName** | **string** | the full name of the corporation | -**creationDate** | [**\DateTime**](\DateTime.md) | creation_date string | [optional] -**creatorId** | **int** | creator_id integer | -**faction** | **string** | faction string | [optional] +**name** | **string** | the full name of the corporation | +**ticker** | **string** | the short name of the corporation | **memberCount** | **int** | member_count integer | +**ceoId** | **int** | ceo_id integer | +**allianceId** | **int** | ID of the alliance that corporation is a member of, if any | [optional] +**description** | **string** | description string | [optional] **taxRate** | **float** | tax_rate number | -**ticker** | **string** | the short name of the corporation | -**url** | **string** | url string | +**dateFounded** | [**\DateTime**](\DateTime.md) | date_founded string | [optional] +**creatorId** | **int** | creator_id integer | +**url** | **string** | url string | [optional] +**factionId** | **int** | faction_id integer | [optional] +**homeStationId** | **int** | home_station_id integer | [optional] +**shares** | **int** | shares integer | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCorporationsCorporationIdOrders200Ok.md b/docs/Model/GetCorporationsCorporationIdOrders200Ok.md new file mode 100644 index 0000000..c077181 --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdOrders200Ok.md @@ -0,0 +1,24 @@ +# GetCorporationsCorporationIdOrders200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**orderId** | **int** | Unique order ID | +**typeId** | **int** | The type ID of the item transacted in this order | +**regionId** | **int** | ID of the region where order was placed | +**locationId** | **int** | ID of the location where order was placed | +**range** | **string** | Valid order range, numbers are ranges in jumps | +**isBuyOrder** | **bool** | True for a bid (buy) order. False for an offer (sell) order | +**price** | **double** | Cost per unit for this order | +**volumeTotal** | **int** | Quantity of items required or offered at time order was placed | +**volumeRemain** | **int** | Quantity of items still required or offered | +**issued** | [**\DateTime**](\DateTime.md) | Date and time when this order was issued | +**state** | **string** | Current order state | +**minVolume** | **int** | For bids (buy orders), the minimum quantity that will be accepted in a matching offer (sell order) | +**walletDivision** | **int** | Wallet division of which this order used | +**duration** | **int** | Numer of days for which order is valid (starting from the issued date). An order expires at time issued + duration | +**escrow** | **double** | For buy orders, the amount of ISK in escrow | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdOutpostsOutpostIdCoordinates.md b/docs/Model/GetCorporationsCorporationIdOutpostsOutpostIdCoordinates.md new file mode 100644 index 0000000..ee19133 --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdOutpostsOutpostIdCoordinates.md @@ -0,0 +1,12 @@ +# GetCorporationsCorporationIdOutpostsOutpostIdCoordinates + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**x** | **double** | x number | +**y** | **double** | y number | +**z** | **double** | z number | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdOutpostsOutpostIdOk.md b/docs/Model/GetCorporationsCorporationIdOutpostsOutpostIdOk.md new file mode 100644 index 0000000..98fcd34 --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdOutpostsOutpostIdOk.md @@ -0,0 +1,19 @@ +# GetCorporationsCorporationIdOutpostsOutpostIdOk + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ownerId** | **int** | The entity that owns the station (e.g. the entity whose logo is on the station services bar) | +**systemId** | **int** | The ID of the solar system the outpost rests in | +**dockingCostPerShipVolume** | **float** | docking_cost_per_ship_volume number | +**officeRentalCost** | **int** | office_rental_cost integer | +**typeId** | **int** | The type ID of the given outpost | +**reprocessingEfficiency** | **float** | reprocessing_efficiency number | +**reprocessingStationTake** | **float** | reprocessing_station_take number | +**standingOwnerId** | **int** | The owner ID that sets the ability for someone to dock based on standings. | +**coordinates** | [**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdOutpostsOutpostIdCoordinates**](GetCorporationsCorporationIdOutpostsOutpostIdCoordinates.md) | | +**services** | [**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdOutpostsOutpostIdService[]**](GetCorporationsCorporationIdOutpostsOutpostIdService.md) | A list of services the given outpost provides | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdOutpostsOutpostIdService.md b/docs/Model/GetCorporationsCorporationIdOutpostsOutpostIdService.md new file mode 100644 index 0000000..f04ba47 --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdOutpostsOutpostIdService.md @@ -0,0 +1,13 @@ +# GetCorporationsCorporationIdOutpostsOutpostIdService + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**serviceName** | **string** | service_name string | +**minimumStanding** | **double** | minimum_standing number | +**surchargePerBadStanding** | **double** | surcharge_per_bad_standing number | +**discountPerGoodStanding** | **double** | discount_per_good_standing number | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdRoles200Ok.md b/docs/Model/GetCorporationsCorporationIdRoles200Ok.md index 1643c22..86d2c47 100644 --- a/docs/Model/GetCorporationsCorporationIdRoles200Ok.md +++ b/docs/Model/GetCorporationsCorporationIdRoles200Ok.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **characterId** | **int** | character_id integer | +**roles** | **string[]** | roles array | [optional] **grantableRoles** | **string[]** | grantable_roles array | [optional] -**grantableRolesAtBase** | **string[]** | grantable_roles_at_base array | [optional] +**rolesAtHq** | **string[]** | roles_at_hq array | [optional] **grantableRolesAtHq** | **string[]** | grantable_roles_at_hq array | [optional] -**grantableRolesAtOther** | **string[]** | grantable_roles_at_other array | [optional] -**roles** | **string[]** | roles array | [optional] **rolesAtBase** | **string[]** | roles_at_base array | [optional] -**rolesAtHq** | **string[]** | roles_at_hq array | [optional] +**grantableRolesAtBase** | **string[]** | grantable_roles_at_base array | [optional] **rolesAtOther** | **string[]** | roles_at_other array | [optional] +**grantableRolesAtOther** | **string[]** | grantable_roles_at_other array | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCorporationsCorporationIdRolesHistory200Ok.md b/docs/Model/GetCorporationsCorporationIdRolesHistory200Ok.md new file mode 100644 index 0000000..7fe5656 --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdRolesHistory200Ok.md @@ -0,0 +1,15 @@ +# GetCorporationsCorporationIdRolesHistory200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**characterId** | **int** | The character whose roles are changed | +**changedAt** | [**\DateTime**](\DateTime.md) | changed_at string | +**issuerId** | **int** | ID of the character who issued this change | +**roleType** | **string** | role_type string | +**oldRoles** | **string[]** | old_roles array | +**newRoles** | **string[]** | new_roles array | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdShareholders200Ok.md b/docs/Model/GetCorporationsCorporationIdShareholders200Ok.md new file mode 100644 index 0000000..44c4075 --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdShareholders200Ok.md @@ -0,0 +1,12 @@ +# GetCorporationsCorporationIdShareholders200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**shareholderId** | **int** | shareholder_id integer | +**shareholderType** | **string** | shareholder_type string | +**shareCount** | **int** | share_count integer | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdStandings200Ok.md b/docs/Model/GetCorporationsCorporationIdStandings200Ok.md new file mode 100644 index 0000000..dec27ab --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdStandings200Ok.md @@ -0,0 +1,12 @@ +# GetCorporationsCorporationIdStandings200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fromId** | **int** | from_id integer | +**fromType** | **string** | from_type string | +**standing** | **float** | standing number | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdStarbases200Ok.md b/docs/Model/GetCorporationsCorporationIdStarbases200Ok.md new file mode 100644 index 0000000..6bb0970 --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdStarbases200Ok.md @@ -0,0 +1,17 @@ +# GetCorporationsCorporationIdStarbases200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**starbaseId** | **int** | Unique ID for this starbase (POS) | +**typeId** | **int** | Starbase (POS) type | +**systemId** | **int** | The solar system this starbase (POS) is in, unanchored POSes have this information | +**moonId** | **int** | The moon this starbase (POS) is anchored on, unanchored POSes do not have this information | [optional] +**state** | **string** | state string | [optional] +**unanchorAt** | [**\DateTime**](\DateTime.md) | When the POS started unanchoring, for starbases (POSes) in unanchoring state | [optional] +**reinforcedUntil** | [**\DateTime**](\DateTime.md) | When the POS will be out of reinforcement, for starbases (POSes) in reinforced state | [optional] +**onlinedSince** | [**\DateTime**](\DateTime.md) | When the POS onlined, for starbases (POSes) in online state | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdStarbasesStarbaseIdFuel.md b/docs/Model/GetCorporationsCorporationIdStarbasesStarbaseIdFuel.md new file mode 100644 index 0000000..bf394b3 --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdStarbasesStarbaseIdFuel.md @@ -0,0 +1,11 @@ +# GetCorporationsCorporationIdStarbasesStarbaseIdFuel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**typeId** | **int** | type_id integer | +**quantity** | **int** | quantity integer | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdStarbasesStarbaseIdOk.md b/docs/Model/GetCorporationsCorporationIdStarbasesStarbaseIdOk.md new file mode 100644 index 0000000..874ace7 --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdStarbasesStarbaseIdOk.md @@ -0,0 +1,23 @@ +# GetCorporationsCorporationIdStarbasesStarbaseIdOk + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fuelBayView** | **string** | 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 | +**fuelBayTake** | **string** | Who can take fuel blocks out of the starbase (POS)'s fuel bay | +**anchor** | **string** | Who can anchor starbase (POS) and its structures | +**unanchor** | **string** | Who can unanchor starbase (POS) and its structures | +**online** | **string** | Who can online starbase (POS) and its structures | +**offline** | **string** | Who can offline starbase (POS) and its structures | +**allowCorporationMembers** | **bool** | allow_corporation_members boolean | +**allowAllianceMembers** | **bool** | allow_alliance_members boolean | +**useAllianceStandings** | **bool** | True if the starbase (POS) is using alliance standings, otherwise using corporation's | +**attackStandingThreshold** | **float** | Starbase (POS) will attack if target's standing is lower than this value | [optional] +**attackSecurityStatusThreshold** | **float** | Starbase (POS) will attack if target's security standing is lower than this value | [optional] +**attackIfOtherSecurityStatusDropping** | **bool** | attack_if_other_security_status_dropping boolean | +**attackIfAtWar** | **bool** | attack_if_at_war boolean | +**fuels** | [**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStarbasesStarbaseIdFuel[]**](GetCorporationsCorporationIdStarbasesStarbaseIdFuel.md) | Fuel blocks and other things that will be consumed when operating a starbase (POS) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdStructures200Ok.md b/docs/Model/GetCorporationsCorporationIdStructures200Ok.md index df90646..54637da 100644 --- a/docs/Model/GetCorporationsCorporationIdStructures200Ok.md +++ b/docs/Model/GetCorporationsCorporationIdStructures200Ok.md @@ -3,18 +3,18 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**corporationId** | **int** | ID of the corporation that owns the structure | -**currentVul** | [**\nullx27\ESI\Models\GetCorporationsCorporationIdStructuresCurrentVul[]**](GetCorporationsCorporationIdStructuresCurrentVul.md) | This week's vulnerability windows, Monday is day 0 | -**fuelExpires** | [**\DateTime**](Date.md) | Date on which the structure will run out of fuel | [optional] -**nextVul** | [**\nullx27\ESI\Models\GetCorporationsCorporationIdStructuresNextVul[]**](GetCorporationsCorporationIdStructuresNextVul.md) | Next week's vulnerability windows, Monday is day 0 | -**profileId** | **int** | The id of the ACL profile for this citadel | -**services** | [**\nullx27\ESI\Models\GetCorporationsCorporationIdStructuresService[]**](GetCorporationsCorporationIdStructuresService.md) | Contains a list of service upgrades, and their state | [optional] -**stateTimerEnd** | [**\DateTime**](Date.md) | Date at which the structure will move to it's next state | [optional] -**stateTimerStart** | [**\DateTime**](Date.md) | Date at which the structure entered it's current state | [optional] **structureId** | **int** | The Item ID of the structure | -**systemId** | **int** | The solar system the structure is in | **typeId** | **int** | The type id of the structure | -**unanchorsAt** | [**\DateTime**](Date.md) | Date at which the structure will unanchor | [optional] +**corporationId** | **int** | ID of the corporation that owns the structure | +**systemId** | **int** | The solar system the structure is in | +**profileId** | **int** | The id of the ACL profile for this citadel | +**currentVul** | [**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStructuresCurrentVul[]**](GetCorporationsCorporationIdStructuresCurrentVul.md) | This week's vulnerability windows, Monday is day 0 | +**nextVul** | [**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStructuresNextVul[]**](GetCorporationsCorporationIdStructuresNextVul.md) | Next week's vulnerability windows, Monday is day 0 | +**fuelExpires** | [**\DateTime**](\DateTime.md) | Date on which the structure will run out of fuel | [optional] +**services** | [**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStructuresService[]**](GetCorporationsCorporationIdStructuresService.md) | Contains a list of service upgrades, and their state | [optional] +**stateTimerStart** | [**\DateTime**](\DateTime.md) | Date at which the structure entered it's current state | [optional] +**stateTimerEnd** | [**\DateTime**](\DateTime.md) | Date at which the structure will move to it's next state | [optional] +**unanchorsAt** | [**\DateTime**](\DateTime.md) | Date at which the structure will unanchor | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetCorporationsCorporationIdTitles200Ok.md b/docs/Model/GetCorporationsCorporationIdTitles200Ok.md new file mode 100644 index 0000000..7fb6e2a --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdTitles200Ok.md @@ -0,0 +1,19 @@ +# GetCorporationsCorporationIdTitles200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**titleId** | **int** | title_id integer | [optional] +**name** | **string** | name string | [optional] +**roles** | **string[]** | roles array | [optional] +**grantableRoles** | **string[]** | grantable_roles array | [optional] +**rolesAtHq** | **string[]** | roles_at_hq array | [optional] +**grantableRolesAtHq** | **string[]** | grantable_roles_at_hq array | [optional] +**rolesAtBase** | **string[]** | roles_at_base array | [optional] +**grantableRolesAtBase** | **string[]** | grantable_roles_at_base array | [optional] +**rolesAtOther** | **string[]** | roles_at_other array | [optional] +**grantableRolesAtOther** | **string[]** | grantable_roles_at_other array | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdWallets200Ok.md b/docs/Model/GetCorporationsCorporationIdWallets200Ok.md new file mode 100644 index 0000000..f0b5bba --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdWallets200Ok.md @@ -0,0 +1,11 @@ +# GetCorporationsCorporationIdWallets200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**division** | **int** | division integer | +**balance** | **double** | balance number | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdWalletsDivisionJournal200Ok.md b/docs/Model/GetCorporationsCorporationIdWalletsDivisionJournal200Ok.md new file mode 100644 index 0000000..81533b2 --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdWalletsDivisionJournal200Ok.md @@ -0,0 +1,22 @@ +# GetCorporationsCorporationIdWalletsDivisionJournal200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**date** | [**\DateTime**](\DateTime.md) | Date and time of transaction | +**refId** | **int** | Unique journal reference ID | +**refType** | **string** | Transaction type, different type of transaction will populate different fields in `extra_info` Note: If you have an existing XML API application that is using ref_types, you will need to know which string ESI ref_type maps to which integer. You can use the following gist to see string->int mappings: https://gist.github.com/ccp-zoetrope/c03db66d90c2148724c06171bc52e0ec | +**firstPartyId** | **int** | first_party_id integer | [optional] +**firstPartyType** | **string** | first_party_type string | [optional] +**secondPartyId** | **int** | second_party_id integer | [optional] +**secondPartyType** | **string** | second_party_type string | [optional] +**amount** | **double** | Transaction amount. Positive when value transferred to the first party. Negative otherwise | [optional] +**balance** | **double** | Wallet balance after transaction occurred | [optional] +**reason** | **string** | reason string | [optional] +**taxReceiverId** | **int** | the corporation ID receiving any tax paid | [optional] +**tax** | **double** | Tax amount received for tax related transactions | [optional] +**extraInfo** | [**\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdWalletsDivisionJournalExtraInfo**](GetCorporationsCorporationIdWalletsDivisionJournalExtraInfo.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdWalletsDivisionJournalExtraInfo.md b/docs/Model/GetCorporationsCorporationIdWalletsDivisionJournalExtraInfo.md new file mode 100644 index 0000000..749946d --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdWalletsDivisionJournalExtraInfo.md @@ -0,0 +1,21 @@ +# GetCorporationsCorporationIdWalletsDivisionJournalExtraInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**locationId** | **int** | location_id integer | [optional] +**transactionId** | **int** | transaction_id integer | [optional] +**npcName** | **string** | npc_name string | [optional] +**npcId** | **int** | npc_id integer | [optional] +**destroyedShipTypeId** | **int** | destroyed_ship_type_id integer | [optional] +**characterId** | **int** | character_id integer | [optional] +**corporationId** | **int** | corporation_id integer | [optional] +**allianceId** | **int** | alliance_id integer | [optional] +**jobId** | **int** | job_id integer | [optional] +**contractId** | **int** | contract_id integer | [optional] +**systemId** | **int** | system_id integer | [optional] +**planetId** | **int** | planet_id integer | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetCorporationsCorporationIdWalletsDivisionTransactions200Ok.md b/docs/Model/GetCorporationsCorporationIdWalletsDivisionTransactions200Ok.md new file mode 100644 index 0000000..dbfed3c --- /dev/null +++ b/docs/Model/GetCorporationsCorporationIdWalletsDivisionTransactions200Ok.md @@ -0,0 +1,18 @@ +# GetCorporationsCorporationIdWalletsDivisionTransactions200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**transactionId** | **int** | Unique transaction ID | +**date** | [**\DateTime**](\DateTime.md) | Date and time of transaction | +**typeId** | **int** | type_id integer | +**locationId** | **int** | location_id integer | +**unitPrice** | **double** | Amount paid per unit | +**quantity** | **int** | quantity integer | +**clientId** | **int** | client_id integer | +**isBuy** | **bool** | is_buy boolean | +**journalRefId** | **int** | journal_ref_id integer | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetDogmaAttributesAttributeIdOk.md b/docs/Model/GetDogmaAttributesAttributeIdOk.md index 07cdd14..3b73675 100644 --- a/docs/Model/GetDogmaAttributesAttributeIdOk.md +++ b/docs/Model/GetDogmaAttributesAttributeIdOk.md @@ -4,15 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **attributeId** | **int** | attribute_id integer | -**defaultValue** | **float** | default_value number | [optional] +**name** | **string** | name string | [optional] **description** | **string** | description string | [optional] -**displayName** | **string** | display_name string | [optional] -**highIsGood** | **bool** | high_is_good boolean | [optional] **iconId** | **int** | icon_id integer | [optional] -**name** | **string** | name string | [optional] +**defaultValue** | **float** | default_value number | [optional] **published** | **bool** | published boolean | [optional] -**stackable** | **bool** | stackable boolean | [optional] +**displayName** | **string** | display_name string | [optional] **unitId** | **int** | unit_id integer | [optional] +**stackable** | **bool** | stackable boolean | [optional] +**highIsGood** | **bool** | high_is_good boolean | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetDogmaEffectsEffectIdModifier.md b/docs/Model/GetDogmaEffectsEffectIdModifier.md index add8a3f..2a61a4b 100644 --- a/docs/Model/GetDogmaEffectsEffectIdModifier.md +++ b/docs/Model/GetDogmaEffectsEffectIdModifier.md @@ -3,11 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**domain** | **string** | domain string | **func** | **string** | func string | -**modifiedAttributeId** | **int** | modified_attribute_id integer | -**modifyingAttributeId** | **int** | modifying_attribute_id integer | -**operator** | **int** | operator integer | +**domain** | **string** | domain string | [optional] +**modifiedAttributeId** | **int** | modified_attribute_id integer | [optional] +**modifyingAttributeId** | **int** | modifying_attribute_id integer | [optional] +**effectId** | **int** | effect_id integer | [optional] +**operator** | **int** | operator integer | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetDogmaEffectsEffectIdOk.md b/docs/Model/GetDogmaEffectsEffectIdOk.md index c821a17..6cc927b 100644 --- a/docs/Model/GetDogmaEffectsEffectIdOk.md +++ b/docs/Model/GetDogmaEffectsEffectIdOk.md @@ -3,27 +3,27 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**description** | **string** | description string | [optional] -**disallowAutoRepeat** | **bool** | disallow_auto_repeat boolean | [optional] -**dischargeAttributeId** | **int** | discharge_attribute_id integer | [optional] -**displayName** | **string** | display_name string | [optional] -**durationAttributeId** | **int** | duration_attribute_id integer | [optional] -**effectCategory** | **int** | effect_category integer | [optional] **effectId** | **int** | effect_id integer | -**electronicChance** | **bool** | electronic_chance boolean | [optional] -**falloffAttributeId** | **int** | falloff_attribute_id integer | [optional] -**iconId** | **int** | icon_id integer | [optional] -**isAssistance** | **bool** | is_assistance boolean | [optional] -**isOffensive** | **bool** | is_offensive boolean | [optional] -**isWarpSafe** | **bool** | is_warp_safe boolean | [optional] -**modifiers** | [**\nullx27\ESI\Models\GetDogmaEffectsEffectIdModifier[]**](GetDogmaEffectsEffectIdModifier.md) | modifiers array | [optional] **name** | **string** | name string | [optional] -**postExpression** | **int** | post_expression integer | [optional] +**displayName** | **string** | display_name string | [optional] +**description** | **string** | description string | [optional] +**iconId** | **int** | icon_id integer | [optional] +**effectCategory** | **int** | effect_category integer | [optional] **preExpression** | **int** | pre_expression integer | [optional] +**postExpression** | **int** | post_expression integer | [optional] +**isOffensive** | **bool** | is_offensive boolean | [optional] +**isAssistance** | **bool** | is_assistance boolean | [optional] +**disallowAutoRepeat** | **bool** | disallow_auto_repeat boolean | [optional] **published** | **bool** | published boolean | [optional] -**rangeAttributeId** | **int** | range_attribute_id integer | [optional] +**isWarpSafe** | **bool** | is_warp_safe boolean | [optional] **rangeChance** | **bool** | range_chance boolean | [optional] +**electronicChance** | **bool** | electronic_chance boolean | [optional] +**durationAttributeId** | **int** | duration_attribute_id integer | [optional] **trackingSpeedAttributeId** | **int** | tracking_speed_attribute_id integer | [optional] +**dischargeAttributeId** | **int** | discharge_attribute_id integer | [optional] +**rangeAttributeId** | **int** | range_attribute_id integer | [optional] +**falloffAttributeId** | **int** | falloff_attribute_id integer | [optional] +**modifiers** | [**\nullx27ESI\nullx27\ESI\Models\GetDogmaEffectsEffectIdModifier[]**](GetDogmaEffectsEffectIdModifier.md) | modifiers array | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetFleetsFleetIdMembers200Ok.md b/docs/Model/GetFleetsFleetIdMembers200Ok.md index 1d0e446..f36d9ca 100644 --- a/docs/Model/GetFleetsFleetIdMembers200Ok.md +++ b/docs/Model/GetFleetsFleetIdMembers200Ok.md @@ -4,15 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **characterId** | **int** | character_id integer | -**joinTime** | [**\DateTime**](\DateTime.md) | join_time string | +**shipTypeId** | **int** | ship_type_id integer | +**wingId** | **int** | ID of the wing the member is in. If not applicable, will be set to -1 | +**squadId** | **int** | ID of the squad the member is in. If not applicable, will be set to -1 | **role** | **string** | Member’s role in fleet | **roleName** | **string** | Localized role names | -**shipTypeId** | **int** | ship_type_id integer | +**joinTime** | [**\DateTime**](\DateTime.md) | join_time string | +**takesFleetWarp** | **bool** | Whether the member take fleet warps | **solarSystemId** | **int** | Solar system the member is located in | -**squadId** | **int** | ID of the squad the member is in. If not applicable, will be set to -1 | **stationId** | **int** | Station in which the member is docked in, if applicable | [optional] -**takesFleetWarp** | **bool** | Whether the member take fleet warps | -**wingId** | **int** | ID of the wing the member is in. If not applicable, will be set to -1 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetFleetsFleetIdOk.md b/docs/Model/GetFleetsFleetIdOk.md index 65616dd..75f7972 100644 --- a/docs/Model/GetFleetsFleetIdOk.md +++ b/docs/Model/GetFleetsFleetIdOk.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**motd** | **string** | Fleet MOTD in CCP flavoured HTML | **isFreeMove** | **bool** | Is free-move enabled | **isRegistered** | **bool** | Does the fleet have an active fleet advertisement | **isVoiceEnabled** | **bool** | Is EVE Voice enabled | -**motd** | **string** | Fleet MOTD in CCP flavoured HTML | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetFleetsFleetIdWings200Ok.md b/docs/Model/GetFleetsFleetIdWings200Ok.md index 0069fb8..633415d 100644 --- a/docs/Model/GetFleetsFleetIdWings200Ok.md +++ b/docs/Model/GetFleetsFleetIdWings200Ok.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **int** | id integer | **name** | **string** | name string | -**squads** | [**\nullx27\ESI\Models\GetFleetsFleetIdWingsSquad[]**](GetFleetsFleetIdWingsSquad.md) | squads array | +**id** | **int** | id integer | +**squads** | [**\nullx27ESI\nullx27\ESI\Models\GetFleetsFleetIdWingsSquad[]**](GetFleetsFleetIdWingsSquad.md) | squads array | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetFleetsFleetIdWingsSquad.md b/docs/Model/GetFleetsFleetIdWingsSquad.md index 0b08e3a..4de833b 100644 --- a/docs/Model/GetFleetsFleetIdWingsSquad.md +++ b/docs/Model/GetFleetsFleetIdWingsSquad.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **int** | id integer | **name** | **string** | name string | +**id** | **int** | id integer | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetFwLeaderboardsActiveTotal.md b/docs/Model/GetFwLeaderboardsActiveTotal.md new file mode 100644 index 0000000..1183f06 --- /dev/null +++ b/docs/Model/GetFwLeaderboardsActiveTotal.md @@ -0,0 +1,11 @@ +# GetFwLeaderboardsActiveTotal + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**factionId** | **int** | faction_id integer | [optional] +**amount** | **int** | Amount of kills | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetFwLeaderboardsActiveTotal1.md b/docs/Model/GetFwLeaderboardsActiveTotal1.md new file mode 100644 index 0000000..363e5df --- /dev/null +++ b/docs/Model/GetFwLeaderboardsActiveTotal1.md @@ -0,0 +1,11 @@ +# GetFwLeaderboardsActiveTotal1 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**factionId** | **int** | faction_id integer | [optional] +**amount** | **int** | Amount of victory points | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetFwLeaderboardsCharactersActiveTotal.md b/docs/Model/GetFwLeaderboardsCharactersActiveTotal.md new file mode 100644 index 0000000..21ac82d --- /dev/null +++ b/docs/Model/GetFwLeaderboardsCharactersActiveTotal.md @@ -0,0 +1,11 @@ +# GetFwLeaderboardsCharactersActiveTotal + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**characterId** | **int** | character_id integer | [optional] +**amount** | **int** | Amount of kills | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetFwLeaderboardsCharactersActiveTotal1.md b/docs/Model/GetFwLeaderboardsCharactersActiveTotal1.md new file mode 100644 index 0000000..aff7849 --- /dev/null +++ b/docs/Model/GetFwLeaderboardsCharactersActiveTotal1.md @@ -0,0 +1,11 @@ +# GetFwLeaderboardsCharactersActiveTotal1 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**characterId** | **int** | character_id integer | [optional] +**amount** | **int** | Amount of victory points | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetFwLeaderboardsCharactersKills.md b/docs/Model/GetFwLeaderboardsCharactersKills.md new file mode 100644 index 0000000..90dd227 --- /dev/null +++ b/docs/Model/GetFwLeaderboardsCharactersKills.md @@ -0,0 +1,12 @@ +# GetFwLeaderboardsCharactersKills + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**yesterday** | [**\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersYesterday[]**](GetFwLeaderboardsCharactersYesterday.md) | Top 100 ranking of pilots by kills in the past day | +**lastWeek** | [**\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersLastWeek[]**](GetFwLeaderboardsCharactersLastWeek.md) | Top 100 ranking of pilots by kills in the past week | +**activeTotal** | [**\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersActiveTotal[]**](GetFwLeaderboardsCharactersActiveTotal.md) | Top 100 ranking of pilots active in faction warfare by total kills. A pilot is considered \"active\" if they have participated in faction warfare in the past 14 days. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetFwLeaderboardsCharactersLastWeek.md b/docs/Model/GetFwLeaderboardsCharactersLastWeek.md new file mode 100644 index 0000000..0d77012 --- /dev/null +++ b/docs/Model/GetFwLeaderboardsCharactersLastWeek.md @@ -0,0 +1,11 @@ +# GetFwLeaderboardsCharactersLastWeek + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**characterId** | **int** | character_id integer | [optional] +**amount** | **int** | Amount of kills | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetFwLeaderboardsCharactersLastWeek1.md b/docs/Model/GetFwLeaderboardsCharactersLastWeek1.md new file mode 100644 index 0000000..290da6a --- /dev/null +++ b/docs/Model/GetFwLeaderboardsCharactersLastWeek1.md @@ -0,0 +1,11 @@ +# GetFwLeaderboardsCharactersLastWeek1 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**characterId** | **int** | character_id integer | [optional] +**amount** | **int** | Amount of victory points | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetFwLeaderboardsCharactersOk.md b/docs/Model/GetFwLeaderboardsCharactersOk.md new file mode 100644 index 0000000..8421351 --- /dev/null +++ b/docs/Model/GetFwLeaderboardsCharactersOk.md @@ -0,0 +1,11 @@ +# GetFwLeaderboardsCharactersOk + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kills** | [**\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersKills**](GetFwLeaderboardsCharactersKills.md) | | +**victoryPoints** | [**\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersVictoryPoints**](GetFwLeaderboardsCharactersVictoryPoints.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetFwLeaderboardsCharactersVictoryPoints.md b/docs/Model/GetFwLeaderboardsCharactersVictoryPoints.md new file mode 100644 index 0000000..618c1ec --- /dev/null +++ b/docs/Model/GetFwLeaderboardsCharactersVictoryPoints.md @@ -0,0 +1,12 @@ +# GetFwLeaderboardsCharactersVictoryPoints + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**yesterday** | [**\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersYesterday1[]**](GetFwLeaderboardsCharactersYesterday1.md) | Top 100 ranking of pilots by victory points in the past day | +**lastWeek** | [**\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersLastWeek1[]**](GetFwLeaderboardsCharactersLastWeek1.md) | Top 100 ranking of pilots by victory points in the past week | +**activeTotal** | [**\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersActiveTotal1[]**](GetFwLeaderboardsCharactersActiveTotal1.md) | Top 100 ranking of pilots active in faction warfare by total victory points. A pilot is considered \"active\" if they have participated in faction warfare in the past 14 days. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetFwLeaderboardsCharactersYesterday.md b/docs/Model/GetFwLeaderboardsCharactersYesterday.md new file mode 100644 index 0000000..54224b7 --- /dev/null +++ b/docs/Model/GetFwLeaderboardsCharactersYesterday.md @@ -0,0 +1,11 @@ +# GetFwLeaderboardsCharactersYesterday + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**characterId** | **int** | character_id integer | [optional] +**amount** | **int** | Amount of kills | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetFwLeaderboardsCharactersYesterday1.md b/docs/Model/GetFwLeaderboardsCharactersYesterday1.md new file mode 100644 index 0000000..cf3eb8f --- /dev/null +++ b/docs/Model/GetFwLeaderboardsCharactersYesterday1.md @@ -0,0 +1,11 @@ +# GetFwLeaderboardsCharactersYesterday1 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**characterId** | **int** | character_id integer | [optional] +**amount** | **int** | Amount of victory points | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetFwLeaderboardsCorporationsActiveTotal.md b/docs/Model/GetFwLeaderboardsCorporationsActiveTotal.md new file mode 100644 index 0000000..13208e8 --- /dev/null +++ b/docs/Model/GetFwLeaderboardsCorporationsActiveTotal.md @@ -0,0 +1,11 @@ +# GetFwLeaderboardsCorporationsActiveTotal + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**corporationId** | **int** | corporation_id integer | [optional] +**amount** | **int** | Amount of kills | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetFwLeaderboardsCorporationsActiveTotal1.md b/docs/Model/GetFwLeaderboardsCorporationsActiveTotal1.md new file mode 100644 index 0000000..dd5a2c6 --- /dev/null +++ b/docs/Model/GetFwLeaderboardsCorporationsActiveTotal1.md @@ -0,0 +1,11 @@ +# GetFwLeaderboardsCorporationsActiveTotal1 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**corporationId** | **int** | corporation_id integer | [optional] +**amount** | **int** | Amount of victory points | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetFwLeaderboardsCorporationsKills.md b/docs/Model/GetFwLeaderboardsCorporationsKills.md new file mode 100644 index 0000000..3c09de4 --- /dev/null +++ b/docs/Model/GetFwLeaderboardsCorporationsKills.md @@ -0,0 +1,12 @@ +# GetFwLeaderboardsCorporationsKills + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**yesterday** | [**\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsYesterday[]**](GetFwLeaderboardsCorporationsYesterday.md) | Top 10 ranking of corporations by kills in the past day | +**lastWeek** | [**\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsLastWeek[]**](GetFwLeaderboardsCorporationsLastWeek.md) | Top 10 ranking of corporations by kills in the past week | +**activeTotal** | [**\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsActiveTotal[]**](GetFwLeaderboardsCorporationsActiveTotal.md) | Top 10 ranking of corporations active in faction warfare by total kills. A corporation is considered \"active\" if they have participated in faction warfare in the past 14 days. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetFwLeaderboardsCorporationsLastWeek.md b/docs/Model/GetFwLeaderboardsCorporationsLastWeek.md new file mode 100644 index 0000000..fa2c151 --- /dev/null +++ b/docs/Model/GetFwLeaderboardsCorporationsLastWeek.md @@ -0,0 +1,11 @@ +# GetFwLeaderboardsCorporationsLastWeek + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**corporationId** | **int** | corporation_id integer | [optional] +**amount** | **int** | Amount of kills | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetFwLeaderboardsCorporationsLastWeek1.md b/docs/Model/GetFwLeaderboardsCorporationsLastWeek1.md new file mode 100644 index 0000000..822a188 --- /dev/null +++ b/docs/Model/GetFwLeaderboardsCorporationsLastWeek1.md @@ -0,0 +1,11 @@ +# GetFwLeaderboardsCorporationsLastWeek1 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**corporationId** | **int** | corporation_id integer | [optional] +**amount** | **int** | Amount of victory points | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetFwLeaderboardsCorporationsOk.md b/docs/Model/GetFwLeaderboardsCorporationsOk.md new file mode 100644 index 0000000..52663f8 --- /dev/null +++ b/docs/Model/GetFwLeaderboardsCorporationsOk.md @@ -0,0 +1,11 @@ +# GetFwLeaderboardsCorporationsOk + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kills** | [**\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsKills**](GetFwLeaderboardsCorporationsKills.md) | | +**victoryPoints** | [**\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsVictoryPoints**](GetFwLeaderboardsCorporationsVictoryPoints.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetFwLeaderboardsCorporationsVictoryPoints.md b/docs/Model/GetFwLeaderboardsCorporationsVictoryPoints.md new file mode 100644 index 0000000..24e259e --- /dev/null +++ b/docs/Model/GetFwLeaderboardsCorporationsVictoryPoints.md @@ -0,0 +1,12 @@ +# GetFwLeaderboardsCorporationsVictoryPoints + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**yesterday** | [**\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsYesterday1[]**](GetFwLeaderboardsCorporationsYesterday1.md) | Top 10 ranking of corporations by victory points in the past day | +**lastWeek** | [**\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsLastWeek1[]**](GetFwLeaderboardsCorporationsLastWeek1.md) | Top 10 ranking of corporations by victory points in the past week | +**activeTotal** | [**\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsActiveTotal1[]**](GetFwLeaderboardsCorporationsActiveTotal1.md) | Top 10 ranking of corporations active in faction warfare by total victory points. A corporation is considered \"active\" if they have participated in faction warfare in the past 14 days. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetFwLeaderboardsCorporationsYesterday.md b/docs/Model/GetFwLeaderboardsCorporationsYesterday.md new file mode 100644 index 0000000..68feff6 --- /dev/null +++ b/docs/Model/GetFwLeaderboardsCorporationsYesterday.md @@ -0,0 +1,11 @@ +# GetFwLeaderboardsCorporationsYesterday + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**corporationId** | **int** | corporation_id integer | [optional] +**amount** | **int** | Amount of kills | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetFwLeaderboardsCorporationsYesterday1.md b/docs/Model/GetFwLeaderboardsCorporationsYesterday1.md new file mode 100644 index 0000000..7c60b0e --- /dev/null +++ b/docs/Model/GetFwLeaderboardsCorporationsYesterday1.md @@ -0,0 +1,11 @@ +# GetFwLeaderboardsCorporationsYesterday1 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**corporationId** | **int** | corporation_id integer | [optional] +**amount** | **int** | Amount of victory points | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetFwLeaderboardsKills.md b/docs/Model/GetFwLeaderboardsKills.md new file mode 100644 index 0000000..8ca843d --- /dev/null +++ b/docs/Model/GetFwLeaderboardsKills.md @@ -0,0 +1,12 @@ +# GetFwLeaderboardsKills + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**yesterday** | [**\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsYesterday[]**](GetFwLeaderboardsYesterday.md) | Top 4 ranking of factions by kills in the past day | +**lastWeek** | [**\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsLastWeek[]**](GetFwLeaderboardsLastWeek.md) | Top 4 ranking of factions by kills in the past week | +**activeTotal** | [**\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsActiveTotal[]**](GetFwLeaderboardsActiveTotal.md) | Top 4 ranking of factions active in faction warfare by total kills. A faction is considered \"active\" if they have participated in faction warfare in the past 14 days. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetFwLeaderboardsLastWeek.md b/docs/Model/GetFwLeaderboardsLastWeek.md new file mode 100644 index 0000000..87afac7 --- /dev/null +++ b/docs/Model/GetFwLeaderboardsLastWeek.md @@ -0,0 +1,11 @@ +# GetFwLeaderboardsLastWeek + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**factionId** | **int** | faction_id integer | [optional] +**amount** | **int** | Amount of kills | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetFwLeaderboardsLastWeek1.md b/docs/Model/GetFwLeaderboardsLastWeek1.md new file mode 100644 index 0000000..85ae590 --- /dev/null +++ b/docs/Model/GetFwLeaderboardsLastWeek1.md @@ -0,0 +1,11 @@ +# GetFwLeaderboardsLastWeek1 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**factionId** | **int** | faction_id integer | [optional] +**amount** | **int** | Amount of victory points | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetFwLeaderboardsOk.md b/docs/Model/GetFwLeaderboardsOk.md new file mode 100644 index 0000000..32138b6 --- /dev/null +++ b/docs/Model/GetFwLeaderboardsOk.md @@ -0,0 +1,11 @@ +# GetFwLeaderboardsOk + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kills** | [**\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsKills**](GetFwLeaderboardsKills.md) | | +**victoryPoints** | [**\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsVictoryPoints**](GetFwLeaderboardsVictoryPoints.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetFwLeaderboardsVictoryPoints.md b/docs/Model/GetFwLeaderboardsVictoryPoints.md new file mode 100644 index 0000000..e5cd4e3 --- /dev/null +++ b/docs/Model/GetFwLeaderboardsVictoryPoints.md @@ -0,0 +1,12 @@ +# GetFwLeaderboardsVictoryPoints + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**yesterday** | [**\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsYesterday1[]**](GetFwLeaderboardsYesterday1.md) | Top 4 ranking of factions by victory points in the past day | +**lastWeek** | [**\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsLastWeek1[]**](GetFwLeaderboardsLastWeek1.md) | Top 4 ranking of factions by victory points in the past week | +**activeTotal** | [**\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsActiveTotal1[]**](GetFwLeaderboardsActiveTotal1.md) | Top 4 ranking of factions active in faction warfare by total victory points. A faction is considered \"active\" if they have participated in faction warfare in the past 14 days. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetFwLeaderboardsYesterday.md b/docs/Model/GetFwLeaderboardsYesterday.md new file mode 100644 index 0000000..145200b --- /dev/null +++ b/docs/Model/GetFwLeaderboardsYesterday.md @@ -0,0 +1,11 @@ +# GetFwLeaderboardsYesterday + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**factionId** | **int** | faction_id integer | [optional] +**amount** | **int** | Amount of kills | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetFwLeaderboardsYesterday1.md b/docs/Model/GetFwLeaderboardsYesterday1.md new file mode 100644 index 0000000..86ad799 --- /dev/null +++ b/docs/Model/GetFwLeaderboardsYesterday1.md @@ -0,0 +1,11 @@ +# GetFwLeaderboardsYesterday1 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**factionId** | **int** | faction_id integer | [optional] +**amount** | **int** | Amount of victory points | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetFwStats200Ok.md b/docs/Model/GetFwStats200Ok.md new file mode 100644 index 0000000..0403016 --- /dev/null +++ b/docs/Model/GetFwStats200Ok.md @@ -0,0 +1,14 @@ +# GetFwStats200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**factionId** | **int** | faction_id integer | +**pilots** | **int** | How many pilots fight for the given faction | +**systemsControlled** | **int** | The number of solar systems controlled by the given faction | +**kills** | [**\nullx27ESI\nullx27\ESI\Models\GetFwStatsKills**](GetFwStatsKills.md) | | +**victoryPoints** | [**\nullx27ESI\nullx27\ESI\Models\GetFwStatsVictoryPoints**](GetFwStatsVictoryPoints.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetFwStatsKills.md b/docs/Model/GetFwStatsKills.md new file mode 100644 index 0000000..3cec726 --- /dev/null +++ b/docs/Model/GetFwStatsKills.md @@ -0,0 +1,12 @@ +# GetFwStatsKills + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**yesterday** | **int** | Yesterday's total number of kills against enemy factions | +**lastWeek** | **int** | Last week's total number of kills against enemy factions | +**total** | **int** | Total number of kills against enemy factions since faction warfare began | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetFwStatsVictoryPoints.md b/docs/Model/GetFwStatsVictoryPoints.md new file mode 100644 index 0000000..fcc43ae --- /dev/null +++ b/docs/Model/GetFwStatsVictoryPoints.md @@ -0,0 +1,12 @@ +# GetFwStatsVictoryPoints + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**yesterday** | **int** | Yesterday's victory points gained | +**lastWeek** | **int** | Last week's victory points gained | +**total** | **int** | Total victory points gained since faction warfare began | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetFwSystems200Ok.md b/docs/Model/GetFwSystems200Ok.md new file mode 100644 index 0000000..9c8cff8 --- /dev/null +++ b/docs/Model/GetFwSystems200Ok.md @@ -0,0 +1,15 @@ +# GetFwSystems200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**solarSystemId** | **int** | solar_system_id integer | +**ownerFactionId** | **int** | owner_faction_id integer | +**occupierFactionId** | **int** | occupier_faction_id integer | +**victoryPoints** | **int** | victory_points integer | +**victoryPointsThreshold** | **int** | victory_points_threshold integer | +**contested** | **bool** | contested boolean | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetFwWars200Ok.md b/docs/Model/GetFwWars200Ok.md new file mode 100644 index 0000000..a90c855 --- /dev/null +++ b/docs/Model/GetFwWars200Ok.md @@ -0,0 +1,11 @@ +# GetFwWars200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**factionId** | **int** | faction_id integer | +**againstId** | **int** | The faction ID of the enemy faction. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetIncursions200Ok.md b/docs/Model/GetIncursions200Ok.md index 95449d6..e91a60e 100644 --- a/docs/Model/GetIncursions200Ok.md +++ b/docs/Model/GetIncursions200Ok.md @@ -3,14 +3,14 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**constellationId** | **int** | The constellation id in which this incursion takes place | -**factionId** | **int** | The attacking faction's id | -**hasBoss** | **bool** | Whether the final encounter has boss or not | -**infestedSolarSystems** | **int[]** | A list of infested solar system ids that are a part of this incursion | +**type** | **string** | The type of this incursion | +**state** | **string** | The state of this incursion | **influence** | **float** | Influence of this incursion as a float from 0 to 1 | +**hasBoss** | **bool** | Whether the final encounter has boss or not | +**factionId** | **int** | The attacking faction's id | +**constellationId** | **int** | The constellation id in which this incursion takes place | **stagingSolarSystemId** | **int** | Staging solar system for this incursion | -**state** | **string** | The state of this incursion | -**type** | **string** | The type of this incursion | +**infestedSolarSystems** | **int[]** | A list of infested solar system ids that are a part of this incursion | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetIndustryFacilities200Ok.md b/docs/Model/GetIndustryFacilities200Ok.md index c401ee3..7807819 100644 --- a/docs/Model/GetIndustryFacilities200Ok.md +++ b/docs/Model/GetIndustryFacilities200Ok.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **facilityId** | **int** | ID of the facility | -**ownerId** | **int** | Owner of the facility | -**regionId** | **int** | Region ID where the facility is | -**solarSystemId** | **int** | Solar system ID where the facility is | **tax** | **float** | Tax imposed by the facility | [optional] +**ownerId** | **int** | Owner of the facility | **typeId** | **int** | Type ID of the facility | +**solarSystemId** | **int** | Solar system ID where the facility is | +**regionId** | **int** | Region ID where the facility is | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetIndustrySystems200Ok.md b/docs/Model/GetIndustrySystems200Ok.md index f235476..2894102 100644 --- a/docs/Model/GetIndustrySystems200Ok.md +++ b/docs/Model/GetIndustrySystems200Ok.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**costIndices** | [**\nullx27\ESI\Models\GetIndustrySystemsCostIndice[]**](GetIndustrySystemsCostIndice.md) | cost_indices array | **solarSystemId** | **int** | solar_system_id integer | +**costIndices** | [**\nullx27ESI\nullx27\ESI\Models\GetIndustrySystemsCostIndice[]**](GetIndustrySystemsCostIndice.md) | cost_indices array | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetInsurancePrices200Ok.md b/docs/Model/GetInsurancePrices200Ok.md index 292eeed..7826461 100644 --- a/docs/Model/GetInsurancePrices200Ok.md +++ b/docs/Model/GetInsurancePrices200Ok.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**levels** | [**\nullx27\ESI\Models\GetInsurancePricesLevel[]**](GetInsurancePricesLevel.md) | A list of a available insurance levels for this ship type | **typeId** | **int** | type_id integer | +**levels** | [**\nullx27ESI\nullx27\ESI\Models\GetInsurancePricesLevel[]**](GetInsurancePricesLevel.md) | A list of a available insurance levels for this ship type | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetInsurancePricesLevel.md b/docs/Model/GetInsurancePricesLevel.md index c7abd17..721a2a3 100644 --- a/docs/Model/GetInsurancePricesLevel.md +++ b/docs/Model/GetInsurancePricesLevel.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cost** | **float** | cost number | -**name** | **string** | Localized insurance level | **payout** | **float** | payout number | +**name** | **string** | Localized insurance level | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetKillmailsKillmailIdKillmailHashAttacker.md b/docs/Model/GetKillmailsKillmailIdKillmailHashAttacker.md index 44921cf..146afa6 100644 --- a/docs/Model/GetKillmailsKillmailIdKillmailHashAttacker.md +++ b/docs/Model/GetKillmailsKillmailIdKillmailHashAttacker.md @@ -3,13 +3,13 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**allianceId** | **int** | alliance_id integer | [optional] **characterId** | **int** | character_id integer | [optional] **corporationId** | **int** | corporation_id integer | [optional] -**damageDone** | **int** | damage_done integer | +**allianceId** | **int** | alliance_id integer | [optional] **factionId** | **int** | faction_id integer | [optional] -**finalBlow** | **bool** | Was the attacker the one to achieve the final blow | **securityStatus** | **float** | Security status for the attacker | +**finalBlow** | **bool** | Was the attacker the one to achieve the final blow | +**damageDone** | **int** | damage_done integer | **shipTypeId** | **int** | What ship was the attacker flying | [optional] **weaponTypeId** | **int** | What weapon was used by the attacker for the kill | [optional] diff --git a/docs/Model/GetKillmailsKillmailIdKillmailHashItem.md b/docs/Model/GetKillmailsKillmailIdKillmailHashItem.md index 00a9967..cb56a20 100644 --- a/docs/Model/GetKillmailsKillmailIdKillmailHashItem.md +++ b/docs/Model/GetKillmailsKillmailIdKillmailHashItem.md @@ -3,11 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**flag** | **int** | flag integer | **itemTypeId** | **int** | item_type_id integer | **quantityDestroyed** | **int** | quantity_destroyed integer | [optional] **quantityDropped** | **int** | quantity_dropped integer | [optional] **singleton** | **int** | singleton integer | +**flag** | **int** | flag integer | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetKillmailsKillmailIdKillmailHashItem1.md b/docs/Model/GetKillmailsKillmailIdKillmailHashItem1.md index bd4c04e..505b312 100644 --- a/docs/Model/GetKillmailsKillmailIdKillmailHashItem1.md +++ b/docs/Model/GetKillmailsKillmailIdKillmailHashItem1.md @@ -3,12 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**flag** | **int** | Flag for the location of the item | **itemTypeId** | **int** | item_type_id integer | -**items** | [**\nullx27\ESI\Models\GetKillmailsKillmailIdKillmailHashItem[]**](GetKillmailsKillmailIdKillmailHashItem.md) | items array | [optional] **quantityDestroyed** | **int** | How many of the item were destroyed if any | [optional] **quantityDropped** | **int** | How many of the item were dropped if any | [optional] **singleton** | **int** | singleton integer | +**flag** | **int** | Flag for the location of the item | +**items** | [**\nullx27ESI\nullx27\ESI\Models\GetKillmailsKillmailIdKillmailHashItem[]**](GetKillmailsKillmailIdKillmailHashItem.md) | items array | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetKillmailsKillmailIdKillmailHashOk.md b/docs/Model/GetKillmailsKillmailIdKillmailHashOk.md index 87a42cd..221f589 100644 --- a/docs/Model/GetKillmailsKillmailIdKillmailHashOk.md +++ b/docs/Model/GetKillmailsKillmailIdKillmailHashOk.md @@ -3,12 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**attackers** | [**\nullx27\ESI\Models\GetKillmailsKillmailIdKillmailHashAttacker[]**](GetKillmailsKillmailIdKillmailHashAttacker.md) | attackers array | **killmailId** | **int** | ID of the killmail | **killmailTime** | [**\DateTime**](\DateTime.md) | Time that the victim was killed and the killmail generated | -**moonId** | **int** | Moon if the kill took place at one | [optional] +**victim** | [**\nullx27ESI\nullx27\ESI\Models\GetKillmailsKillmailIdKillmailHashVictim**](GetKillmailsKillmailIdKillmailHashVictim.md) | | +**attackers** | [**\nullx27ESI\nullx27\ESI\Models\GetKillmailsKillmailIdKillmailHashAttacker[]**](GetKillmailsKillmailIdKillmailHashAttacker.md) | attackers array | **solarSystemId** | **int** | Solar system that the kill took place in | -**victim** | [**\nullx27\ESI\Models\GetKillmailsKillmailIdKillmailHashVictim**](GetKillmailsKillmailIdKillmailHashVictim.md) | | [optional] +**moonId** | **int** | Moon if the kill took place at one | [optional] **warId** | **int** | War if the killmail is generated in relation to an official war | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetKillmailsKillmailIdKillmailHashPosition.md b/docs/Model/GetKillmailsKillmailIdKillmailHashPosition.md index 693b0e6..98b83c3 100644 --- a/docs/Model/GetKillmailsKillmailIdKillmailHashPosition.md +++ b/docs/Model/GetKillmailsKillmailIdKillmailHashPosition.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**x** | **float** | x number | -**y** | **float** | y number | -**z** | **float** | z number | +**x** | **double** | x number | +**y** | **double** | y number | +**z** | **double** | z number | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetKillmailsKillmailIdKillmailHashVictim.md b/docs/Model/GetKillmailsKillmailIdKillmailHashVictim.md index ed27223..0dbbba2 100644 --- a/docs/Model/GetKillmailsKillmailIdKillmailHashVictim.md +++ b/docs/Model/GetKillmailsKillmailIdKillmailHashVictim.md @@ -3,14 +3,14 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**allianceId** | **int** | alliance_id integer | [optional] **characterId** | **int** | character_id integer | [optional] **corporationId** | **int** | corporation_id integer | [optional] -**damageTaken** | **int** | How much total damage was taken by the victim | +**allianceId** | **int** | alliance_id integer | [optional] **factionId** | **int** | faction_id integer | [optional] -**items** | [**\nullx27\ESI\Models\GetKillmailsKillmailIdKillmailHashItem1[]**](GetKillmailsKillmailIdKillmailHashItem1.md) | items array | [optional] -**position** | [**\nullx27\ESI\Models\GetKillmailsKillmailIdKillmailHashPosition**](GetKillmailsKillmailIdKillmailHashPosition.md) | | [optional] +**damageTaken** | **int** | How much total damage was taken by the victim | **shipTypeId** | **int** | The ship that the victim was piloting and was destroyed | +**items** | [**\nullx27ESI\nullx27\ESI\Models\GetKillmailsKillmailIdKillmailHashItem1[]**](GetKillmailsKillmailIdKillmailHashItem1.md) | items array | [optional] +**position** | [**\nullx27ESI\nullx27\ESI\Models\GetKillmailsKillmailIdKillmailHashPosition**](GetKillmailsKillmailIdKillmailHashPosition.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetLoyaltyStoresCorporationIdOffers200Ok.md b/docs/Model/GetLoyaltyStoresCorporationIdOffers200Ok.md index fe7103b..1638f80 100644 --- a/docs/Model/GetLoyaltyStoresCorporationIdOffers200Ok.md +++ b/docs/Model/GetLoyaltyStoresCorporationIdOffers200Ok.md @@ -3,12 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**iskCost** | **float** | isk_cost number | -**lpCost** | **int** | lp_cost integer | **offerId** | **int** | offer_id integer | -**quantity** | **int** | quantity integer | -**requiredItems** | [**\nullx27\ESI\Models\GetLoyaltyStoresCorporationIdOffersRequiredItem[]**](GetLoyaltyStoresCorporationIdOffersRequiredItem.md) | required_items array | **typeId** | **int** | type_id integer | +**quantity** | **int** | quantity integer | +**lpCost** | **int** | lp_cost integer | +**iskCost** | **float** | isk_cost number | +**requiredItems** | [**\nullx27ESI\nullx27\ESI\Models\GetLoyaltyStoresCorporationIdOffersRequiredItem[]**](GetLoyaltyStoresCorporationIdOffersRequiredItem.md) | required_items array | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetLoyaltyStoresCorporationIdOffersRequiredItem.md b/docs/Model/GetLoyaltyStoresCorporationIdOffersRequiredItem.md index 81ebf1f..d669069 100644 --- a/docs/Model/GetLoyaltyStoresCorporationIdOffersRequiredItem.md +++ b/docs/Model/GetLoyaltyStoresCorporationIdOffersRequiredItem.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**quantity** | **int** | quantity integer | **typeId** | **int** | type_id integer | +**quantity** | **int** | quantity integer | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetMarketsGroupsMarketGroupIdOk.md b/docs/Model/GetMarketsGroupsMarketGroupIdOk.md index 3919928..4a57a55 100644 --- a/docs/Model/GetMarketsGroupsMarketGroupIdOk.md +++ b/docs/Model/GetMarketsGroupsMarketGroupIdOk.md @@ -3,11 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**description** | **string** | description string | **marketGroupId** | **int** | market_group_id integer | **name** | **string** | name string | -**parentGroupId** | **int** | parent_group_id integer | [optional] +**description** | **string** | description string | **types** | **int[]** | types array | +**parentGroupId** | **int** | parent_group_id integer | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetMarketsPrices200Ok.md b/docs/Model/GetMarketsPrices200Ok.md index 36c85d5..e04ff3c 100644 --- a/docs/Model/GetMarketsPrices200Ok.md +++ b/docs/Model/GetMarketsPrices200Ok.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**adjustedPrice** | **float** | adjusted_price number | [optional] -**averagePrice** | **float** | average_price number | [optional] **typeId** | **int** | type_id integer | +**averagePrice** | **double** | average_price number | [optional] +**adjustedPrice** | **double** | adjusted_price number | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetMarketsRegionIdHistory200Ok.md b/docs/Model/GetMarketsRegionIdHistory200Ok.md index 4b5fd3a..751971e 100644 --- a/docs/Model/GetMarketsRegionIdHistory200Ok.md +++ b/docs/Model/GetMarketsRegionIdHistory200Ok.md @@ -3,12 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**average** | **float** | average number | -**date** | [**\DateTime**](Date.md) | The date of this historical statistic entry | -**highest** | **float** | highest number | -**lowest** | **float** | lowest number | +**date** | [**\DateTime**](\DateTime.md) | The date of this historical statistic entry | **orderCount** | **int** | Total number of orders happened that day | **volume** | **int** | Total | +**highest** | **double** | highest number | +**average** | **double** | average number | +**lowest** | **double** | lowest number | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetMarketsRegionIdOrders200Ok.md b/docs/Model/GetMarketsRegionIdOrders200Ok.md index f3d8ebe..7e19ab5 100644 --- a/docs/Model/GetMarketsRegionIdOrders200Ok.md +++ b/docs/Model/GetMarketsRegionIdOrders200Ok.md @@ -3,17 +3,17 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**duration** | **int** | duration integer | -**isBuyOrder** | **bool** | is_buy_order boolean | -**issued** | [**\DateTime**](\DateTime.md) | issued string | -**locationId** | **int** | location_id integer | -**minVolume** | **int** | min_volume integer | **orderId** | **int** | order_id integer | -**price** | **float** | price number | -**range** | **string** | range string | **typeId** | **int** | type_id integer | -**volumeRemain** | **int** | volume_remain integer | +**locationId** | **int** | location_id integer | **volumeTotal** | **int** | volume_total integer | +**volumeRemain** | **int** | volume_remain integer | +**minVolume** | **int** | min_volume integer | +**price** | **double** | price number | +**isBuyOrder** | **bool** | is_buy_order boolean | +**duration** | **int** | duration integer | +**issued** | [**\DateTime**](\DateTime.md) | issued string | +**range** | **string** | range string | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetMarketsStructuresStructureId200Ok.md b/docs/Model/GetMarketsStructuresStructureId200Ok.md index c5ae32e..1e3871c 100644 --- a/docs/Model/GetMarketsStructuresStructureId200Ok.md +++ b/docs/Model/GetMarketsStructuresStructureId200Ok.md @@ -3,17 +3,17 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**duration** | **int** | duration integer | -**isBuyOrder** | **bool** | is_buy_order boolean | -**issued** | [**\DateTime**](\DateTime.md) | issued string | -**locationId** | **int** | location_id integer | -**minVolume** | **int** | min_volume integer | **orderId** | **int** | order_id integer | -**price** | **float** | price number | -**range** | **string** | range string | **typeId** | **int** | type_id integer | -**volumeRemain** | **int** | volume_remain integer | +**locationId** | **int** | location_id integer | **volumeTotal** | **int** | volume_total integer | +**volumeRemain** | **int** | volume_remain integer | +**minVolume** | **int** | min_volume integer | +**price** | **double** | price number | +**isBuyOrder** | **bool** | is_buy_order boolean | +**duration** | **int** | duration integer | +**issued** | [**\DateTime**](\DateTime.md) | issued string | +**range** | **string** | range string | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetOpportunitiesGroupsGroupIdOk.md b/docs/Model/GetOpportunitiesGroupsGroupIdOk.md index 1c7b741..e0e8a44 100644 --- a/docs/Model/GetOpportunitiesGroupsGroupIdOk.md +++ b/docs/Model/GetOpportunitiesGroupsGroupIdOk.md @@ -3,12 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**connectedGroups** | **int[]** | The groups that are connected to this group on the opportunities map | -**description** | **string** | description string | **groupId** | **int** | group_id integer | **name** | **string** | name string | +**description** | **string** | description string | **notification** | **string** | notification string | **requiredTasks** | **int[]** | Tasks need to complete for this group | +**connectedGroups** | **int[]** | The groups that are connected to this group on the opportunities map | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetOpportunitiesTasksTaskIdOk.md b/docs/Model/GetOpportunitiesTasksTaskIdOk.md index 510627a..e3dc28c 100644 --- a/docs/Model/GetOpportunitiesTasksTaskIdOk.md +++ b/docs/Model/GetOpportunitiesTasksTaskIdOk.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**description** | **string** | description string | +**taskId** | **int** | task_id integer | **name** | **string** | name string | +**description** | **string** | description string | **notification** | **string** | notification string | -**taskId** | **int** | task_id integer | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetSearchOk.md b/docs/Model/GetSearchOk.md index d3b1341..bbcf98a 100644 --- a/docs/Model/GetSearchOk.md +++ b/docs/Model/GetSearchOk.md @@ -9,11 +9,10 @@ Name | Type | Description | Notes **constellation** | **int[]** | constellation array | [optional] **corporation** | **int[]** | corporation array | [optional] **faction** | **int[]** | faction array | [optional] -**inventorytype** | **int[]** | inventorytype array | [optional] +**inventoryType** | **int[]** | inventory_type array | [optional] **region** | **int[]** | region array | [optional] -**solarsystem** | **int[]** | solarsystem array | [optional] +**solarSystem** | **int[]** | solar_system array | [optional] **station** | **int[]** | station array | [optional] -**wormhole** | **int[]** | wormhole array | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetSovereigntyCampaigns200Ok.md b/docs/Model/GetSovereigntyCampaigns200Ok.md index 2fb4871..17a60ca 100644 --- a/docs/Model/GetSovereigntyCampaigns200Ok.md +++ b/docs/Model/GetSovereigntyCampaigns200Ok.md @@ -3,16 +3,16 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**attackersScore** | **float** | Score for all attacking parties, only present in Defense Events. | [optional] **campaignId** | **int** | Unique ID for this campaign. | +**structureId** | **int** | The structure item ID that is related to this campaign. | +**solarSystemId** | **int** | The solar system the structure is located in. | **constellationId** | **int** | The constellation in which the campaign will take place. | -**defenderId** | **int** | Defending alliance, only present in Defense Events | [optional] -**defenderScore** | **float** | Score for the defending alliance, only present in Defense Events. | [optional] **eventType** | **string** | Type of event this campaign is for. tcu_defense, ihub_defense and station_defense are referred to as \"Defense Events\", station_freeport as \"Freeport Events\". | -**participants** | [**\nullx27\ESI\Models\GetSovereigntyCampaignsParticipant[]**](GetSovereigntyCampaignsParticipant.md) | Alliance participating and their respective scores, only present in Freeport Events. | [optional] -**solarSystemId** | **int** | The solar system the structure is located in. | **startTime** | [**\DateTime**](\DateTime.md) | Time the event is scheduled to start. | -**structureId** | **int** | The structure item ID that is related to this campaign. | +**defenderId** | **int** | Defending alliance, only present in Defense Events | [optional] +**defenderScore** | **float** | Score for the defending alliance, only present in Defense Events. | [optional] +**attackersScore** | **float** | Score for all attacking parties, only present in Defense Events. | [optional] +**participants** | [**\nullx27ESI\nullx27\ESI\Models\GetSovereigntyCampaignsParticipant[]**](GetSovereigntyCampaignsParticipant.md) | Alliance participating and their respective scores, only present in Freeport Events. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetSovereigntyMap200Ok.md b/docs/Model/GetSovereigntyMap200Ok.md index fc66f44..f69e975 100644 --- a/docs/Model/GetSovereigntyMap200Ok.md +++ b/docs/Model/GetSovereigntyMap200Ok.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**systemId** | **int** | system_id integer | **allianceId** | **int** | alliance_id integer | [optional] **corporationId** | **int** | corporation_id integer | [optional] **factionId** | **int** | faction_id integer | [optional] -**systemId** | **int** | system_id integer | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetSovereigntyStructures200Ok.md b/docs/Model/GetSovereigntyStructures200Ok.md index 13b8cb5..82e513f 100644 --- a/docs/Model/GetSovereigntyStructures200Ok.md +++ b/docs/Model/GetSovereigntyStructures200Ok.md @@ -8,8 +8,8 @@ Name | Type | Description | Notes **structureId** | **int** | Unique item ID for this structure. | **structureTypeId** | **int** | A reference to the type of structure this is. | **vulnerabilityOccupancyLevel** | **float** | The occupancy level for the next or current vulnerability window. This takes into account all development indexes and capital system bonuses. Also known as Activity Defense Multiplier from in the client. It increases the time that attackers must spend using their entosis links on the structure. | [optional] -**vulnerableEndTime** | [**\DateTime**](\DateTime.md) | The time at which the next or current vulnerability window ends. At the end of a vulnerability window the next window is recalculated and locked in along with the vulnerabilityOccupancyLevel. If the structure is not in 100% entosis control of the defender, it will go in to 'overtime' and stay vulnerable for as long as that situation persists. Only once the defenders have 100% entosis control and has the vulnerableEndTime passed does the vulnerability interval expire and a new one is calculated. | [optional] **vulnerableStartTime** | [**\DateTime**](\DateTime.md) | The next time at which the structure will become vulnerable. Or the start time of the current window if current time is between this and vulnerableEndTime. | [optional] +**vulnerableEndTime** | [**\DateTime**](\DateTime.md) | The time at which the next or current vulnerability window ends. At the end of a vulnerability window the next window is recalculated and locked in along with the vulnerabilityOccupancyLevel. If the structure is not in 100% entosis control of the defender, it will go in to 'overtime' and stay vulnerable for as long as that situation persists. Only once the defenders have 100% entosis control and has the vulnerableEndTime passed does the vulnerability interval expire and a new one is calculated. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetStatusOk.md b/docs/Model/GetStatusOk.md index 4a1f54f..3873201 100644 --- a/docs/Model/GetStatusOk.md +++ b/docs/Model/GetStatusOk.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**startTime** | [**\DateTime**](\DateTime.md) | Server start timestamp | **players** | **int** | Current online player count | **serverVersion** | **string** | Running version as string | -**startTime** | [**\DateTime**](\DateTime.md) | Server start timestamp | **vip** | **bool** | If the server is in VIP mode | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetUniverseBloodlines200Ok.md b/docs/Model/GetUniverseBloodlines200Ok.md index 7555e4e..c49c48b 100644 --- a/docs/Model/GetUniverseBloodlines200Ok.md +++ b/docs/Model/GetUniverseBloodlines200Ok.md @@ -4,16 +4,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **bloodlineId** | **int** | bloodline_id integer | -**charisma** | **int** | charisma integer | -**corporationId** | **int** | corporation_id integer | -**description** | **string** | description string | -**intelligence** | **int** | intelligence integer | -**memory** | **int** | memory integer | **name** | **string** | name string | -**perception** | **int** | perception integer | +**description** | **string** | description string | **raceId** | **int** | race_id integer | **shipTypeId** | **int** | ship_type_id integer | +**corporationId** | **int** | corporation_id integer | +**perception** | **int** | perception integer | **willpower** | **int** | willpower integer | +**charisma** | **int** | charisma integer | +**memory** | **int** | memory integer | +**intelligence** | **int** | intelligence integer | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetUniverseCategoriesCategoryIdOk.md b/docs/Model/GetUniverseCategoriesCategoryIdOk.md index 086d997..1e7505f 100644 --- a/docs/Model/GetUniverseCategoriesCategoryIdOk.md +++ b/docs/Model/GetUniverseCategoriesCategoryIdOk.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **categoryId** | **int** | category_id integer | -**groups** | **int[]** | groups array | **name** | **string** | name string | **published** | **bool** | published boolean | +**groups** | **int[]** | groups array | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetUniverseConstellationsConstellationIdOk.md b/docs/Model/GetUniverseConstellationsConstellationIdOk.md index 234167e..09ee2e1 100644 --- a/docs/Model/GetUniverseConstellationsConstellationIdOk.md +++ b/docs/Model/GetUniverseConstellationsConstellationIdOk.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **constellationId** | **int** | constellation_id integer | **name** | **string** | name string | -**position** | [**\nullx27\ESI\Models\GetUniverseConstellationsConstellationIdPosition**](GetUniverseConstellationsConstellationIdPosition.md) | | [optional] +**position** | [**\nullx27ESI\nullx27\ESI\Models\GetUniverseConstellationsConstellationIdPosition**](GetUniverseConstellationsConstellationIdPosition.md) | | **regionId** | **int** | The region this constellation is in | **systems** | **int[]** | systems array | diff --git a/docs/Model/GetUniverseConstellationsConstellationIdPosition.md b/docs/Model/GetUniverseConstellationsConstellationIdPosition.md index 9f2208f..823249a 100644 --- a/docs/Model/GetUniverseConstellationsConstellationIdPosition.md +++ b/docs/Model/GetUniverseConstellationsConstellationIdPosition.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**x** | **float** | x number | -**y** | **float** | y number | -**z** | **float** | z number | +**x** | **double** | x number | +**y** | **double** | y number | +**z** | **double** | z number | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetUniverseFactions200Ok.md b/docs/Model/GetUniverseFactions200Ok.md index 0ee5bf4..e631dfe 100644 --- a/docs/Model/GetUniverseFactions200Ok.md +++ b/docs/Model/GetUniverseFactions200Ok.md @@ -3,16 +3,16 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**corporationId** | **int** | corporation_id integer | -**description** | **string** | description string | **factionId** | **int** | faction_id integer | -**isUnique** | **bool** | is_unique boolean | -**militiaCorporationId** | **int** | militia_corporation_id integer | [optional] **name** | **string** | name string | +**description** | **string** | description string | +**solarSystemId** | **int** | solar_system_id integer | [optional] +**corporationId** | **int** | corporation_id integer | [optional] +**militiaCorporationId** | **int** | militia_corporation_id integer | [optional] **sizeFactor** | **float** | size_factor number | -**solarSystemId** | **int** | solar_system_id integer | **stationCount** | **int** | station_count integer | **stationSystemCount** | **int** | station_system_count integer | +**isUnique** | **bool** | is_unique boolean | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetUniverseGraphicsGraphicIdOk.md b/docs/Model/GetUniverseGraphicsGraphicIdOk.md index fd5d8d0..2695433 100644 --- a/docs/Model/GetUniverseGraphicsGraphicIdOk.md +++ b/docs/Model/GetUniverseGraphicsGraphicIdOk.md @@ -3,14 +3,14 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**collisionFile** | **string** | collision_file string | [optional] -**graphicFile** | **string** | graphic_file string | [optional] **graphicId** | **int** | graphic_id integer | -**iconFolder** | **string** | icon_folder string | [optional] -**sofDna** | **string** | sof_dna string | [optional] +**graphicFile** | **string** | graphic_file string | [optional] +**sofRaceName** | **string** | sof_race_name string | [optional] **sofFationName** | **string** | sof_fation_name string | [optional] +**sofDna** | **string** | sof_dna string | [optional] **sofHullName** | **string** | sof_hull_name string | [optional] -**sofRaceName** | **string** | sof_race_name string | [optional] +**collisionFile** | **string** | collision_file string | [optional] +**iconFolder** | **string** | icon_folder string | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetUniverseGroupsGroupIdOk.md b/docs/Model/GetUniverseGroupsGroupIdOk.md index f8c28bb..24067be 100644 --- a/docs/Model/GetUniverseGroupsGroupIdOk.md +++ b/docs/Model/GetUniverseGroupsGroupIdOk.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**categoryId** | **int** | category_id integer | **groupId** | **int** | group_id integer | **name** | **string** | name string | **published** | **bool** | published boolean | +**categoryId** | **int** | category_id integer | **types** | **int[]** | types array | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetUniverseMoonsMoonIdOk.md b/docs/Model/GetUniverseMoonsMoonIdOk.md index b495b0c..e04404c 100644 --- a/docs/Model/GetUniverseMoonsMoonIdOk.md +++ b/docs/Model/GetUniverseMoonsMoonIdOk.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **moonId** | **int** | moon_id integer | **name** | **string** | name string | -**position** | [**\nullx27\ESI\Models\GetUniverseMoonsMoonIdPosition**](GetUniverseMoonsMoonIdPosition.md) | | [optional] +**position** | [**\nullx27ESI\nullx27\ESI\Models\GetUniverseMoonsMoonIdPosition**](GetUniverseMoonsMoonIdPosition.md) | | **systemId** | **int** | The solar system this moon is in | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetUniverseMoonsMoonIdPosition.md b/docs/Model/GetUniverseMoonsMoonIdPosition.md index bbf74ce..d3d3201 100644 --- a/docs/Model/GetUniverseMoonsMoonIdPosition.md +++ b/docs/Model/GetUniverseMoonsMoonIdPosition.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**x** | **float** | x number | -**y** | **float** | y number | -**z** | **float** | z number | +**x** | **double** | x number | +**y** | **double** | y number | +**z** | **double** | z number | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetUniversePlanetsPlanetIdOk.md b/docs/Model/GetUniversePlanetsPlanetIdOk.md index 062ba27..1ab6e8c 100644 --- a/docs/Model/GetUniversePlanetsPlanetIdOk.md +++ b/docs/Model/GetUniversePlanetsPlanetIdOk.md @@ -3,11 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **string** | name string | **planetId** | **int** | planet_id integer | -**position** | [**\nullx27\ESI\Models\GetUniversePlanetsPlanetIdPosition**](GetUniversePlanetsPlanetIdPosition.md) | | [optional] -**systemId** | **int** | The solar system this planet is in | +**name** | **string** | name string | **typeId** | **int** | type_id integer | +**position** | [**\nullx27ESI\nullx27\ESI\Models\GetUniversePlanetsPlanetIdPosition**](GetUniversePlanetsPlanetIdPosition.md) | | +**systemId** | **int** | The solar system this planet is in | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetUniversePlanetsPlanetIdPosition.md b/docs/Model/GetUniversePlanetsPlanetIdPosition.md index 16c1305..85cb167 100644 --- a/docs/Model/GetUniversePlanetsPlanetIdPosition.md +++ b/docs/Model/GetUniversePlanetsPlanetIdPosition.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**x** | **float** | x number | -**y** | **float** | y number | -**z** | **float** | z number | +**x** | **double** | x number | +**y** | **double** | y number | +**z** | **double** | z number | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetUniverseRaces200Ok.md b/docs/Model/GetUniverseRaces200Ok.md index 708a0e3..fbf7326 100644 --- a/docs/Model/GetUniverseRaces200Ok.md +++ b/docs/Model/GetUniverseRaces200Ok.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**allianceId** | **int** | The alliance generally associated with this race | -**description** | **string** | description string | -**name** | **string** | name string | **raceId** | **int** | race_id integer | +**name** | **string** | name string | +**description** | **string** | description string | +**allianceId** | **int** | The alliance generally associated with this race | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetUniverseRegionsRegionIdOk.md b/docs/Model/GetUniverseRegionsRegionIdOk.md index 36fdf87..8f1be79 100644 --- a/docs/Model/GetUniverseRegionsRegionIdOk.md +++ b/docs/Model/GetUniverseRegionsRegionIdOk.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**constellations** | **int[]** | constellations array | -**description** | **string** | description string | [optional] -**name** | **string** | name string | **regionId** | **int** | region_id integer | +**name** | **string** | name string | +**description** | **string** | description string | [optional] +**constellations** | **int[]** | constellations array | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetUniverseSchematicsSchematicIdOk.md b/docs/Model/GetUniverseSchematicsSchematicIdOk.md index c1735cf..f476749 100644 --- a/docs/Model/GetUniverseSchematicsSchematicIdOk.md +++ b/docs/Model/GetUniverseSchematicsSchematicIdOk.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cycleTime** | **int** | Time in seconds to process a run | **schematicName** | **string** | schematic_name string | +**cycleTime** | **int** | Time in seconds to process a run | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetUniverseStargatesStargateIdDestination.md b/docs/Model/GetUniverseStargatesStargateIdDestination.md index 1bfcf7f..bed30f0 100644 --- a/docs/Model/GetUniverseStargatesStargateIdDestination.md +++ b/docs/Model/GetUniverseStargatesStargateIdDestination.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**stargateId** | **int** | The stargate this stargate connects to | **systemId** | **int** | The solar system this stargate connects to | +**stargateId** | **int** | The stargate this stargate connects to | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetUniverseStargatesStargateIdOk.md b/docs/Model/GetUniverseStargatesStargateIdOk.md index 2406407..fb95e75 100644 --- a/docs/Model/GetUniverseStargatesStargateIdOk.md +++ b/docs/Model/GetUniverseStargatesStargateIdOk.md @@ -3,12 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**destination** | [**\nullx27\ESI\Models\GetUniverseStargatesStargateIdDestination**](GetUniverseStargatesStargateIdDestination.md) | | [optional] -**name** | **string** | name string | -**position** | [**\nullx27\ESI\Models\GetUniverseStargatesStargateIdPosition**](GetUniverseStargatesStargateIdPosition.md) | | [optional] **stargateId** | **int** | stargate_id integer | -**systemId** | **int** | The solar system this stargate is in | +**name** | **string** | name string | **typeId** | **int** | type_id integer | +**position** | [**\nullx27ESI\nullx27\ESI\Models\GetUniverseStargatesStargateIdPosition**](GetUniverseStargatesStargateIdPosition.md) | | +**systemId** | **int** | The solar system this stargate is in | +**destination** | [**\nullx27ESI\nullx27\ESI\Models\GetUniverseStargatesStargateIdDestination**](GetUniverseStargatesStargateIdDestination.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetUniverseStargatesStargateIdPosition.md b/docs/Model/GetUniverseStargatesStargateIdPosition.md index 180769e..b51f7ad 100644 --- a/docs/Model/GetUniverseStargatesStargateIdPosition.md +++ b/docs/Model/GetUniverseStargatesStargateIdPosition.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**x** | **float** | x number | -**y** | **float** | y number | -**z** | **float** | z number | +**x** | **double** | x number | +**y** | **double** | y number | +**z** | **double** | z number | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetUniverseStarsStarIdOk.md b/docs/Model/GetUniverseStarsStarIdOk.md new file mode 100644 index 0000000..d95c23c --- /dev/null +++ b/docs/Model/GetUniverseStarsStarIdOk.md @@ -0,0 +1,17 @@ +# GetUniverseStarsStarIdOk + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **string** | name string | +**solarSystemId** | **int** | solar_system_id integer | +**typeId** | **int** | type_id integer | +**age** | **int** | Age of star in years | +**luminosity** | **float** | luminosity number | +**radius** | **int** | radius integer | +**spectralClass** | **string** | spectral_class string | +**temperature** | **int** | temperature integer | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/GetUniverseStationsStationIdOk.md b/docs/Model/GetUniverseStationsStationIdOk.md index 3e8294d..838db54 100644 --- a/docs/Model/GetUniverseStationsStationIdOk.md +++ b/docs/Model/GetUniverseStationsStationIdOk.md @@ -3,18 +3,18 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**maxDockableShipVolume** | **float** | max_dockable_ship_volume number | +**stationId** | **int** | station_id integer | **name** | **string** | name string | -**officeRentalCost** | **float** | office_rental_cost number | **owner** | **int** | ID of the corporation that controls this station | [optional] -**position** | [**\nullx27\ESI\Models\GetUniverseStationsStationIdPosition**](GetUniverseStationsStationIdPosition.md) | | [optional] +**typeId** | **int** | type_id integer | **raceId** | **int** | race_id integer | [optional] +**position** | [**\nullx27ESI\nullx27\ESI\Models\GetUniverseStationsStationIdPosition**](GetUniverseStationsStationIdPosition.md) | | +**systemId** | **int** | The solar system this station is in | **reprocessingEfficiency** | **float** | reprocessing_efficiency number | **reprocessingStationsTake** | **float** | reprocessing_stations_take number | +**maxDockableShipVolume** | **float** | max_dockable_ship_volume number | +**officeRentalCost** | **float** | office_rental_cost number | **services** | **string[]** | services array | -**stationId** | **int** | station_id integer | -**systemId** | **int** | The solar system this station is in | -**typeId** | **int** | type_id integer | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetUniverseStationsStationIdPosition.md b/docs/Model/GetUniverseStationsStationIdPosition.md index 844ecd3..3e105f6 100644 --- a/docs/Model/GetUniverseStationsStationIdPosition.md +++ b/docs/Model/GetUniverseStationsStationIdPosition.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**x** | **float** | x number | -**y** | **float** | y number | -**z** | **float** | z number | +**x** | **double** | x number | +**y** | **double** | y number | +**z** | **double** | z number | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetUniverseStructuresStructureIdOk.md b/docs/Model/GetUniverseStructuresStructureIdOk.md index 5b0fca0..89c74f4 100644 --- a/docs/Model/GetUniverseStructuresStructureIdOk.md +++ b/docs/Model/GetUniverseStructuresStructureIdOk.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | The full name of the structure | -**position** | [**\nullx27\ESI\Models\GetUniverseStructuresStructureIdPosition**](GetUniverseStructuresStructureIdPosition.md) | | [optional] **solarSystemId** | **int** | solar_system_id integer | **typeId** | **int** | type_id integer | [optional] +**position** | [**\nullx27ESI\nullx27\ESI\Models\GetUniverseStructuresStructureIdPosition**](GetUniverseStructuresStructureIdPosition.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetUniverseStructuresStructureIdPosition.md b/docs/Model/GetUniverseStructuresStructureIdPosition.md index 326404e..f168bca 100644 --- a/docs/Model/GetUniverseStructuresStructureIdPosition.md +++ b/docs/Model/GetUniverseStructuresStructureIdPosition.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**x** | **float** | x number | -**y** | **float** | y number | -**z** | **float** | z number | +**x** | **double** | x number | +**y** | **double** | y number | +**z** | **double** | z number | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetUniverseSystemJumps200Ok.md b/docs/Model/GetUniverseSystemJumps200Ok.md index 0a6b29a..d53ede5 100644 --- a/docs/Model/GetUniverseSystemJumps200Ok.md +++ b/docs/Model/GetUniverseSystemJumps200Ok.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**shipJumps** | **int** | ship_jumps integer | **systemId** | **int** | system_id integer | +**shipJumps** | **int** | ship_jumps integer | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetUniverseSystemKills200Ok.md b/docs/Model/GetUniverseSystemKills200Ok.md index 411ff7b..4e451e4 100644 --- a/docs/Model/GetUniverseSystemKills200Ok.md +++ b/docs/Model/GetUniverseSystemKills200Ok.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**systemId** | **int** | system_id integer | +**shipKills** | **int** | Number of player ships killed in this system | **npcKills** | **int** | Number of NPC ships killed in this system | **podKills** | **int** | Number of pods killed in this system | -**shipKills** | **int** | Number of player ships killed in this system | -**systemId** | **int** | system_id integer | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetUniverseSystemsSystemIdOk.md b/docs/Model/GetUniverseSystemsSystemIdOk.md index 7c5259f..30353f1 100644 --- a/docs/Model/GetUniverseSystemsSystemIdOk.md +++ b/docs/Model/GetUniverseSystemsSystemIdOk.md @@ -3,14 +3,16 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**constellationId** | **int** | The constellation this solar system is in | +**starId** | **int** | star_id integer | +**systemId** | **int** | system_id integer | **name** | **string** | name string | -**planets** | [**\nullx27\ESI\Models\GetUniverseSystemsSystemIdPlanet[]**](GetUniverseSystemsSystemIdPlanet.md) | planets array | -**position** | [**\nullx27\ESI\Models\GetUniverseSystemsSystemIdPosition**](GetUniverseSystemsSystemIdPosition.md) | | [optional] -**securityClass** | **string** | security_class string | [optional] +**position** | [**\nullx27ESI\nullx27\ESI\Models\GetUniverseSystemsSystemIdPosition**](GetUniverseSystemsSystemIdPosition.md) | | **securityStatus** | **float** | security_status number | -**stargates** | **int[]** | stargates array | -**systemId** | **int** | system_id integer | +**securityClass** | **string** | security_class string | [optional] +**constellationId** | **int** | The constellation this solar system is in | +**planets** | [**\nullx27ESI\nullx27\ESI\Models\GetUniverseSystemsSystemIdPlanet[]**](GetUniverseSystemsSystemIdPlanet.md) | planets array | +**stargates** | **int[]** | stargates array | [optional] +**stations** | **int[]** | stations array | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetUniverseSystemsSystemIdPlanet.md b/docs/Model/GetUniverseSystemsSystemIdPlanet.md index f2107f6..78c7162 100644 --- a/docs/Model/GetUniverseSystemsSystemIdPlanet.md +++ b/docs/Model/GetUniverseSystemsSystemIdPlanet.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**moons** | **int[]** | moons array | [optional] **planetId** | **int** | planet_id integer | +**moons** | **int[]** | moons array | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetUniverseSystemsSystemIdPosition.md b/docs/Model/GetUniverseSystemsSystemIdPosition.md index 887de1f..6d8426a 100644 --- a/docs/Model/GetUniverseSystemsSystemIdPosition.md +++ b/docs/Model/GetUniverseSystemsSystemIdPosition.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**x** | **float** | x number | -**y** | **float** | y number | -**z** | **float** | z number | +**x** | **double** | x number | +**y** | **double** | y number | +**z** | **double** | z number | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetUniverseTypesTypeIdOk.md b/docs/Model/GetUniverseTypesTypeIdOk.md index 44ed7bd..9954001 100644 --- a/docs/Model/GetUniverseTypesTypeIdOk.md +++ b/docs/Model/GetUniverseTypesTypeIdOk.md @@ -3,20 +3,22 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**capacity** | **float** | capacity number | [optional] -**description** | **string** | description string | -**dogmaAttributes** | [**\nullx27\ESI\Models\GetUniverseTypesTypeIdDogmaAttribute[]**](GetUniverseTypesTypeIdDogmaAttribute.md) | dogma_attributes array | [optional] -**dogmaEffects** | [**\nullx27\ESI\Models\GetUniverseTypesTypeIdDogmaEffect[]**](GetUniverseTypesTypeIdDogmaEffect.md) | dogma_effects array | [optional] -**graphicId** | **int** | graphic_id integer | [optional] -**groupId** | **int** | group_id integer | -**iconId** | **int** | icon_id integer | [optional] -**mass** | **float** | mass number | [optional] +**typeId** | **int** | type_id integer | **name** | **string** | name string | -**portionSize** | **int** | portion_size integer | [optional] +**description** | **string** | description string | **published** | **bool** | published boolean | +**groupId** | **int** | group_id integer | +**marketGroupId** | **int** | This only exists for types that can be put on the market | [optional] **radius** | **float** | radius number | [optional] -**typeId** | **int** | type_id integer | **volume** | **float** | volume number | [optional] +**packagedVolume** | **float** | packaged_volume number | [optional] +**iconId** | **int** | icon_id integer | [optional] +**capacity** | **float** | capacity number | [optional] +**portionSize** | **int** | portion_size integer | [optional] +**mass** | **float** | mass number | [optional] +**graphicId** | **int** | graphic_id integer | [optional] +**dogmaAttributes** | [**\nullx27ESI\nullx27\ESI\Models\GetUniverseTypesTypeIdDogmaAttribute[]**](GetUniverseTypesTypeIdDogmaAttribute.md) | dogma_attributes array | [optional] +**dogmaEffects** | [**\nullx27ESI\nullx27\ESI\Models\GetUniverseTypesTypeIdDogmaEffect[]**](GetUniverseTypesTypeIdDogmaEffect.md) | dogma_effects array | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetWarsWarIdAggressor.md b/docs/Model/GetWarsWarIdAggressor.md index 55066a7..a4758f7 100644 --- a/docs/Model/GetWarsWarIdAggressor.md +++ b/docs/Model/GetWarsWarIdAggressor.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**allianceId** | **int** | Alliance ID if and only if the aggressor is an alliance | [optional] **corporationId** | **int** | Corporation ID if and only if the aggressor is a corporation | [optional] -**iskDestroyed** | **float** | ISK value of ships the aggressor has destroyed | +**allianceId** | **int** | Alliance ID if and only if the aggressor is an alliance | [optional] **shipsKilled** | **int** | The number of ships the aggressor has killed | +**iskDestroyed** | **float** | ISK value of ships the aggressor has destroyed | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetWarsWarIdAlly.md b/docs/Model/GetWarsWarIdAlly.md index 4edca38..7ab08ff 100644 --- a/docs/Model/GetWarsWarIdAlly.md +++ b/docs/Model/GetWarsWarIdAlly.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**allianceId** | **int** | Alliance ID if and only if this ally is an alliance | [optional] **corporationId** | **int** | Corporation ID if and only if this ally is a corporation | [optional] +**allianceId** | **int** | Alliance ID if and only if this ally is an alliance | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetWarsWarIdDefender.md b/docs/Model/GetWarsWarIdDefender.md index 9674088..6e2da39 100644 --- a/docs/Model/GetWarsWarIdDefender.md +++ b/docs/Model/GetWarsWarIdDefender.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**allianceId** | **int** | Alliance ID if and only if the defender is an alliance | [optional] **corporationId** | **int** | Corporation ID if and only if the defender is a corporation | [optional] -**iskDestroyed** | **float** | ISK value of ships the defender has killed | +**allianceId** | **int** | Alliance ID if and only if the defender is an alliance | [optional] **shipsKilled** | **int** | The number of ships the defender has killed | +**iskDestroyed** | **float** | ISK value of ships the defender has killed | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetWarsWarIdKillmails200Ok.md b/docs/Model/GetWarsWarIdKillmails200Ok.md index a938a40..9554ea6 100644 --- a/docs/Model/GetWarsWarIdKillmails200Ok.md +++ b/docs/Model/GetWarsWarIdKillmails200Ok.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**killmailHash** | **string** | A hash of this killmail | **killmailId** | **int** | ID of this killmail | +**killmailHash** | **string** | A hash of this killmail | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/GetWarsWarIdOk.md b/docs/Model/GetWarsWarIdOk.md index 2642b6e..fb0f522 100644 --- a/docs/Model/GetWarsWarIdOk.md +++ b/docs/Model/GetWarsWarIdOk.md @@ -3,16 +3,16 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**aggressor** | [**\nullx27\ESI\Models\GetWarsWarIdAggressor**](GetWarsWarIdAggressor.md) | | [optional] -**allies** | [**\nullx27\ESI\Models\GetWarsWarIdAlly[]**](GetWarsWarIdAlly.md) | allied corporations or alliances, each object contains either corporation_id or alliance_id | [optional] +**id** | **int** | ID of the specified war | **declared** | [**\DateTime**](\DateTime.md) | Time that the war was declared | -**defender** | [**\nullx27\ESI\Models\GetWarsWarIdDefender**](GetWarsWarIdDefender.md) | | [optional] +**started** | [**\DateTime**](\DateTime.md) | Time when the war started and both sides could shoot each other | [optional] +**retracted** | [**\DateTime**](\DateTime.md) | Time the war was retracted but both sides could still shoot each other | [optional] **finished** | [**\DateTime**](\DateTime.md) | Time the war ended and shooting was no longer allowed | [optional] -**id** | **int** | ID of the specified war | **mutual** | **bool** | Was the war declared mutual by both parties | **openForAllies** | **bool** | Is the war currently open for allies or not | -**retracted** | [**\DateTime**](\DateTime.md) | Time the war was retracted but both sides could still shoot each other | [optional] -**started** | [**\DateTime**](\DateTime.md) | Time when the war started and both sides could shoot each other | [optional] +**aggressor** | [**\nullx27ESI\nullx27\ESI\Models\GetWarsWarIdAggressor**](GetWarsWarIdAggressor.md) | | +**defender** | [**\nullx27ESI\nullx27\ESI\Models\GetWarsWarIdDefender**](GetWarsWarIdDefender.md) | | +**allies** | [**\nullx27ESI\nullx27\ESI\Models\GetWarsWarIdAlly[]**](GetWarsWarIdAlly.md) | allied corporations or alliances, each object contains either corporation_id or alliance_id | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/InternalServerError.md b/docs/Model/InternalServerError.md new file mode 100644 index 0000000..9d3d4d1 --- /dev/null +++ b/docs/Model/InternalServerError.md @@ -0,0 +1,10 @@ +# InternalServerError + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **string** | Internal server error message | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/PostCharactersAffiliation200Ok.md b/docs/Model/PostCharactersAffiliation200Ok.md index 0fc7786..532e8c0 100644 --- a/docs/Model/PostCharactersAffiliation200Ok.md +++ b/docs/Model/PostCharactersAffiliation200Ok.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**allianceId** | **int** | The character's alliance ID, if their corporation is in an alliance | [optional] **characterId** | **int** | The character's ID | **corporationId** | **int** | The character's corporation ID | +**allianceId** | **int** | The character's alliance ID, if their corporation is in an alliance | [optional] **factionId** | **int** | The character's faction ID, if their corporation is in a faction | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/PostCharactersAffiliationNotFound.md b/docs/Model/PostCharactersAffiliationNotFound.md new file mode 100644 index 0000000..201eadb --- /dev/null +++ b/docs/Model/PostCharactersAffiliationNotFound.md @@ -0,0 +1,10 @@ +# PostCharactersAffiliationNotFound + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **string** | Not found message | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/PostCharactersCharacterIdAssetsLocations200Ok.md b/docs/Model/PostCharactersCharacterIdAssetsLocations200Ok.md new file mode 100644 index 0000000..79e902a --- /dev/null +++ b/docs/Model/PostCharactersCharacterIdAssetsLocations200Ok.md @@ -0,0 +1,11 @@ +# PostCharactersCharacterIdAssetsLocations200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**itemId** | **int** | item_id integer | +**position** | [**\nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdAssetsLocationsPosition**](PostCharactersCharacterIdAssetsLocationsPosition.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/PostCharactersCharacterIdAssetsLocationsPosition.md b/docs/Model/PostCharactersCharacterIdAssetsLocationsPosition.md new file mode 100644 index 0000000..ded96a3 --- /dev/null +++ b/docs/Model/PostCharactersCharacterIdAssetsLocationsPosition.md @@ -0,0 +1,12 @@ +# PostCharactersCharacterIdAssetsLocationsPosition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**x** | **double** | x number | +**y** | **double** | y number | +**z** | **double** | z number | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/PostCharactersCharacterIdAssetsNames200Ok.md b/docs/Model/PostCharactersCharacterIdAssetsNames200Ok.md new file mode 100644 index 0000000..cf0f298 --- /dev/null +++ b/docs/Model/PostCharactersCharacterIdAssetsNames200Ok.md @@ -0,0 +1,11 @@ +# PostCharactersCharacterIdAssetsNames200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**itemId** | **int** | item_id integer | +**name** | **string** | name string | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/PostCharactersCharacterIdFittingsFitting.md b/docs/Model/PostCharactersCharacterIdFittingsFitting.md index 3ef99a1..3e9d52e 100644 --- a/docs/Model/PostCharactersCharacterIdFittingsFitting.md +++ b/docs/Model/PostCharactersCharacterIdFittingsFitting.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**description** | **string** | description string | -**items** | [**\nullx27\ESI\Models\PostCharactersCharacterIdFittingsItem[]**](PostCharactersCharacterIdFittingsItem.md) | items array | **name** | **string** | name string | +**description** | **string** | description string | **shipTypeId** | **int** | ship_type_id integer | +**items** | [**\nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdFittingsItem[]**](PostCharactersCharacterIdFittingsItem.md) | items array | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/PostCharactersCharacterIdFittingsItem.md b/docs/Model/PostCharactersCharacterIdFittingsItem.md index 26c53ad..e4a1853 100644 --- a/docs/Model/PostCharactersCharacterIdFittingsItem.md +++ b/docs/Model/PostCharactersCharacterIdFittingsItem.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**typeId** | **int** | type_id integer | **flag** | **int** | flag integer | **quantity** | **int** | quantity integer | -**typeId** | **int** | type_id integer | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/PostCharactersCharacterIdMailLabelsLabel.md b/docs/Model/PostCharactersCharacterIdMailLabelsLabel.md index fd24fa4..4622b83 100644 --- a/docs/Model/PostCharactersCharacterIdMailLabelsLabel.md +++ b/docs/Model/PostCharactersCharacterIdMailLabelsLabel.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**color** | **string** | Hexadecimal string representing label color, in RGB format | [optional] [default to '#ffffff'] **name** | **string** | name string | +**color** | **string** | Hexadecimal string representing label color, in RGB format | [optional] [default to '#ffffff'] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/PostCharactersCharacterIdMailMail.md b/docs/Model/PostCharactersCharacterIdMailMail.md index 8dfdd82..a46712f 100644 --- a/docs/Model/PostCharactersCharacterIdMailMail.md +++ b/docs/Model/PostCharactersCharacterIdMailMail.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**approvedCost** | **int** | approved_cost integer | [optional] [default to 0] -**body** | **string** | body string | -**recipients** | [**\nullx27\ESI\Models\PostCharactersCharacterIdMailRecipient[]**](PostCharactersCharacterIdMailRecipient.md) | recipients array | +**recipients** | [**\nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdMailRecipient[]**](PostCharactersCharacterIdMailRecipient.md) | recipients array | **subject** | **string** | subject string | +**body** | **string** | body string | +**approvedCost** | **int** | approved_cost integer | [optional] [default to 0] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/PostCharactersCharacterIdMailRecipient.md b/docs/Model/PostCharactersCharacterIdMailRecipient.md index 079eede..b07beff 100644 --- a/docs/Model/PostCharactersCharacterIdMailRecipient.md +++ b/docs/Model/PostCharactersCharacterIdMailRecipient.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**recipientId** | **int** | recipient_id integer | **recipientType** | **string** | recipient_type string | +**recipientId** | **int** | recipient_id integer | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/PostCorporationsCorporationIdAssetsLocations200Ok.md b/docs/Model/PostCorporationsCorporationIdAssetsLocations200Ok.md new file mode 100644 index 0000000..ec4ea78 --- /dev/null +++ b/docs/Model/PostCorporationsCorporationIdAssetsLocations200Ok.md @@ -0,0 +1,11 @@ +# PostCorporationsCorporationIdAssetsLocations200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**itemId** | **int** | item_id integer | +**position** | [**\nullx27ESI\nullx27\ESI\Models\PostCorporationsCorporationIdAssetsLocationsPosition**](PostCorporationsCorporationIdAssetsLocationsPosition.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/PostCorporationsCorporationIdAssetsLocationsPosition.md b/docs/Model/PostCorporationsCorporationIdAssetsLocationsPosition.md new file mode 100644 index 0000000..b627192 --- /dev/null +++ b/docs/Model/PostCorporationsCorporationIdAssetsLocationsPosition.md @@ -0,0 +1,12 @@ +# PostCorporationsCorporationIdAssetsLocationsPosition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**x** | **double** | x number | +**y** | **double** | y number | +**z** | **double** | z number | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/PostCorporationsCorporationIdAssetsNames200Ok.md b/docs/Model/PostCorporationsCorporationIdAssetsNames200Ok.md new file mode 100644 index 0000000..b29dd62 --- /dev/null +++ b/docs/Model/PostCorporationsCorporationIdAssetsNames200Ok.md @@ -0,0 +1,11 @@ +# PostCorporationsCorporationIdAssetsNames200Ok + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**itemId** | **int** | item_id integer | +**name** | **string** | name string | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/PostFleetsFleetIdMembersInvitation.md b/docs/Model/PostFleetsFleetIdMembersInvitation.md index 6e675cc..9ba58c6 100644 --- a/docs/Model/PostFleetsFleetIdMembersInvitation.md +++ b/docs/Model/PostFleetsFleetIdMembersInvitation.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **characterId** | **int** | The character you want to invite | -**role** | **string** | - If a character is invited with the `fleet_commander` role, neither `wing_id` or `squad_id` should be specified - If a character is invited with the `wing_commander` role, only `wing_id` should be specified - If a character is invited with the `squad_commander` role, both `wing_id` and `squad_id` should be specified - If a character is invited with the `squad_member` role, `wing_id` and `squad_id` should either both be specified or not specified at all. If they aren’t specified, the invited character will join any squad with available positions | -**squadId** | **int** | squad_id integer | [optional] +**role** | **string** | If a character is invited with the `fleet_commander` role, neither `wing_id` or `squad_id` should be specified. If a character is invited with the `wing_commander` role, only `wing_id` should be specified. If a character is invited with the `squad_commander` role, both `wing_id` and `squad_id` should be specified. If a character is invited with the `squad_member` role, `wing_id` and `squad_id` should either both be specified or not specified at all. If they aren’t specified, the invited character will join any squad with available positions. | **wingId** | **int** | wing_id integer | [optional] +**squadId** | **int** | squad_id integer | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/PostUiOpenwindowNewmailNewMail.md b/docs/Model/PostUiOpenwindowNewmailNewMail.md index 19360e4..29adfa1 100644 --- a/docs/Model/PostUiOpenwindowNewmailNewMail.md +++ b/docs/Model/PostUiOpenwindowNewmailNewMail.md @@ -3,11 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**subject** | **string** | subject string | **body** | **string** | body string | **recipients** | **int[]** | recipients array | -**subject** | **string** | subject string | -**toCorpOrAllianceId** | **int** | to_corp_or_alliance_id integer | [optional] **toMailingListId** | **int** | Corporations, alliances and mailing lists are all types of mailing groups. You may only send to one mailing group, at a time, so you may fill out either this field or the to_corp_or_alliance_ids field | [optional] +**toCorpOrAllianceId** | **int** | to_corp_or_alliance_id integer | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/PostUniverseIdsAgent.md b/docs/Model/PostUniverseIdsAgent.md new file mode 100644 index 0000000..11efe42 --- /dev/null +++ b/docs/Model/PostUniverseIdsAgent.md @@ -0,0 +1,11 @@ +# PostUniverseIdsAgent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | id integer | [optional] +**name** | **string** | name string | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/PostUniverseIdsAlliance.md b/docs/Model/PostUniverseIdsAlliance.md new file mode 100644 index 0000000..1a2bd8d --- /dev/null +++ b/docs/Model/PostUniverseIdsAlliance.md @@ -0,0 +1,11 @@ +# PostUniverseIdsAlliance + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | id integer | [optional] +**name** | **string** | name string | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/PostUniverseIdsCharacter.md b/docs/Model/PostUniverseIdsCharacter.md new file mode 100644 index 0000000..f1ed09c --- /dev/null +++ b/docs/Model/PostUniverseIdsCharacter.md @@ -0,0 +1,11 @@ +# PostUniverseIdsCharacter + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | id integer | [optional] +**name** | **string** | name string | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/PostUniverseIdsConstellation.md b/docs/Model/PostUniverseIdsConstellation.md new file mode 100644 index 0000000..aca46a6 --- /dev/null +++ b/docs/Model/PostUniverseIdsConstellation.md @@ -0,0 +1,11 @@ +# PostUniverseIdsConstellation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | id integer | [optional] +**name** | **string** | name string | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/PostUniverseIdsCorporation.md b/docs/Model/PostUniverseIdsCorporation.md new file mode 100644 index 0000000..906c213 --- /dev/null +++ b/docs/Model/PostUniverseIdsCorporation.md @@ -0,0 +1,11 @@ +# PostUniverseIdsCorporation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | id integer | [optional] +**name** | **string** | name string | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/PostUniverseIdsFaction.md b/docs/Model/PostUniverseIdsFaction.md new file mode 100644 index 0000000..44fafef --- /dev/null +++ b/docs/Model/PostUniverseIdsFaction.md @@ -0,0 +1,11 @@ +# PostUniverseIdsFaction + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | id integer | [optional] +**name** | **string** | name string | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/PostUniverseIdsInventoryType.md b/docs/Model/PostUniverseIdsInventoryType.md new file mode 100644 index 0000000..cf37fcf --- /dev/null +++ b/docs/Model/PostUniverseIdsInventoryType.md @@ -0,0 +1,11 @@ +# PostUniverseIdsInventoryType + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | id integer | [optional] +**name** | **string** | name string | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/PostUniverseIdsOk.md b/docs/Model/PostUniverseIdsOk.md new file mode 100644 index 0000000..04c24d6 --- /dev/null +++ b/docs/Model/PostUniverseIdsOk.md @@ -0,0 +1,19 @@ +# PostUniverseIdsOk + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**agents** | [**\nullx27ESI\nullx27\ESI\Models\PostUniverseIdsAgent[]**](PostUniverseIdsAgent.md) | agents array | [optional] +**alliances** | [**\nullx27ESI\nullx27\ESI\Models\PostUniverseIdsAlliance[]**](PostUniverseIdsAlliance.md) | alliances array | [optional] +**characters** | [**\nullx27ESI\nullx27\ESI\Models\PostUniverseIdsCharacter[]**](PostUniverseIdsCharacter.md) | characters array | [optional] +**constellations** | [**\nullx27ESI\nullx27\ESI\Models\PostUniverseIdsConstellation[]**](PostUniverseIdsConstellation.md) | constellations array | [optional] +**corporations** | [**\nullx27ESI\nullx27\ESI\Models\PostUniverseIdsCorporation[]**](PostUniverseIdsCorporation.md) | corporations array | [optional] +**factions** | [**\nullx27ESI\nullx27\ESI\Models\PostUniverseIdsFaction[]**](PostUniverseIdsFaction.md) | factions array | [optional] +**inventoryTypes** | [**\nullx27ESI\nullx27\ESI\Models\PostUniverseIdsInventoryType[]**](PostUniverseIdsInventoryType.md) | inventory_types array | [optional] +**regions** | [**\nullx27ESI\nullx27\ESI\Models\PostUniverseIdsRegion[]**](PostUniverseIdsRegion.md) | regions array | [optional] +**systems** | [**\nullx27ESI\nullx27\ESI\Models\PostUniverseIdsSystem[]**](PostUniverseIdsSystem.md) | systems array | [optional] +**stations** | [**\nullx27ESI\nullx27\ESI\Models\PostUniverseIdsStation[]**](PostUniverseIdsStation.md) | stations array | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/PostUniverseIdsRegion.md b/docs/Model/PostUniverseIdsRegion.md new file mode 100644 index 0000000..01ba5db --- /dev/null +++ b/docs/Model/PostUniverseIdsRegion.md @@ -0,0 +1,11 @@ +# PostUniverseIdsRegion + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | id integer | [optional] +**name** | **string** | name string | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/PostUniverseIdsServiceUnavailable.md b/docs/Model/PostUniverseIdsServiceUnavailable.md new file mode 100644 index 0000000..a97114c --- /dev/null +++ b/docs/Model/PostUniverseIdsServiceUnavailable.md @@ -0,0 +1,10 @@ +# PostUniverseIdsServiceUnavailable + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **string** | Service unavailable message | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/PostUniverseIdsStation.md b/docs/Model/PostUniverseIdsStation.md new file mode 100644 index 0000000..b81f3db --- /dev/null +++ b/docs/Model/PostUniverseIdsStation.md @@ -0,0 +1,11 @@ +# PostUniverseIdsStation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | id integer | [optional] +**name** | **string** | name string | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/PostUniverseIdsSystem.md b/docs/Model/PostUniverseIdsSystem.md new file mode 100644 index 0000000..4a0bb1f --- /dev/null +++ b/docs/Model/PostUniverseIdsSystem.md @@ -0,0 +1,11 @@ +# PostUniverseIdsSystem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | id integer | [optional] +**name** | **string** | name string | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/PostUniverseNames200Ok.md b/docs/Model/PostUniverseNames200Ok.md index fe599f5..f6130ec 100644 --- a/docs/Model/PostUniverseNames200Ok.md +++ b/docs/Model/PostUniverseNames200Ok.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**category** | **string** | category string | **id** | **int** | id integer | **name** | **string** | name string | +**category** | **string** | category string | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/PutCharactersCharacterIdMailMailIdContents.md b/docs/Model/PutCharactersCharacterIdMailMailIdContents.md index 84ad53b..19bfa1d 100644 --- a/docs/Model/PutCharactersCharacterIdMailMailIdContents.md +++ b/docs/Model/PutCharactersCharacterIdMailMailIdContents.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**labels** | **int[]** | Labels to assign to the mail. Pre-existing labels are unassigned. | [optional] **read** | **bool** | Whether the mail is flagged as read | [optional] +**labels** | **int[]** | Labels to assign to the mail. Pre-existing labels are unassigned. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/PutFleetsFleetIdMembersMemberIdMovement.md b/docs/Model/PutFleetsFleetIdMembersMemberIdMovement.md index d8062d4..a3176d6 100644 --- a/docs/Model/PutFleetsFleetIdMembersMemberIdMovement.md +++ b/docs/Model/PutFleetsFleetIdMembersMemberIdMovement.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**role** | **string** | - If a character is moved to the `fleet_commander` role, neither `wing_id` or `squad_id` should be specified - If a character is moved to the `wing_commander` role, only `wing_id` should be specified - If a character is moved to the `squad_commander` role, both `wing_id` and `squad_id` should be specified - If a character is moved to the `squad_member` role, both `wing_id` and `squad_id` should be specified | -**squadId** | **int** | squad_id integer | [optional] +**role** | **string** | If a character is moved to the `fleet_commander` role, neither `wing_id` or `squad_id` should be specified. If a character is moved to the `wing_commander` role, only `wing_id` should be specified. If a character is moved to the `squad_commander` role, both `wing_id` and `squad_id` should be specified. If a character is moved to the `squad_member` role, both `wing_id` and `squad_id` should be specified. | **wingId** | **int** | wing_id integer | [optional] +**squadId** | **int** | squad_id integer | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model/PutFleetsFleetIdNewSettings.md b/docs/Model/PutFleetsFleetIdNewSettings.md index 70abdcf..c259881 100644 --- a/docs/Model/PutFleetsFleetIdNewSettings.md +++ b/docs/Model/PutFleetsFleetIdNewSettings.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**isFreeMove** | **bool** | Should free-move be enabled in the fleet | [optional] **motd** | **string** | New fleet MOTD in CCP flavoured HTML | [optional] +**isFreeMove** | **bool** | Should free-move be enabled in the fleet | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/phpunit.xml.dist b/phpunit.xml.dist index a1cbd32..2ccbacd 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -14,8 +14,8 @@ - ./src/Api - ./src/Models + ./src/nullx27/ESI/Api + ./src/nullx27/ESI/Models diff --git a/src/ApiException.php b/src/ApiException.php index c3cfb4a..6f37f78 100644 --- a/src/ApiException.php +++ b/src/ApiException.php @@ -4,7 +4,7 @@ * PHP version 5 * * @category Class - * @package nullx27\ESI + * @package nullx27ESI * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -14,10 +14,10 @@ * * An OpenAPI for EVE Online * - * OpenAPI spec version: 0.4.9.dev1 + * OpenAPI spec version: 0.7.3 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * + * Swagger Codegen version: 2.3.1-SNAPSHOT */ /** @@ -26,7 +26,7 @@ * Do not edit the class manually. */ -namespace nullx27\ESI; +namespace nullx27ESI; use \Exception; @@ -34,7 +34,7 @@ * ApiException Class Doc Comment * * @category Class - * @package nullx27\ESI + * @package nullx27ESI * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -51,7 +51,7 @@ class ApiException extends Exception /** * The HTTP header of the server response. * - * @var string[] + * @var string[]|null */ protected $responseHeaders; @@ -65,12 +65,12 @@ class ApiException extends Exception /** * Constructor * - * @param string $message Error message - * @param int $code HTTP status code - * @param string $responseHeaders HTTP response header - * @param mixed $responseBody HTTP body of the server response either as Json or string + * @param string $message Error message + * @param int $code HTTP status code + * @param string[]|null $responseHeaders HTTP response header + * @param mixed $responseBody HTTP decoded body of the server response either as \stdClass or string */ - public function __construct($message = "", $code = 0, $responseHeaders = null, $responseBody = null) + public function __construct($message = "", $code = 0, $responseHeaders = [], $responseBody = null) { parent::__construct($message, $code); $this->responseHeaders = $responseHeaders; @@ -80,7 +80,7 @@ public function __construct($message = "", $code = 0, $responseHeaders = null, $ /** * Gets the HTTP response header * - * @return string HTTP response header + * @return string[]|null HTTP response header */ public function getResponseHeaders() { @@ -90,7 +90,7 @@ public function getResponseHeaders() /** * Gets the HTTP body of the server response either as Json or string * - * @return mixed HTTP body of the server response either as Json or string + * @return mixed HTTP body of the server response either as \stdClass or string */ public function getResponseBody() { diff --git a/src/Configuration.php b/src/Configuration.php index 63967d4..153e1a7 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -4,7 +4,7 @@ * PHP version 5 * * @category Class - * @package nullx27\ESI + * @package nullx27ESI * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -14,10 +14,10 @@ * * An OpenAPI for EVE Online * - * OpenAPI spec version: 0.4.9.dev1 + * OpenAPI spec version: 0.7.3 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * + * Swagger Codegen version: 2.3.1-SNAPSHOT */ /** @@ -26,20 +26,20 @@ * Do not edit the class manually. */ -namespace nullx27\ESI; +namespace nullx27ESI; /** * Configuration Class Doc Comment * PHP version 5 * * @category Class - * @package nullx27\ESI + * @package nullx27ESI * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ class Configuration { - private static $defaultConfiguration = null; + private static $defaultConfiguration; /** * Associate array to store API key(s) @@ -76,13 +76,6 @@ class Configuration */ protected $password = ''; - /** - * The default header(s) - * - * @var array - */ - protected $defaultHeaders = []; - /** * The host * @@ -90,19 +83,12 @@ class Configuration */ protected $host = 'https://esi.tech.ccp.is/latest'; - /** - * Timeout (second) of the HTTP request, by default set to 0, no timeout - * - * @var string - */ - protected $curlTimeout = 0; - /** * User agent of the HTTP request, set to "PHP-Swagger" by default * * @var string */ - protected $userAgent = "Swagger-Codegen/1.0/php"; + protected $userAgent = 'Swagger-Codegen/1.0/php'; /** * Debug switch (default set to false) @@ -125,15 +111,6 @@ class Configuration */ protected $tempFolderPath; - /** - * Indicates if SSL verification should be enabled or disabled. - * - * This is useful if the host uses a self-signed SSL certificate. - * - * @var boolean True if the certificate should be validated, false otherwise. - */ - protected $sslVerification = true; - /** * Constructor */ @@ -148,7 +125,7 @@ public function __construct() * @param string $apiKeyIdentifier API key identifier (authentication scheme) * @param string $key API key or token * - * @return Configuration + * @return $this */ public function setApiKey($apiKeyIdentifier, $key) { @@ -174,7 +151,7 @@ public function getApiKey($apiKeyIdentifier) * @param string $apiKeyIdentifier API key identifier (authentication scheme) * @param string $prefix API key prefix, e.g. Bearer * - * @return Configuration + * @return $this */ public function setApiKeyPrefix($apiKeyIdentifier, $prefix) { @@ -199,7 +176,7 @@ public function getApiKeyPrefix($apiKeyIdentifier) * * @param string $accessToken Token for OAuth * - * @return Configuration + * @return $this */ public function setAccessToken($accessToken) { @@ -222,7 +199,7 @@ public function getAccessToken() * * @param string $username Username for HTTP basic authentication * - * @return Configuration + * @return $this */ public function setUsername($username) { @@ -245,7 +222,7 @@ public function getUsername() * * @param string $password Password for HTTP basic authentication * - * @return Configuration + * @return $this */ public function setPassword($password) { @@ -263,52 +240,12 @@ public function getPassword() return $this->password; } - /** - * Adds a default header - * - * @param string $headerName header name (e.g. Token) - * @param string $headerValue header value (e.g. 1z8wp3) - * - * @return Configuration - */ - public function addDefaultHeader($headerName, $headerValue) - { - if (!is_string($headerName)) { - throw new \InvalidArgumentException('Header name must be a string.'); - } - - $this->defaultHeaders[$headerName] = $headerValue; - return $this; - } - - /** - * Gets the default header - * - * @return array An array of default header(s) - */ - public function getDefaultHeaders() - { - return $this->defaultHeaders; - } - - /** - * Deletes a default header - * - * @param string $headerName the header to delete - * - * @return Configuration - */ - public function deleteDefaultHeader($headerName) - { - unset($this->defaultHeaders[$headerName]); - } - /** * Sets the host * * @param string $host Host * - * @return Configuration + * @return $this */ public function setHost($host) { @@ -331,7 +268,8 @@ public function getHost() * * @param string $userAgent the user agent of the api client * - * @return Configuration + * @throws \InvalidArgumentException + * @return $this */ public function setUserAgent($userAgent) { @@ -353,39 +291,12 @@ public function getUserAgent() return $this->userAgent; } - /** - * Sets the HTTP timeout value - * - * @param integer $seconds Number of seconds before timing out [set to 0 for no timeout] - * - * @return Configuration - */ - public function setCurlTimeout($seconds) - { - if (!is_numeric($seconds) || $seconds < 0) { - throw new \InvalidArgumentException('Timeout value must be numeric and a non-negative number.'); - } - - $this->curlTimeout = $seconds; - return $this; - } - - /** - * Gets the HTTP timeout value - * - * @return string HTTP timeout value - */ - public function getCurlTimeout() - { - return $this->curlTimeout; - } - /** * Sets debug flag * * @param bool $debug Debug flag * - * @return Configuration + * @return $this */ public function setDebug($debug) { @@ -408,7 +319,7 @@ public function getDebug() * * @param string $debugFile Debug file * - * @return Configuration + * @return $this */ public function setDebugFile($debugFile) { @@ -431,7 +342,7 @@ public function getDebugFile() * * @param string $tempFolderPath Temp folder path * - * @return Configuration + * @return $this */ public function setTempFolderPath($tempFolderPath) { @@ -449,29 +360,6 @@ public function getTempFolderPath() return $this->tempFolderPath; } - /** - * Sets if SSL verification should be enabled or disabled - * - * @param boolean $sslVerification True if the certificate should be validated, false otherwise - * - * @return Configuration - */ - public function setSSLVerification($sslVerification) - { - $this->sslVerification = $sslVerification; - return $this; - } - - /** - * Gets if SSL verification should be enabled or disabled - * - * @return boolean True if the certificate should be validated, false otherwise - */ - public function getSSLVerification() - { - return $this->sslVerification; - } - /** * Gets the default configuration instance * @@ -505,13 +393,38 @@ public static function setDefaultConfiguration(Configuration $config) */ public static function toDebugReport() { - $report = 'PHP SDK (nullx27\ESI) Debug Report:' . PHP_EOL; + $report = 'PHP SDK (nullx27ESI) Debug Report:' . PHP_EOL; $report .= ' OS: ' . php_uname() . PHP_EOL; - $report .= ' PHP Version: ' . phpversion() . PHP_EOL; - $report .= ' OpenAPI Spec Version: 0.4.9.dev1' . PHP_EOL; + $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; + $report .= ' OpenAPI Spec Version: 0.7.3' . PHP_EOL; $report .= ' SDK Package Version: 1.0' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report; } + + /** + * Get API key (with prefix if set) + * + * @param string $apiKeyIdentifier name of apikey + * + * @return string API key with the prefix + */ + public function getApiKeyWithPrefix($apiKeyIdentifier) + { + $prefix = $this->getApiKeyPrefix($apiKeyIdentifier); + $apiKey = $this->getApiKey($apiKeyIdentifier); + + if ($apiKey === null) { + return null; + } + + if ($prefix === null) { + $keyWithPrefix = $apiKey; + } else { + $keyWithPrefix = $prefix . ' ' . $apiKey; + } + + return $keyWithPrefix; + } } diff --git a/src/HeaderSelector.php b/src/HeaderSelector.php new file mode 100644 index 0000000..e2ab3f9 --- /dev/null +++ b/src/HeaderSelector.php @@ -0,0 +1,110 @@ +selectAcceptHeader($accept); + if ($accept !== null) { + $headers['Accept'] = $accept; + } + + $headers['Content-Type'] = $this->selectContentTypeHeader($contentTypes); + return $headers; + } + + /** + * @param string[] $accept + * @return array + */ + public function selectHeadersForMultipart($accept) + { + $headers = $this->selectHeaders($accept, []); + + unset($headers['Content-Type']); + return $headers; + } + + /** + * Return the header 'Accept' based on an array of Accept provided + * + * @param string[] $accept Array of header + * + * @return string Accept (e.g. application/json) + */ + private function selectAcceptHeader($accept) + { + if (count($accept) === 0 || (count($accept) === 1 && $accept[0] === '')) { + return null; + } elseif (preg_grep("/application\/json/i", $accept)) { + return 'application/json'; + } else { + return implode(',', $accept); + } + } + + /** + * Return the content type based on an array of content-type provided + * + * @param string[] $contentType Array fo content-type + * + * @return string Content-Type (e.g. application/json) + */ + private function selectContentTypeHeader($contentType) + { + if (count($contentType) === 0 || (count($contentType) === 1 && $contentType[0] === '')) { + return 'application/json'; + } elseif (preg_grep("/application\/json/i", $contentType)) { + return 'application/json'; + } else { + return implode(',', $contentType); + } + } +} + diff --git a/src/ObjectSerializer.php b/src/ObjectSerializer.php index eac4a48..eee96b6 100644 --- a/src/ObjectSerializer.php +++ b/src/ObjectSerializer.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package nullx27\ESI + * @package nullx27ESI * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -15,10 +15,10 @@ * * An OpenAPI for EVE Online * - * OpenAPI spec version: 0.4.9.dev1 + * OpenAPI spec version: 0.7.3 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * + * Swagger Codegen version: 2.3.1-SNAPSHOT */ /** @@ -27,13 +27,13 @@ * Do not edit the class manually. */ -namespace nullx27\ESI; +namespace nullx27ESI; /** * ObjectSerializer Class Doc Comment * * @category Class - * @package nullx27\ESI + * @package nullx27ESI * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -42,16 +42,18 @@ class ObjectSerializer /** * Serialize data * - * @param mixed $data the data to serialize + * @param mixed $data the data to serialize + * @param string $type the SwaggerType of the data + * @param string $format the format of the Swagger type of the data * * @return string|object serialized form of $data */ - public static function sanitizeForSerialization($data) + public static function sanitizeForSerialization($data, $type = null, $format = null) { if (is_scalar($data) || null === $data) { return $data; } elseif ($data instanceof \DateTime) { - return $data->format(\DateTime::ATOM); + return ($format === 'date') ? $data->format('Y-m-d') : $data->format(\DateTime::ATOM); } elseif (is_array($data)) { foreach ($data as $property => $value) { $data[$property] = self::sanitizeForSerialization($value); @@ -59,10 +61,19 @@ public static function sanitizeForSerialization($data) return $data; } elseif (is_object($data)) { $values = []; - foreach (array_keys($data::swaggerTypes()) as $property) { + $formats = $data::swaggerFormats(); + foreach ($data::swaggerTypes() as $property => $swaggerType) { $getter = $data::getters()[$property]; - if ($data->$getter() !== null) { - $values[$data::attributeMap()[$property]] = self::sanitizeForSerialization($data->$getter()); + $value = $data->$getter(); + if ($value !== null + && !in_array($swaggerType, ['DateTime', 'bool', 'boolean', 'byte', 'double', 'float', 'int', 'integer', 'mixed', 'number', 'object', 'string', 'void'], true) + && method_exists($swaggerType, 'getAllowableEnumValues') + && !in_array($value, $swaggerType::getAllowableEnumValues())) { + $imploded = implode("', '", $swaggerType::getAllowableEnumValues()); + throw new \InvalidArgumentException("Invalid value for enum '$swaggerType', must be one of: '$imploded'"); + } + if ($value !== null) { + $values[$data::attributeMap()[$property]] = self::sanitizeForSerialization($value, $swaggerType, $formats[$property]); } } return (object)$values; @@ -79,7 +90,7 @@ public static function sanitizeForSerialization($data) * * @return string the sanitized filename */ - public function sanitizeFilename($filename) + public static function sanitizeFilename($filename) { if (preg_match("/.*[\/\\\\](.*)$/", $filename, $match)) { return $match[1]; @@ -96,9 +107,9 @@ public function sanitizeFilename($filename) * * @return string the serialized object */ - public function toPathValue($value) + public static function toPathValue($value) { - return rawurlencode($this->toString($value)); + return rawurlencode(self::toString($value)); } /** @@ -111,12 +122,12 @@ public function toPathValue($value) * * @return string the serialized object */ - public function toQueryValue($object) + public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); } else { - return $this->toString($object); + return self::toString($object); } } @@ -129,9 +140,9 @@ public function toQueryValue($object) * * @return string the header string */ - public function toHeaderValue($value) + public static function toHeaderValue($value) { - return $this->toString($value); + return self::toString($value); } /** @@ -143,12 +154,12 @@ public function toHeaderValue($value) * * @return string the form string */ - public function toFormValue($value) + public static function toFormValue($value) { if ($value instanceof \SplFileObject) { return $value->getRealPath(); } else { - return $this->toString($value); + return self::toString($value); } } @@ -161,7 +172,7 @@ public function toFormValue($value) * * @return string the header string */ - public function toString($value) + public static function toString($value) { if ($value instanceof \DateTime) { // datetime in ISO8601 format return $value->format(\DateTime::ATOM); @@ -180,7 +191,7 @@ public function toString($value) * * @return string */ - public function serializeCollection(array $collection, $collectionFormat, $allowCollectionFormatMulti = false) + public static function serializeCollection(array $collection, $collectionFormat, $allowCollectionFormatMulti = false) { if ($allowCollectionFormatMulti && ('multi' === $collectionFormat)) { // http_build_query() almost does the job for us. We just @@ -255,25 +266,34 @@ public static function deserialize($data, $class, $httpHeaders = null) settype($data, $class); return $data; } elseif ($class === '\SplFileObject') { + /** @var \Psr\Http\Message\StreamInterface $data */ + // determine file name if (array_key_exists('Content-Disposition', $httpHeaders) && preg_match('/inline; filename=[\'"]?([^\'"\s]+)[\'"]?$/i', $httpHeaders['Content-Disposition'], $match)) { - $filename = Configuration::getDefaultConfiguration()->getTempFolderPath() . sanitizeFilename($match[1]); + $filename = Configuration::getDefaultConfiguration()->getTempFolderPath() . self::sanitizeFilename($match[1]); } else { $filename = tempnam(Configuration::getDefaultConfiguration()->getTempFolderPath(), ''); } - $deserialized = new \SplFileObject($filename, "w"); - $byte_written = $deserialized->fwrite($data); - if (Configuration::getDefaultConfiguration()->getDebug()) { - error_log("[DEBUG] Written $byte_written byte to $filename. Please move the file to a proper folder or delete the temp file after processing.".PHP_EOL, 3, Configuration::getDefaultConfiguration()->getDebugFile()); + + $file = fopen($filename, 'w'); + while ($chunk = $data->read(200)) { + fwrite($file, $chunk); } + fclose($file); - return $deserialized; + return new \SplFileObject($filename, 'r'); + } elseif (method_exists($class, 'getAllowableEnumValues')) { + if (!in_array($data, $class::getAllowableEnumValues())) { + $imploded = implode("', '", $class::getAllowableEnumValues()); + throw new \InvalidArgumentException("Invalid value for enum '$class', must be one of: '$imploded'"); + } + return $data; } else { // If a discriminator is defined and points to a valid subclass, use it. $discriminator = $class::DISCRIMINATOR; if (!empty($discriminator) && isset($data->{$discriminator}) && is_string($data->{$discriminator})) { - $subclass = '\nullx27\ESI\Model\\' . $data->{$discriminator}; + $subclass = '\nullx27ESI\Model\\' . $data->{$discriminator}; if (is_subclass_of($subclass, $class)) { $class = $subclass; } diff --git a/src/nullx27/ESI/Api/AllianceApi.php b/src/nullx27/ESI/Api/AllianceApi.php new file mode 100644 index 0000000..15b760a --- /dev/null +++ b/src/nullx27/ESI/Api/AllianceApi.php @@ -0,0 +1,1603 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation getAlliances + * + * List all alliances + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return int[] + */ + public function getAlliances($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getAlliancesWithHttpInfo($datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getAlliancesWithHttpInfo + * + * List all alliances + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of int[], HTTP status code, HTTP response headers (array of strings) + */ + public function getAlliancesWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getAlliancesRequest($datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'int[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getAlliancesAsync + * + * List all alliances + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAlliancesAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getAlliancesAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getAlliancesAsyncWithHttpInfo + * + * List all alliances + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAlliancesAsyncWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getAlliancesRequest($datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getAlliances' + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getAlliancesRequest($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + + $resourcePath = '/alliances/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getAlliancesAllianceId + * + * Get alliance information + * + * @param int $allianceId An EVE alliance ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetAlliancesAllianceIdOk + */ + public function getAlliancesAllianceId($allianceId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getAlliancesAllianceIdWithHttpInfo($allianceId, $datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getAlliancesAllianceIdWithHttpInfo + * + * Get alliance information + * + * @param int $allianceId An EVE alliance ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetAlliancesAllianceIdOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getAlliancesAllianceIdWithHttpInfo($allianceId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetAlliancesAllianceIdOk'; + $request = $this->getAlliancesAllianceIdRequest($allianceId, $datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetAlliancesAllianceIdOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetAlliancesAllianceIdNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getAlliancesAllianceIdAsync + * + * Get alliance information + * + * @param int $allianceId An EVE alliance ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAlliancesAllianceIdAsync($allianceId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getAlliancesAllianceIdAsyncWithHttpInfo($allianceId, $datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getAlliancesAllianceIdAsyncWithHttpInfo + * + * Get alliance information + * + * @param int $allianceId An EVE alliance ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAlliancesAllianceIdAsyncWithHttpInfo($allianceId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetAlliancesAllianceIdOk'; + $request = $this->getAlliancesAllianceIdRequest($allianceId, $datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getAlliancesAllianceId' + * + * @param int $allianceId An EVE alliance ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getAlliancesAllianceIdRequest($allianceId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'allianceId' is set + if ($allianceId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $allianceId when calling getAlliancesAllianceId' + ); + } + if ($allianceId < 1) { + throw new \InvalidArgumentException('invalid value for "$allianceId" when calling AllianceApi.getAlliancesAllianceId, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/alliances/{alliance_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($allianceId !== null) { + $resourcePath = str_replace( + '{' . 'alliance_id' . '}', + ObjectSerializer::toPathValue($allianceId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getAlliancesAllianceIdCorporations + * + * List alliance's corporations + * + * @param int $allianceId An EVE alliance ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return int[] + */ + public function getAlliancesAllianceIdCorporations($allianceId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getAlliancesAllianceIdCorporationsWithHttpInfo($allianceId, $datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getAlliancesAllianceIdCorporationsWithHttpInfo + * + * List alliance's corporations + * + * @param int $allianceId An EVE alliance ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of int[], HTTP status code, HTTP response headers (array of strings) + */ + public function getAlliancesAllianceIdCorporationsWithHttpInfo($allianceId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getAlliancesAllianceIdCorporationsRequest($allianceId, $datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'int[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getAlliancesAllianceIdCorporationsAsync + * + * List alliance's corporations + * + * @param int $allianceId An EVE alliance ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAlliancesAllianceIdCorporationsAsync($allianceId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getAlliancesAllianceIdCorporationsAsyncWithHttpInfo($allianceId, $datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getAlliancesAllianceIdCorporationsAsyncWithHttpInfo + * + * List alliance's corporations + * + * @param int $allianceId An EVE alliance ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAlliancesAllianceIdCorporationsAsyncWithHttpInfo($allianceId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getAlliancesAllianceIdCorporationsRequest($allianceId, $datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getAlliancesAllianceIdCorporations' + * + * @param int $allianceId An EVE alliance ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getAlliancesAllianceIdCorporationsRequest($allianceId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'allianceId' is set + if ($allianceId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $allianceId when calling getAlliancesAllianceIdCorporations' + ); + } + if ($allianceId < 1) { + throw new \InvalidArgumentException('invalid value for "$allianceId" when calling AllianceApi.getAlliancesAllianceIdCorporations, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/alliances/{alliance_id}/corporations/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($allianceId !== null) { + $resourcePath = str_replace( + '{' . 'alliance_id' . '}', + ObjectSerializer::toPathValue($allianceId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getAlliancesAllianceIdIcons + * + * Get alliance icon + * + * @param int $allianceId An EVE alliance ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetAlliancesAllianceIdIconsOk + */ + public function getAlliancesAllianceIdIcons($allianceId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getAlliancesAllianceIdIconsWithHttpInfo($allianceId, $datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getAlliancesAllianceIdIconsWithHttpInfo + * + * Get alliance icon + * + * @param int $allianceId An EVE alliance ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetAlliancesAllianceIdIconsOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getAlliancesAllianceIdIconsWithHttpInfo($allianceId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetAlliancesAllianceIdIconsOk'; + $request = $this->getAlliancesAllianceIdIconsRequest($allianceId, $datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetAlliancesAllianceIdIconsOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetAlliancesAllianceIdIconsNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getAlliancesAllianceIdIconsAsync + * + * Get alliance icon + * + * @param int $allianceId An EVE alliance ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAlliancesAllianceIdIconsAsync($allianceId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getAlliancesAllianceIdIconsAsyncWithHttpInfo($allianceId, $datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getAlliancesAllianceIdIconsAsyncWithHttpInfo + * + * Get alliance icon + * + * @param int $allianceId An EVE alliance ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAlliancesAllianceIdIconsAsyncWithHttpInfo($allianceId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetAlliancesAllianceIdIconsOk'; + $request = $this->getAlliancesAllianceIdIconsRequest($allianceId, $datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getAlliancesAllianceIdIcons' + * + * @param int $allianceId An EVE alliance ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getAlliancesAllianceIdIconsRequest($allianceId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'allianceId' is set + if ($allianceId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $allianceId when calling getAlliancesAllianceIdIcons' + ); + } + if ($allianceId < 1) { + throw new \InvalidArgumentException('invalid value for "$allianceId" when calling AllianceApi.getAlliancesAllianceIdIcons, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/alliances/{alliance_id}/icons/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($allianceId !== null) { + $resourcePath = str_replace( + '{' . 'alliance_id' . '}', + ObjectSerializer::toPathValue($allianceId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getAlliancesNames + * + * Get alliance names + * + * @param int[] $allianceIds A comma separated list of alliance IDs (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetAlliancesNames200Ok[] + */ + public function getAlliancesNames($allianceIds, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getAlliancesNamesWithHttpInfo($allianceIds, $datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getAlliancesNamesWithHttpInfo + * + * Get alliance names + * + * @param int[] $allianceIds A comma separated list of alliance IDs (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetAlliancesNames200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getAlliancesNamesWithHttpInfo($allianceIds, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetAlliancesNames200Ok[]'; + $request = $this->getAlliancesNamesRequest($allianceIds, $datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetAlliancesNames200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getAlliancesNamesAsync + * + * Get alliance names + * + * @param int[] $allianceIds A comma separated list of alliance IDs (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAlliancesNamesAsync($allianceIds, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getAlliancesNamesAsyncWithHttpInfo($allianceIds, $datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getAlliancesNamesAsyncWithHttpInfo + * + * Get alliance names + * + * @param int[] $allianceIds A comma separated list of alliance IDs (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAlliancesNamesAsyncWithHttpInfo($allianceIds, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetAlliancesNames200Ok[]'; + $request = $this->getAlliancesNamesRequest($allianceIds, $datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getAlliancesNames' + * + * @param int[] $allianceIds A comma separated list of alliance IDs (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getAlliancesNamesRequest($allianceIds, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'allianceIds' is set + if ($allianceIds === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $allianceIds when calling getAlliancesNames' + ); + } + if (count($allianceIds) > 100) { + throw new \InvalidArgumentException('invalid value for "$allianceIds" when calling AllianceApi.getAlliancesNames, number of items must be less than or equal to 100.'); + } + if (count($allianceIds) < 1) { + throw new \InvalidArgumentException('invalid value for "$allianceIds" when calling AllianceApi.getAlliancesNames, number of items must be greater than or equal to 1.'); + } + + + $resourcePath = '/alliances/names/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if (is_array($allianceIds)) { + $allianceIds = ObjectSerializer::serializeCollection($allianceIds, 'csv', true); + } + if ($allianceIds !== null) { + $queryParams['alliance_ids'] = ObjectSerializer::toQueryValue($allianceIds); + } + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } +} diff --git a/src/nullx27/ESI/Api/AssetsApi.php b/src/nullx27/ESI/Api/AssetsApi.php new file mode 100644 index 0000000..64e97ec --- /dev/null +++ b/src/nullx27/ESI/Api/AssetsApi.php @@ -0,0 +1,2109 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation getCharactersCharacterIdAssets + * + * Get character assets + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdAssets200Ok[] + */ + public function getCharactersCharacterIdAssets($characterId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdAssetsWithHttpInfo($characterId, $datasource, $page, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdAssetsWithHttpInfo + * + * Get character assets + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdAssets200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdAssetsWithHttpInfo($characterId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdAssets200Ok[]'; + $request = $this->getCharactersCharacterIdAssetsRequest($characterId, $datasource, $page, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdAssets200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdAssetsAsync + * + * Get character assets + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdAssetsAsync($characterId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdAssetsAsyncWithHttpInfo($characterId, $datasource, $page, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdAssetsAsyncWithHttpInfo + * + * Get character assets + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdAssetsAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdAssets200Ok[]'; + $request = $this->getCharactersCharacterIdAssetsRequest($characterId, $datasource, $page, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdAssets' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdAssetsRequest($characterId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdAssets' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling AssetsApi.getCharactersCharacterIdAssets, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/assets/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($page !== null) { + $queryParams['page'] = ObjectSerializer::toQueryValue($page); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsCorporationIdAssets + * + * Get corporation assets + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdAssets200Ok[] + */ + public function getCorporationsCorporationIdAssets($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdAssetsWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdAssetsWithHttpInfo + * + * Get corporation assets + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdAssets200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdAssetsWithHttpInfo($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdAssets200Ok[]'; + $request = $this->getCorporationsCorporationIdAssetsRequest($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdAssets200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdAssetsAsync + * + * Get corporation assets + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdAssetsAsync($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdAssetsAsyncWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdAssetsAsyncWithHttpInfo + * + * Get corporation assets + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdAssetsAsyncWithHttpInfo($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdAssets200Ok[]'; + $request = $this->getCorporationsCorporationIdAssetsRequest($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationIdAssets' + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdAssetsRequest($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationIdAssets' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling AssetsApi.getCorporationsCorporationIdAssets, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporations/{corporation_id}/assets/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($page !== null) { + $queryParams['page'] = ObjectSerializer::toQueryValue($page); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation postCharactersCharacterIdAssetsLocations + * + * Get character asset locations + * + * @param int $characterId An EVE character ID (required) + * @param int[] $itemIds A list of item ids (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdAssetsLocations200Ok[] + */ + public function postCharactersCharacterIdAssetsLocations($characterId, $itemIds, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->postCharactersCharacterIdAssetsLocationsWithHttpInfo($characterId, $itemIds, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation postCharactersCharacterIdAssetsLocationsWithHttpInfo + * + * Get character asset locations + * + * @param int $characterId An EVE character ID (required) + * @param int[] $itemIds A list of item ids (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdAssetsLocations200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function postCharactersCharacterIdAssetsLocationsWithHttpInfo($characterId, $itemIds, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdAssetsLocations200Ok[]'; + $request = $this->postCharactersCharacterIdAssetsLocationsRequest($characterId, $itemIds, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdAssetsLocations200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation postCharactersCharacterIdAssetsLocationsAsync + * + * Get character asset locations + * + * @param int $characterId An EVE character ID (required) + * @param int[] $itemIds A list of item ids (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postCharactersCharacterIdAssetsLocationsAsync($characterId, $itemIds, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->postCharactersCharacterIdAssetsLocationsAsyncWithHttpInfo($characterId, $itemIds, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation postCharactersCharacterIdAssetsLocationsAsyncWithHttpInfo + * + * Get character asset locations + * + * @param int $characterId An EVE character ID (required) + * @param int[] $itemIds A list of item ids (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postCharactersCharacterIdAssetsLocationsAsyncWithHttpInfo($characterId, $itemIds, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdAssetsLocations200Ok[]'; + $request = $this->postCharactersCharacterIdAssetsLocationsRequest($characterId, $itemIds, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'postCharactersCharacterIdAssetsLocations' + * + * @param int $characterId An EVE character ID (required) + * @param int[] $itemIds A list of item ids (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function postCharactersCharacterIdAssetsLocationsRequest($characterId, $itemIds, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling postCharactersCharacterIdAssetsLocations' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling AssetsApi.postCharactersCharacterIdAssetsLocations, must be bigger than or equal to 1.'); + } + + // verify the required parameter 'itemIds' is set + if ($itemIds === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $itemIds when calling postCharactersCharacterIdAssetsLocations' + ); + } + + $resourcePath = '/characters/{character_id}/assets/locations/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + if (isset($itemIds)) { + $_tempBody = $itemIds; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation postCharactersCharacterIdAssetsNames + * + * Get character asset names + * + * @param int $characterId An EVE character ID (required) + * @param int[] $itemIds A list of item ids (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdAssetsNames200Ok[] + */ + public function postCharactersCharacterIdAssetsNames($characterId, $itemIds, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->postCharactersCharacterIdAssetsNamesWithHttpInfo($characterId, $itemIds, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation postCharactersCharacterIdAssetsNamesWithHttpInfo + * + * Get character asset names + * + * @param int $characterId An EVE character ID (required) + * @param int[] $itemIds A list of item ids (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdAssetsNames200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function postCharactersCharacterIdAssetsNamesWithHttpInfo($characterId, $itemIds, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdAssetsNames200Ok[]'; + $request = $this->postCharactersCharacterIdAssetsNamesRequest($characterId, $itemIds, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdAssetsNames200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation postCharactersCharacterIdAssetsNamesAsync + * + * Get character asset names + * + * @param int $characterId An EVE character ID (required) + * @param int[] $itemIds A list of item ids (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postCharactersCharacterIdAssetsNamesAsync($characterId, $itemIds, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->postCharactersCharacterIdAssetsNamesAsyncWithHttpInfo($characterId, $itemIds, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation postCharactersCharacterIdAssetsNamesAsyncWithHttpInfo + * + * Get character asset names + * + * @param int $characterId An EVE character ID (required) + * @param int[] $itemIds A list of item ids (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postCharactersCharacterIdAssetsNamesAsyncWithHttpInfo($characterId, $itemIds, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdAssetsNames200Ok[]'; + $request = $this->postCharactersCharacterIdAssetsNamesRequest($characterId, $itemIds, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'postCharactersCharacterIdAssetsNames' + * + * @param int $characterId An EVE character ID (required) + * @param int[] $itemIds A list of item ids (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function postCharactersCharacterIdAssetsNamesRequest($characterId, $itemIds, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling postCharactersCharacterIdAssetsNames' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling AssetsApi.postCharactersCharacterIdAssetsNames, must be bigger than or equal to 1.'); + } + + // verify the required parameter 'itemIds' is set + if ($itemIds === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $itemIds when calling postCharactersCharacterIdAssetsNames' + ); + } + + $resourcePath = '/characters/{character_id}/assets/names/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + if (isset($itemIds)) { + $_tempBody = $itemIds; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation postCorporationsCorporationIdAssetsLocations + * + * Get corporation asset locations + * + * @param int $corporationId An EVE corporation ID (required) + * @param int[] $itemIds A list of item ids (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\PostCorporationsCorporationIdAssetsLocations200Ok[] + */ + public function postCorporationsCorporationIdAssetsLocations($corporationId, $itemIds, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->postCorporationsCorporationIdAssetsLocationsWithHttpInfo($corporationId, $itemIds, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation postCorporationsCorporationIdAssetsLocationsWithHttpInfo + * + * Get corporation asset locations + * + * @param int $corporationId An EVE corporation ID (required) + * @param int[] $itemIds A list of item ids (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\PostCorporationsCorporationIdAssetsLocations200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function postCorporationsCorporationIdAssetsLocationsWithHttpInfo($corporationId, $itemIds, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\PostCorporationsCorporationIdAssetsLocations200Ok[]'; + $request = $this->postCorporationsCorporationIdAssetsLocationsRequest($corporationId, $itemIds, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\PostCorporationsCorporationIdAssetsLocations200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation postCorporationsCorporationIdAssetsLocationsAsync + * + * Get corporation asset locations + * + * @param int $corporationId An EVE corporation ID (required) + * @param int[] $itemIds A list of item ids (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postCorporationsCorporationIdAssetsLocationsAsync($corporationId, $itemIds, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->postCorporationsCorporationIdAssetsLocationsAsyncWithHttpInfo($corporationId, $itemIds, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation postCorporationsCorporationIdAssetsLocationsAsyncWithHttpInfo + * + * Get corporation asset locations + * + * @param int $corporationId An EVE corporation ID (required) + * @param int[] $itemIds A list of item ids (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postCorporationsCorporationIdAssetsLocationsAsyncWithHttpInfo($corporationId, $itemIds, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\PostCorporationsCorporationIdAssetsLocations200Ok[]'; + $request = $this->postCorporationsCorporationIdAssetsLocationsRequest($corporationId, $itemIds, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'postCorporationsCorporationIdAssetsLocations' + * + * @param int $corporationId An EVE corporation ID (required) + * @param int[] $itemIds A list of item ids (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function postCorporationsCorporationIdAssetsLocationsRequest($corporationId, $itemIds, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling postCorporationsCorporationIdAssetsLocations' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling AssetsApi.postCorporationsCorporationIdAssetsLocations, must be bigger than or equal to 1.'); + } + + // verify the required parameter 'itemIds' is set + if ($itemIds === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $itemIds when calling postCorporationsCorporationIdAssetsLocations' + ); + } + + $resourcePath = '/corporations/{corporation_id}/assets/locations/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + if (isset($itemIds)) { + $_tempBody = $itemIds; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation postCorporationsCorporationIdAssetsNames + * + * Get coporation asset names + * + * @param int $corporationId An EVE corporation ID (required) + * @param int[] $itemIds A list of item ids (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\PostCorporationsCorporationIdAssetsNames200Ok[] + */ + public function postCorporationsCorporationIdAssetsNames($corporationId, $itemIds, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->postCorporationsCorporationIdAssetsNamesWithHttpInfo($corporationId, $itemIds, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation postCorporationsCorporationIdAssetsNamesWithHttpInfo + * + * Get coporation asset names + * + * @param int $corporationId An EVE corporation ID (required) + * @param int[] $itemIds A list of item ids (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\PostCorporationsCorporationIdAssetsNames200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function postCorporationsCorporationIdAssetsNamesWithHttpInfo($corporationId, $itemIds, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\PostCorporationsCorporationIdAssetsNames200Ok[]'; + $request = $this->postCorporationsCorporationIdAssetsNamesRequest($corporationId, $itemIds, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\PostCorporationsCorporationIdAssetsNames200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation postCorporationsCorporationIdAssetsNamesAsync + * + * Get coporation asset names + * + * @param int $corporationId An EVE corporation ID (required) + * @param int[] $itemIds A list of item ids (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postCorporationsCorporationIdAssetsNamesAsync($corporationId, $itemIds, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->postCorporationsCorporationIdAssetsNamesAsyncWithHttpInfo($corporationId, $itemIds, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation postCorporationsCorporationIdAssetsNamesAsyncWithHttpInfo + * + * Get coporation asset names + * + * @param int $corporationId An EVE corporation ID (required) + * @param int[] $itemIds A list of item ids (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postCorporationsCorporationIdAssetsNamesAsyncWithHttpInfo($corporationId, $itemIds, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\PostCorporationsCorporationIdAssetsNames200Ok[]'; + $request = $this->postCorporationsCorporationIdAssetsNamesRequest($corporationId, $itemIds, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'postCorporationsCorporationIdAssetsNames' + * + * @param int $corporationId An EVE corporation ID (required) + * @param int[] $itemIds A list of item ids (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function postCorporationsCorporationIdAssetsNamesRequest($corporationId, $itemIds, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling postCorporationsCorporationIdAssetsNames' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling AssetsApi.postCorporationsCorporationIdAssetsNames, must be bigger than or equal to 1.'); + } + + // verify the required parameter 'itemIds' is set + if ($itemIds === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $itemIds when calling postCorporationsCorporationIdAssetsNames' + ); + } + + $resourcePath = '/corporations/{corporation_id}/assets/names/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + if (isset($itemIds)) { + $_tempBody = $itemIds; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } +} diff --git a/src/nullx27/ESI/Api/BookmarksApi.php b/src/nullx27/ESI/Api/BookmarksApi.php new file mode 100644 index 0000000..46c5659 --- /dev/null +++ b/src/nullx27/ESI/Api/BookmarksApi.php @@ -0,0 +1,1427 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation getCharactersCharacterIdBookmarks + * + * List bookmarks + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdBookmarks200Ok[] + */ + public function getCharactersCharacterIdBookmarks($characterId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdBookmarksWithHttpInfo($characterId, $datasource, $page, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdBookmarksWithHttpInfo + * + * List bookmarks + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdBookmarks200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdBookmarksWithHttpInfo($characterId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdBookmarks200Ok[]'; + $request = $this->getCharactersCharacterIdBookmarksRequest($characterId, $datasource, $page, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdBookmarks200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdBookmarksAsync + * + * List bookmarks + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdBookmarksAsync($characterId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdBookmarksAsyncWithHttpInfo($characterId, $datasource, $page, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdBookmarksAsyncWithHttpInfo + * + * List bookmarks + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdBookmarksAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdBookmarks200Ok[]'; + $request = $this->getCharactersCharacterIdBookmarksRequest($characterId, $datasource, $page, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdBookmarks' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdBookmarksRequest($characterId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdBookmarks' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling BookmarksApi.getCharactersCharacterIdBookmarks, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/bookmarks/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($page !== null) { + $queryParams['page'] = ObjectSerializer::toQueryValue($page); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCharactersCharacterIdBookmarksFolders + * + * List bookmark folders + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdBookmarksFolders200Ok[] + */ + public function getCharactersCharacterIdBookmarksFolders($characterId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdBookmarksFoldersWithHttpInfo($characterId, $datasource, $page, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdBookmarksFoldersWithHttpInfo + * + * List bookmark folders + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdBookmarksFolders200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdBookmarksFoldersWithHttpInfo($characterId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdBookmarksFolders200Ok[]'; + $request = $this->getCharactersCharacterIdBookmarksFoldersRequest($characterId, $datasource, $page, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdBookmarksFolders200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdBookmarksFoldersAsync + * + * List bookmark folders + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdBookmarksFoldersAsync($characterId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdBookmarksFoldersAsyncWithHttpInfo($characterId, $datasource, $page, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdBookmarksFoldersAsyncWithHttpInfo + * + * List bookmark folders + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdBookmarksFoldersAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdBookmarksFolders200Ok[]'; + $request = $this->getCharactersCharacterIdBookmarksFoldersRequest($characterId, $datasource, $page, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdBookmarksFolders' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdBookmarksFoldersRequest($characterId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdBookmarksFolders' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling BookmarksApi.getCharactersCharacterIdBookmarksFolders, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/bookmarks/folders/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($page !== null) { + $queryParams['page'] = ObjectSerializer::toQueryValue($page); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsCorporationIdBookmarks + * + * List corporation bookmarks + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdBookmarks200Ok[] + */ + public function getCorporationsCorporationIdBookmarks($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdBookmarksWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdBookmarksWithHttpInfo + * + * List corporation bookmarks + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdBookmarks200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdBookmarksWithHttpInfo($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdBookmarks200Ok[]'; + $request = $this->getCorporationsCorporationIdBookmarksRequest($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdBookmarks200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdBookmarksAsync + * + * List corporation bookmarks + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdBookmarksAsync($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdBookmarksAsyncWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdBookmarksAsyncWithHttpInfo + * + * List corporation bookmarks + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdBookmarksAsyncWithHttpInfo($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdBookmarks200Ok[]'; + $request = $this->getCorporationsCorporationIdBookmarksRequest($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationIdBookmarks' + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdBookmarksRequest($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationIdBookmarks' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling BookmarksApi.getCorporationsCorporationIdBookmarks, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporations/{corporation_id}/bookmarks/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($page !== null) { + $queryParams['page'] = ObjectSerializer::toQueryValue($page); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsCorporationIdBookmarksFolders + * + * List corporation bookmark folders + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdBookmarksFolders200Ok[] + */ + public function getCorporationsCorporationIdBookmarksFolders($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdBookmarksFoldersWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdBookmarksFoldersWithHttpInfo + * + * List corporation bookmark folders + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdBookmarksFolders200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdBookmarksFoldersWithHttpInfo($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdBookmarksFolders200Ok[]'; + $request = $this->getCorporationsCorporationIdBookmarksFoldersRequest($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdBookmarksFolders200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdBookmarksFoldersAsync + * + * List corporation bookmark folders + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdBookmarksFoldersAsync($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdBookmarksFoldersAsyncWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdBookmarksFoldersAsyncWithHttpInfo + * + * List corporation bookmark folders + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdBookmarksFoldersAsyncWithHttpInfo($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdBookmarksFolders200Ok[]'; + $request = $this->getCorporationsCorporationIdBookmarksFoldersRequest($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationIdBookmarksFolders' + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdBookmarksFoldersRequest($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationIdBookmarksFolders' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling BookmarksApi.getCorporationsCorporationIdBookmarksFolders, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporations/{corporation_id}/bookmarks/folders/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($page !== null) { + $queryParams['page'] = ObjectSerializer::toQueryValue($page); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } +} diff --git a/src/nullx27/ESI/Api/CalendarApi.php b/src/nullx27/ESI/Api/CalendarApi.php new file mode 100644 index 0000000..b9f472c --- /dev/null +++ b/src/nullx27/ESI/Api/CalendarApi.php @@ -0,0 +1,1434 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation getCharactersCharacterIdCalendar + * + * List calendar event summaries + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $fromEvent The event ID to retrieve events from (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdCalendar200Ok[] + */ + public function getCharactersCharacterIdCalendar($characterId, $datasource = 'tranquility', $fromEvent = null, $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdCalendarWithHttpInfo($characterId, $datasource, $fromEvent, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdCalendarWithHttpInfo + * + * List calendar event summaries + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $fromEvent The event ID to retrieve events from (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdCalendar200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdCalendarWithHttpInfo($characterId, $datasource = 'tranquility', $fromEvent = null, $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdCalendar200Ok[]'; + $request = $this->getCharactersCharacterIdCalendarRequest($characterId, $datasource, $fromEvent, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdCalendar200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdCalendarAsync + * + * List calendar event summaries + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $fromEvent The event ID to retrieve events from (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdCalendarAsync($characterId, $datasource = 'tranquility', $fromEvent = null, $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdCalendarAsyncWithHttpInfo($characterId, $datasource, $fromEvent, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdCalendarAsyncWithHttpInfo + * + * List calendar event summaries + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $fromEvent The event ID to retrieve events from (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdCalendarAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $fromEvent = null, $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdCalendar200Ok[]'; + $request = $this->getCharactersCharacterIdCalendarRequest($characterId, $datasource, $fromEvent, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdCalendar' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $fromEvent The event ID to retrieve events from (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdCalendarRequest($characterId, $datasource = 'tranquility', $fromEvent = null, $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdCalendar' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling CalendarApi.getCharactersCharacterIdCalendar, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/calendar/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($fromEvent !== null) { + $queryParams['from_event'] = ObjectSerializer::toQueryValue($fromEvent); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCharactersCharacterIdCalendarEventId + * + * Get an event + * + * @param int $characterId An EVE character ID (required) + * @param int $eventId The id of the event requested (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdCalendarEventIdOk + */ + public function getCharactersCharacterIdCalendarEventId($characterId, $eventId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdCalendarEventIdWithHttpInfo($characterId, $eventId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdCalendarEventIdWithHttpInfo + * + * Get an event + * + * @param int $characterId An EVE character ID (required) + * @param int $eventId The id of the event requested (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdCalendarEventIdOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdCalendarEventIdWithHttpInfo($characterId, $eventId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdCalendarEventIdOk'; + $request = $this->getCharactersCharacterIdCalendarEventIdRequest($characterId, $eventId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdCalendarEventIdOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdCalendarEventIdAsync + * + * Get an event + * + * @param int $characterId An EVE character ID (required) + * @param int $eventId The id of the event requested (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdCalendarEventIdAsync($characterId, $eventId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdCalendarEventIdAsyncWithHttpInfo($characterId, $eventId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdCalendarEventIdAsyncWithHttpInfo + * + * Get an event + * + * @param int $characterId An EVE character ID (required) + * @param int $eventId The id of the event requested (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdCalendarEventIdAsyncWithHttpInfo($characterId, $eventId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdCalendarEventIdOk'; + $request = $this->getCharactersCharacterIdCalendarEventIdRequest($characterId, $eventId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdCalendarEventId' + * + * @param int $characterId An EVE character ID (required) + * @param int $eventId The id of the event requested (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdCalendarEventIdRequest($characterId, $eventId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdCalendarEventId' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling CalendarApi.getCharactersCharacterIdCalendarEventId, must be bigger than or equal to 1.'); + } + + // verify the required parameter 'eventId' is set + if ($eventId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $eventId when calling getCharactersCharacterIdCalendarEventId' + ); + } + + $resourcePath = '/characters/{character_id}/calendar/{event_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + // path params + if ($eventId !== null) { + $resourcePath = str_replace( + '{' . 'event_id' . '}', + ObjectSerializer::toPathValue($eventId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCharactersCharacterIdCalendarEventIdAttendees + * + * Get attendees + * + * @param int $characterId An EVE character ID (required) + * @param int $eventId The id of the event requested (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdCalendarEventIdAttendees200Ok[] + */ + public function getCharactersCharacterIdCalendarEventIdAttendees($characterId, $eventId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdCalendarEventIdAttendeesWithHttpInfo($characterId, $eventId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdCalendarEventIdAttendeesWithHttpInfo + * + * Get attendees + * + * @param int $characterId An EVE character ID (required) + * @param int $eventId The id of the event requested (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdCalendarEventIdAttendees200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdCalendarEventIdAttendeesWithHttpInfo($characterId, $eventId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdCalendarEventIdAttendees200Ok[]'; + $request = $this->getCharactersCharacterIdCalendarEventIdAttendeesRequest($characterId, $eventId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdCalendarEventIdAttendees200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdCalendarEventIdAttendeesAsync + * + * Get attendees + * + * @param int $characterId An EVE character ID (required) + * @param int $eventId The id of the event requested (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdCalendarEventIdAttendeesAsync($characterId, $eventId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdCalendarEventIdAttendeesAsyncWithHttpInfo($characterId, $eventId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdCalendarEventIdAttendeesAsyncWithHttpInfo + * + * Get attendees + * + * @param int $characterId An EVE character ID (required) + * @param int $eventId The id of the event requested (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdCalendarEventIdAttendeesAsyncWithHttpInfo($characterId, $eventId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdCalendarEventIdAttendees200Ok[]'; + $request = $this->getCharactersCharacterIdCalendarEventIdAttendeesRequest($characterId, $eventId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdCalendarEventIdAttendees' + * + * @param int $characterId An EVE character ID (required) + * @param int $eventId The id of the event requested (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdCalendarEventIdAttendeesRequest($characterId, $eventId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdCalendarEventIdAttendees' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling CalendarApi.getCharactersCharacterIdCalendarEventIdAttendees, must be bigger than or equal to 1.'); + } + + // verify the required parameter 'eventId' is set + if ($eventId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $eventId when calling getCharactersCharacterIdCalendarEventIdAttendees' + ); + } + + $resourcePath = '/characters/{character_id}/calendar/{event_id}/attendees/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + // path params + if ($eventId !== null) { + $resourcePath = str_replace( + '{' . 'event_id' . '}', + ObjectSerializer::toPathValue($eventId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation putCharactersCharacterIdCalendarEventId + * + * Respond to an event + * + * @param int $characterId An EVE character ID (required) + * @param int $eventId The ID of the event requested (required) + * @param \nullx27ESI\nullx27\ESI\Models\PutCharactersCharacterIdCalendarEventIdResponse $response The response value to set, overriding current value. (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return void + */ + public function putCharactersCharacterIdCalendarEventId($characterId, $eventId, $response, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $this->putCharactersCharacterIdCalendarEventIdWithHttpInfo($characterId, $eventId, $response, $datasource, $token, $userAgent, $xUserAgent); + } + + /** + * Operation putCharactersCharacterIdCalendarEventIdWithHttpInfo + * + * Respond to an event + * + * @param int $characterId An EVE character ID (required) + * @param int $eventId The ID of the event requested (required) + * @param \nullx27ESI\nullx27\ESI\Models\PutCharactersCharacterIdCalendarEventIdResponse $response The response value to set, overriding current value. (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function putCharactersCharacterIdCalendarEventIdWithHttpInfo($characterId, $eventId, $response, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->putCharactersCharacterIdCalendarEventIdRequest($characterId, $eventId, $response, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + return [null, $statusCode, $response->getHeaders()]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation putCharactersCharacterIdCalendarEventIdAsync + * + * Respond to an event + * + * @param int $characterId An EVE character ID (required) + * @param int $eventId The ID of the event requested (required) + * @param \nullx27ESI\nullx27\ESI\Models\PutCharactersCharacterIdCalendarEventIdResponse $response The response value to set, overriding current value. (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function putCharactersCharacterIdCalendarEventIdAsync($characterId, $eventId, $response, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->putCharactersCharacterIdCalendarEventIdAsyncWithHttpInfo($characterId, $eventId, $response, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation putCharactersCharacterIdCalendarEventIdAsyncWithHttpInfo + * + * Respond to an event + * + * @param int $characterId An EVE character ID (required) + * @param int $eventId The ID of the event requested (required) + * @param \nullx27ESI\nullx27\ESI\Models\PutCharactersCharacterIdCalendarEventIdResponse $response The response value to set, overriding current value. (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function putCharactersCharacterIdCalendarEventIdAsyncWithHttpInfo($characterId, $eventId, $response, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->putCharactersCharacterIdCalendarEventIdRequest($characterId, $eventId, $response, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'putCharactersCharacterIdCalendarEventId' + * + * @param int $characterId An EVE character ID (required) + * @param int $eventId The ID of the event requested (required) + * @param \nullx27ESI\nullx27\ESI\Models\PutCharactersCharacterIdCalendarEventIdResponse $response The response value to set, overriding current value. (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function putCharactersCharacterIdCalendarEventIdRequest($characterId, $eventId, $response, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling putCharactersCharacterIdCalendarEventId' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling CalendarApi.putCharactersCharacterIdCalendarEventId, must be bigger than or equal to 1.'); + } + + // verify the required parameter 'eventId' is set + if ($eventId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $eventId when calling putCharactersCharacterIdCalendarEventId' + ); + } + // verify the required parameter 'response' is set + if ($response === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $response when calling putCharactersCharacterIdCalendarEventId' + ); + } + + $resourcePath = '/characters/{character_id}/calendar/{event_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + // path params + if ($eventId !== null) { + $resourcePath = str_replace( + '{' . 'event_id' . '}', + ObjectSerializer::toPathValue($eventId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + if (isset($response)) { + $_tempBody = $response; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'PUT', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } +} diff --git a/src/nullx27/ESI/Api/CharacterApi.php b/src/nullx27/ESI/Api/CharacterApi.php new file mode 100644 index 0000000..e4fbf1b --- /dev/null +++ b/src/nullx27/ESI/Api/CharacterApi.php @@ -0,0 +1,5512 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation getCharactersCharacterId + * + * Get character's public information + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdOk + */ + public function getCharactersCharacterId($characterId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdWithHttpInfo($characterId, $datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdWithHttpInfo + * + * Get character's public information + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdWithHttpInfo($characterId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdOk'; + $request = $this->getCharactersCharacterIdRequest($characterId, $datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdAsync + * + * Get character's public information + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdAsync($characterId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdAsyncWithHttpInfo($characterId, $datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdAsyncWithHttpInfo + * + * Get character's public information + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdOk'; + $request = $this->getCharactersCharacterIdRequest($characterId, $datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterId' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdRequest($characterId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterId' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling CharacterApi.getCharactersCharacterId, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCharactersCharacterIdAgentsResearch + * + * Get agents research + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdAgentsResearch200Ok[] + */ + public function getCharactersCharacterIdAgentsResearch($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdAgentsResearchWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdAgentsResearchWithHttpInfo + * + * Get agents research + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdAgentsResearch200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdAgentsResearchWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdAgentsResearch200Ok[]'; + $request = $this->getCharactersCharacterIdAgentsResearchRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdAgentsResearch200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdAgentsResearchAsync + * + * Get agents research + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdAgentsResearchAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdAgentsResearchAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdAgentsResearchAsyncWithHttpInfo + * + * Get agents research + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdAgentsResearchAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdAgentsResearch200Ok[]'; + $request = $this->getCharactersCharacterIdAgentsResearchRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdAgentsResearch' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdAgentsResearchRequest($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdAgentsResearch' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling CharacterApi.getCharactersCharacterIdAgentsResearch, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/agents_research/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCharactersCharacterIdBlueprints + * + * Get blueprints + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdBlueprints200Ok[] + */ + public function getCharactersCharacterIdBlueprints($characterId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdBlueprintsWithHttpInfo($characterId, $datasource, $page, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdBlueprintsWithHttpInfo + * + * Get blueprints + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdBlueprints200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdBlueprintsWithHttpInfo($characterId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdBlueprints200Ok[]'; + $request = $this->getCharactersCharacterIdBlueprintsRequest($characterId, $datasource, $page, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdBlueprints200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdBlueprintsAsync + * + * Get blueprints + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdBlueprintsAsync($characterId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdBlueprintsAsyncWithHttpInfo($characterId, $datasource, $page, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdBlueprintsAsyncWithHttpInfo + * + * Get blueprints + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdBlueprintsAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdBlueprints200Ok[]'; + $request = $this->getCharactersCharacterIdBlueprintsRequest($characterId, $datasource, $page, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdBlueprints' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdBlueprintsRequest($characterId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdBlueprints' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling CharacterApi.getCharactersCharacterIdBlueprints, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/blueprints/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($page !== null) { + $queryParams['page'] = ObjectSerializer::toQueryValue($page); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCharactersCharacterIdChatChannels + * + * Get chat channels + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdChatChannels200Ok[] + */ + public function getCharactersCharacterIdChatChannels($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdChatChannelsWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdChatChannelsWithHttpInfo + * + * Get chat channels + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdChatChannels200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdChatChannelsWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdChatChannels200Ok[]'; + $request = $this->getCharactersCharacterIdChatChannelsRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdChatChannels200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdChatChannelsAsync + * + * Get chat channels + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdChatChannelsAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdChatChannelsAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdChatChannelsAsyncWithHttpInfo + * + * Get chat channels + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdChatChannelsAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdChatChannels200Ok[]'; + $request = $this->getCharactersCharacterIdChatChannelsRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdChatChannels' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdChatChannelsRequest($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdChatChannels' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling CharacterApi.getCharactersCharacterIdChatChannels, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/chat_channels/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCharactersCharacterIdCorporationhistory + * + * Get corporation history + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdCorporationhistory200Ok[] + */ + public function getCharactersCharacterIdCorporationhistory($characterId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdCorporationhistoryWithHttpInfo($characterId, $datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdCorporationhistoryWithHttpInfo + * + * Get corporation history + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdCorporationhistory200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdCorporationhistoryWithHttpInfo($characterId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdCorporationhistory200Ok[]'; + $request = $this->getCharactersCharacterIdCorporationhistoryRequest($characterId, $datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdCorporationhistory200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdCorporationhistoryAsync + * + * Get corporation history + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdCorporationhistoryAsync($characterId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdCorporationhistoryAsyncWithHttpInfo($characterId, $datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdCorporationhistoryAsyncWithHttpInfo + * + * Get corporation history + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdCorporationhistoryAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdCorporationhistory200Ok[]'; + $request = $this->getCharactersCharacterIdCorporationhistoryRequest($characterId, $datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdCorporationhistory' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdCorporationhistoryRequest($characterId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdCorporationhistory' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling CharacterApi.getCharactersCharacterIdCorporationhistory, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/corporationhistory/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCharactersCharacterIdFatigue + * + * Get jump fatigue + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFatigueOk + */ + public function getCharactersCharacterIdFatigue($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdFatigueWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdFatigueWithHttpInfo + * + * Get jump fatigue + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFatigueOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdFatigueWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFatigueOk'; + $request = $this->getCharactersCharacterIdFatigueRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFatigueOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdFatigueAsync + * + * Get jump fatigue + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdFatigueAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdFatigueAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdFatigueAsyncWithHttpInfo + * + * Get jump fatigue + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdFatigueAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFatigueOk'; + $request = $this->getCharactersCharacterIdFatigueRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdFatigue' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdFatigueRequest($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdFatigue' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling CharacterApi.getCharactersCharacterIdFatigue, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/fatigue/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCharactersCharacterIdMedals + * + * Get medals + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMedals200Ok[] + */ + public function getCharactersCharacterIdMedals($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdMedalsWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdMedalsWithHttpInfo + * + * Get medals + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMedals200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdMedalsWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMedals200Ok[]'; + $request = $this->getCharactersCharacterIdMedalsRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMedals200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdMedalsAsync + * + * Get medals + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdMedalsAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdMedalsAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdMedalsAsyncWithHttpInfo + * + * Get medals + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdMedalsAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMedals200Ok[]'; + $request = $this->getCharactersCharacterIdMedalsRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdMedals' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdMedalsRequest($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdMedals' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling CharacterApi.getCharactersCharacterIdMedals, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/medals/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCharactersCharacterIdNotifications + * + * Get character notifications + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdNotifications200Ok[] + */ + public function getCharactersCharacterIdNotifications($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdNotificationsWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdNotificationsWithHttpInfo + * + * Get character notifications + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdNotifications200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdNotificationsWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdNotifications200Ok[]'; + $request = $this->getCharactersCharacterIdNotificationsRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdNotifications200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdNotificationsAsync + * + * Get character notifications + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdNotificationsAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdNotificationsAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdNotificationsAsyncWithHttpInfo + * + * Get character notifications + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdNotificationsAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdNotifications200Ok[]'; + $request = $this->getCharactersCharacterIdNotificationsRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdNotifications' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdNotificationsRequest($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdNotifications' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling CharacterApi.getCharactersCharacterIdNotifications, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/notifications/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCharactersCharacterIdNotificationsContacts + * + * Get new contact notifications + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdNotificationsContacts200Ok[] + */ + public function getCharactersCharacterIdNotificationsContacts($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdNotificationsContactsWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdNotificationsContactsWithHttpInfo + * + * Get new contact notifications + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdNotificationsContacts200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdNotificationsContactsWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdNotificationsContacts200Ok[]'; + $request = $this->getCharactersCharacterIdNotificationsContactsRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdNotificationsContacts200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdNotificationsContactsAsync + * + * Get new contact notifications + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdNotificationsContactsAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdNotificationsContactsAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdNotificationsContactsAsyncWithHttpInfo + * + * Get new contact notifications + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdNotificationsContactsAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdNotificationsContacts200Ok[]'; + $request = $this->getCharactersCharacterIdNotificationsContactsRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdNotificationsContacts' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdNotificationsContactsRequest($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdNotificationsContacts' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling CharacterApi.getCharactersCharacterIdNotificationsContacts, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/notifications/contacts/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCharactersCharacterIdPortrait + * + * Get character portraits + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPortraitOk + */ + public function getCharactersCharacterIdPortrait($characterId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdPortraitWithHttpInfo($characterId, $datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdPortraitWithHttpInfo + * + * Get character portraits + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPortraitOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdPortraitWithHttpInfo($characterId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPortraitOk'; + $request = $this->getCharactersCharacterIdPortraitRequest($characterId, $datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPortraitOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPortraitNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdPortraitAsync + * + * Get character portraits + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdPortraitAsync($characterId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdPortraitAsyncWithHttpInfo($characterId, $datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdPortraitAsyncWithHttpInfo + * + * Get character portraits + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdPortraitAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPortraitOk'; + $request = $this->getCharactersCharacterIdPortraitRequest($characterId, $datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdPortrait' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdPortraitRequest($characterId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdPortrait' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling CharacterApi.getCharactersCharacterIdPortrait, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/portrait/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCharactersCharacterIdRoles + * + * Get character corporation roles + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdRolesOk + */ + public function getCharactersCharacterIdRoles($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdRolesWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdRolesWithHttpInfo + * + * Get character corporation roles + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdRolesOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdRolesWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdRolesOk'; + $request = $this->getCharactersCharacterIdRolesRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdRolesOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdRolesAsync + * + * Get character corporation roles + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdRolesAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdRolesAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdRolesAsyncWithHttpInfo + * + * Get character corporation roles + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdRolesAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdRolesOk'; + $request = $this->getCharactersCharacterIdRolesRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdRoles' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdRolesRequest($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdRoles' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling CharacterApi.getCharactersCharacterIdRoles, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/roles/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCharactersCharacterIdStandings + * + * Get standings + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStandings200Ok[] + */ + public function getCharactersCharacterIdStandings($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdStandingsWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdStandingsWithHttpInfo + * + * Get standings + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStandings200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdStandingsWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStandings200Ok[]'; + $request = $this->getCharactersCharacterIdStandingsRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStandings200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdStandingsAsync + * + * Get standings + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdStandingsAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdStandingsAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdStandingsAsyncWithHttpInfo + * + * Get standings + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdStandingsAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStandings200Ok[]'; + $request = $this->getCharactersCharacterIdStandingsRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdStandings' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdStandingsRequest($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdStandings' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling CharacterApi.getCharactersCharacterIdStandings, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/standings/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCharactersCharacterIdStats + * + * Yearly aggregate stats + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStats200Ok[] + */ + public function getCharactersCharacterIdStats($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdStatsWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdStatsWithHttpInfo + * + * Yearly aggregate stats + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStats200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdStatsWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStats200Ok[]'; + $request = $this->getCharactersCharacterIdStatsRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStats200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdStatsAsync + * + * Yearly aggregate stats + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdStatsAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdStatsAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdStatsAsyncWithHttpInfo + * + * Yearly aggregate stats + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdStatsAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStats200Ok[]'; + $request = $this->getCharactersCharacterIdStatsRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdStats' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdStatsRequest($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdStats' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling CharacterApi.getCharactersCharacterIdStats, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/stats/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCharactersCharacterIdTitles + * + * Get character corporation titles + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdTitles200Ok[] + */ + public function getCharactersCharacterIdTitles($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdTitlesWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdTitlesWithHttpInfo + * + * Get character corporation titles + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdTitles200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdTitlesWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdTitles200Ok[]'; + $request = $this->getCharactersCharacterIdTitlesRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdTitles200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdTitlesAsync + * + * Get character corporation titles + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdTitlesAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdTitlesAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdTitlesAsyncWithHttpInfo + * + * Get character corporation titles + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdTitlesAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdTitles200Ok[]'; + $request = $this->getCharactersCharacterIdTitlesRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdTitles' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdTitlesRequest($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdTitles' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling CharacterApi.getCharactersCharacterIdTitles, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/titles/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCharactersNames + * + * Get character names + * + * @param int[] $characterIds A comma separated list of character IDs (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersNames200Ok[] + */ + public function getCharactersNames($characterIds, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersNamesWithHttpInfo($characterIds, $datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersNamesWithHttpInfo + * + * Get character names + * + * @param int[] $characterIds A comma separated list of character IDs (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersNames200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersNamesWithHttpInfo($characterIds, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersNames200Ok[]'; + $request = $this->getCharactersNamesRequest($characterIds, $datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersNames200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersNamesAsync + * + * Get character names + * + * @param int[] $characterIds A comma separated list of character IDs (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersNamesAsync($characterIds, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersNamesAsyncWithHttpInfo($characterIds, $datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersNamesAsyncWithHttpInfo + * + * Get character names + * + * @param int[] $characterIds A comma separated list of character IDs (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersNamesAsyncWithHttpInfo($characterIds, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersNames200Ok[]'; + $request = $this->getCharactersNamesRequest($characterIds, $datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersNames' + * + * @param int[] $characterIds A comma separated list of character IDs (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersNamesRequest($characterIds, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterIds' is set + if ($characterIds === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterIds when calling getCharactersNames' + ); + } + if (count($characterIds) > 1000) { + throw new \InvalidArgumentException('invalid value for "$characterIds" when calling CharacterApi.getCharactersNames, number of items must be less than or equal to 1000.'); + } + if (count($characterIds) < 1) { + throw new \InvalidArgumentException('invalid value for "$characterIds" when calling CharacterApi.getCharactersNames, number of items must be greater than or equal to 1.'); + } + + + $resourcePath = '/characters/names/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if (is_array($characterIds)) { + $characterIds = ObjectSerializer::serializeCollection($characterIds, 'csv', true); + } + if ($characterIds !== null) { + $queryParams['character_ids'] = ObjectSerializer::toQueryValue($characterIds); + } + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation postCharactersAffiliation + * + * Character affiliation + * + * @param int[] $characters The character IDs to fetch affiliations for. All characters must exist, or none will be returned. (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\PostCharactersAffiliation200Ok[] + */ + public function postCharactersAffiliation($characters, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->postCharactersAffiliationWithHttpInfo($characters, $datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation postCharactersAffiliationWithHttpInfo + * + * Character affiliation + * + * @param int[] $characters The character IDs to fetch affiliations for. All characters must exist, or none will be returned. (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\PostCharactersAffiliation200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function postCharactersAffiliationWithHttpInfo($characters, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\PostCharactersAffiliation200Ok[]'; + $request = $this->postCharactersAffiliationRequest($characters, $datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\PostCharactersAffiliation200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\PostCharactersAffiliationNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation postCharactersAffiliationAsync + * + * Character affiliation + * + * @param int[] $characters The character IDs to fetch affiliations for. All characters must exist, or none will be returned. (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postCharactersAffiliationAsync($characters, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->postCharactersAffiliationAsyncWithHttpInfo($characters, $datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation postCharactersAffiliationAsyncWithHttpInfo + * + * Character affiliation + * + * @param int[] $characters The character IDs to fetch affiliations for. All characters must exist, or none will be returned. (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postCharactersAffiliationAsyncWithHttpInfo($characters, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\PostCharactersAffiliation200Ok[]'; + $request = $this->postCharactersAffiliationRequest($characters, $datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'postCharactersAffiliation' + * + * @param int[] $characters The character IDs to fetch affiliations for. All characters must exist, or none will be returned. (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function postCharactersAffiliationRequest($characters, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characters' is set + if ($characters === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characters when calling postCharactersAffiliation' + ); + } + + $resourcePath = '/characters/affiliation/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + if (isset($characters)) { + $_tempBody = $characters; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation postCharactersCharacterIdCspa + * + * Calculate a CSPA charge cost + * + * @param int $characterId An EVE character ID (required) + * @param int[] $characters The target characters to calculate the charge for (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return float + */ + public function postCharactersCharacterIdCspa($characterId, $characters, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->postCharactersCharacterIdCspaWithHttpInfo($characterId, $characters, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation postCharactersCharacterIdCspaWithHttpInfo + * + * Calculate a CSPA charge cost + * + * @param int $characterId An EVE character ID (required) + * @param int[] $characters The target characters to calculate the charge for (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of float, HTTP status code, HTTP response headers (array of strings) + */ + public function postCharactersCharacterIdCspaWithHttpInfo($characterId, $characters, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = 'float'; + $request = $this->postCharactersCharacterIdCspaRequest($characterId, $characters, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 201: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'float', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation postCharactersCharacterIdCspaAsync + * + * Calculate a CSPA charge cost + * + * @param int $characterId An EVE character ID (required) + * @param int[] $characters The target characters to calculate the charge for (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postCharactersCharacterIdCspaAsync($characterId, $characters, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->postCharactersCharacterIdCspaAsyncWithHttpInfo($characterId, $characters, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation postCharactersCharacterIdCspaAsyncWithHttpInfo + * + * Calculate a CSPA charge cost + * + * @param int $characterId An EVE character ID (required) + * @param int[] $characters The target characters to calculate the charge for (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postCharactersCharacterIdCspaAsyncWithHttpInfo($characterId, $characters, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = 'float'; + $request = $this->postCharactersCharacterIdCspaRequest($characterId, $characters, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'postCharactersCharacterIdCspa' + * + * @param int $characterId An EVE character ID (required) + * @param int[] $characters The target characters to calculate the charge for (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function postCharactersCharacterIdCspaRequest($characterId, $characters, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling postCharactersCharacterIdCspa' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling CharacterApi.postCharactersCharacterIdCspa, must be bigger than or equal to 1.'); + } + + // verify the required parameter 'characters' is set + if ($characters === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characters when calling postCharactersCharacterIdCspa' + ); + } + + $resourcePath = '/characters/{character_id}/cspa/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + if (isset($characters)) { + $_tempBody = $characters; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } +} diff --git a/src/nullx27/ESI/Api/ClonesApi.php b/src/nullx27/ESI/Api/ClonesApi.php new file mode 100644 index 0000000..712ead7 --- /dev/null +++ b/src/nullx27/ESI/Api/ClonesApi.php @@ -0,0 +1,747 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation getCharactersCharacterIdClones + * + * Get clones + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdClonesOk + */ + public function getCharactersCharacterIdClones($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdClonesWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdClonesWithHttpInfo + * + * Get clones + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdClonesOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdClonesWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdClonesOk'; + $request = $this->getCharactersCharacterIdClonesRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdClonesOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdClonesAsync + * + * Get clones + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdClonesAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdClonesAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdClonesAsyncWithHttpInfo + * + * Get clones + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdClonesAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdClonesOk'; + $request = $this->getCharactersCharacterIdClonesRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdClones' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdClonesRequest($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdClones' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling ClonesApi.getCharactersCharacterIdClones, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/clones/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCharactersCharacterIdImplants + * + * Get active implants + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return int[] + */ + public function getCharactersCharacterIdImplants($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdImplantsWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdImplantsWithHttpInfo + * + * Get active implants + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of int[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdImplantsWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getCharactersCharacterIdImplantsRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'int[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdImplantsAsync + * + * Get active implants + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdImplantsAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdImplantsAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdImplantsAsyncWithHttpInfo + * + * Get active implants + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdImplantsAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getCharactersCharacterIdImplantsRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdImplants' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdImplantsRequest($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdImplants' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling ClonesApi.getCharactersCharacterIdImplants, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/implants/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } +} diff --git a/src/nullx27/ESI/Api/ContactsApi.php b/src/nullx27/ESI/Api/ContactsApi.php new file mode 100644 index 0000000..684d30b --- /dev/null +++ b/src/nullx27/ESI/Api/ContactsApi.php @@ -0,0 +1,2443 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation deleteCharactersCharacterIdContacts + * + * Delete contacts + * + * @param int $characterId An EVE character ID (required) + * @param int[] $contactIds A list of contacts to delete (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return void + */ + public function deleteCharactersCharacterIdContacts($characterId, $contactIds, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $this->deleteCharactersCharacterIdContactsWithHttpInfo($characterId, $contactIds, $datasource, $token, $userAgent, $xUserAgent); + } + + /** + * Operation deleteCharactersCharacterIdContactsWithHttpInfo + * + * Delete contacts + * + * @param int $characterId An EVE character ID (required) + * @param int[] $contactIds A list of contacts to delete (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteCharactersCharacterIdContactsWithHttpInfo($characterId, $contactIds, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->deleteCharactersCharacterIdContactsRequest($characterId, $contactIds, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + return [null, $statusCode, $response->getHeaders()]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation deleteCharactersCharacterIdContactsAsync + * + * Delete contacts + * + * @param int $characterId An EVE character ID (required) + * @param int[] $contactIds A list of contacts to delete (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteCharactersCharacterIdContactsAsync($characterId, $contactIds, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->deleteCharactersCharacterIdContactsAsyncWithHttpInfo($characterId, $contactIds, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation deleteCharactersCharacterIdContactsAsyncWithHttpInfo + * + * Delete contacts + * + * @param int $characterId An EVE character ID (required) + * @param int[] $contactIds A list of contacts to delete (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteCharactersCharacterIdContactsAsyncWithHttpInfo($characterId, $contactIds, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->deleteCharactersCharacterIdContactsRequest($characterId, $contactIds, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'deleteCharactersCharacterIdContacts' + * + * @param int $characterId An EVE character ID (required) + * @param int[] $contactIds A list of contacts to delete (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function deleteCharactersCharacterIdContactsRequest($characterId, $contactIds, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling deleteCharactersCharacterIdContacts' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling ContactsApi.deleteCharactersCharacterIdContacts, must be bigger than or equal to 1.'); + } + + // verify the required parameter 'contactIds' is set + if ($contactIds === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $contactIds when calling deleteCharactersCharacterIdContacts' + ); + } + if (count($contactIds) > 20) { + throw new \InvalidArgumentException('invalid value for "$contactIds" when calling ContactsApi.deleteCharactersCharacterIdContacts, number of items must be less than or equal to 20.'); + } + if (count($contactIds) < 1) { + throw new \InvalidArgumentException('invalid value for "$contactIds" when calling ContactsApi.deleteCharactersCharacterIdContacts, number of items must be greater than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/contacts/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if (is_array($contactIds)) { + $contactIds = ObjectSerializer::serializeCollection($contactIds, 'csv', true); + } + if ($contactIds !== null) { + $queryParams['contact_ids'] = ObjectSerializer::toQueryValue($contactIds); + } + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'DELETE', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getAlliancesAllianceIdContacts + * + * Get alliance contacts + * + * @param int $allianceId An EVE alliance ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetAlliancesAllianceIdContacts200Ok[] + */ + public function getAlliancesAllianceIdContacts($allianceId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getAlliancesAllianceIdContactsWithHttpInfo($allianceId, $datasource, $page, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getAlliancesAllianceIdContactsWithHttpInfo + * + * Get alliance contacts + * + * @param int $allianceId An EVE alliance ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetAlliancesAllianceIdContacts200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getAlliancesAllianceIdContactsWithHttpInfo($allianceId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetAlliancesAllianceIdContacts200Ok[]'; + $request = $this->getAlliancesAllianceIdContactsRequest($allianceId, $datasource, $page, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetAlliancesAllianceIdContacts200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getAlliancesAllianceIdContactsAsync + * + * Get alliance contacts + * + * @param int $allianceId An EVE alliance ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAlliancesAllianceIdContactsAsync($allianceId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getAlliancesAllianceIdContactsAsyncWithHttpInfo($allianceId, $datasource, $page, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getAlliancesAllianceIdContactsAsyncWithHttpInfo + * + * Get alliance contacts + * + * @param int $allianceId An EVE alliance ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAlliancesAllianceIdContactsAsyncWithHttpInfo($allianceId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetAlliancesAllianceIdContacts200Ok[]'; + $request = $this->getAlliancesAllianceIdContactsRequest($allianceId, $datasource, $page, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getAlliancesAllianceIdContacts' + * + * @param int $allianceId An EVE alliance ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getAlliancesAllianceIdContactsRequest($allianceId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'allianceId' is set + if ($allianceId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $allianceId when calling getAlliancesAllianceIdContacts' + ); + } + if ($allianceId < 1) { + throw new \InvalidArgumentException('invalid value for "$allianceId" when calling ContactsApi.getAlliancesAllianceIdContacts, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/alliances/{alliance_id}/contacts/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($page !== null) { + $queryParams['page'] = ObjectSerializer::toQueryValue($page); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($allianceId !== null) { + $resourcePath = str_replace( + '{' . 'alliance_id' . '}', + ObjectSerializer::toPathValue($allianceId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCharactersCharacterIdContacts + * + * Get contacts + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdContacts200Ok[] + */ + public function getCharactersCharacterIdContacts($characterId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdContactsWithHttpInfo($characterId, $datasource, $page, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdContactsWithHttpInfo + * + * Get contacts + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdContacts200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdContactsWithHttpInfo($characterId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdContacts200Ok[]'; + $request = $this->getCharactersCharacterIdContactsRequest($characterId, $datasource, $page, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdContacts200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdContactsAsync + * + * Get contacts + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdContactsAsync($characterId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdContactsAsyncWithHttpInfo($characterId, $datasource, $page, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdContactsAsyncWithHttpInfo + * + * Get contacts + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdContactsAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdContacts200Ok[]'; + $request = $this->getCharactersCharacterIdContactsRequest($characterId, $datasource, $page, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdContacts' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdContactsRequest($characterId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdContacts' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling ContactsApi.getCharactersCharacterIdContacts, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/contacts/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($page !== null) { + $queryParams['page'] = ObjectSerializer::toQueryValue($page); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCharactersCharacterIdContactsLabels + * + * Get contact labels + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdContactsLabels200Ok[] + */ + public function getCharactersCharacterIdContactsLabels($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdContactsLabelsWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdContactsLabelsWithHttpInfo + * + * Get contact labels + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdContactsLabels200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdContactsLabelsWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdContactsLabels200Ok[]'; + $request = $this->getCharactersCharacterIdContactsLabelsRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdContactsLabels200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdContactsLabelsAsync + * + * Get contact labels + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdContactsLabelsAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdContactsLabelsAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdContactsLabelsAsyncWithHttpInfo + * + * Get contact labels + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdContactsLabelsAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdContactsLabels200Ok[]'; + $request = $this->getCharactersCharacterIdContactsLabelsRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdContactsLabels' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdContactsLabelsRequest($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdContactsLabels' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling ContactsApi.getCharactersCharacterIdContactsLabels, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/contacts/labels/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsCorporationIdContacts + * + * Get corporation contacts + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdContacts200Ok[] + */ + public function getCorporationsCorporationIdContacts($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdContactsWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdContactsWithHttpInfo + * + * Get corporation contacts + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdContacts200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdContactsWithHttpInfo($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdContacts200Ok[]'; + $request = $this->getCorporationsCorporationIdContactsRequest($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdContacts200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdContactsAsync + * + * Get corporation contacts + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdContactsAsync($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdContactsAsyncWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdContactsAsyncWithHttpInfo + * + * Get corporation contacts + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdContactsAsyncWithHttpInfo($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdContacts200Ok[]'; + $request = $this->getCorporationsCorporationIdContactsRequest($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationIdContacts' + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdContactsRequest($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationIdContacts' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling ContactsApi.getCorporationsCorporationIdContacts, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporations/{corporation_id}/contacts/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($page !== null) { + $queryParams['page'] = ObjectSerializer::toQueryValue($page); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation postCharactersCharacterIdContacts + * + * Add contacts + * + * @param int $characterId An EVE character ID (required) + * @param int[] $contactIds A list of contacts to add (required) + * @param float $standing Standing for the new contact (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $labelId Add a custom label to the new contact (optional, default to 0) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param bool $watched Whether the new contact should be watched, note this is only effective on characters (optional, default to false) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return int[] + */ + public function postCharactersCharacterIdContacts($characterId, $contactIds, $standing, $datasource = 'tranquility', $labelId = '0', $token = null, $userAgent = null, $watched = 'false', $xUserAgent = null) + { + list($response) = $this->postCharactersCharacterIdContactsWithHttpInfo($characterId, $contactIds, $standing, $datasource, $labelId, $token, $userAgent, $watched, $xUserAgent); + return $response; + } + + /** + * Operation postCharactersCharacterIdContactsWithHttpInfo + * + * Add contacts + * + * @param int $characterId An EVE character ID (required) + * @param int[] $contactIds A list of contacts to add (required) + * @param float $standing Standing for the new contact (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $labelId Add a custom label to the new contact (optional, default to 0) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param bool $watched Whether the new contact should be watched, note this is only effective on characters (optional, default to false) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of int[], HTTP status code, HTTP response headers (array of strings) + */ + public function postCharactersCharacterIdContactsWithHttpInfo($characterId, $contactIds, $standing, $datasource = 'tranquility', $labelId = '0', $token = null, $userAgent = null, $watched = 'false', $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->postCharactersCharacterIdContactsRequest($characterId, $contactIds, $standing, $datasource, $labelId, $token, $userAgent, $watched, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 201: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'int[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation postCharactersCharacterIdContactsAsync + * + * Add contacts + * + * @param int $characterId An EVE character ID (required) + * @param int[] $contactIds A list of contacts to add (required) + * @param float $standing Standing for the new contact (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $labelId Add a custom label to the new contact (optional, default to 0) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param bool $watched Whether the new contact should be watched, note this is only effective on characters (optional, default to false) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postCharactersCharacterIdContactsAsync($characterId, $contactIds, $standing, $datasource = 'tranquility', $labelId = '0', $token = null, $userAgent = null, $watched = 'false', $xUserAgent = null) + { + return $this->postCharactersCharacterIdContactsAsyncWithHttpInfo($characterId, $contactIds, $standing, $datasource, $labelId, $token, $userAgent, $watched, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation postCharactersCharacterIdContactsAsyncWithHttpInfo + * + * Add contacts + * + * @param int $characterId An EVE character ID (required) + * @param int[] $contactIds A list of contacts to add (required) + * @param float $standing Standing for the new contact (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $labelId Add a custom label to the new contact (optional, default to 0) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param bool $watched Whether the new contact should be watched, note this is only effective on characters (optional, default to false) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postCharactersCharacterIdContactsAsyncWithHttpInfo($characterId, $contactIds, $standing, $datasource = 'tranquility', $labelId = '0', $token = null, $userAgent = null, $watched = 'false', $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->postCharactersCharacterIdContactsRequest($characterId, $contactIds, $standing, $datasource, $labelId, $token, $userAgent, $watched, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'postCharactersCharacterIdContacts' + * + * @param int $characterId An EVE character ID (required) + * @param int[] $contactIds A list of contacts to add (required) + * @param float $standing Standing for the new contact (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $labelId Add a custom label to the new contact (optional, default to 0) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param bool $watched Whether the new contact should be watched, note this is only effective on characters (optional, default to false) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function postCharactersCharacterIdContactsRequest($characterId, $contactIds, $standing, $datasource = 'tranquility', $labelId = '0', $token = null, $userAgent = null, $watched = 'false', $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling postCharactersCharacterIdContacts' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling ContactsApi.postCharactersCharacterIdContacts, must be bigger than or equal to 1.'); + } + + // verify the required parameter 'contactIds' is set + if ($contactIds === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $contactIds when calling postCharactersCharacterIdContacts' + ); + } + // verify the required parameter 'standing' is set + if ($standing === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $standing when calling postCharactersCharacterIdContacts' + ); + } + if ($standing > 10) { + throw new \InvalidArgumentException('invalid value for "$standing" when calling ContactsApi.postCharactersCharacterIdContacts, must be smaller than or equal to 10.'); + } + if ($standing < -10) { + throw new \InvalidArgumentException('invalid value for "$standing" when calling ContactsApi.postCharactersCharacterIdContacts, must be bigger than or equal to -10.'); + } + + + $resourcePath = '/characters/{character_id}/contacts/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($labelId !== null) { + $queryParams['label_id'] = ObjectSerializer::toQueryValue($labelId); + } + // query params + if ($standing !== null) { + $queryParams['standing'] = ObjectSerializer::toQueryValue($standing); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // query params + if ($watched !== null) { + $queryParams['watched'] = ObjectSerializer::toQueryValue($watched); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + if (isset($contactIds)) { + $_tempBody = $contactIds; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation putCharactersCharacterIdContacts + * + * Edit contacts + * + * @param int $characterId An EVE character ID (required) + * @param int[] $contactIds A list of contacts to edit (required) + * @param float $standing Standing for the contact (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $labelId Add a custom label to the contact, use 0 for clearing label (optional, default to 0) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param bool $watched Whether the contact should be watched, note this is only effective on characters (optional, default to false) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return void + */ + public function putCharactersCharacterIdContacts($characterId, $contactIds, $standing, $datasource = 'tranquility', $labelId = '0', $token = null, $userAgent = null, $watched = 'false', $xUserAgent = null) + { + $this->putCharactersCharacterIdContactsWithHttpInfo($characterId, $contactIds, $standing, $datasource, $labelId, $token, $userAgent, $watched, $xUserAgent); + } + + /** + * Operation putCharactersCharacterIdContactsWithHttpInfo + * + * Edit contacts + * + * @param int $characterId An EVE character ID (required) + * @param int[] $contactIds A list of contacts to edit (required) + * @param float $standing Standing for the contact (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $labelId Add a custom label to the contact, use 0 for clearing label (optional, default to 0) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param bool $watched Whether the contact should be watched, note this is only effective on characters (optional, default to false) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function putCharactersCharacterIdContactsWithHttpInfo($characterId, $contactIds, $standing, $datasource = 'tranquility', $labelId = '0', $token = null, $userAgent = null, $watched = 'false', $xUserAgent = null) + { + $returnType = ''; + $request = $this->putCharactersCharacterIdContactsRequest($characterId, $contactIds, $standing, $datasource, $labelId, $token, $userAgent, $watched, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + return [null, $statusCode, $response->getHeaders()]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation putCharactersCharacterIdContactsAsync + * + * Edit contacts + * + * @param int $characterId An EVE character ID (required) + * @param int[] $contactIds A list of contacts to edit (required) + * @param float $standing Standing for the contact (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $labelId Add a custom label to the contact, use 0 for clearing label (optional, default to 0) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param bool $watched Whether the contact should be watched, note this is only effective on characters (optional, default to false) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function putCharactersCharacterIdContactsAsync($characterId, $contactIds, $standing, $datasource = 'tranquility', $labelId = '0', $token = null, $userAgent = null, $watched = 'false', $xUserAgent = null) + { + return $this->putCharactersCharacterIdContactsAsyncWithHttpInfo($characterId, $contactIds, $standing, $datasource, $labelId, $token, $userAgent, $watched, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation putCharactersCharacterIdContactsAsyncWithHttpInfo + * + * Edit contacts + * + * @param int $characterId An EVE character ID (required) + * @param int[] $contactIds A list of contacts to edit (required) + * @param float $standing Standing for the contact (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $labelId Add a custom label to the contact, use 0 for clearing label (optional, default to 0) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param bool $watched Whether the contact should be watched, note this is only effective on characters (optional, default to false) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function putCharactersCharacterIdContactsAsyncWithHttpInfo($characterId, $contactIds, $standing, $datasource = 'tranquility', $labelId = '0', $token = null, $userAgent = null, $watched = 'false', $xUserAgent = null) + { + $returnType = ''; + $request = $this->putCharactersCharacterIdContactsRequest($characterId, $contactIds, $standing, $datasource, $labelId, $token, $userAgent, $watched, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'putCharactersCharacterIdContacts' + * + * @param int $characterId An EVE character ID (required) + * @param int[] $contactIds A list of contacts to edit (required) + * @param float $standing Standing for the contact (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $labelId Add a custom label to the contact, use 0 for clearing label (optional, default to 0) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param bool $watched Whether the contact should be watched, note this is only effective on characters (optional, default to false) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function putCharactersCharacterIdContactsRequest($characterId, $contactIds, $standing, $datasource = 'tranquility', $labelId = '0', $token = null, $userAgent = null, $watched = 'false', $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling putCharactersCharacterIdContacts' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling ContactsApi.putCharactersCharacterIdContacts, must be bigger than or equal to 1.'); + } + + // verify the required parameter 'contactIds' is set + if ($contactIds === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $contactIds when calling putCharactersCharacterIdContacts' + ); + } + // verify the required parameter 'standing' is set + if ($standing === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $standing when calling putCharactersCharacterIdContacts' + ); + } + if ($standing > 10) { + throw new \InvalidArgumentException('invalid value for "$standing" when calling ContactsApi.putCharactersCharacterIdContacts, must be smaller than or equal to 10.'); + } + if ($standing < -10) { + throw new \InvalidArgumentException('invalid value for "$standing" when calling ContactsApi.putCharactersCharacterIdContacts, must be bigger than or equal to -10.'); + } + + + $resourcePath = '/characters/{character_id}/contacts/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($labelId !== null) { + $queryParams['label_id'] = ObjectSerializer::toQueryValue($labelId); + } + // query params + if ($standing !== null) { + $queryParams['standing'] = ObjectSerializer::toQueryValue($standing); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // query params + if ($watched !== null) { + $queryParams['watched'] = ObjectSerializer::toQueryValue($watched); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + if (isset($contactIds)) { + $_tempBody = $contactIds; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'PUT', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } +} diff --git a/src/nullx27/ESI/Api/ContractsApi.php b/src/nullx27/ESI/Api/ContractsApi.php new file mode 100644 index 0000000..0cc7d48 --- /dev/null +++ b/src/nullx27/ESI/Api/ContractsApi.php @@ -0,0 +1,2120 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation getCharactersCharacterIdContracts + * + * Get contracts + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdContracts200Ok[] + */ + public function getCharactersCharacterIdContracts($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdContractsWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdContractsWithHttpInfo + * + * Get contracts + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdContracts200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdContractsWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdContracts200Ok[]'; + $request = $this->getCharactersCharacterIdContractsRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdContracts200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdContractsAsync + * + * Get contracts + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdContractsAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdContractsAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdContractsAsyncWithHttpInfo + * + * Get contracts + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdContractsAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdContracts200Ok[]'; + $request = $this->getCharactersCharacterIdContractsRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdContracts' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdContractsRequest($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdContracts' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling ContractsApi.getCharactersCharacterIdContracts, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/contracts/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCharactersCharacterIdContractsContractIdBids + * + * Get contract bids + * + * @param int $characterId An EVE character ID (required) + * @param int $contractId ID of a contract (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdContractsContractIdBids200Ok[] + */ + public function getCharactersCharacterIdContractsContractIdBids($characterId, $contractId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdContractsContractIdBidsWithHttpInfo($characterId, $contractId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdContractsContractIdBidsWithHttpInfo + * + * Get contract bids + * + * @param int $characterId An EVE character ID (required) + * @param int $contractId ID of a contract (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdContractsContractIdBids200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdContractsContractIdBidsWithHttpInfo($characterId, $contractId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdContractsContractIdBids200Ok[]'; + $request = $this->getCharactersCharacterIdContractsContractIdBidsRequest($characterId, $contractId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdContractsContractIdBids200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdContractsContractIdBidsAsync + * + * Get contract bids + * + * @param int $characterId An EVE character ID (required) + * @param int $contractId ID of a contract (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdContractsContractIdBidsAsync($characterId, $contractId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdContractsContractIdBidsAsyncWithHttpInfo($characterId, $contractId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdContractsContractIdBidsAsyncWithHttpInfo + * + * Get contract bids + * + * @param int $characterId An EVE character ID (required) + * @param int $contractId ID of a contract (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdContractsContractIdBidsAsyncWithHttpInfo($characterId, $contractId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdContractsContractIdBids200Ok[]'; + $request = $this->getCharactersCharacterIdContractsContractIdBidsRequest($characterId, $contractId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdContractsContractIdBids' + * + * @param int $characterId An EVE character ID (required) + * @param int $contractId ID of a contract (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdContractsContractIdBidsRequest($characterId, $contractId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdContractsContractIdBids' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling ContractsApi.getCharactersCharacterIdContractsContractIdBids, must be bigger than or equal to 1.'); + } + + // verify the required parameter 'contractId' is set + if ($contractId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $contractId when calling getCharactersCharacterIdContractsContractIdBids' + ); + } + + $resourcePath = '/characters/{character_id}/contracts/{contract_id}/bids/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + // path params + if ($contractId !== null) { + $resourcePath = str_replace( + '{' . 'contract_id' . '}', + ObjectSerializer::toPathValue($contractId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCharactersCharacterIdContractsContractIdItems + * + * Get contract items + * + * @param int $characterId An EVE character ID (required) + * @param int $contractId ID of a contract (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdContractsContractIdItems200Ok[] + */ + public function getCharactersCharacterIdContractsContractIdItems($characterId, $contractId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdContractsContractIdItemsWithHttpInfo($characterId, $contractId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdContractsContractIdItemsWithHttpInfo + * + * Get contract items + * + * @param int $characterId An EVE character ID (required) + * @param int $contractId ID of a contract (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdContractsContractIdItems200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdContractsContractIdItemsWithHttpInfo($characterId, $contractId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdContractsContractIdItems200Ok[]'; + $request = $this->getCharactersCharacterIdContractsContractIdItemsRequest($characterId, $contractId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdContractsContractIdItems200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdContractsContractIdItemsAsync + * + * Get contract items + * + * @param int $characterId An EVE character ID (required) + * @param int $contractId ID of a contract (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdContractsContractIdItemsAsync($characterId, $contractId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdContractsContractIdItemsAsyncWithHttpInfo($characterId, $contractId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdContractsContractIdItemsAsyncWithHttpInfo + * + * Get contract items + * + * @param int $characterId An EVE character ID (required) + * @param int $contractId ID of a contract (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdContractsContractIdItemsAsyncWithHttpInfo($characterId, $contractId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdContractsContractIdItems200Ok[]'; + $request = $this->getCharactersCharacterIdContractsContractIdItemsRequest($characterId, $contractId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdContractsContractIdItems' + * + * @param int $characterId An EVE character ID (required) + * @param int $contractId ID of a contract (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdContractsContractIdItemsRequest($characterId, $contractId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdContractsContractIdItems' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling ContractsApi.getCharactersCharacterIdContractsContractIdItems, must be bigger than or equal to 1.'); + } + + // verify the required parameter 'contractId' is set + if ($contractId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $contractId when calling getCharactersCharacterIdContractsContractIdItems' + ); + } + + $resourcePath = '/characters/{character_id}/contracts/{contract_id}/items/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + // path params + if ($contractId !== null) { + $resourcePath = str_replace( + '{' . 'contract_id' . '}', + ObjectSerializer::toPathValue($contractId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsCorporationIdContracts + * + * Get coporation contracts + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdContracts200Ok[] + */ + public function getCorporationsCorporationIdContracts($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdContractsWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdContractsWithHttpInfo + * + * Get coporation contracts + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdContracts200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdContractsWithHttpInfo($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdContracts200Ok[]'; + $request = $this->getCorporationsCorporationIdContractsRequest($corporationId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdContracts200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdContractsAsync + * + * Get coporation contracts + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdContractsAsync($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdContractsAsyncWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdContractsAsyncWithHttpInfo + * + * Get coporation contracts + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdContractsAsyncWithHttpInfo($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdContracts200Ok[]'; + $request = $this->getCorporationsCorporationIdContractsRequest($corporationId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationIdContracts' + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdContractsRequest($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationIdContracts' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling ContractsApi.getCorporationsCorporationIdContracts, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporations/{corporation_id}/contracts/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsCorporationIdContractsContractIdBids + * + * Get corporation contract bids + * + * @param int $contractId ID of a contract (required) + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdContractsContractIdBids200Ok[] + */ + public function getCorporationsCorporationIdContractsContractIdBids($contractId, $corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdContractsContractIdBidsWithHttpInfo($contractId, $corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdContractsContractIdBidsWithHttpInfo + * + * Get corporation contract bids + * + * @param int $contractId ID of a contract (required) + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdContractsContractIdBids200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdContractsContractIdBidsWithHttpInfo($contractId, $corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdContractsContractIdBids200Ok[]'; + $request = $this->getCorporationsCorporationIdContractsContractIdBidsRequest($contractId, $corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdContractsContractIdBids200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdContractsContractIdBidsAsync + * + * Get corporation contract bids + * + * @param int $contractId ID of a contract (required) + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdContractsContractIdBidsAsync($contractId, $corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdContractsContractIdBidsAsyncWithHttpInfo($contractId, $corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdContractsContractIdBidsAsyncWithHttpInfo + * + * Get corporation contract bids + * + * @param int $contractId ID of a contract (required) + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdContractsContractIdBidsAsyncWithHttpInfo($contractId, $corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdContractsContractIdBids200Ok[]'; + $request = $this->getCorporationsCorporationIdContractsContractIdBidsRequest($contractId, $corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationIdContractsContractIdBids' + * + * @param int $contractId ID of a contract (required) + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdContractsContractIdBidsRequest($contractId, $corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'contractId' is set + if ($contractId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $contractId when calling getCorporationsCorporationIdContractsContractIdBids' + ); + } + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationIdContractsContractIdBids' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling ContractsApi.getCorporationsCorporationIdContractsContractIdBids, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporations/{corporation_id}/contracts/{contract_id}/bids/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($page !== null) { + $queryParams['page'] = ObjectSerializer::toQueryValue($page); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($contractId !== null) { + $resourcePath = str_replace( + '{' . 'contract_id' . '}', + ObjectSerializer::toPathValue($contractId), + $resourcePath + ); + } + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsCorporationIdContractsContractIdItems + * + * Get corporation contract items + * + * @param int $contractId ID of a contract (required) + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdContractsContractIdItems200Ok[] + */ + public function getCorporationsCorporationIdContractsContractIdItems($contractId, $corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdContractsContractIdItemsWithHttpInfo($contractId, $corporationId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdContractsContractIdItemsWithHttpInfo + * + * Get corporation contract items + * + * @param int $contractId ID of a contract (required) + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdContractsContractIdItems200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdContractsContractIdItemsWithHttpInfo($contractId, $corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdContractsContractIdItems200Ok[]'; + $request = $this->getCorporationsCorporationIdContractsContractIdItemsRequest($contractId, $corporationId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdContractsContractIdItems200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdContractsContractIdItemsAsync + * + * Get corporation contract items + * + * @param int $contractId ID of a contract (required) + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdContractsContractIdItemsAsync($contractId, $corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdContractsContractIdItemsAsyncWithHttpInfo($contractId, $corporationId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdContractsContractIdItemsAsyncWithHttpInfo + * + * Get corporation contract items + * + * @param int $contractId ID of a contract (required) + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdContractsContractIdItemsAsyncWithHttpInfo($contractId, $corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdContractsContractIdItems200Ok[]'; + $request = $this->getCorporationsCorporationIdContractsContractIdItemsRequest($contractId, $corporationId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationIdContractsContractIdItems' + * + * @param int $contractId ID of a contract (required) + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdContractsContractIdItemsRequest($contractId, $corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'contractId' is set + if ($contractId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $contractId when calling getCorporationsCorporationIdContractsContractIdItems' + ); + } + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationIdContractsContractIdItems' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling ContractsApi.getCorporationsCorporationIdContractsContractIdItems, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporations/{corporation_id}/contracts/{contract_id}/items/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($contractId !== null) { + $resourcePath = str_replace( + '{' . 'contract_id' . '}', + ObjectSerializer::toPathValue($contractId), + $resourcePath + ); + } + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } +} diff --git a/src/nullx27/ESI/Api/CorporationApi.php b/src/nullx27/ESI/Api/CorporationApi.php new file mode 100644 index 0000000..66121a2 --- /dev/null +++ b/src/nullx27/ESI/Api/CorporationApi.php @@ -0,0 +1,8522 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation getCorporationsCorporationId + * + * Get corporation information + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdOk + */ + public function getCorporationsCorporationId($corporationId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdWithHttpInfo($corporationId, $datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdWithHttpInfo + * + * Get corporation information + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdWithHttpInfo($corporationId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdOk'; + $request = $this->getCorporationsCorporationIdRequest($corporationId, $datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdAsync + * + * Get corporation information + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdAsync($corporationId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdAsyncWithHttpInfo($corporationId, $datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdAsyncWithHttpInfo + * + * Get corporation information + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdAsyncWithHttpInfo($corporationId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdOk'; + $request = $this->getCorporationsCorporationIdRequest($corporationId, $datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationId' + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdRequest($corporationId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationId' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling CorporationApi.getCorporationsCorporationId, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporations/{corporation_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsCorporationIdAlliancehistory + * + * Get alliance history + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdAlliancehistory200Ok[] + */ + public function getCorporationsCorporationIdAlliancehistory($corporationId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdAlliancehistoryWithHttpInfo($corporationId, $datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdAlliancehistoryWithHttpInfo + * + * Get alliance history + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdAlliancehistory200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdAlliancehistoryWithHttpInfo($corporationId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdAlliancehistory200Ok[]'; + $request = $this->getCorporationsCorporationIdAlliancehistoryRequest($corporationId, $datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdAlliancehistory200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdAlliancehistoryAsync + * + * Get alliance history + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdAlliancehistoryAsync($corporationId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdAlliancehistoryAsyncWithHttpInfo($corporationId, $datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdAlliancehistoryAsyncWithHttpInfo + * + * Get alliance history + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdAlliancehistoryAsyncWithHttpInfo($corporationId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdAlliancehistory200Ok[]'; + $request = $this->getCorporationsCorporationIdAlliancehistoryRequest($corporationId, $datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationIdAlliancehistory' + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdAlliancehistoryRequest($corporationId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationIdAlliancehistory' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling CorporationApi.getCorporationsCorporationIdAlliancehistory, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporations/{corporation_id}/alliancehistory/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsCorporationIdBlueprints + * + * Get corporation blueprints + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdBlueprints200Ok[] + */ + public function getCorporationsCorporationIdBlueprints($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdBlueprintsWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdBlueprintsWithHttpInfo + * + * Get corporation blueprints + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdBlueprints200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdBlueprintsWithHttpInfo($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdBlueprints200Ok[]'; + $request = $this->getCorporationsCorporationIdBlueprintsRequest($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdBlueprints200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdBlueprintsAsync + * + * Get corporation blueprints + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdBlueprintsAsync($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdBlueprintsAsyncWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdBlueprintsAsyncWithHttpInfo + * + * Get corporation blueprints + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdBlueprintsAsyncWithHttpInfo($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdBlueprints200Ok[]'; + $request = $this->getCorporationsCorporationIdBlueprintsRequest($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationIdBlueprints' + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdBlueprintsRequest($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationIdBlueprints' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling CorporationApi.getCorporationsCorporationIdBlueprints, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporations/{corporation_id}/blueprints/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($page !== null) { + $queryParams['page'] = ObjectSerializer::toQueryValue($page); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsCorporationIdContainersLogs + * + * Get all corporation ALSC logs + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdContainersLogs200Ok[] + */ + public function getCorporationsCorporationIdContainersLogs($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdContainersLogsWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdContainersLogsWithHttpInfo + * + * Get all corporation ALSC logs + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdContainersLogs200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdContainersLogsWithHttpInfo($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdContainersLogs200Ok[]'; + $request = $this->getCorporationsCorporationIdContainersLogsRequest($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdContainersLogs200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdContainersLogsAsync + * + * Get all corporation ALSC logs + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdContainersLogsAsync($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdContainersLogsAsyncWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdContainersLogsAsyncWithHttpInfo + * + * Get all corporation ALSC logs + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdContainersLogsAsyncWithHttpInfo($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdContainersLogs200Ok[]'; + $request = $this->getCorporationsCorporationIdContainersLogsRequest($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationIdContainersLogs' + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdContainersLogsRequest($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationIdContainersLogs' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling CorporationApi.getCorporationsCorporationIdContainersLogs, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporations/{corporation_id}/containers/logs/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($page !== null) { + $queryParams['page'] = ObjectSerializer::toQueryValue($page); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsCorporationIdDivisions + * + * Get corporation divisions + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdDivisionsOk + */ + public function getCorporationsCorporationIdDivisions($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdDivisionsWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdDivisionsWithHttpInfo + * + * Get corporation divisions + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdDivisionsOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdDivisionsWithHttpInfo($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdDivisionsOk'; + $request = $this->getCorporationsCorporationIdDivisionsRequest($corporationId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdDivisionsOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdDivisionsAsync + * + * Get corporation divisions + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdDivisionsAsync($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdDivisionsAsyncWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdDivisionsAsyncWithHttpInfo + * + * Get corporation divisions + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdDivisionsAsyncWithHttpInfo($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdDivisionsOk'; + $request = $this->getCorporationsCorporationIdDivisionsRequest($corporationId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationIdDivisions' + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdDivisionsRequest($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationIdDivisions' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling CorporationApi.getCorporationsCorporationIdDivisions, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporations/{corporation_id}/divisions/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsCorporationIdFacilities + * + * Get corporation facilities + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdFacilities200Ok[] + */ + public function getCorporationsCorporationIdFacilities($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdFacilitiesWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdFacilitiesWithHttpInfo + * + * Get corporation facilities + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdFacilities200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdFacilitiesWithHttpInfo($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdFacilities200Ok[]'; + $request = $this->getCorporationsCorporationIdFacilitiesRequest($corporationId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdFacilities200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdFacilitiesAsync + * + * Get corporation facilities + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdFacilitiesAsync($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdFacilitiesAsyncWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdFacilitiesAsyncWithHttpInfo + * + * Get corporation facilities + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdFacilitiesAsyncWithHttpInfo($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdFacilities200Ok[]'; + $request = $this->getCorporationsCorporationIdFacilitiesRequest($corporationId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationIdFacilities' + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdFacilitiesRequest($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationIdFacilities' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling CorporationApi.getCorporationsCorporationIdFacilities, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporations/{corporation_id}/facilities/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsCorporationIdIcons + * + * Get corporation icon + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdIconsOk + */ + public function getCorporationsCorporationIdIcons($corporationId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdIconsWithHttpInfo($corporationId, $datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdIconsWithHttpInfo + * + * Get corporation icon + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdIconsOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdIconsWithHttpInfo($corporationId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdIconsOk'; + $request = $this->getCorporationsCorporationIdIconsRequest($corporationId, $datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdIconsOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdIconsNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdIconsAsync + * + * Get corporation icon + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdIconsAsync($corporationId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdIconsAsyncWithHttpInfo($corporationId, $datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdIconsAsyncWithHttpInfo + * + * Get corporation icon + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdIconsAsyncWithHttpInfo($corporationId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdIconsOk'; + $request = $this->getCorporationsCorporationIdIconsRequest($corporationId, $datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationIdIcons' + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdIconsRequest($corporationId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationIdIcons' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling CorporationApi.getCorporationsCorporationIdIcons, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporations/{corporation_id}/icons/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsCorporationIdMedals + * + * Get corporation medals + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdMedals200Ok[] + */ + public function getCorporationsCorporationIdMedals($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdMedalsWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdMedalsWithHttpInfo + * + * Get corporation medals + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdMedals200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdMedalsWithHttpInfo($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdMedals200Ok[]'; + $request = $this->getCorporationsCorporationIdMedalsRequest($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdMedals200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdMedalsAsync + * + * Get corporation medals + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdMedalsAsync($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdMedalsAsyncWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdMedalsAsyncWithHttpInfo + * + * Get corporation medals + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdMedalsAsyncWithHttpInfo($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdMedals200Ok[]'; + $request = $this->getCorporationsCorporationIdMedalsRequest($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationIdMedals' + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdMedalsRequest($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationIdMedals' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling CorporationApi.getCorporationsCorporationIdMedals, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporations/{corporation_id}/medals/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($page !== null) { + $queryParams['page'] = ObjectSerializer::toQueryValue($page); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsCorporationIdMedalsIssued + * + * Get corporation issued medals + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdMedalsIssued200Ok[] + */ + public function getCorporationsCorporationIdMedalsIssued($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdMedalsIssuedWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdMedalsIssuedWithHttpInfo + * + * Get corporation issued medals + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdMedalsIssued200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdMedalsIssuedWithHttpInfo($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdMedalsIssued200Ok[]'; + $request = $this->getCorporationsCorporationIdMedalsIssuedRequest($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdMedalsIssued200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdMedalsIssuedAsync + * + * Get corporation issued medals + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdMedalsIssuedAsync($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdMedalsIssuedAsyncWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdMedalsIssuedAsyncWithHttpInfo + * + * Get corporation issued medals + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdMedalsIssuedAsyncWithHttpInfo($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdMedalsIssued200Ok[]'; + $request = $this->getCorporationsCorporationIdMedalsIssuedRequest($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationIdMedalsIssued' + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdMedalsIssuedRequest($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationIdMedalsIssued' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling CorporationApi.getCorporationsCorporationIdMedalsIssued, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporations/{corporation_id}/medals/issued/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($page !== null) { + $queryParams['page'] = ObjectSerializer::toQueryValue($page); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsCorporationIdMembers + * + * Get corporation members + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return int[] + */ + public function getCorporationsCorporationIdMembers($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdMembersWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdMembersWithHttpInfo + * + * Get corporation members + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of int[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdMembersWithHttpInfo($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getCorporationsCorporationIdMembersRequest($corporationId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'int[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdMembersAsync + * + * Get corporation members + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdMembersAsync($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdMembersAsyncWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdMembersAsyncWithHttpInfo + * + * Get corporation members + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdMembersAsyncWithHttpInfo($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getCorporationsCorporationIdMembersRequest($corporationId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationIdMembers' + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdMembersRequest($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationIdMembers' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling CorporationApi.getCorporationsCorporationIdMembers, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporations/{corporation_id}/members/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsCorporationIdMembersLimit + * + * Get corporation member limit + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return int + */ + public function getCorporationsCorporationIdMembersLimit($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdMembersLimitWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdMembersLimitWithHttpInfo + * + * Get corporation member limit + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of int, HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdMembersLimitWithHttpInfo($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = 'int'; + $request = $this->getCorporationsCorporationIdMembersLimitRequest($corporationId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'int', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdMembersLimitAsync + * + * Get corporation member limit + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdMembersLimitAsync($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdMembersLimitAsyncWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdMembersLimitAsyncWithHttpInfo + * + * Get corporation member limit + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdMembersLimitAsyncWithHttpInfo($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = 'int'; + $request = $this->getCorporationsCorporationIdMembersLimitRequest($corporationId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationIdMembersLimit' + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdMembersLimitRequest($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationIdMembersLimit' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling CorporationApi.getCorporationsCorporationIdMembersLimit, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporations/{corporation_id}/members/limit/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsCorporationIdMembersTitles + * + * Get corporation's members' titles + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdMembersTitles200Ok[] + */ + public function getCorporationsCorporationIdMembersTitles($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdMembersTitlesWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdMembersTitlesWithHttpInfo + * + * Get corporation's members' titles + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdMembersTitles200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdMembersTitlesWithHttpInfo($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdMembersTitles200Ok[]'; + $request = $this->getCorporationsCorporationIdMembersTitlesRequest($corporationId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdMembersTitles200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdMembersTitlesAsync + * + * Get corporation's members' titles + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdMembersTitlesAsync($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdMembersTitlesAsyncWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdMembersTitlesAsyncWithHttpInfo + * + * Get corporation's members' titles + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdMembersTitlesAsyncWithHttpInfo($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdMembersTitles200Ok[]'; + $request = $this->getCorporationsCorporationIdMembersTitlesRequest($corporationId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationIdMembersTitles' + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdMembersTitlesRequest($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationIdMembersTitles' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling CorporationApi.getCorporationsCorporationIdMembersTitles, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporations/{corporation_id}/members/titles/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsCorporationIdMembertracking + * + * Track corporation members + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdMembertracking200Ok[] + */ + public function getCorporationsCorporationIdMembertracking($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdMembertrackingWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdMembertrackingWithHttpInfo + * + * Track corporation members + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdMembertracking200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdMembertrackingWithHttpInfo($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdMembertracking200Ok[]'; + $request = $this->getCorporationsCorporationIdMembertrackingRequest($corporationId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdMembertracking200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdMembertrackingAsync + * + * Track corporation members + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdMembertrackingAsync($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdMembertrackingAsyncWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdMembertrackingAsyncWithHttpInfo + * + * Track corporation members + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdMembertrackingAsyncWithHttpInfo($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdMembertracking200Ok[]'; + $request = $this->getCorporationsCorporationIdMembertrackingRequest($corporationId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationIdMembertracking' + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdMembertrackingRequest($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationIdMembertracking' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling CorporationApi.getCorporationsCorporationIdMembertracking, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporations/{corporation_id}/membertracking/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsCorporationIdOutposts + * + * Get corporation outposts + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return int[] + */ + public function getCorporationsCorporationIdOutposts($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdOutpostsWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdOutpostsWithHttpInfo + * + * Get corporation outposts + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of int[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdOutpostsWithHttpInfo($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getCorporationsCorporationIdOutpostsRequest($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'int[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdOutpostsAsync + * + * Get corporation outposts + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdOutpostsAsync($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdOutpostsAsyncWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdOutpostsAsyncWithHttpInfo + * + * Get corporation outposts + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdOutpostsAsyncWithHttpInfo($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getCorporationsCorporationIdOutpostsRequest($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationIdOutposts' + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdOutpostsRequest($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationIdOutposts' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling CorporationApi.getCorporationsCorporationIdOutposts, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporations/{corporation_id}/outposts/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($page !== null) { + $queryParams['page'] = ObjectSerializer::toQueryValue($page); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsCorporationIdOutpostsOutpostId + * + * Get corporation outpost details + * + * @param int $corporationId An EVE corporation ID (required) + * @param int $outpostId A station (outpost) ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdOutpostsOutpostIdOk + */ + public function getCorporationsCorporationIdOutpostsOutpostId($corporationId, $outpostId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdOutpostsOutpostIdWithHttpInfo($corporationId, $outpostId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdOutpostsOutpostIdWithHttpInfo + * + * Get corporation outpost details + * + * @param int $corporationId An EVE corporation ID (required) + * @param int $outpostId A station (outpost) ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdOutpostsOutpostIdOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdOutpostsOutpostIdWithHttpInfo($corporationId, $outpostId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdOutpostsOutpostIdOk'; + $request = $this->getCorporationsCorporationIdOutpostsOutpostIdRequest($corporationId, $outpostId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdOutpostsOutpostIdOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdOutpostsOutpostIdAsync + * + * Get corporation outpost details + * + * @param int $corporationId An EVE corporation ID (required) + * @param int $outpostId A station (outpost) ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdOutpostsOutpostIdAsync($corporationId, $outpostId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdOutpostsOutpostIdAsyncWithHttpInfo($corporationId, $outpostId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdOutpostsOutpostIdAsyncWithHttpInfo + * + * Get corporation outpost details + * + * @param int $corporationId An EVE corporation ID (required) + * @param int $outpostId A station (outpost) ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdOutpostsOutpostIdAsyncWithHttpInfo($corporationId, $outpostId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdOutpostsOutpostIdOk'; + $request = $this->getCorporationsCorporationIdOutpostsOutpostIdRequest($corporationId, $outpostId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationIdOutpostsOutpostId' + * + * @param int $corporationId An EVE corporation ID (required) + * @param int $outpostId A station (outpost) ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdOutpostsOutpostIdRequest($corporationId, $outpostId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationIdOutpostsOutpostId' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling CorporationApi.getCorporationsCorporationIdOutpostsOutpostId, must be bigger than or equal to 1.'); + } + + // verify the required parameter 'outpostId' is set + if ($outpostId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $outpostId when calling getCorporationsCorporationIdOutpostsOutpostId' + ); + } + + $resourcePath = '/corporations/{corporation_id}/outposts/{outpost_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + // path params + if ($outpostId !== null) { + $resourcePath = str_replace( + '{' . 'outpost_id' . '}', + ObjectSerializer::toPathValue($outpostId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsCorporationIdRoles + * + * Get corporation member roles + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdRoles200Ok[] + */ + public function getCorporationsCorporationIdRoles($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdRolesWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdRolesWithHttpInfo + * + * Get corporation member roles + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdRoles200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdRolesWithHttpInfo($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdRoles200Ok[]'; + $request = $this->getCorporationsCorporationIdRolesRequest($corporationId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdRoles200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdRolesAsync + * + * Get corporation member roles + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdRolesAsync($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdRolesAsyncWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdRolesAsyncWithHttpInfo + * + * Get corporation member roles + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdRolesAsyncWithHttpInfo($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdRoles200Ok[]'; + $request = $this->getCorporationsCorporationIdRolesRequest($corporationId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationIdRoles' + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdRolesRequest($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationIdRoles' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling CorporationApi.getCorporationsCorporationIdRoles, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporations/{corporation_id}/roles/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsCorporationIdRolesHistory + * + * Get corporation member roles history + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdRolesHistory200Ok[] + */ + public function getCorporationsCorporationIdRolesHistory($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdRolesHistoryWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdRolesHistoryWithHttpInfo + * + * Get corporation member roles history + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdRolesHistory200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdRolesHistoryWithHttpInfo($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdRolesHistory200Ok[]'; + $request = $this->getCorporationsCorporationIdRolesHistoryRequest($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdRolesHistory200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdRolesHistoryAsync + * + * Get corporation member roles history + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdRolesHistoryAsync($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdRolesHistoryAsyncWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdRolesHistoryAsyncWithHttpInfo + * + * Get corporation member roles history + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdRolesHistoryAsyncWithHttpInfo($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdRolesHistory200Ok[]'; + $request = $this->getCorporationsCorporationIdRolesHistoryRequest($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationIdRolesHistory' + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdRolesHistoryRequest($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationIdRolesHistory' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling CorporationApi.getCorporationsCorporationIdRolesHistory, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporations/{corporation_id}/roles/history/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($page !== null) { + $queryParams['page'] = ObjectSerializer::toQueryValue($page); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsCorporationIdShareholders + * + * Get corporation members + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdShareholders200Ok[] + */ + public function getCorporationsCorporationIdShareholders($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdShareholdersWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdShareholdersWithHttpInfo + * + * Get corporation members + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdShareholders200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdShareholdersWithHttpInfo($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdShareholders200Ok[]'; + $request = $this->getCorporationsCorporationIdShareholdersRequest($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdShareholders200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdShareholdersAsync + * + * Get corporation members + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdShareholdersAsync($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdShareholdersAsyncWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdShareholdersAsyncWithHttpInfo + * + * Get corporation members + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdShareholdersAsyncWithHttpInfo($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdShareholders200Ok[]'; + $request = $this->getCorporationsCorporationIdShareholdersRequest($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationIdShareholders' + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdShareholdersRequest($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationIdShareholders' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling CorporationApi.getCorporationsCorporationIdShareholders, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporations/{corporation_id}/shareholders/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($page !== null) { + $queryParams['page'] = ObjectSerializer::toQueryValue($page); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsCorporationIdStandings + * + * Get corporation standings + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStandings200Ok[] + */ + public function getCorporationsCorporationIdStandings($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdStandingsWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdStandingsWithHttpInfo + * + * Get corporation standings + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStandings200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdStandingsWithHttpInfo($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStandings200Ok[]'; + $request = $this->getCorporationsCorporationIdStandingsRequest($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStandings200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdStandingsAsync + * + * Get corporation standings + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdStandingsAsync($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdStandingsAsyncWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdStandingsAsyncWithHttpInfo + * + * Get corporation standings + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdStandingsAsyncWithHttpInfo($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStandings200Ok[]'; + $request = $this->getCorporationsCorporationIdStandingsRequest($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationIdStandings' + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdStandingsRequest($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationIdStandings' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling CorporationApi.getCorporationsCorporationIdStandings, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporations/{corporation_id}/standings/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($page !== null) { + $queryParams['page'] = ObjectSerializer::toQueryValue($page); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsCorporationIdStarbases + * + * Get corporation starbases (POSes) + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStarbases200Ok[] + */ + public function getCorporationsCorporationIdStarbases($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdStarbasesWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdStarbasesWithHttpInfo + * + * Get corporation starbases (POSes) + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStarbases200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdStarbasesWithHttpInfo($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStarbases200Ok[]'; + $request = $this->getCorporationsCorporationIdStarbasesRequest($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStarbases200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdStarbasesAsync + * + * Get corporation starbases (POSes) + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdStarbasesAsync($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdStarbasesAsyncWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdStarbasesAsyncWithHttpInfo + * + * Get corporation starbases (POSes) + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdStarbasesAsyncWithHttpInfo($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStarbases200Ok[]'; + $request = $this->getCorporationsCorporationIdStarbasesRequest($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationIdStarbases' + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdStarbasesRequest($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationIdStarbases' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling CorporationApi.getCorporationsCorporationIdStarbases, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporations/{corporation_id}/starbases/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($page !== null) { + $queryParams['page'] = ObjectSerializer::toQueryValue($page); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsCorporationIdStarbasesStarbaseId + * + * Get starbase (POS) detail + * + * @param int $corporationId An EVE corporation ID (required) + * @param int $starbaseId An EVE starbase (POS) ID (required) + * @param int $systemId The solar system this starbase (POS) is located in, (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStarbasesStarbaseIdOk + */ + public function getCorporationsCorporationIdStarbasesStarbaseId($corporationId, $starbaseId, $systemId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdStarbasesStarbaseIdWithHttpInfo($corporationId, $starbaseId, $systemId, $datasource, $page, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdStarbasesStarbaseIdWithHttpInfo + * + * Get starbase (POS) detail + * + * @param int $corporationId An EVE corporation ID (required) + * @param int $starbaseId An EVE starbase (POS) ID (required) + * @param int $systemId The solar system this starbase (POS) is located in, (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStarbasesStarbaseIdOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdStarbasesStarbaseIdWithHttpInfo($corporationId, $starbaseId, $systemId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStarbasesStarbaseIdOk'; + $request = $this->getCorporationsCorporationIdStarbasesStarbaseIdRequest($corporationId, $starbaseId, $systemId, $datasource, $page, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStarbasesStarbaseIdOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdStarbasesStarbaseIdAsync + * + * Get starbase (POS) detail + * + * @param int $corporationId An EVE corporation ID (required) + * @param int $starbaseId An EVE starbase (POS) ID (required) + * @param int $systemId The solar system this starbase (POS) is located in, (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdStarbasesStarbaseIdAsync($corporationId, $starbaseId, $systemId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdStarbasesStarbaseIdAsyncWithHttpInfo($corporationId, $starbaseId, $systemId, $datasource, $page, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdStarbasesStarbaseIdAsyncWithHttpInfo + * + * Get starbase (POS) detail + * + * @param int $corporationId An EVE corporation ID (required) + * @param int $starbaseId An EVE starbase (POS) ID (required) + * @param int $systemId The solar system this starbase (POS) is located in, (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdStarbasesStarbaseIdAsyncWithHttpInfo($corporationId, $starbaseId, $systemId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStarbasesStarbaseIdOk'; + $request = $this->getCorporationsCorporationIdStarbasesStarbaseIdRequest($corporationId, $starbaseId, $systemId, $datasource, $page, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationIdStarbasesStarbaseId' + * + * @param int $corporationId An EVE corporation ID (required) + * @param int $starbaseId An EVE starbase (POS) ID (required) + * @param int $systemId The solar system this starbase (POS) is located in, (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdStarbasesStarbaseIdRequest($corporationId, $starbaseId, $systemId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationIdStarbasesStarbaseId' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling CorporationApi.getCorporationsCorporationIdStarbasesStarbaseId, must be bigger than or equal to 1.'); + } + + // verify the required parameter 'starbaseId' is set + if ($starbaseId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $starbaseId when calling getCorporationsCorporationIdStarbasesStarbaseId' + ); + } + // verify the required parameter 'systemId' is set + if ($systemId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $systemId when calling getCorporationsCorporationIdStarbasesStarbaseId' + ); + } + + $resourcePath = '/corporations/{corporation_id}/starbases/{starbase_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($page !== null) { + $queryParams['page'] = ObjectSerializer::toQueryValue($page); + } + // query params + if ($systemId !== null) { + $queryParams['system_id'] = ObjectSerializer::toQueryValue($systemId); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + // path params + if ($starbaseId !== null) { + $resourcePath = str_replace( + '{' . 'starbase_id' . '}', + ObjectSerializer::toPathValue($starbaseId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsCorporationIdStructures + * + * Get corporation structures + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStructures200Ok[] + */ + public function getCorporationsCorporationIdStructures($corporationId, $datasource = 'tranquility', $language = 'en-us', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdStructuresWithHttpInfo($corporationId, $datasource, $language, $page, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdStructuresWithHttpInfo + * + * Get corporation structures + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStructures200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdStructuresWithHttpInfo($corporationId, $datasource = 'tranquility', $language = 'en-us', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStructures200Ok[]'; + $request = $this->getCorporationsCorporationIdStructuresRequest($corporationId, $datasource, $language, $page, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStructures200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdStructuresAsync + * + * Get corporation structures + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdStructuresAsync($corporationId, $datasource = 'tranquility', $language = 'en-us', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdStructuresAsyncWithHttpInfo($corporationId, $datasource, $language, $page, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdStructuresAsyncWithHttpInfo + * + * Get corporation structures + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdStructuresAsyncWithHttpInfo($corporationId, $datasource = 'tranquility', $language = 'en-us', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStructures200Ok[]'; + $request = $this->getCorporationsCorporationIdStructuresRequest($corporationId, $datasource, $language, $page, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationIdStructures' + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdStructuresRequest($corporationId, $datasource = 'tranquility', $language = 'en-us', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationIdStructures' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling CorporationApi.getCorporationsCorporationIdStructures, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporations/{corporation_id}/structures/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($language !== null) { + $queryParams['language'] = ObjectSerializer::toQueryValue($language); + } + // query params + if ($page !== null) { + $queryParams['page'] = ObjectSerializer::toQueryValue($page); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsCorporationIdTitles + * + * Get corporation titles + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdTitles200Ok[] + */ + public function getCorporationsCorporationIdTitles($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdTitlesWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdTitlesWithHttpInfo + * + * Get corporation titles + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdTitles200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdTitlesWithHttpInfo($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdTitles200Ok[]'; + $request = $this->getCorporationsCorporationIdTitlesRequest($corporationId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdTitles200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdTitlesAsync + * + * Get corporation titles + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdTitlesAsync($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdTitlesAsyncWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdTitlesAsyncWithHttpInfo + * + * Get corporation titles + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdTitlesAsyncWithHttpInfo($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdTitles200Ok[]'; + $request = $this->getCorporationsCorporationIdTitlesRequest($corporationId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationIdTitles' + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdTitlesRequest($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationIdTitles' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling CorporationApi.getCorporationsCorporationIdTitles, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporations/{corporation_id}/titles/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsNames + * + * Get corporation names + * + * @param int[] $corporationIds A comma separated list of corporation IDs (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsNames200Ok[] + */ + public function getCorporationsNames($corporationIds, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsNamesWithHttpInfo($corporationIds, $datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsNamesWithHttpInfo + * + * Get corporation names + * + * @param int[] $corporationIds A comma separated list of corporation IDs (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationsNames200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsNamesWithHttpInfo($corporationIds, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsNames200Ok[]'; + $request = $this->getCorporationsNamesRequest($corporationIds, $datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsNames200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsNamesAsync + * + * Get corporation names + * + * @param int[] $corporationIds A comma separated list of corporation IDs (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsNamesAsync($corporationIds, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsNamesAsyncWithHttpInfo($corporationIds, $datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsNamesAsyncWithHttpInfo + * + * Get corporation names + * + * @param int[] $corporationIds A comma separated list of corporation IDs (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsNamesAsyncWithHttpInfo($corporationIds, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsNames200Ok[]'; + $request = $this->getCorporationsNamesRequest($corporationIds, $datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsNames' + * + * @param int[] $corporationIds A comma separated list of corporation IDs (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsNamesRequest($corporationIds, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationIds' is set + if ($corporationIds === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationIds when calling getCorporationsNames' + ); + } + if (count($corporationIds) > 100) { + throw new \InvalidArgumentException('invalid value for "$corporationIds" when calling CorporationApi.getCorporationsNames, number of items must be less than or equal to 100.'); + } + if (count($corporationIds) < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationIds" when calling CorporationApi.getCorporationsNames, number of items must be greater than or equal to 1.'); + } + + + $resourcePath = '/corporations/names/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if (is_array($corporationIds)) { + $corporationIds = ObjectSerializer::serializeCollection($corporationIds, 'csv', true); + } + if ($corporationIds !== null) { + $queryParams['corporation_ids'] = ObjectSerializer::toQueryValue($corporationIds); + } + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsNpccorps + * + * Get npc corporations + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return int[] + */ + public function getCorporationsNpccorps($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsNpccorpsWithHttpInfo($datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsNpccorpsWithHttpInfo + * + * Get npc corporations + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of int[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsNpccorpsWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getCorporationsNpccorpsRequest($datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'int[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsNpccorpsAsync + * + * Get npc corporations + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsNpccorpsAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsNpccorpsAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsNpccorpsAsyncWithHttpInfo + * + * Get npc corporations + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsNpccorpsAsyncWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getCorporationsNpccorpsRequest($datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsNpccorps' + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsNpccorpsRequest($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + + $resourcePath = '/corporations/npccorps/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation putCorporationsCorporationIdStructuresStructureId + * + * Update structure vulnerability schedule + * + * @param int $corporationId An EVE corporation ID (required) + * @param \nullx27ESI\nullx27\ESI\Models\PutCorporationsCorporationIdStructuresStructureIdNewSchedule[] $newSchedule New vulnerability window schedule for the structure (required) + * @param int $structureId A structure ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return void + */ + public function putCorporationsCorporationIdStructuresStructureId($corporationId, $newSchedule, $structureId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $this->putCorporationsCorporationIdStructuresStructureIdWithHttpInfo($corporationId, $newSchedule, $structureId, $datasource, $token, $userAgent, $xUserAgent); + } + + /** + * Operation putCorporationsCorporationIdStructuresStructureIdWithHttpInfo + * + * Update structure vulnerability schedule + * + * @param int $corporationId An EVE corporation ID (required) + * @param \nullx27ESI\nullx27\ESI\Models\PutCorporationsCorporationIdStructuresStructureIdNewSchedule[] $newSchedule New vulnerability window schedule for the structure (required) + * @param int $structureId A structure ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function putCorporationsCorporationIdStructuresStructureIdWithHttpInfo($corporationId, $newSchedule, $structureId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->putCorporationsCorporationIdStructuresStructureIdRequest($corporationId, $newSchedule, $structureId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + return [null, $statusCode, $response->getHeaders()]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation putCorporationsCorporationIdStructuresStructureIdAsync + * + * Update structure vulnerability schedule + * + * @param int $corporationId An EVE corporation ID (required) + * @param \nullx27ESI\nullx27\ESI\Models\PutCorporationsCorporationIdStructuresStructureIdNewSchedule[] $newSchedule New vulnerability window schedule for the structure (required) + * @param int $structureId A structure ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function putCorporationsCorporationIdStructuresStructureIdAsync($corporationId, $newSchedule, $structureId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->putCorporationsCorporationIdStructuresStructureIdAsyncWithHttpInfo($corporationId, $newSchedule, $structureId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation putCorporationsCorporationIdStructuresStructureIdAsyncWithHttpInfo + * + * Update structure vulnerability schedule + * + * @param int $corporationId An EVE corporation ID (required) + * @param \nullx27ESI\nullx27\ESI\Models\PutCorporationsCorporationIdStructuresStructureIdNewSchedule[] $newSchedule New vulnerability window schedule for the structure (required) + * @param int $structureId A structure ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function putCorporationsCorporationIdStructuresStructureIdAsyncWithHttpInfo($corporationId, $newSchedule, $structureId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->putCorporationsCorporationIdStructuresStructureIdRequest($corporationId, $newSchedule, $structureId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'putCorporationsCorporationIdStructuresStructureId' + * + * @param int $corporationId An EVE corporation ID (required) + * @param \nullx27ESI\nullx27\ESI\Models\PutCorporationsCorporationIdStructuresStructureIdNewSchedule[] $newSchedule New vulnerability window schedule for the structure (required) + * @param int $structureId A structure ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function putCorporationsCorporationIdStructuresStructureIdRequest($corporationId, $newSchedule, $structureId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling putCorporationsCorporationIdStructuresStructureId' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling CorporationApi.putCorporationsCorporationIdStructuresStructureId, must be bigger than or equal to 1.'); + } + + // verify the required parameter 'newSchedule' is set + if ($newSchedule === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $newSchedule when calling putCorporationsCorporationIdStructuresStructureId' + ); + } + // verify the required parameter 'structureId' is set + if ($structureId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $structureId when calling putCorporationsCorporationIdStructuresStructureId' + ); + } + + $resourcePath = '/corporations/{corporation_id}/structures/{structure_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + // path params + if ($structureId !== null) { + $resourcePath = str_replace( + '{' . 'structure_id' . '}', + ObjectSerializer::toPathValue($structureId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + if (isset($newSchedule)) { + $_tempBody = $newSchedule; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'PUT', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } +} diff --git a/src/nullx27/ESI/Api/DogmaApi.php b/src/nullx27/ESI/Api/DogmaApi.php new file mode 100644 index 0000000..2935f49 --- /dev/null +++ b/src/nullx27/ESI/Api/DogmaApi.php @@ -0,0 +1,1269 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation getDogmaAttributes + * + * Get attributes + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return int[] + */ + public function getDogmaAttributes($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getDogmaAttributesWithHttpInfo($datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getDogmaAttributesWithHttpInfo + * + * Get attributes + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of int[], HTTP status code, HTTP response headers (array of strings) + */ + public function getDogmaAttributesWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getDogmaAttributesRequest($datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'int[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getDogmaAttributesAsync + * + * Get attributes + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getDogmaAttributesAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getDogmaAttributesAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getDogmaAttributesAsyncWithHttpInfo + * + * Get attributes + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getDogmaAttributesAsyncWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getDogmaAttributesRequest($datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getDogmaAttributes' + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getDogmaAttributesRequest($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + + $resourcePath = '/dogma/attributes/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getDogmaAttributesAttributeId + * + * Get attribute information + * + * @param int $attributeId A dogma attribute ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetDogmaAttributesAttributeIdOk + */ + public function getDogmaAttributesAttributeId($attributeId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getDogmaAttributesAttributeIdWithHttpInfo($attributeId, $datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getDogmaAttributesAttributeIdWithHttpInfo + * + * Get attribute information + * + * @param int $attributeId A dogma attribute ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetDogmaAttributesAttributeIdOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getDogmaAttributesAttributeIdWithHttpInfo($attributeId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetDogmaAttributesAttributeIdOk'; + $request = $this->getDogmaAttributesAttributeIdRequest($attributeId, $datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetDogmaAttributesAttributeIdOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetDogmaAttributesAttributeIdNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getDogmaAttributesAttributeIdAsync + * + * Get attribute information + * + * @param int $attributeId A dogma attribute ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getDogmaAttributesAttributeIdAsync($attributeId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getDogmaAttributesAttributeIdAsyncWithHttpInfo($attributeId, $datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getDogmaAttributesAttributeIdAsyncWithHttpInfo + * + * Get attribute information + * + * @param int $attributeId A dogma attribute ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getDogmaAttributesAttributeIdAsyncWithHttpInfo($attributeId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetDogmaAttributesAttributeIdOk'; + $request = $this->getDogmaAttributesAttributeIdRequest($attributeId, $datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getDogmaAttributesAttributeId' + * + * @param int $attributeId A dogma attribute ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getDogmaAttributesAttributeIdRequest($attributeId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'attributeId' is set + if ($attributeId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $attributeId when calling getDogmaAttributesAttributeId' + ); + } + + $resourcePath = '/dogma/attributes/{attribute_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($attributeId !== null) { + $resourcePath = str_replace( + '{' . 'attribute_id' . '}', + ObjectSerializer::toPathValue($attributeId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getDogmaEffects + * + * Get effects + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return int[] + */ + public function getDogmaEffects($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getDogmaEffectsWithHttpInfo($datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getDogmaEffectsWithHttpInfo + * + * Get effects + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of int[], HTTP status code, HTTP response headers (array of strings) + */ + public function getDogmaEffectsWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getDogmaEffectsRequest($datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'int[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getDogmaEffectsAsync + * + * Get effects + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getDogmaEffectsAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getDogmaEffectsAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getDogmaEffectsAsyncWithHttpInfo + * + * Get effects + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getDogmaEffectsAsyncWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getDogmaEffectsRequest($datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getDogmaEffects' + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getDogmaEffectsRequest($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + + $resourcePath = '/dogma/effects/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getDogmaEffectsEffectId + * + * Get effect information + * + * @param int $effectId A dogma effect ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetDogmaEffectsEffectIdOk + */ + public function getDogmaEffectsEffectId($effectId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getDogmaEffectsEffectIdWithHttpInfo($effectId, $datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getDogmaEffectsEffectIdWithHttpInfo + * + * Get effect information + * + * @param int $effectId A dogma effect ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetDogmaEffectsEffectIdOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getDogmaEffectsEffectIdWithHttpInfo($effectId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetDogmaEffectsEffectIdOk'; + $request = $this->getDogmaEffectsEffectIdRequest($effectId, $datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetDogmaEffectsEffectIdOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetDogmaEffectsEffectIdNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getDogmaEffectsEffectIdAsync + * + * Get effect information + * + * @param int $effectId A dogma effect ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getDogmaEffectsEffectIdAsync($effectId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getDogmaEffectsEffectIdAsyncWithHttpInfo($effectId, $datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getDogmaEffectsEffectIdAsyncWithHttpInfo + * + * Get effect information + * + * @param int $effectId A dogma effect ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getDogmaEffectsEffectIdAsyncWithHttpInfo($effectId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetDogmaEffectsEffectIdOk'; + $request = $this->getDogmaEffectsEffectIdRequest($effectId, $datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getDogmaEffectsEffectId' + * + * @param int $effectId A dogma effect ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getDogmaEffectsEffectIdRequest($effectId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'effectId' is set + if ($effectId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $effectId when calling getDogmaEffectsEffectId' + ); + } + + $resourcePath = '/dogma/effects/{effect_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($effectId !== null) { + $resourcePath = str_replace( + '{' . 'effect_id' . '}', + ObjectSerializer::toPathValue($effectId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } +} diff --git a/src/nullx27/ESI/Api/FactionWarfareApi.php b/src/nullx27/ESI/Api/FactionWarfareApi.php new file mode 100644 index 0000000..465e659 --- /dev/null +++ b/src/nullx27/ESI/Api/FactionWarfareApi.php @@ -0,0 +1,2415 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation getCharactersCharacterIdFwStats + * + * Overview of a character involved in faction warfare + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFwStatsOk + */ + public function getCharactersCharacterIdFwStats($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdFwStatsWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdFwStatsWithHttpInfo + * + * Overview of a character involved in faction warfare + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFwStatsOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdFwStatsWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFwStatsOk'; + $request = $this->getCharactersCharacterIdFwStatsRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFwStatsOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdFwStatsAsync + * + * Overview of a character involved in faction warfare + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdFwStatsAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdFwStatsAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdFwStatsAsyncWithHttpInfo + * + * Overview of a character involved in faction warfare + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdFwStatsAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFwStatsOk'; + $request = $this->getCharactersCharacterIdFwStatsRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdFwStats' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdFwStatsRequest($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdFwStats' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling FactionWarfareApi.getCharactersCharacterIdFwStats, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/fw/stats/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsCorporationIdFwStats + * + * Overview of a corporation involved in faction warfare + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdFwStatsOk + */ + public function getCorporationsCorporationIdFwStats($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdFwStatsWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdFwStatsWithHttpInfo + * + * Overview of a corporation involved in faction warfare + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdFwStatsOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdFwStatsWithHttpInfo($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdFwStatsOk'; + $request = $this->getCorporationsCorporationIdFwStatsRequest($corporationId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdFwStatsOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdFwStatsAsync + * + * Overview of a corporation involved in faction warfare + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdFwStatsAsync($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdFwStatsAsyncWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdFwStatsAsyncWithHttpInfo + * + * Overview of a corporation involved in faction warfare + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdFwStatsAsyncWithHttpInfo($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdFwStatsOk'; + $request = $this->getCorporationsCorporationIdFwStatsRequest($corporationId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationIdFwStats' + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdFwStatsRequest($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationIdFwStats' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling FactionWarfareApi.getCorporationsCorporationIdFwStats, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporations/{corporation_id}/fw/stats/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getFwLeaderboards + * + * List of the top factions in faction warfare + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsOk + */ + public function getFwLeaderboards($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getFwLeaderboardsWithHttpInfo($datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getFwLeaderboardsWithHttpInfo + * + * List of the top factions in faction warfare + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getFwLeaderboardsWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsOk'; + $request = $this->getFwLeaderboardsRequest($datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getFwLeaderboardsAsync + * + * List of the top factions in faction warfare + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getFwLeaderboardsAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getFwLeaderboardsAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getFwLeaderboardsAsyncWithHttpInfo + * + * List of the top factions in faction warfare + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getFwLeaderboardsAsyncWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsOk'; + $request = $this->getFwLeaderboardsRequest($datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getFwLeaderboards' + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getFwLeaderboardsRequest($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + + $resourcePath = '/fw/leaderboards/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getFwLeaderboardsCharacters + * + * List of the top pilots in faction warfare + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersOk + */ + public function getFwLeaderboardsCharacters($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getFwLeaderboardsCharactersWithHttpInfo($datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getFwLeaderboardsCharactersWithHttpInfo + * + * List of the top pilots in faction warfare + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getFwLeaderboardsCharactersWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersOk'; + $request = $this->getFwLeaderboardsCharactersRequest($datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getFwLeaderboardsCharactersAsync + * + * List of the top pilots in faction warfare + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getFwLeaderboardsCharactersAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getFwLeaderboardsCharactersAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getFwLeaderboardsCharactersAsyncWithHttpInfo + * + * List of the top pilots in faction warfare + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getFwLeaderboardsCharactersAsyncWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersOk'; + $request = $this->getFwLeaderboardsCharactersRequest($datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getFwLeaderboardsCharacters' + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getFwLeaderboardsCharactersRequest($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + + $resourcePath = '/fw/leaderboards/characters/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getFwLeaderboardsCorporations + * + * List of the top corporations in faction warfare + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsOk + */ + public function getFwLeaderboardsCorporations($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getFwLeaderboardsCorporationsWithHttpInfo($datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getFwLeaderboardsCorporationsWithHttpInfo + * + * List of the top corporations in faction warfare + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getFwLeaderboardsCorporationsWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsOk'; + $request = $this->getFwLeaderboardsCorporationsRequest($datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getFwLeaderboardsCorporationsAsync + * + * List of the top corporations in faction warfare + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getFwLeaderboardsCorporationsAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getFwLeaderboardsCorporationsAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getFwLeaderboardsCorporationsAsyncWithHttpInfo + * + * List of the top corporations in faction warfare + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getFwLeaderboardsCorporationsAsyncWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsOk'; + $request = $this->getFwLeaderboardsCorporationsRequest($datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getFwLeaderboardsCorporations' + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getFwLeaderboardsCorporationsRequest($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + + $resourcePath = '/fw/leaderboards/corporations/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getFwStats + * + * An overview of statistics about factions involved in faction warfare + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetFwStats200Ok[] + */ + public function getFwStats($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getFwStatsWithHttpInfo($datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getFwStatsWithHttpInfo + * + * An overview of statistics about factions involved in faction warfare + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetFwStats200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getFwStatsWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetFwStats200Ok[]'; + $request = $this->getFwStatsRequest($datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetFwStats200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getFwStatsAsync + * + * An overview of statistics about factions involved in faction warfare + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getFwStatsAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getFwStatsAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getFwStatsAsyncWithHttpInfo + * + * An overview of statistics about factions involved in faction warfare + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getFwStatsAsyncWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetFwStats200Ok[]'; + $request = $this->getFwStatsRequest($datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getFwStats' + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getFwStatsRequest($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + + $resourcePath = '/fw/stats/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getFwSystems + * + * Ownership of faction warfare systems + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetFwSystems200Ok[] + */ + public function getFwSystems($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getFwSystemsWithHttpInfo($datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getFwSystemsWithHttpInfo + * + * Ownership of faction warfare systems + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetFwSystems200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getFwSystemsWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetFwSystems200Ok[]'; + $request = $this->getFwSystemsRequest($datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetFwSystems200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getFwSystemsAsync + * + * Ownership of faction warfare systems + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getFwSystemsAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getFwSystemsAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getFwSystemsAsyncWithHttpInfo + * + * Ownership of faction warfare systems + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getFwSystemsAsyncWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetFwSystems200Ok[]'; + $request = $this->getFwSystemsRequest($datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getFwSystems' + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getFwSystemsRequest($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + + $resourcePath = '/fw/systems/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getFwWars + * + * Data about which NPC factions are at war + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetFwWars200Ok[] + */ + public function getFwWars($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getFwWarsWithHttpInfo($datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getFwWarsWithHttpInfo + * + * Data about which NPC factions are at war + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetFwWars200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getFwWarsWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetFwWars200Ok[]'; + $request = $this->getFwWarsRequest($datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetFwWars200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getFwWarsAsync + * + * Data about which NPC factions are at war + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getFwWarsAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getFwWarsAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getFwWarsAsyncWithHttpInfo + * + * Data about which NPC factions are at war + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getFwWarsAsyncWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetFwWars200Ok[]'; + $request = $this->getFwWarsRequest($datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getFwWars' + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getFwWarsRequest($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + + $resourcePath = '/fw/wars/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } +} diff --git a/src/nullx27/ESI/Api/FittingsApi.php b/src/nullx27/ESI/Api/FittingsApi.php new file mode 100644 index 0000000..f53295b --- /dev/null +++ b/src/nullx27/ESI/Api/FittingsApi.php @@ -0,0 +1,1059 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation deleteCharactersCharacterIdFittingsFittingId + * + * Delete fitting + * + * @param int $characterId An EVE character ID (required) + * @param int $fittingId ID for a fitting of this character (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return void + */ + public function deleteCharactersCharacterIdFittingsFittingId($characterId, $fittingId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $this->deleteCharactersCharacterIdFittingsFittingIdWithHttpInfo($characterId, $fittingId, $datasource, $token, $userAgent, $xUserAgent); + } + + /** + * Operation deleteCharactersCharacterIdFittingsFittingIdWithHttpInfo + * + * Delete fitting + * + * @param int $characterId An EVE character ID (required) + * @param int $fittingId ID for a fitting of this character (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteCharactersCharacterIdFittingsFittingIdWithHttpInfo($characterId, $fittingId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->deleteCharactersCharacterIdFittingsFittingIdRequest($characterId, $fittingId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + return [null, $statusCode, $response->getHeaders()]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation deleteCharactersCharacterIdFittingsFittingIdAsync + * + * Delete fitting + * + * @param int $characterId An EVE character ID (required) + * @param int $fittingId ID for a fitting of this character (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteCharactersCharacterIdFittingsFittingIdAsync($characterId, $fittingId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->deleteCharactersCharacterIdFittingsFittingIdAsyncWithHttpInfo($characterId, $fittingId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation deleteCharactersCharacterIdFittingsFittingIdAsyncWithHttpInfo + * + * Delete fitting + * + * @param int $characterId An EVE character ID (required) + * @param int $fittingId ID for a fitting of this character (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteCharactersCharacterIdFittingsFittingIdAsyncWithHttpInfo($characterId, $fittingId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->deleteCharactersCharacterIdFittingsFittingIdRequest($characterId, $fittingId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'deleteCharactersCharacterIdFittingsFittingId' + * + * @param int $characterId An EVE character ID (required) + * @param int $fittingId ID for a fitting of this character (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function deleteCharactersCharacterIdFittingsFittingIdRequest($characterId, $fittingId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling deleteCharactersCharacterIdFittingsFittingId' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling FittingsApi.deleteCharactersCharacterIdFittingsFittingId, must be bigger than or equal to 1.'); + } + + // verify the required parameter 'fittingId' is set + if ($fittingId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $fittingId when calling deleteCharactersCharacterIdFittingsFittingId' + ); + } + + $resourcePath = '/characters/{character_id}/fittings/{fitting_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + // path params + if ($fittingId !== null) { + $resourcePath = str_replace( + '{' . 'fitting_id' . '}', + ObjectSerializer::toPathValue($fittingId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'DELETE', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCharactersCharacterIdFittings + * + * Get fittings + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFittings200Ok[] + */ + public function getCharactersCharacterIdFittings($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdFittingsWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdFittingsWithHttpInfo + * + * Get fittings + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFittings200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdFittingsWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFittings200Ok[]'; + $request = $this->getCharactersCharacterIdFittingsRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFittings200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdFittingsAsync + * + * Get fittings + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdFittingsAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdFittingsAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdFittingsAsyncWithHttpInfo + * + * Get fittings + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdFittingsAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFittings200Ok[]'; + $request = $this->getCharactersCharacterIdFittingsRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdFittings' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdFittingsRequest($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdFittings' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling FittingsApi.getCharactersCharacterIdFittings, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/fittings/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation postCharactersCharacterIdFittings + * + * Create fitting + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param \nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdFittingsFitting $fitting Details about the new fitting (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdFittingsCreated + */ + public function postCharactersCharacterIdFittings($characterId, $datasource = 'tranquility', $fitting = null, $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->postCharactersCharacterIdFittingsWithHttpInfo($characterId, $datasource, $fitting, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation postCharactersCharacterIdFittingsWithHttpInfo + * + * Create fitting + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param \nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdFittingsFitting $fitting Details about the new fitting (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdFittingsCreated, HTTP status code, HTTP response headers (array of strings) + */ + public function postCharactersCharacterIdFittingsWithHttpInfo($characterId, $datasource = 'tranquility', $fitting = null, $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdFittingsCreated'; + $request = $this->postCharactersCharacterIdFittingsRequest($characterId, $datasource, $fitting, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 201: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdFittingsCreated', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation postCharactersCharacterIdFittingsAsync + * + * Create fitting + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param \nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdFittingsFitting $fitting Details about the new fitting (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postCharactersCharacterIdFittingsAsync($characterId, $datasource = 'tranquility', $fitting = null, $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->postCharactersCharacterIdFittingsAsyncWithHttpInfo($characterId, $datasource, $fitting, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation postCharactersCharacterIdFittingsAsyncWithHttpInfo + * + * Create fitting + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param \nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdFittingsFitting $fitting Details about the new fitting (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postCharactersCharacterIdFittingsAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $fitting = null, $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdFittingsCreated'; + $request = $this->postCharactersCharacterIdFittingsRequest($characterId, $datasource, $fitting, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'postCharactersCharacterIdFittings' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param \nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdFittingsFitting $fitting Details about the new fitting (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function postCharactersCharacterIdFittingsRequest($characterId, $datasource = 'tranquility', $fitting = null, $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling postCharactersCharacterIdFittings' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling FittingsApi.postCharactersCharacterIdFittings, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/fittings/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + if (isset($fitting)) { + $_tempBody = $fitting; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } +} diff --git a/src/nullx27/ESI/Api/FleetsApi.php b/src/nullx27/ESI/Api/FleetsApi.php new file mode 100644 index 0000000..486a56e --- /dev/null +++ b/src/nullx27/ESI/Api/FleetsApi.php @@ -0,0 +1,4620 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation deleteFleetsFleetIdMembersMemberId + * + * Kick fleet member + * + * @param int $fleetId ID for a fleet (required) + * @param int $memberId The character ID of a member in this fleet (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return void + */ + public function deleteFleetsFleetIdMembersMemberId($fleetId, $memberId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $this->deleteFleetsFleetIdMembersMemberIdWithHttpInfo($fleetId, $memberId, $datasource, $token, $userAgent, $xUserAgent); + } + + /** + * Operation deleteFleetsFleetIdMembersMemberIdWithHttpInfo + * + * Kick fleet member + * + * @param int $fleetId ID for a fleet (required) + * @param int $memberId The character ID of a member in this fleet (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteFleetsFleetIdMembersMemberIdWithHttpInfo($fleetId, $memberId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->deleteFleetsFleetIdMembersMemberIdRequest($fleetId, $memberId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + return [null, $statusCode, $response->getHeaders()]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\DeleteFleetsFleetIdMembersMemberIdNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation deleteFleetsFleetIdMembersMemberIdAsync + * + * Kick fleet member + * + * @param int $fleetId ID for a fleet (required) + * @param int $memberId The character ID of a member in this fleet (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteFleetsFleetIdMembersMemberIdAsync($fleetId, $memberId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->deleteFleetsFleetIdMembersMemberIdAsyncWithHttpInfo($fleetId, $memberId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation deleteFleetsFleetIdMembersMemberIdAsyncWithHttpInfo + * + * Kick fleet member + * + * @param int $fleetId ID for a fleet (required) + * @param int $memberId The character ID of a member in this fleet (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteFleetsFleetIdMembersMemberIdAsyncWithHttpInfo($fleetId, $memberId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->deleteFleetsFleetIdMembersMemberIdRequest($fleetId, $memberId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'deleteFleetsFleetIdMembersMemberId' + * + * @param int $fleetId ID for a fleet (required) + * @param int $memberId The character ID of a member in this fleet (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function deleteFleetsFleetIdMembersMemberIdRequest($fleetId, $memberId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'fleetId' is set + if ($fleetId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $fleetId when calling deleteFleetsFleetIdMembersMemberId' + ); + } + // verify the required parameter 'memberId' is set + if ($memberId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $memberId when calling deleteFleetsFleetIdMembersMemberId' + ); + } + + $resourcePath = '/fleets/{fleet_id}/members/{member_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($fleetId !== null) { + $resourcePath = str_replace( + '{' . 'fleet_id' . '}', + ObjectSerializer::toPathValue($fleetId), + $resourcePath + ); + } + // path params + if ($memberId !== null) { + $resourcePath = str_replace( + '{' . 'member_id' . '}', + ObjectSerializer::toPathValue($memberId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'DELETE', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation deleteFleetsFleetIdSquadsSquadId + * + * Delete fleet squad + * + * @param int $fleetId ID for a fleet (required) + * @param int $squadId The squad to delete (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return void + */ + public function deleteFleetsFleetIdSquadsSquadId($fleetId, $squadId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $this->deleteFleetsFleetIdSquadsSquadIdWithHttpInfo($fleetId, $squadId, $datasource, $token, $userAgent, $xUserAgent); + } + + /** + * Operation deleteFleetsFleetIdSquadsSquadIdWithHttpInfo + * + * Delete fleet squad + * + * @param int $fleetId ID for a fleet (required) + * @param int $squadId The squad to delete (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteFleetsFleetIdSquadsSquadIdWithHttpInfo($fleetId, $squadId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->deleteFleetsFleetIdSquadsSquadIdRequest($fleetId, $squadId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + return [null, $statusCode, $response->getHeaders()]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\DeleteFleetsFleetIdSquadsSquadIdNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation deleteFleetsFleetIdSquadsSquadIdAsync + * + * Delete fleet squad + * + * @param int $fleetId ID for a fleet (required) + * @param int $squadId The squad to delete (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteFleetsFleetIdSquadsSquadIdAsync($fleetId, $squadId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->deleteFleetsFleetIdSquadsSquadIdAsyncWithHttpInfo($fleetId, $squadId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation deleteFleetsFleetIdSquadsSquadIdAsyncWithHttpInfo + * + * Delete fleet squad + * + * @param int $fleetId ID for a fleet (required) + * @param int $squadId The squad to delete (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteFleetsFleetIdSquadsSquadIdAsyncWithHttpInfo($fleetId, $squadId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->deleteFleetsFleetIdSquadsSquadIdRequest($fleetId, $squadId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'deleteFleetsFleetIdSquadsSquadId' + * + * @param int $fleetId ID for a fleet (required) + * @param int $squadId The squad to delete (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function deleteFleetsFleetIdSquadsSquadIdRequest($fleetId, $squadId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'fleetId' is set + if ($fleetId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $fleetId when calling deleteFleetsFleetIdSquadsSquadId' + ); + } + // verify the required parameter 'squadId' is set + if ($squadId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $squadId when calling deleteFleetsFleetIdSquadsSquadId' + ); + } + + $resourcePath = '/fleets/{fleet_id}/squads/{squad_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($fleetId !== null) { + $resourcePath = str_replace( + '{' . 'fleet_id' . '}', + ObjectSerializer::toPathValue($fleetId), + $resourcePath + ); + } + // path params + if ($squadId !== null) { + $resourcePath = str_replace( + '{' . 'squad_id' . '}', + ObjectSerializer::toPathValue($squadId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'DELETE', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation deleteFleetsFleetIdWingsWingId + * + * Delete fleet wing + * + * @param int $fleetId ID for a fleet (required) + * @param int $wingId The wing to delete (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return void + */ + public function deleteFleetsFleetIdWingsWingId($fleetId, $wingId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $this->deleteFleetsFleetIdWingsWingIdWithHttpInfo($fleetId, $wingId, $datasource, $token, $userAgent, $xUserAgent); + } + + /** + * Operation deleteFleetsFleetIdWingsWingIdWithHttpInfo + * + * Delete fleet wing + * + * @param int $fleetId ID for a fleet (required) + * @param int $wingId The wing to delete (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteFleetsFleetIdWingsWingIdWithHttpInfo($fleetId, $wingId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->deleteFleetsFleetIdWingsWingIdRequest($fleetId, $wingId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + return [null, $statusCode, $response->getHeaders()]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\DeleteFleetsFleetIdWingsWingIdNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation deleteFleetsFleetIdWingsWingIdAsync + * + * Delete fleet wing + * + * @param int $fleetId ID for a fleet (required) + * @param int $wingId The wing to delete (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteFleetsFleetIdWingsWingIdAsync($fleetId, $wingId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->deleteFleetsFleetIdWingsWingIdAsyncWithHttpInfo($fleetId, $wingId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation deleteFleetsFleetIdWingsWingIdAsyncWithHttpInfo + * + * Delete fleet wing + * + * @param int $fleetId ID for a fleet (required) + * @param int $wingId The wing to delete (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteFleetsFleetIdWingsWingIdAsyncWithHttpInfo($fleetId, $wingId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->deleteFleetsFleetIdWingsWingIdRequest($fleetId, $wingId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'deleteFleetsFleetIdWingsWingId' + * + * @param int $fleetId ID for a fleet (required) + * @param int $wingId The wing to delete (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function deleteFleetsFleetIdWingsWingIdRequest($fleetId, $wingId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'fleetId' is set + if ($fleetId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $fleetId when calling deleteFleetsFleetIdWingsWingId' + ); + } + // verify the required parameter 'wingId' is set + if ($wingId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $wingId when calling deleteFleetsFleetIdWingsWingId' + ); + } + + $resourcePath = '/fleets/{fleet_id}/wings/{wing_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($fleetId !== null) { + $resourcePath = str_replace( + '{' . 'fleet_id' . '}', + ObjectSerializer::toPathValue($fleetId), + $resourcePath + ); + } + // path params + if ($wingId !== null) { + $resourcePath = str_replace( + '{' . 'wing_id' . '}', + ObjectSerializer::toPathValue($wingId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'DELETE', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCharactersCharacterIdFleet + * + * Get character fleet info + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFleetOk + */ + public function getCharactersCharacterIdFleet($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdFleetWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdFleetWithHttpInfo + * + * Get character fleet info + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFleetOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdFleetWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFleetOk'; + $request = $this->getCharactersCharacterIdFleetRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFleetOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFleetNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdFleetAsync + * + * Get character fleet info + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdFleetAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdFleetAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdFleetAsyncWithHttpInfo + * + * Get character fleet info + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdFleetAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFleetOk'; + $request = $this->getCharactersCharacterIdFleetRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdFleet' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdFleetRequest($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdFleet' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling FleetsApi.getCharactersCharacterIdFleet, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/fleet/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getFleetsFleetId + * + * Get fleet information + * + * @param int $fleetId ID for a fleet (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetFleetsFleetIdOk + */ + public function getFleetsFleetId($fleetId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getFleetsFleetIdWithHttpInfo($fleetId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getFleetsFleetIdWithHttpInfo + * + * Get fleet information + * + * @param int $fleetId ID for a fleet (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetFleetsFleetIdOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getFleetsFleetIdWithHttpInfo($fleetId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetFleetsFleetIdOk'; + $request = $this->getFleetsFleetIdRequest($fleetId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetFleetsFleetIdOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetFleetsFleetIdNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getFleetsFleetIdAsync + * + * Get fleet information + * + * @param int $fleetId ID for a fleet (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getFleetsFleetIdAsync($fleetId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getFleetsFleetIdAsyncWithHttpInfo($fleetId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getFleetsFleetIdAsyncWithHttpInfo + * + * Get fleet information + * + * @param int $fleetId ID for a fleet (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getFleetsFleetIdAsyncWithHttpInfo($fleetId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetFleetsFleetIdOk'; + $request = $this->getFleetsFleetIdRequest($fleetId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getFleetsFleetId' + * + * @param int $fleetId ID for a fleet (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getFleetsFleetIdRequest($fleetId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'fleetId' is set + if ($fleetId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $fleetId when calling getFleetsFleetId' + ); + } + + $resourcePath = '/fleets/{fleet_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($fleetId !== null) { + $resourcePath = str_replace( + '{' . 'fleet_id' . '}', + ObjectSerializer::toPathValue($fleetId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getFleetsFleetIdMembers + * + * Get fleet members + * + * @param int $fleetId ID for a fleet (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetFleetsFleetIdMembers200Ok[] + */ + public function getFleetsFleetIdMembers($fleetId, $datasource = 'tranquility', $language = 'en-us', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getFleetsFleetIdMembersWithHttpInfo($fleetId, $datasource, $language, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getFleetsFleetIdMembersWithHttpInfo + * + * Get fleet members + * + * @param int $fleetId ID for a fleet (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetFleetsFleetIdMembers200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getFleetsFleetIdMembersWithHttpInfo($fleetId, $datasource = 'tranquility', $language = 'en-us', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetFleetsFleetIdMembers200Ok[]'; + $request = $this->getFleetsFleetIdMembersRequest($fleetId, $datasource, $language, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetFleetsFleetIdMembers200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetFleetsFleetIdMembersNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getFleetsFleetIdMembersAsync + * + * Get fleet members + * + * @param int $fleetId ID for a fleet (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getFleetsFleetIdMembersAsync($fleetId, $datasource = 'tranquility', $language = 'en-us', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getFleetsFleetIdMembersAsyncWithHttpInfo($fleetId, $datasource, $language, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getFleetsFleetIdMembersAsyncWithHttpInfo + * + * Get fleet members + * + * @param int $fleetId ID for a fleet (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getFleetsFleetIdMembersAsyncWithHttpInfo($fleetId, $datasource = 'tranquility', $language = 'en-us', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetFleetsFleetIdMembers200Ok[]'; + $request = $this->getFleetsFleetIdMembersRequest($fleetId, $datasource, $language, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getFleetsFleetIdMembers' + * + * @param int $fleetId ID for a fleet (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getFleetsFleetIdMembersRequest($fleetId, $datasource = 'tranquility', $language = 'en-us', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'fleetId' is set + if ($fleetId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $fleetId when calling getFleetsFleetIdMembers' + ); + } + + $resourcePath = '/fleets/{fleet_id}/members/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($language !== null) { + $queryParams['language'] = ObjectSerializer::toQueryValue($language); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($fleetId !== null) { + $resourcePath = str_replace( + '{' . 'fleet_id' . '}', + ObjectSerializer::toPathValue($fleetId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getFleetsFleetIdWings + * + * Get fleet wings + * + * @param int $fleetId ID for a fleet (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetFleetsFleetIdWings200Ok[] + */ + public function getFleetsFleetIdWings($fleetId, $datasource = 'tranquility', $language = 'en-us', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getFleetsFleetIdWingsWithHttpInfo($fleetId, $datasource, $language, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getFleetsFleetIdWingsWithHttpInfo + * + * Get fleet wings + * + * @param int $fleetId ID for a fleet (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetFleetsFleetIdWings200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getFleetsFleetIdWingsWithHttpInfo($fleetId, $datasource = 'tranquility', $language = 'en-us', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetFleetsFleetIdWings200Ok[]'; + $request = $this->getFleetsFleetIdWingsRequest($fleetId, $datasource, $language, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetFleetsFleetIdWings200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetFleetsFleetIdWingsNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getFleetsFleetIdWingsAsync + * + * Get fleet wings + * + * @param int $fleetId ID for a fleet (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getFleetsFleetIdWingsAsync($fleetId, $datasource = 'tranquility', $language = 'en-us', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getFleetsFleetIdWingsAsyncWithHttpInfo($fleetId, $datasource, $language, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getFleetsFleetIdWingsAsyncWithHttpInfo + * + * Get fleet wings + * + * @param int $fleetId ID for a fleet (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getFleetsFleetIdWingsAsyncWithHttpInfo($fleetId, $datasource = 'tranquility', $language = 'en-us', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetFleetsFleetIdWings200Ok[]'; + $request = $this->getFleetsFleetIdWingsRequest($fleetId, $datasource, $language, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getFleetsFleetIdWings' + * + * @param int $fleetId ID for a fleet (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getFleetsFleetIdWingsRequest($fleetId, $datasource = 'tranquility', $language = 'en-us', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'fleetId' is set + if ($fleetId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $fleetId when calling getFleetsFleetIdWings' + ); + } + + $resourcePath = '/fleets/{fleet_id}/wings/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($language !== null) { + $queryParams['language'] = ObjectSerializer::toQueryValue($language); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($fleetId !== null) { + $resourcePath = str_replace( + '{' . 'fleet_id' . '}', + ObjectSerializer::toPathValue($fleetId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation postFleetsFleetIdMembers + * + * Create fleet invitation + * + * @param int $fleetId ID for a fleet (required) + * @param \nullx27ESI\nullx27\ESI\Models\PostFleetsFleetIdMembersInvitation $invitation Details of the invitation (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return void + */ + public function postFleetsFleetIdMembers($fleetId, $invitation, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $this->postFleetsFleetIdMembersWithHttpInfo($fleetId, $invitation, $datasource, $token, $userAgent, $xUserAgent); + } + + /** + * Operation postFleetsFleetIdMembersWithHttpInfo + * + * Create fleet invitation + * + * @param int $fleetId ID for a fleet (required) + * @param \nullx27ESI\nullx27\ESI\Models\PostFleetsFleetIdMembersInvitation $invitation Details of the invitation (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function postFleetsFleetIdMembersWithHttpInfo($fleetId, $invitation, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->postFleetsFleetIdMembersRequest($fleetId, $invitation, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + return [null, $statusCode, $response->getHeaders()]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\PostFleetsFleetIdMembersNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 422: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\PostFleetsFleetIdMembersUnprocessableEntity', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation postFleetsFleetIdMembersAsync + * + * Create fleet invitation + * + * @param int $fleetId ID for a fleet (required) + * @param \nullx27ESI\nullx27\ESI\Models\PostFleetsFleetIdMembersInvitation $invitation Details of the invitation (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postFleetsFleetIdMembersAsync($fleetId, $invitation, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->postFleetsFleetIdMembersAsyncWithHttpInfo($fleetId, $invitation, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation postFleetsFleetIdMembersAsyncWithHttpInfo + * + * Create fleet invitation + * + * @param int $fleetId ID for a fleet (required) + * @param \nullx27ESI\nullx27\ESI\Models\PostFleetsFleetIdMembersInvitation $invitation Details of the invitation (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postFleetsFleetIdMembersAsyncWithHttpInfo($fleetId, $invitation, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->postFleetsFleetIdMembersRequest($fleetId, $invitation, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'postFleetsFleetIdMembers' + * + * @param int $fleetId ID for a fleet (required) + * @param \nullx27ESI\nullx27\ESI\Models\PostFleetsFleetIdMembersInvitation $invitation Details of the invitation (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function postFleetsFleetIdMembersRequest($fleetId, $invitation, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'fleetId' is set + if ($fleetId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $fleetId when calling postFleetsFleetIdMembers' + ); + } + // verify the required parameter 'invitation' is set + if ($invitation === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $invitation when calling postFleetsFleetIdMembers' + ); + } + + $resourcePath = '/fleets/{fleet_id}/members/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($fleetId !== null) { + $resourcePath = str_replace( + '{' . 'fleet_id' . '}', + ObjectSerializer::toPathValue($fleetId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + if (isset($invitation)) { + $_tempBody = $invitation; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation postFleetsFleetIdWings + * + * Create fleet wing + * + * @param int $fleetId ID for a fleet (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\PostFleetsFleetIdWingsCreated + */ + public function postFleetsFleetIdWings($fleetId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->postFleetsFleetIdWingsWithHttpInfo($fleetId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation postFleetsFleetIdWingsWithHttpInfo + * + * Create fleet wing + * + * @param int $fleetId ID for a fleet (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\PostFleetsFleetIdWingsCreated, HTTP status code, HTTP response headers (array of strings) + */ + public function postFleetsFleetIdWingsWithHttpInfo($fleetId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\PostFleetsFleetIdWingsCreated'; + $request = $this->postFleetsFleetIdWingsRequest($fleetId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 201: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\PostFleetsFleetIdWingsCreated', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\PostFleetsFleetIdWingsNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation postFleetsFleetIdWingsAsync + * + * Create fleet wing + * + * @param int $fleetId ID for a fleet (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postFleetsFleetIdWingsAsync($fleetId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->postFleetsFleetIdWingsAsyncWithHttpInfo($fleetId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation postFleetsFleetIdWingsAsyncWithHttpInfo + * + * Create fleet wing + * + * @param int $fleetId ID for a fleet (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postFleetsFleetIdWingsAsyncWithHttpInfo($fleetId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\PostFleetsFleetIdWingsCreated'; + $request = $this->postFleetsFleetIdWingsRequest($fleetId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'postFleetsFleetIdWings' + * + * @param int $fleetId ID for a fleet (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function postFleetsFleetIdWingsRequest($fleetId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'fleetId' is set + if ($fleetId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $fleetId when calling postFleetsFleetIdWings' + ); + } + + $resourcePath = '/fleets/{fleet_id}/wings/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($fleetId !== null) { + $resourcePath = str_replace( + '{' . 'fleet_id' . '}', + ObjectSerializer::toPathValue($fleetId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation postFleetsFleetIdWingsWingIdSquads + * + * Create fleet squad + * + * @param int $fleetId ID for a fleet (required) + * @param int $wingId The wing_id to create squad in (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\PostFleetsFleetIdWingsWingIdSquadsCreated + */ + public function postFleetsFleetIdWingsWingIdSquads($fleetId, $wingId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->postFleetsFleetIdWingsWingIdSquadsWithHttpInfo($fleetId, $wingId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation postFleetsFleetIdWingsWingIdSquadsWithHttpInfo + * + * Create fleet squad + * + * @param int $fleetId ID for a fleet (required) + * @param int $wingId The wing_id to create squad in (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\PostFleetsFleetIdWingsWingIdSquadsCreated, HTTP status code, HTTP response headers (array of strings) + */ + public function postFleetsFleetIdWingsWingIdSquadsWithHttpInfo($fleetId, $wingId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\PostFleetsFleetIdWingsWingIdSquadsCreated'; + $request = $this->postFleetsFleetIdWingsWingIdSquadsRequest($fleetId, $wingId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 201: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\PostFleetsFleetIdWingsWingIdSquadsCreated', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\PostFleetsFleetIdWingsWingIdSquadsNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation postFleetsFleetIdWingsWingIdSquadsAsync + * + * Create fleet squad + * + * @param int $fleetId ID for a fleet (required) + * @param int $wingId The wing_id to create squad in (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postFleetsFleetIdWingsWingIdSquadsAsync($fleetId, $wingId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->postFleetsFleetIdWingsWingIdSquadsAsyncWithHttpInfo($fleetId, $wingId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation postFleetsFleetIdWingsWingIdSquadsAsyncWithHttpInfo + * + * Create fleet squad + * + * @param int $fleetId ID for a fleet (required) + * @param int $wingId The wing_id to create squad in (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postFleetsFleetIdWingsWingIdSquadsAsyncWithHttpInfo($fleetId, $wingId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\PostFleetsFleetIdWingsWingIdSquadsCreated'; + $request = $this->postFleetsFleetIdWingsWingIdSquadsRequest($fleetId, $wingId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'postFleetsFleetIdWingsWingIdSquads' + * + * @param int $fleetId ID for a fleet (required) + * @param int $wingId The wing_id to create squad in (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function postFleetsFleetIdWingsWingIdSquadsRequest($fleetId, $wingId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'fleetId' is set + if ($fleetId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $fleetId when calling postFleetsFleetIdWingsWingIdSquads' + ); + } + // verify the required parameter 'wingId' is set + if ($wingId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $wingId when calling postFleetsFleetIdWingsWingIdSquads' + ); + } + + $resourcePath = '/fleets/{fleet_id}/wings/{wing_id}/squads/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($fleetId !== null) { + $resourcePath = str_replace( + '{' . 'fleet_id' . '}', + ObjectSerializer::toPathValue($fleetId), + $resourcePath + ); + } + // path params + if ($wingId !== null) { + $resourcePath = str_replace( + '{' . 'wing_id' . '}', + ObjectSerializer::toPathValue($wingId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation putFleetsFleetId + * + * Update fleet + * + * @param int $fleetId ID for a fleet (required) + * @param \nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdNewSettings $newSettings What to update for this fleet (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return void + */ + public function putFleetsFleetId($fleetId, $newSettings, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $this->putFleetsFleetIdWithHttpInfo($fleetId, $newSettings, $datasource, $token, $userAgent, $xUserAgent); + } + + /** + * Operation putFleetsFleetIdWithHttpInfo + * + * Update fleet + * + * @param int $fleetId ID for a fleet (required) + * @param \nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdNewSettings $newSettings What to update for this fleet (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function putFleetsFleetIdWithHttpInfo($fleetId, $newSettings, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->putFleetsFleetIdRequest($fleetId, $newSettings, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + return [null, $statusCode, $response->getHeaders()]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 400: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdBadRequest', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation putFleetsFleetIdAsync + * + * Update fleet + * + * @param int $fleetId ID for a fleet (required) + * @param \nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdNewSettings $newSettings What to update for this fleet (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function putFleetsFleetIdAsync($fleetId, $newSettings, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->putFleetsFleetIdAsyncWithHttpInfo($fleetId, $newSettings, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation putFleetsFleetIdAsyncWithHttpInfo + * + * Update fleet + * + * @param int $fleetId ID for a fleet (required) + * @param \nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdNewSettings $newSettings What to update for this fleet (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function putFleetsFleetIdAsyncWithHttpInfo($fleetId, $newSettings, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->putFleetsFleetIdRequest($fleetId, $newSettings, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'putFleetsFleetId' + * + * @param int $fleetId ID for a fleet (required) + * @param \nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdNewSettings $newSettings What to update for this fleet (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function putFleetsFleetIdRequest($fleetId, $newSettings, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'fleetId' is set + if ($fleetId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $fleetId when calling putFleetsFleetId' + ); + } + // verify the required parameter 'newSettings' is set + if ($newSettings === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $newSettings when calling putFleetsFleetId' + ); + } + + $resourcePath = '/fleets/{fleet_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($fleetId !== null) { + $resourcePath = str_replace( + '{' . 'fleet_id' . '}', + ObjectSerializer::toPathValue($fleetId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + if (isset($newSettings)) { + $_tempBody = $newSettings; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'PUT', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation putFleetsFleetIdMembersMemberId + * + * Move fleet member + * + * @param int $fleetId ID for a fleet (required) + * @param int $memberId The character ID of a member in this fleet (required) + * @param \nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdMembersMemberIdMovement $movement Details of the invitation (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return void + */ + public function putFleetsFleetIdMembersMemberId($fleetId, $memberId, $movement, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $this->putFleetsFleetIdMembersMemberIdWithHttpInfo($fleetId, $memberId, $movement, $datasource, $token, $userAgent, $xUserAgent); + } + + /** + * Operation putFleetsFleetIdMembersMemberIdWithHttpInfo + * + * Move fleet member + * + * @param int $fleetId ID for a fleet (required) + * @param int $memberId The character ID of a member in this fleet (required) + * @param \nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdMembersMemberIdMovement $movement Details of the invitation (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function putFleetsFleetIdMembersMemberIdWithHttpInfo($fleetId, $memberId, $movement, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->putFleetsFleetIdMembersMemberIdRequest($fleetId, $memberId, $movement, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + return [null, $statusCode, $response->getHeaders()]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdMembersMemberIdNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 422: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdMembersMemberIdUnprocessableEntity', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation putFleetsFleetIdMembersMemberIdAsync + * + * Move fleet member + * + * @param int $fleetId ID for a fleet (required) + * @param int $memberId The character ID of a member in this fleet (required) + * @param \nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdMembersMemberIdMovement $movement Details of the invitation (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function putFleetsFleetIdMembersMemberIdAsync($fleetId, $memberId, $movement, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->putFleetsFleetIdMembersMemberIdAsyncWithHttpInfo($fleetId, $memberId, $movement, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation putFleetsFleetIdMembersMemberIdAsyncWithHttpInfo + * + * Move fleet member + * + * @param int $fleetId ID for a fleet (required) + * @param int $memberId The character ID of a member in this fleet (required) + * @param \nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdMembersMemberIdMovement $movement Details of the invitation (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function putFleetsFleetIdMembersMemberIdAsyncWithHttpInfo($fleetId, $memberId, $movement, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->putFleetsFleetIdMembersMemberIdRequest($fleetId, $memberId, $movement, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'putFleetsFleetIdMembersMemberId' + * + * @param int $fleetId ID for a fleet (required) + * @param int $memberId The character ID of a member in this fleet (required) + * @param \nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdMembersMemberIdMovement $movement Details of the invitation (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function putFleetsFleetIdMembersMemberIdRequest($fleetId, $memberId, $movement, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'fleetId' is set + if ($fleetId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $fleetId when calling putFleetsFleetIdMembersMemberId' + ); + } + // verify the required parameter 'memberId' is set + if ($memberId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $memberId when calling putFleetsFleetIdMembersMemberId' + ); + } + // verify the required parameter 'movement' is set + if ($movement === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $movement when calling putFleetsFleetIdMembersMemberId' + ); + } + + $resourcePath = '/fleets/{fleet_id}/members/{member_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($fleetId !== null) { + $resourcePath = str_replace( + '{' . 'fleet_id' . '}', + ObjectSerializer::toPathValue($fleetId), + $resourcePath + ); + } + // path params + if ($memberId !== null) { + $resourcePath = str_replace( + '{' . 'member_id' . '}', + ObjectSerializer::toPathValue($memberId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + if (isset($movement)) { + $_tempBody = $movement; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'PUT', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation putFleetsFleetIdSquadsSquadId + * + * Rename fleet squad + * + * @param int $fleetId ID for a fleet (required) + * @param \nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdSquadsSquadIdNaming $naming New name of the squad (required) + * @param int $squadId The squad to rename (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return void + */ + public function putFleetsFleetIdSquadsSquadId($fleetId, $naming, $squadId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $this->putFleetsFleetIdSquadsSquadIdWithHttpInfo($fleetId, $naming, $squadId, $datasource, $token, $userAgent, $xUserAgent); + } + + /** + * Operation putFleetsFleetIdSquadsSquadIdWithHttpInfo + * + * Rename fleet squad + * + * @param int $fleetId ID for a fleet (required) + * @param \nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdSquadsSquadIdNaming $naming New name of the squad (required) + * @param int $squadId The squad to rename (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function putFleetsFleetIdSquadsSquadIdWithHttpInfo($fleetId, $naming, $squadId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->putFleetsFleetIdSquadsSquadIdRequest($fleetId, $naming, $squadId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + return [null, $statusCode, $response->getHeaders()]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdSquadsSquadIdNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation putFleetsFleetIdSquadsSquadIdAsync + * + * Rename fleet squad + * + * @param int $fleetId ID for a fleet (required) + * @param \nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdSquadsSquadIdNaming $naming New name of the squad (required) + * @param int $squadId The squad to rename (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function putFleetsFleetIdSquadsSquadIdAsync($fleetId, $naming, $squadId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->putFleetsFleetIdSquadsSquadIdAsyncWithHttpInfo($fleetId, $naming, $squadId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation putFleetsFleetIdSquadsSquadIdAsyncWithHttpInfo + * + * Rename fleet squad + * + * @param int $fleetId ID for a fleet (required) + * @param \nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdSquadsSquadIdNaming $naming New name of the squad (required) + * @param int $squadId The squad to rename (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function putFleetsFleetIdSquadsSquadIdAsyncWithHttpInfo($fleetId, $naming, $squadId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->putFleetsFleetIdSquadsSquadIdRequest($fleetId, $naming, $squadId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'putFleetsFleetIdSquadsSquadId' + * + * @param int $fleetId ID for a fleet (required) + * @param \nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdSquadsSquadIdNaming $naming New name of the squad (required) + * @param int $squadId The squad to rename (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function putFleetsFleetIdSquadsSquadIdRequest($fleetId, $naming, $squadId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'fleetId' is set + if ($fleetId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $fleetId when calling putFleetsFleetIdSquadsSquadId' + ); + } + // verify the required parameter 'naming' is set + if ($naming === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $naming when calling putFleetsFleetIdSquadsSquadId' + ); + } + // verify the required parameter 'squadId' is set + if ($squadId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $squadId when calling putFleetsFleetIdSquadsSquadId' + ); + } + + $resourcePath = '/fleets/{fleet_id}/squads/{squad_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($fleetId !== null) { + $resourcePath = str_replace( + '{' . 'fleet_id' . '}', + ObjectSerializer::toPathValue($fleetId), + $resourcePath + ); + } + // path params + if ($squadId !== null) { + $resourcePath = str_replace( + '{' . 'squad_id' . '}', + ObjectSerializer::toPathValue($squadId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + if (isset($naming)) { + $_tempBody = $naming; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'PUT', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation putFleetsFleetIdWingsWingId + * + * Rename fleet wing + * + * @param int $fleetId ID for a fleet (required) + * @param \nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdWingsWingIdNaming $naming New name of the wing (required) + * @param int $wingId The wing to rename (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return void + */ + public function putFleetsFleetIdWingsWingId($fleetId, $naming, $wingId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $this->putFleetsFleetIdWingsWingIdWithHttpInfo($fleetId, $naming, $wingId, $datasource, $token, $userAgent, $xUserAgent); + } + + /** + * Operation putFleetsFleetIdWingsWingIdWithHttpInfo + * + * Rename fleet wing + * + * @param int $fleetId ID for a fleet (required) + * @param \nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdWingsWingIdNaming $naming New name of the wing (required) + * @param int $wingId The wing to rename (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function putFleetsFleetIdWingsWingIdWithHttpInfo($fleetId, $naming, $wingId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->putFleetsFleetIdWingsWingIdRequest($fleetId, $naming, $wingId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + return [null, $statusCode, $response->getHeaders()]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdWingsWingIdNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation putFleetsFleetIdWingsWingIdAsync + * + * Rename fleet wing + * + * @param int $fleetId ID for a fleet (required) + * @param \nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdWingsWingIdNaming $naming New name of the wing (required) + * @param int $wingId The wing to rename (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function putFleetsFleetIdWingsWingIdAsync($fleetId, $naming, $wingId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->putFleetsFleetIdWingsWingIdAsyncWithHttpInfo($fleetId, $naming, $wingId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation putFleetsFleetIdWingsWingIdAsyncWithHttpInfo + * + * Rename fleet wing + * + * @param int $fleetId ID for a fleet (required) + * @param \nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdWingsWingIdNaming $naming New name of the wing (required) + * @param int $wingId The wing to rename (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function putFleetsFleetIdWingsWingIdAsyncWithHttpInfo($fleetId, $naming, $wingId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->putFleetsFleetIdWingsWingIdRequest($fleetId, $naming, $wingId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'putFleetsFleetIdWingsWingId' + * + * @param int $fleetId ID for a fleet (required) + * @param \nullx27ESI\nullx27\ESI\Models\PutFleetsFleetIdWingsWingIdNaming $naming New name of the wing (required) + * @param int $wingId The wing to rename (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function putFleetsFleetIdWingsWingIdRequest($fleetId, $naming, $wingId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'fleetId' is set + if ($fleetId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $fleetId when calling putFleetsFleetIdWingsWingId' + ); + } + // verify the required parameter 'naming' is set + if ($naming === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $naming when calling putFleetsFleetIdWingsWingId' + ); + } + // verify the required parameter 'wingId' is set + if ($wingId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $wingId when calling putFleetsFleetIdWingsWingId' + ); + } + + $resourcePath = '/fleets/{fleet_id}/wings/{wing_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($fleetId !== null) { + $resourcePath = str_replace( + '{' . 'fleet_id' . '}', + ObjectSerializer::toPathValue($fleetId), + $resourcePath + ); + } + // path params + if ($wingId !== null) { + $resourcePath = str_replace( + '{' . 'wing_id' . '}', + ObjectSerializer::toPathValue($wingId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + if (isset($naming)) { + $_tempBody = $naming; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'PUT', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } +} diff --git a/src/nullx27/ESI/Api/IncursionsApi.php b/src/nullx27/ESI/Api/IncursionsApi.php new file mode 100644 index 0000000..2af6ef6 --- /dev/null +++ b/src/nullx27/ESI/Api/IncursionsApi.php @@ -0,0 +1,381 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation getIncursions + * + * List incursions + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetIncursions200Ok[] + */ + public function getIncursions($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getIncursionsWithHttpInfo($datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getIncursionsWithHttpInfo + * + * List incursions + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetIncursions200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getIncursionsWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetIncursions200Ok[]'; + $request = $this->getIncursionsRequest($datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetIncursions200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getIncursionsAsync + * + * List incursions + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getIncursionsAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getIncursionsAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getIncursionsAsyncWithHttpInfo + * + * List incursions + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getIncursionsAsyncWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetIncursions200Ok[]'; + $request = $this->getIncursionsRequest($datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getIncursions' + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getIncursionsRequest($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + + $resourcePath = '/incursions/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } +} diff --git a/src/nullx27/ESI/Api/IndustryApi.php b/src/nullx27/ESI/Api/IndustryApi.php new file mode 100644 index 0000000..4a34659 --- /dev/null +++ b/src/nullx27/ESI/Api/IndustryApi.php @@ -0,0 +1,2664 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation getCharactersCharacterIdIndustryJobs + * + * List character industry jobs + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param bool $includeCompleted Whether retrieve completed character industry jobs as well (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdIndustryJobs200Ok[] + */ + public function getCharactersCharacterIdIndustryJobs($characterId, $datasource = 'tranquility', $includeCompleted = null, $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdIndustryJobsWithHttpInfo($characterId, $datasource, $includeCompleted, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdIndustryJobsWithHttpInfo + * + * List character industry jobs + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param bool $includeCompleted Whether retrieve completed character industry jobs as well (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdIndustryJobs200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdIndustryJobsWithHttpInfo($characterId, $datasource = 'tranquility', $includeCompleted = null, $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdIndustryJobs200Ok[]'; + $request = $this->getCharactersCharacterIdIndustryJobsRequest($characterId, $datasource, $includeCompleted, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdIndustryJobs200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdIndustryJobsAsync + * + * List character industry jobs + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param bool $includeCompleted Whether retrieve completed character industry jobs as well (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdIndustryJobsAsync($characterId, $datasource = 'tranquility', $includeCompleted = null, $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdIndustryJobsAsyncWithHttpInfo($characterId, $datasource, $includeCompleted, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdIndustryJobsAsyncWithHttpInfo + * + * List character industry jobs + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param bool $includeCompleted Whether retrieve completed character industry jobs as well (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdIndustryJobsAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $includeCompleted = null, $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdIndustryJobs200Ok[]'; + $request = $this->getCharactersCharacterIdIndustryJobsRequest($characterId, $datasource, $includeCompleted, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdIndustryJobs' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param bool $includeCompleted Whether retrieve completed character industry jobs as well (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdIndustryJobsRequest($characterId, $datasource = 'tranquility', $includeCompleted = null, $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdIndustryJobs' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling IndustryApi.getCharactersCharacterIdIndustryJobs, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/industry/jobs/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($includeCompleted !== null) { + $queryParams['include_completed'] = ObjectSerializer::toQueryValue($includeCompleted); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCharactersCharacterIdMining + * + * Character mining ledger + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMining200Ok[] + */ + public function getCharactersCharacterIdMining($characterId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdMiningWithHttpInfo($characterId, $datasource, $page, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdMiningWithHttpInfo + * + * Character mining ledger + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMining200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdMiningWithHttpInfo($characterId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMining200Ok[]'; + $request = $this->getCharactersCharacterIdMiningRequest($characterId, $datasource, $page, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMining200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdMiningAsync + * + * Character mining ledger + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdMiningAsync($characterId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdMiningAsyncWithHttpInfo($characterId, $datasource, $page, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdMiningAsyncWithHttpInfo + * + * Character mining ledger + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdMiningAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMining200Ok[]'; + $request = $this->getCharactersCharacterIdMiningRequest($characterId, $datasource, $page, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdMining' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdMiningRequest($characterId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdMining' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling IndustryApi.getCharactersCharacterIdMining, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/mining/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($page !== null) { + $queryParams['page'] = ObjectSerializer::toQueryValue($page); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationCorporationIdMiningExtractions + * + * Moon extraction timers + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationCorporationIdMiningExtractions200Ok[] + */ + public function getCorporationCorporationIdMiningExtractions($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationCorporationIdMiningExtractionsWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationCorporationIdMiningExtractionsWithHttpInfo + * + * Moon extraction timers + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationCorporationIdMiningExtractions200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationCorporationIdMiningExtractionsWithHttpInfo($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationCorporationIdMiningExtractions200Ok[]'; + $request = $this->getCorporationCorporationIdMiningExtractionsRequest($corporationId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationCorporationIdMiningExtractions200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationCorporationIdMiningExtractionsAsync + * + * Moon extraction timers + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationCorporationIdMiningExtractionsAsync($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationCorporationIdMiningExtractionsAsyncWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationCorporationIdMiningExtractionsAsyncWithHttpInfo + * + * Moon extraction timers + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationCorporationIdMiningExtractionsAsyncWithHttpInfo($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationCorporationIdMiningExtractions200Ok[]'; + $request = $this->getCorporationCorporationIdMiningExtractionsRequest($corporationId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationCorporationIdMiningExtractions' + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationCorporationIdMiningExtractionsRequest($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationCorporationIdMiningExtractions' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling IndustryApi.getCorporationCorporationIdMiningExtractions, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporation/{corporation_id}/mining/extractions/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationCorporationIdMiningObservers + * + * Corporation mining observers + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationCorporationIdMiningObservers200Ok[] + */ + public function getCorporationCorporationIdMiningObservers($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationCorporationIdMiningObserversWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationCorporationIdMiningObserversWithHttpInfo + * + * Corporation mining observers + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationCorporationIdMiningObservers200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationCorporationIdMiningObserversWithHttpInfo($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationCorporationIdMiningObservers200Ok[]'; + $request = $this->getCorporationCorporationIdMiningObserversRequest($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationCorporationIdMiningObservers200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationCorporationIdMiningObserversAsync + * + * Corporation mining observers + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationCorporationIdMiningObserversAsync($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationCorporationIdMiningObserversAsyncWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationCorporationIdMiningObserversAsyncWithHttpInfo + * + * Corporation mining observers + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationCorporationIdMiningObserversAsyncWithHttpInfo($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationCorporationIdMiningObservers200Ok[]'; + $request = $this->getCorporationCorporationIdMiningObserversRequest($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationCorporationIdMiningObservers' + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationCorporationIdMiningObserversRequest($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationCorporationIdMiningObservers' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling IndustryApi.getCorporationCorporationIdMiningObservers, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporation/{corporation_id}/mining/observers/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($page !== null) { + $queryParams['page'] = ObjectSerializer::toQueryValue($page); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationCorporationIdMiningObserversObserverId + * + * Observed corporation mining + * + * @param int $corporationId An EVE corporation ID (required) + * @param int $observerId A mining observer id (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationCorporationIdMiningObserversObserverId200Ok[] + */ + public function getCorporationCorporationIdMiningObserversObserverId($corporationId, $observerId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationCorporationIdMiningObserversObserverIdWithHttpInfo($corporationId, $observerId, $datasource, $page, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationCorporationIdMiningObserversObserverIdWithHttpInfo + * + * Observed corporation mining + * + * @param int $corporationId An EVE corporation ID (required) + * @param int $observerId A mining observer id (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationCorporationIdMiningObserversObserverId200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationCorporationIdMiningObserversObserverIdWithHttpInfo($corporationId, $observerId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationCorporationIdMiningObserversObserverId200Ok[]'; + $request = $this->getCorporationCorporationIdMiningObserversObserverIdRequest($corporationId, $observerId, $datasource, $page, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationCorporationIdMiningObserversObserverId200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationCorporationIdMiningObserversObserverIdAsync + * + * Observed corporation mining + * + * @param int $corporationId An EVE corporation ID (required) + * @param int $observerId A mining observer id (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationCorporationIdMiningObserversObserverIdAsync($corporationId, $observerId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationCorporationIdMiningObserversObserverIdAsyncWithHttpInfo($corporationId, $observerId, $datasource, $page, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationCorporationIdMiningObserversObserverIdAsyncWithHttpInfo + * + * Observed corporation mining + * + * @param int $corporationId An EVE corporation ID (required) + * @param int $observerId A mining observer id (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationCorporationIdMiningObserversObserverIdAsyncWithHttpInfo($corporationId, $observerId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationCorporationIdMiningObserversObserverId200Ok[]'; + $request = $this->getCorporationCorporationIdMiningObserversObserverIdRequest($corporationId, $observerId, $datasource, $page, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationCorporationIdMiningObserversObserverId' + * + * @param int $corporationId An EVE corporation ID (required) + * @param int $observerId A mining observer id (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationCorporationIdMiningObserversObserverIdRequest($corporationId, $observerId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationCorporationIdMiningObserversObserverId' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling IndustryApi.getCorporationCorporationIdMiningObserversObserverId, must be bigger than or equal to 1.'); + } + + // verify the required parameter 'observerId' is set + if ($observerId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $observerId when calling getCorporationCorporationIdMiningObserversObserverId' + ); + } + + $resourcePath = '/corporation/{corporation_id}/mining/observers/{observer_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($page !== null) { + $queryParams['page'] = ObjectSerializer::toQueryValue($page); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + // path params + if ($observerId !== null) { + $resourcePath = str_replace( + '{' . 'observer_id' . '}', + ObjectSerializer::toPathValue($observerId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsCorporationIdIndustryJobs + * + * List corporation industry jobs + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param bool $includeCompleted Whether retrieve completed industry jobs as well (optional, default to false) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdIndustryJobs200Ok[] + */ + public function getCorporationsCorporationIdIndustryJobs($corporationId, $datasource = 'tranquility', $includeCompleted = 'false', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdIndustryJobsWithHttpInfo($corporationId, $datasource, $includeCompleted, $page, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdIndustryJobsWithHttpInfo + * + * List corporation industry jobs + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param bool $includeCompleted Whether retrieve completed industry jobs as well (optional, default to false) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdIndustryJobs200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdIndustryJobsWithHttpInfo($corporationId, $datasource = 'tranquility', $includeCompleted = 'false', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdIndustryJobs200Ok[]'; + $request = $this->getCorporationsCorporationIdIndustryJobsRequest($corporationId, $datasource, $includeCompleted, $page, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdIndustryJobs200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdIndustryJobsAsync + * + * List corporation industry jobs + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param bool $includeCompleted Whether retrieve completed industry jobs as well (optional, default to false) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdIndustryJobsAsync($corporationId, $datasource = 'tranquility', $includeCompleted = 'false', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdIndustryJobsAsyncWithHttpInfo($corporationId, $datasource, $includeCompleted, $page, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdIndustryJobsAsyncWithHttpInfo + * + * List corporation industry jobs + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param bool $includeCompleted Whether retrieve completed industry jobs as well (optional, default to false) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdIndustryJobsAsyncWithHttpInfo($corporationId, $datasource = 'tranquility', $includeCompleted = 'false', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdIndustryJobs200Ok[]'; + $request = $this->getCorporationsCorporationIdIndustryJobsRequest($corporationId, $datasource, $includeCompleted, $page, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationIdIndustryJobs' + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param bool $includeCompleted Whether retrieve completed industry jobs as well (optional, default to false) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdIndustryJobsRequest($corporationId, $datasource = 'tranquility', $includeCompleted = 'false', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationIdIndustryJobs' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling IndustryApi.getCorporationsCorporationIdIndustryJobs, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporations/{corporation_id}/industry/jobs/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($includeCompleted !== null) { + $queryParams['include_completed'] = ObjectSerializer::toQueryValue($includeCompleted); + } + // query params + if ($page !== null) { + $queryParams['page'] = ObjectSerializer::toQueryValue($page); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getIndustryFacilities + * + * List industry facilities + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetIndustryFacilities200Ok[] + */ + public function getIndustryFacilities($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getIndustryFacilitiesWithHttpInfo($datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getIndustryFacilitiesWithHttpInfo + * + * List industry facilities + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetIndustryFacilities200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getIndustryFacilitiesWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetIndustryFacilities200Ok[]'; + $request = $this->getIndustryFacilitiesRequest($datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetIndustryFacilities200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getIndustryFacilitiesAsync + * + * List industry facilities + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getIndustryFacilitiesAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getIndustryFacilitiesAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getIndustryFacilitiesAsyncWithHttpInfo + * + * List industry facilities + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getIndustryFacilitiesAsyncWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetIndustryFacilities200Ok[]'; + $request = $this->getIndustryFacilitiesRequest($datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getIndustryFacilities' + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getIndustryFacilitiesRequest($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + + $resourcePath = '/industry/facilities/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getIndustrySystems + * + * List solar system cost indices + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetIndustrySystems200Ok[] + */ + public function getIndustrySystems($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getIndustrySystemsWithHttpInfo($datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getIndustrySystemsWithHttpInfo + * + * List solar system cost indices + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetIndustrySystems200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getIndustrySystemsWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetIndustrySystems200Ok[]'; + $request = $this->getIndustrySystemsRequest($datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetIndustrySystems200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getIndustrySystemsAsync + * + * List solar system cost indices + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getIndustrySystemsAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getIndustrySystemsAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getIndustrySystemsAsyncWithHttpInfo + * + * List solar system cost indices + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getIndustrySystemsAsyncWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetIndustrySystems200Ok[]'; + $request = $this->getIndustrySystemsRequest($datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getIndustrySystems' + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getIndustrySystemsRequest($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + + $resourcePath = '/industry/systems/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } +} diff --git a/src/nullx27/ESI/Api/InsuranceApi.php b/src/nullx27/ESI/Api/InsuranceApi.php new file mode 100644 index 0000000..9350d1b --- /dev/null +++ b/src/nullx27/ESI/Api/InsuranceApi.php @@ -0,0 +1,390 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation getInsurancePrices + * + * List insurance levels + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetInsurancePrices200Ok[] + */ + public function getInsurancePrices($datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getInsurancePricesWithHttpInfo($datasource, $language, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getInsurancePricesWithHttpInfo + * + * List insurance levels + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetInsurancePrices200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getInsurancePricesWithHttpInfo($datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetInsurancePrices200Ok[]'; + $request = $this->getInsurancePricesRequest($datasource, $language, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetInsurancePrices200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getInsurancePricesAsync + * + * List insurance levels + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getInsurancePricesAsync($datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + return $this->getInsurancePricesAsyncWithHttpInfo($datasource, $language, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getInsurancePricesAsyncWithHttpInfo + * + * List insurance levels + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getInsurancePricesAsyncWithHttpInfo($datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetInsurancePrices200Ok[]'; + $request = $this->getInsurancePricesRequest($datasource, $language, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getInsurancePrices' + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getInsurancePricesRequest($datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + + $resourcePath = '/insurance/prices/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($language !== null) { + $queryParams['language'] = ObjectSerializer::toQueryValue($language); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } +} diff --git a/src/nullx27/ESI/Api/KillmailsApi.php b/src/nullx27/ESI/Api/KillmailsApi.php new file mode 100644 index 0000000..c37cadb --- /dev/null +++ b/src/nullx27/ESI/Api/KillmailsApi.php @@ -0,0 +1,1102 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation getCharactersCharacterIdKillmailsRecent + * + * Get character kills and losses + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $maxCount How many killmails to return at maximum (optional, default to 50) + * @param int $maxKillId Only return killmails with ID smaller than this. (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdKillmailsRecent200Ok[] + */ + public function getCharactersCharacterIdKillmailsRecent($characterId, $datasource = 'tranquility', $maxCount = '50', $maxKillId = null, $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdKillmailsRecentWithHttpInfo($characterId, $datasource, $maxCount, $maxKillId, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdKillmailsRecentWithHttpInfo + * + * Get character kills and losses + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $maxCount How many killmails to return at maximum (optional, default to 50) + * @param int $maxKillId Only return killmails with ID smaller than this. (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdKillmailsRecent200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdKillmailsRecentWithHttpInfo($characterId, $datasource = 'tranquility', $maxCount = '50', $maxKillId = null, $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdKillmailsRecent200Ok[]'; + $request = $this->getCharactersCharacterIdKillmailsRecentRequest($characterId, $datasource, $maxCount, $maxKillId, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdKillmailsRecent200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdKillmailsRecentAsync + * + * Get character kills and losses + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $maxCount How many killmails to return at maximum (optional, default to 50) + * @param int $maxKillId Only return killmails with ID smaller than this. (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdKillmailsRecentAsync($characterId, $datasource = 'tranquility', $maxCount = '50', $maxKillId = null, $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdKillmailsRecentAsyncWithHttpInfo($characterId, $datasource, $maxCount, $maxKillId, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdKillmailsRecentAsyncWithHttpInfo + * + * Get character kills and losses + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $maxCount How many killmails to return at maximum (optional, default to 50) + * @param int $maxKillId Only return killmails with ID smaller than this. (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdKillmailsRecentAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $maxCount = '50', $maxKillId = null, $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdKillmailsRecent200Ok[]'; + $request = $this->getCharactersCharacterIdKillmailsRecentRequest($characterId, $datasource, $maxCount, $maxKillId, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdKillmailsRecent' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $maxCount How many killmails to return at maximum (optional, default to 50) + * @param int $maxKillId Only return killmails with ID smaller than this. (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdKillmailsRecentRequest($characterId, $datasource = 'tranquility', $maxCount = '50', $maxKillId = null, $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdKillmailsRecent' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling KillmailsApi.getCharactersCharacterIdKillmailsRecent, must be bigger than or equal to 1.'); + } + + if ($maxCount !== null && $maxCount > 5000) { + throw new \InvalidArgumentException('invalid value for "$maxCount" when calling KillmailsApi.getCharactersCharacterIdKillmailsRecent, must be smaller than or equal to 5000.'); + } + + + $resourcePath = '/characters/{character_id}/killmails/recent/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($maxCount !== null) { + $queryParams['max_count'] = ObjectSerializer::toQueryValue($maxCount); + } + // query params + if ($maxKillId !== null) { + $queryParams['max_kill_id'] = ObjectSerializer::toQueryValue($maxKillId); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsCorporationIdKillmailsRecent + * + * Get corporation kills and losses + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $maxKillId Only return killmails with ID smaller than this (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdKillmailsRecent200Ok[] + */ + public function getCorporationsCorporationIdKillmailsRecent($corporationId, $datasource = 'tranquility', $maxKillId = null, $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdKillmailsRecentWithHttpInfo($corporationId, $datasource, $maxKillId, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdKillmailsRecentWithHttpInfo + * + * Get corporation kills and losses + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $maxKillId Only return killmails with ID smaller than this (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdKillmailsRecent200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdKillmailsRecentWithHttpInfo($corporationId, $datasource = 'tranquility', $maxKillId = null, $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdKillmailsRecent200Ok[]'; + $request = $this->getCorporationsCorporationIdKillmailsRecentRequest($corporationId, $datasource, $maxKillId, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdKillmailsRecent200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdKillmailsRecentAsync + * + * Get corporation kills and losses + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $maxKillId Only return killmails with ID smaller than this (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdKillmailsRecentAsync($corporationId, $datasource = 'tranquility', $maxKillId = null, $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdKillmailsRecentAsyncWithHttpInfo($corporationId, $datasource, $maxKillId, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdKillmailsRecentAsyncWithHttpInfo + * + * Get corporation kills and losses + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $maxKillId Only return killmails with ID smaller than this (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdKillmailsRecentAsyncWithHttpInfo($corporationId, $datasource = 'tranquility', $maxKillId = null, $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdKillmailsRecent200Ok[]'; + $request = $this->getCorporationsCorporationIdKillmailsRecentRequest($corporationId, $datasource, $maxKillId, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationIdKillmailsRecent' + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $maxKillId Only return killmails with ID smaller than this (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdKillmailsRecentRequest($corporationId, $datasource = 'tranquility', $maxKillId = null, $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationIdKillmailsRecent' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling KillmailsApi.getCorporationsCorporationIdKillmailsRecent, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporations/{corporation_id}/killmails/recent/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($maxKillId !== null) { + $queryParams['max_kill_id'] = ObjectSerializer::toQueryValue($maxKillId); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getKillmailsKillmailIdKillmailHash + * + * Get a single killmail + * + * @param string $killmailHash The killmail hash for verification (required) + * @param int $killmailId The killmail ID to be queried (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetKillmailsKillmailIdKillmailHashOk + */ + public function getKillmailsKillmailIdKillmailHash($killmailHash, $killmailId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getKillmailsKillmailIdKillmailHashWithHttpInfo($killmailHash, $killmailId, $datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getKillmailsKillmailIdKillmailHashWithHttpInfo + * + * Get a single killmail + * + * @param string $killmailHash The killmail hash for verification (required) + * @param int $killmailId The killmail ID to be queried (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetKillmailsKillmailIdKillmailHashOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getKillmailsKillmailIdKillmailHashWithHttpInfo($killmailHash, $killmailId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetKillmailsKillmailIdKillmailHashOk'; + $request = $this->getKillmailsKillmailIdKillmailHashRequest($killmailHash, $killmailId, $datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetKillmailsKillmailIdKillmailHashOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 422: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetKillmailsKillmailIdKillmailHashUnprocessableEntity', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getKillmailsKillmailIdKillmailHashAsync + * + * Get a single killmail + * + * @param string $killmailHash The killmail hash for verification (required) + * @param int $killmailId The killmail ID to be queried (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getKillmailsKillmailIdKillmailHashAsync($killmailHash, $killmailId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getKillmailsKillmailIdKillmailHashAsyncWithHttpInfo($killmailHash, $killmailId, $datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getKillmailsKillmailIdKillmailHashAsyncWithHttpInfo + * + * Get a single killmail + * + * @param string $killmailHash The killmail hash for verification (required) + * @param int $killmailId The killmail ID to be queried (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getKillmailsKillmailIdKillmailHashAsyncWithHttpInfo($killmailHash, $killmailId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetKillmailsKillmailIdKillmailHashOk'; + $request = $this->getKillmailsKillmailIdKillmailHashRequest($killmailHash, $killmailId, $datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getKillmailsKillmailIdKillmailHash' + * + * @param string $killmailHash The killmail hash for verification (required) + * @param int $killmailId The killmail ID to be queried (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getKillmailsKillmailIdKillmailHashRequest($killmailHash, $killmailId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'killmailHash' is set + if ($killmailHash === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $killmailHash when calling getKillmailsKillmailIdKillmailHash' + ); + } + // verify the required parameter 'killmailId' is set + if ($killmailId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $killmailId when calling getKillmailsKillmailIdKillmailHash' + ); + } + + $resourcePath = '/killmails/{killmail_id}/{killmail_hash}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($killmailHash !== null) { + $resourcePath = str_replace( + '{' . 'killmail_hash' . '}', + ObjectSerializer::toPathValue($killmailHash), + $resourcePath + ); + } + // path params + if ($killmailId !== null) { + $resourcePath = str_replace( + '{' . 'killmail_id' . '}', + ObjectSerializer::toPathValue($killmailId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } +} diff --git a/src/nullx27/ESI/Api/LocationApi.php b/src/nullx27/ESI/Api/LocationApi.php new file mode 100644 index 0000000..37af6d4 --- /dev/null +++ b/src/nullx27/ESI/Api/LocationApi.php @@ -0,0 +1,1069 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation getCharactersCharacterIdLocation + * + * Get character location + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdLocationOk + */ + public function getCharactersCharacterIdLocation($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdLocationWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdLocationWithHttpInfo + * + * Get character location + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdLocationOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdLocationWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdLocationOk'; + $request = $this->getCharactersCharacterIdLocationRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdLocationOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdLocationAsync + * + * Get character location + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdLocationAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdLocationAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdLocationAsyncWithHttpInfo + * + * Get character location + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdLocationAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdLocationOk'; + $request = $this->getCharactersCharacterIdLocationRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdLocation' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdLocationRequest($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdLocation' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling LocationApi.getCharactersCharacterIdLocation, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/location/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCharactersCharacterIdOnline + * + * Get character online + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdOnlineOk + */ + public function getCharactersCharacterIdOnline($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdOnlineWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdOnlineWithHttpInfo + * + * Get character online + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdOnlineOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdOnlineWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdOnlineOk'; + $request = $this->getCharactersCharacterIdOnlineRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdOnlineOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdOnlineAsync + * + * Get character online + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdOnlineAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdOnlineAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdOnlineAsyncWithHttpInfo + * + * Get character online + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdOnlineAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdOnlineOk'; + $request = $this->getCharactersCharacterIdOnlineRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdOnline' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdOnlineRequest($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdOnline' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling LocationApi.getCharactersCharacterIdOnline, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/online/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCharactersCharacterIdShip + * + * Get current ship + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdShipOk + */ + public function getCharactersCharacterIdShip($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdShipWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdShipWithHttpInfo + * + * Get current ship + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdShipOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdShipWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdShipOk'; + $request = $this->getCharactersCharacterIdShipRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdShipOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdShipAsync + * + * Get current ship + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdShipAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdShipAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdShipAsyncWithHttpInfo + * + * Get current ship + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdShipAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdShipOk'; + $request = $this->getCharactersCharacterIdShipRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdShip' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdShipRequest($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdShip' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling LocationApi.getCharactersCharacterIdShip, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/ship/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } +} diff --git a/src/nullx27/ESI/Api/LoyaltyApi.php b/src/nullx27/ESI/Api/LoyaltyApi.php new file mode 100644 index 0000000..d94b530 --- /dev/null +++ b/src/nullx27/ESI/Api/LoyaltyApi.php @@ -0,0 +1,726 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation getCharactersCharacterIdLoyaltyPoints + * + * Get loyalty points + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdLoyaltyPoints200Ok[] + */ + public function getCharactersCharacterIdLoyaltyPoints($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdLoyaltyPointsWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdLoyaltyPointsWithHttpInfo + * + * Get loyalty points + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdLoyaltyPoints200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdLoyaltyPointsWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdLoyaltyPoints200Ok[]'; + $request = $this->getCharactersCharacterIdLoyaltyPointsRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdLoyaltyPoints200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdLoyaltyPointsAsync + * + * Get loyalty points + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdLoyaltyPointsAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdLoyaltyPointsAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdLoyaltyPointsAsyncWithHttpInfo + * + * Get loyalty points + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdLoyaltyPointsAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdLoyaltyPoints200Ok[]'; + $request = $this->getCharactersCharacterIdLoyaltyPointsRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdLoyaltyPoints' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdLoyaltyPointsRequest($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdLoyaltyPoints' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling LoyaltyApi.getCharactersCharacterIdLoyaltyPoints, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/loyalty/points/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getLoyaltyStoresCorporationIdOffers + * + * List loyalty store offers + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetLoyaltyStoresCorporationIdOffers200Ok[] + */ + public function getLoyaltyStoresCorporationIdOffers($corporationId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getLoyaltyStoresCorporationIdOffersWithHttpInfo($corporationId, $datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getLoyaltyStoresCorporationIdOffersWithHttpInfo + * + * List loyalty store offers + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetLoyaltyStoresCorporationIdOffers200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getLoyaltyStoresCorporationIdOffersWithHttpInfo($corporationId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetLoyaltyStoresCorporationIdOffers200Ok[]'; + $request = $this->getLoyaltyStoresCorporationIdOffersRequest($corporationId, $datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetLoyaltyStoresCorporationIdOffers200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getLoyaltyStoresCorporationIdOffersAsync + * + * List loyalty store offers + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getLoyaltyStoresCorporationIdOffersAsync($corporationId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getLoyaltyStoresCorporationIdOffersAsyncWithHttpInfo($corporationId, $datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getLoyaltyStoresCorporationIdOffersAsyncWithHttpInfo + * + * List loyalty store offers + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getLoyaltyStoresCorporationIdOffersAsyncWithHttpInfo($corporationId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetLoyaltyStoresCorporationIdOffers200Ok[]'; + $request = $this->getLoyaltyStoresCorporationIdOffersRequest($corporationId, $datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getLoyaltyStoresCorporationIdOffers' + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getLoyaltyStoresCorporationIdOffersRequest($corporationId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getLoyaltyStoresCorporationIdOffers' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling LoyaltyApi.getLoyaltyStoresCorporationIdOffers, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/loyalty/stores/{corporation_id}/offers/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } +} diff --git a/src/nullx27/ESI/Api/MailApi.php b/src/nullx27/ESI/Api/MailApi.php new file mode 100644 index 0000000..96fff5f --- /dev/null +++ b/src/nullx27/ESI/Api/MailApi.php @@ -0,0 +1,3062 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation deleteCharactersCharacterIdMailLabelsLabelId + * + * Delete a mail label + * + * @param int $characterId An EVE character ID (required) + * @param int $labelId An EVE label id (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return void + */ + public function deleteCharactersCharacterIdMailLabelsLabelId($characterId, $labelId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $this->deleteCharactersCharacterIdMailLabelsLabelIdWithHttpInfo($characterId, $labelId, $datasource, $token, $userAgent, $xUserAgent); + } + + /** + * Operation deleteCharactersCharacterIdMailLabelsLabelIdWithHttpInfo + * + * Delete a mail label + * + * @param int $characterId An EVE character ID (required) + * @param int $labelId An EVE label id (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteCharactersCharacterIdMailLabelsLabelIdWithHttpInfo($characterId, $labelId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->deleteCharactersCharacterIdMailLabelsLabelIdRequest($characterId, $labelId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + return [null, $statusCode, $response->getHeaders()]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 422: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\DeleteCharactersCharacterIdMailLabelsLabelIdUnprocessableEntity', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation deleteCharactersCharacterIdMailLabelsLabelIdAsync + * + * Delete a mail label + * + * @param int $characterId An EVE character ID (required) + * @param int $labelId An EVE label id (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteCharactersCharacterIdMailLabelsLabelIdAsync($characterId, $labelId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->deleteCharactersCharacterIdMailLabelsLabelIdAsyncWithHttpInfo($characterId, $labelId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation deleteCharactersCharacterIdMailLabelsLabelIdAsyncWithHttpInfo + * + * Delete a mail label + * + * @param int $characterId An EVE character ID (required) + * @param int $labelId An EVE label id (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteCharactersCharacterIdMailLabelsLabelIdAsyncWithHttpInfo($characterId, $labelId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->deleteCharactersCharacterIdMailLabelsLabelIdRequest($characterId, $labelId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'deleteCharactersCharacterIdMailLabelsLabelId' + * + * @param int $characterId An EVE character ID (required) + * @param int $labelId An EVE label id (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function deleteCharactersCharacterIdMailLabelsLabelIdRequest($characterId, $labelId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling deleteCharactersCharacterIdMailLabelsLabelId' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling MailApi.deleteCharactersCharacterIdMailLabelsLabelId, must be bigger than or equal to 1.'); + } + + // verify the required parameter 'labelId' is set + if ($labelId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $labelId when calling deleteCharactersCharacterIdMailLabelsLabelId' + ); + } + + $resourcePath = '/characters/{character_id}/mail/labels/{label_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + // path params + if ($labelId !== null) { + $resourcePath = str_replace( + '{' . 'label_id' . '}', + ObjectSerializer::toPathValue($labelId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'DELETE', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation deleteCharactersCharacterIdMailMailId + * + * Delete a mail + * + * @param int $characterId An EVE character ID (required) + * @param int $mailId An EVE mail ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return void + */ + public function deleteCharactersCharacterIdMailMailId($characterId, $mailId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $this->deleteCharactersCharacterIdMailMailIdWithHttpInfo($characterId, $mailId, $datasource, $token, $userAgent, $xUserAgent); + } + + /** + * Operation deleteCharactersCharacterIdMailMailIdWithHttpInfo + * + * Delete a mail + * + * @param int $characterId An EVE character ID (required) + * @param int $mailId An EVE mail ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteCharactersCharacterIdMailMailIdWithHttpInfo($characterId, $mailId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->deleteCharactersCharacterIdMailMailIdRequest($characterId, $mailId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + return [null, $statusCode, $response->getHeaders()]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation deleteCharactersCharacterIdMailMailIdAsync + * + * Delete a mail + * + * @param int $characterId An EVE character ID (required) + * @param int $mailId An EVE mail ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteCharactersCharacterIdMailMailIdAsync($characterId, $mailId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->deleteCharactersCharacterIdMailMailIdAsyncWithHttpInfo($characterId, $mailId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation deleteCharactersCharacterIdMailMailIdAsyncWithHttpInfo + * + * Delete a mail + * + * @param int $characterId An EVE character ID (required) + * @param int $mailId An EVE mail ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteCharactersCharacterIdMailMailIdAsyncWithHttpInfo($characterId, $mailId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->deleteCharactersCharacterIdMailMailIdRequest($characterId, $mailId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'deleteCharactersCharacterIdMailMailId' + * + * @param int $characterId An EVE character ID (required) + * @param int $mailId An EVE mail ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function deleteCharactersCharacterIdMailMailIdRequest($characterId, $mailId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling deleteCharactersCharacterIdMailMailId' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling MailApi.deleteCharactersCharacterIdMailMailId, must be bigger than or equal to 1.'); + } + + // verify the required parameter 'mailId' is set + if ($mailId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $mailId when calling deleteCharactersCharacterIdMailMailId' + ); + } + + $resourcePath = '/characters/{character_id}/mail/{mail_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + // path params + if ($mailId !== null) { + $resourcePath = str_replace( + '{' . 'mail_id' . '}', + ObjectSerializer::toPathValue($mailId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'DELETE', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCharactersCharacterIdMail + * + * Return mail headers + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int[] $labels Fetch only mails that match one or more of the given labels (optional) + * @param int $lastMailId List only mail with an ID lower than the given ID, if present (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMail200Ok[] + */ + public function getCharactersCharacterIdMail($characterId, $datasource = 'tranquility', $labels = null, $lastMailId = null, $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdMailWithHttpInfo($characterId, $datasource, $labels, $lastMailId, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdMailWithHttpInfo + * + * Return mail headers + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int[] $labels Fetch only mails that match one or more of the given labels (optional) + * @param int $lastMailId List only mail with an ID lower than the given ID, if present (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMail200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdMailWithHttpInfo($characterId, $datasource = 'tranquility', $labels = null, $lastMailId = null, $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMail200Ok[]'; + $request = $this->getCharactersCharacterIdMailRequest($characterId, $datasource, $labels, $lastMailId, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMail200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdMailAsync + * + * Return mail headers + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int[] $labels Fetch only mails that match one or more of the given labels (optional) + * @param int $lastMailId List only mail with an ID lower than the given ID, if present (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdMailAsync($characterId, $datasource = 'tranquility', $labels = null, $lastMailId = null, $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdMailAsyncWithHttpInfo($characterId, $datasource, $labels, $lastMailId, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdMailAsyncWithHttpInfo + * + * Return mail headers + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int[] $labels Fetch only mails that match one or more of the given labels (optional) + * @param int $lastMailId List only mail with an ID lower than the given ID, if present (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdMailAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $labels = null, $lastMailId = null, $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMail200Ok[]'; + $request = $this->getCharactersCharacterIdMailRequest($characterId, $datasource, $labels, $lastMailId, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdMail' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int[] $labels Fetch only mails that match one or more of the given labels (optional) + * @param int $lastMailId List only mail with an ID lower than the given ID, if present (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdMailRequest($characterId, $datasource = 'tranquility', $labels = null, $lastMailId = null, $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdMail' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling MailApi.getCharactersCharacterIdMail, must be bigger than or equal to 1.'); + } + + if ($labels !== null && count($labels) > 25) { + throw new \InvalidArgumentException('invalid value for "$labels" when calling MailApi.getCharactersCharacterIdMail, number of items must be less than or equal to 25.'); + } + if ($labels !== null && count($labels) < 1) { + throw new \InvalidArgumentException('invalid value for "$labels" when calling MailApi.getCharactersCharacterIdMail, number of items must be greater than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/mail/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if (is_array($labels)) { + $labels = ObjectSerializer::serializeCollection($labels, 'csv', true); + } + if ($labels !== null) { + $queryParams['labels'] = ObjectSerializer::toQueryValue($labels); + } + // query params + if ($lastMailId !== null) { + $queryParams['last_mail_id'] = ObjectSerializer::toQueryValue($lastMailId); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCharactersCharacterIdMailLabels + * + * Get mail labels and unread counts + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMailLabelsOk + */ + public function getCharactersCharacterIdMailLabels($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdMailLabelsWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdMailLabelsWithHttpInfo + * + * Get mail labels and unread counts + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMailLabelsOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdMailLabelsWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMailLabelsOk'; + $request = $this->getCharactersCharacterIdMailLabelsRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMailLabelsOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdMailLabelsAsync + * + * Get mail labels and unread counts + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdMailLabelsAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdMailLabelsAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdMailLabelsAsyncWithHttpInfo + * + * Get mail labels and unread counts + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdMailLabelsAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMailLabelsOk'; + $request = $this->getCharactersCharacterIdMailLabelsRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdMailLabels' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdMailLabelsRequest($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdMailLabels' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling MailApi.getCharactersCharacterIdMailLabels, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/mail/labels/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCharactersCharacterIdMailLists + * + * Return mailing list subscriptions + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMailLists200Ok[] + */ + public function getCharactersCharacterIdMailLists($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdMailListsWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdMailListsWithHttpInfo + * + * Return mailing list subscriptions + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMailLists200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdMailListsWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMailLists200Ok[]'; + $request = $this->getCharactersCharacterIdMailListsRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMailLists200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdMailListsAsync + * + * Return mailing list subscriptions + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdMailListsAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdMailListsAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdMailListsAsyncWithHttpInfo + * + * Return mailing list subscriptions + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdMailListsAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMailLists200Ok[]'; + $request = $this->getCharactersCharacterIdMailListsRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdMailLists' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdMailListsRequest($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdMailLists' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling MailApi.getCharactersCharacterIdMailLists, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/mail/lists/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCharactersCharacterIdMailMailId + * + * Return a mail + * + * @param int $characterId An EVE character ID (required) + * @param int $mailId An EVE mail ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMailMailIdOk + */ + public function getCharactersCharacterIdMailMailId($characterId, $mailId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdMailMailIdWithHttpInfo($characterId, $mailId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdMailMailIdWithHttpInfo + * + * Return a mail + * + * @param int $characterId An EVE character ID (required) + * @param int $mailId An EVE mail ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMailMailIdOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdMailMailIdWithHttpInfo($characterId, $mailId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMailMailIdOk'; + $request = $this->getCharactersCharacterIdMailMailIdRequest($characterId, $mailId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMailMailIdOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMailMailIdNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdMailMailIdAsync + * + * Return a mail + * + * @param int $characterId An EVE character ID (required) + * @param int $mailId An EVE mail ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdMailMailIdAsync($characterId, $mailId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdMailMailIdAsyncWithHttpInfo($characterId, $mailId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdMailMailIdAsyncWithHttpInfo + * + * Return a mail + * + * @param int $characterId An EVE character ID (required) + * @param int $mailId An EVE mail ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdMailMailIdAsyncWithHttpInfo($characterId, $mailId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMailMailIdOk'; + $request = $this->getCharactersCharacterIdMailMailIdRequest($characterId, $mailId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdMailMailId' + * + * @param int $characterId An EVE character ID (required) + * @param int $mailId An EVE mail ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdMailMailIdRequest($characterId, $mailId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdMailMailId' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling MailApi.getCharactersCharacterIdMailMailId, must be bigger than or equal to 1.'); + } + + // verify the required parameter 'mailId' is set + if ($mailId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $mailId when calling getCharactersCharacterIdMailMailId' + ); + } + + $resourcePath = '/characters/{character_id}/mail/{mail_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + // path params + if ($mailId !== null) { + $resourcePath = str_replace( + '{' . 'mail_id' . '}', + ObjectSerializer::toPathValue($mailId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation postCharactersCharacterIdMail + * + * Send a new mail + * + * @param int $characterId An EVE character ID (required) + * @param \nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdMailMail $mail The mail to send (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return int + */ + public function postCharactersCharacterIdMail($characterId, $mail, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->postCharactersCharacterIdMailWithHttpInfo($characterId, $mail, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation postCharactersCharacterIdMailWithHttpInfo + * + * Send a new mail + * + * @param int $characterId An EVE character ID (required) + * @param \nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdMailMail $mail The mail to send (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of int, HTTP status code, HTTP response headers (array of strings) + */ + public function postCharactersCharacterIdMailWithHttpInfo($characterId, $mail, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = 'int'; + $request = $this->postCharactersCharacterIdMailRequest($characterId, $mail, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 201: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'int', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 400: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdMailBadRequest', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation postCharactersCharacterIdMailAsync + * + * Send a new mail + * + * @param int $characterId An EVE character ID (required) + * @param \nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdMailMail $mail The mail to send (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postCharactersCharacterIdMailAsync($characterId, $mail, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->postCharactersCharacterIdMailAsyncWithHttpInfo($characterId, $mail, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation postCharactersCharacterIdMailAsyncWithHttpInfo + * + * Send a new mail + * + * @param int $characterId An EVE character ID (required) + * @param \nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdMailMail $mail The mail to send (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postCharactersCharacterIdMailAsyncWithHttpInfo($characterId, $mail, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = 'int'; + $request = $this->postCharactersCharacterIdMailRequest($characterId, $mail, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'postCharactersCharacterIdMail' + * + * @param int $characterId An EVE character ID (required) + * @param \nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdMailMail $mail The mail to send (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function postCharactersCharacterIdMailRequest($characterId, $mail, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling postCharactersCharacterIdMail' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling MailApi.postCharactersCharacterIdMail, must be bigger than or equal to 1.'); + } + + // verify the required parameter 'mail' is set + if ($mail === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $mail when calling postCharactersCharacterIdMail' + ); + } + + $resourcePath = '/characters/{character_id}/mail/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + if (isset($mail)) { + $_tempBody = $mail; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation postCharactersCharacterIdMailLabels + * + * Create a mail label + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param \nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdMailLabelsLabel $label Label to create (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return int + */ + public function postCharactersCharacterIdMailLabels($characterId, $datasource = 'tranquility', $label = null, $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->postCharactersCharacterIdMailLabelsWithHttpInfo($characterId, $datasource, $label, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation postCharactersCharacterIdMailLabelsWithHttpInfo + * + * Create a mail label + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param \nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdMailLabelsLabel $label Label to create (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of int, HTTP status code, HTTP response headers (array of strings) + */ + public function postCharactersCharacterIdMailLabelsWithHttpInfo($characterId, $datasource = 'tranquility', $label = null, $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = 'int'; + $request = $this->postCharactersCharacterIdMailLabelsRequest($characterId, $datasource, $label, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 201: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'int', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation postCharactersCharacterIdMailLabelsAsync + * + * Create a mail label + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param \nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdMailLabelsLabel $label Label to create (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postCharactersCharacterIdMailLabelsAsync($characterId, $datasource = 'tranquility', $label = null, $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->postCharactersCharacterIdMailLabelsAsyncWithHttpInfo($characterId, $datasource, $label, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation postCharactersCharacterIdMailLabelsAsyncWithHttpInfo + * + * Create a mail label + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param \nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdMailLabelsLabel $label Label to create (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postCharactersCharacterIdMailLabelsAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $label = null, $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = 'int'; + $request = $this->postCharactersCharacterIdMailLabelsRequest($characterId, $datasource, $label, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'postCharactersCharacterIdMailLabels' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param \nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdMailLabelsLabel $label Label to create (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function postCharactersCharacterIdMailLabelsRequest($characterId, $datasource = 'tranquility', $label = null, $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling postCharactersCharacterIdMailLabels' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling MailApi.postCharactersCharacterIdMailLabels, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/mail/labels/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + if (isset($label)) { + $_tempBody = $label; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation putCharactersCharacterIdMailMailId + * + * Update metadata about a mail + * + * @param int $characterId An EVE character ID (required) + * @param \nullx27ESI\nullx27\ESI\Models\PutCharactersCharacterIdMailMailIdContents $contents Data used to update the mail (required) + * @param int $mailId An EVE mail ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return void + */ + public function putCharactersCharacterIdMailMailId($characterId, $contents, $mailId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $this->putCharactersCharacterIdMailMailIdWithHttpInfo($characterId, $contents, $mailId, $datasource, $token, $userAgent, $xUserAgent); + } + + /** + * Operation putCharactersCharacterIdMailMailIdWithHttpInfo + * + * Update metadata about a mail + * + * @param int $characterId An EVE character ID (required) + * @param \nullx27ESI\nullx27\ESI\Models\PutCharactersCharacterIdMailMailIdContents $contents Data used to update the mail (required) + * @param int $mailId An EVE mail ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function putCharactersCharacterIdMailMailIdWithHttpInfo($characterId, $contents, $mailId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->putCharactersCharacterIdMailMailIdRequest($characterId, $contents, $mailId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + return [null, $statusCode, $response->getHeaders()]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 400: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\PutCharactersCharacterIdMailMailIdBadRequest', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation putCharactersCharacterIdMailMailIdAsync + * + * Update metadata about a mail + * + * @param int $characterId An EVE character ID (required) + * @param \nullx27ESI\nullx27\ESI\Models\PutCharactersCharacterIdMailMailIdContents $contents Data used to update the mail (required) + * @param int $mailId An EVE mail ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function putCharactersCharacterIdMailMailIdAsync($characterId, $contents, $mailId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->putCharactersCharacterIdMailMailIdAsyncWithHttpInfo($characterId, $contents, $mailId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation putCharactersCharacterIdMailMailIdAsyncWithHttpInfo + * + * Update metadata about a mail + * + * @param int $characterId An EVE character ID (required) + * @param \nullx27ESI\nullx27\ESI\Models\PutCharactersCharacterIdMailMailIdContents $contents Data used to update the mail (required) + * @param int $mailId An EVE mail ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function putCharactersCharacterIdMailMailIdAsyncWithHttpInfo($characterId, $contents, $mailId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->putCharactersCharacterIdMailMailIdRequest($characterId, $contents, $mailId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'putCharactersCharacterIdMailMailId' + * + * @param int $characterId An EVE character ID (required) + * @param \nullx27ESI\nullx27\ESI\Models\PutCharactersCharacterIdMailMailIdContents $contents Data used to update the mail (required) + * @param int $mailId An EVE mail ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function putCharactersCharacterIdMailMailIdRequest($characterId, $contents, $mailId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling putCharactersCharacterIdMailMailId' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling MailApi.putCharactersCharacterIdMailMailId, must be bigger than or equal to 1.'); + } + + // verify the required parameter 'contents' is set + if ($contents === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $contents when calling putCharactersCharacterIdMailMailId' + ); + } + // verify the required parameter 'mailId' is set + if ($mailId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $mailId when calling putCharactersCharacterIdMailMailId' + ); + } + + $resourcePath = '/characters/{character_id}/mail/{mail_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + // path params + if ($mailId !== null) { + $resourcePath = str_replace( + '{' . 'mail_id' . '}', + ObjectSerializer::toPathValue($mailId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + if (isset($contents)) { + $_tempBody = $contents; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'PUT', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } +} diff --git a/src/nullx27/ESI/Api/MarketApi.php b/src/nullx27/ESI/Api/MarketApi.php new file mode 100644 index 0000000..b4e8f58 --- /dev/null +++ b/src/nullx27/ESI/Api/MarketApi.php @@ -0,0 +1,2917 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation getCharactersCharacterIdOrders + * + * List orders from a character + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdOrders200Ok[] + */ + public function getCharactersCharacterIdOrders($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdOrdersWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdOrdersWithHttpInfo + * + * List orders from a character + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdOrders200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdOrdersWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdOrders200Ok[]'; + $request = $this->getCharactersCharacterIdOrdersRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdOrders200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdOrdersAsync + * + * List orders from a character + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdOrdersAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdOrdersAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdOrdersAsyncWithHttpInfo + * + * List orders from a character + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdOrdersAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdOrders200Ok[]'; + $request = $this->getCharactersCharacterIdOrdersRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdOrders' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdOrdersRequest($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdOrders' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling MarketApi.getCharactersCharacterIdOrders, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/orders/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsCorporationIdOrders + * + * List orders from a corporation + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdOrders200Ok[] + */ + public function getCorporationsCorporationIdOrders($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdOrdersWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdOrdersWithHttpInfo + * + * List orders from a corporation + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdOrders200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdOrdersWithHttpInfo($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdOrders200Ok[]'; + $request = $this->getCorporationsCorporationIdOrdersRequest($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdOrders200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdOrdersAsync + * + * List orders from a corporation + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdOrdersAsync($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdOrdersAsyncWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdOrdersAsyncWithHttpInfo + * + * List orders from a corporation + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdOrdersAsyncWithHttpInfo($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdOrders200Ok[]'; + $request = $this->getCorporationsCorporationIdOrdersRequest($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationIdOrders' + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdOrdersRequest($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationIdOrders' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling MarketApi.getCorporationsCorporationIdOrders, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporations/{corporation_id}/orders/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($page !== null) { + $queryParams['page'] = ObjectSerializer::toQueryValue($page); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getMarketsGroups + * + * Get item groups + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return int[] + */ + public function getMarketsGroups($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getMarketsGroupsWithHttpInfo($datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getMarketsGroupsWithHttpInfo + * + * Get item groups + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of int[], HTTP status code, HTTP response headers (array of strings) + */ + public function getMarketsGroupsWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getMarketsGroupsRequest($datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'int[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getMarketsGroupsAsync + * + * Get item groups + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getMarketsGroupsAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getMarketsGroupsAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getMarketsGroupsAsyncWithHttpInfo + * + * Get item groups + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getMarketsGroupsAsyncWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getMarketsGroupsRequest($datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getMarketsGroups' + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getMarketsGroupsRequest($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + + $resourcePath = '/markets/groups/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getMarketsGroupsMarketGroupId + * + * Get item group information + * + * @param int $marketGroupId An Eve item group ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetMarketsGroupsMarketGroupIdOk + */ + public function getMarketsGroupsMarketGroupId($marketGroupId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getMarketsGroupsMarketGroupIdWithHttpInfo($marketGroupId, $datasource, $language, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getMarketsGroupsMarketGroupIdWithHttpInfo + * + * Get item group information + * + * @param int $marketGroupId An Eve item group ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetMarketsGroupsMarketGroupIdOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getMarketsGroupsMarketGroupIdWithHttpInfo($marketGroupId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetMarketsGroupsMarketGroupIdOk'; + $request = $this->getMarketsGroupsMarketGroupIdRequest($marketGroupId, $datasource, $language, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetMarketsGroupsMarketGroupIdOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetMarketsGroupsMarketGroupIdNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getMarketsGroupsMarketGroupIdAsync + * + * Get item group information + * + * @param int $marketGroupId An Eve item group ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getMarketsGroupsMarketGroupIdAsync($marketGroupId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + return $this->getMarketsGroupsMarketGroupIdAsyncWithHttpInfo($marketGroupId, $datasource, $language, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getMarketsGroupsMarketGroupIdAsyncWithHttpInfo + * + * Get item group information + * + * @param int $marketGroupId An Eve item group ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getMarketsGroupsMarketGroupIdAsyncWithHttpInfo($marketGroupId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetMarketsGroupsMarketGroupIdOk'; + $request = $this->getMarketsGroupsMarketGroupIdRequest($marketGroupId, $datasource, $language, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getMarketsGroupsMarketGroupId' + * + * @param int $marketGroupId An Eve item group ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getMarketsGroupsMarketGroupIdRequest($marketGroupId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'marketGroupId' is set + if ($marketGroupId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $marketGroupId when calling getMarketsGroupsMarketGroupId' + ); + } + + $resourcePath = '/markets/groups/{market_group_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($language !== null) { + $queryParams['language'] = ObjectSerializer::toQueryValue($language); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($marketGroupId !== null) { + $resourcePath = str_replace( + '{' . 'market_group_id' . '}', + ObjectSerializer::toPathValue($marketGroupId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getMarketsPrices + * + * List market prices + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetMarketsPrices200Ok[] + */ + public function getMarketsPrices($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getMarketsPricesWithHttpInfo($datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getMarketsPricesWithHttpInfo + * + * List market prices + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetMarketsPrices200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getMarketsPricesWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetMarketsPrices200Ok[]'; + $request = $this->getMarketsPricesRequest($datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetMarketsPrices200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getMarketsPricesAsync + * + * List market prices + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getMarketsPricesAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getMarketsPricesAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getMarketsPricesAsyncWithHttpInfo + * + * List market prices + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getMarketsPricesAsyncWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetMarketsPrices200Ok[]'; + $request = $this->getMarketsPricesRequest($datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getMarketsPrices' + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getMarketsPricesRequest($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + + $resourcePath = '/markets/prices/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getMarketsRegionIdHistory + * + * List historical market statistics in a region + * + * @param int $regionId Return statistics in this region (required) + * @param int $typeId Return statistics for this type (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetMarketsRegionIdHistory200Ok[] + */ + public function getMarketsRegionIdHistory($regionId, $typeId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getMarketsRegionIdHistoryWithHttpInfo($regionId, $typeId, $datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getMarketsRegionIdHistoryWithHttpInfo + * + * List historical market statistics in a region + * + * @param int $regionId Return statistics in this region (required) + * @param int $typeId Return statistics for this type (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetMarketsRegionIdHistory200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getMarketsRegionIdHistoryWithHttpInfo($regionId, $typeId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetMarketsRegionIdHistory200Ok[]'; + $request = $this->getMarketsRegionIdHistoryRequest($regionId, $typeId, $datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetMarketsRegionIdHistory200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 422: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetMarketsRegionIdHistoryUnprocessableEntity', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getMarketsRegionIdHistoryAsync + * + * List historical market statistics in a region + * + * @param int $regionId Return statistics in this region (required) + * @param int $typeId Return statistics for this type (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getMarketsRegionIdHistoryAsync($regionId, $typeId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getMarketsRegionIdHistoryAsyncWithHttpInfo($regionId, $typeId, $datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getMarketsRegionIdHistoryAsyncWithHttpInfo + * + * List historical market statistics in a region + * + * @param int $regionId Return statistics in this region (required) + * @param int $typeId Return statistics for this type (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getMarketsRegionIdHistoryAsyncWithHttpInfo($regionId, $typeId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetMarketsRegionIdHistory200Ok[]'; + $request = $this->getMarketsRegionIdHistoryRequest($regionId, $typeId, $datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getMarketsRegionIdHistory' + * + * @param int $regionId Return statistics in this region (required) + * @param int $typeId Return statistics for this type (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getMarketsRegionIdHistoryRequest($regionId, $typeId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'regionId' is set + if ($regionId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $regionId when calling getMarketsRegionIdHistory' + ); + } + // verify the required parameter 'typeId' is set + if ($typeId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $typeId when calling getMarketsRegionIdHistory' + ); + } + + $resourcePath = '/markets/{region_id}/history/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($typeId !== null) { + $queryParams['type_id'] = ObjectSerializer::toQueryValue($typeId); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($regionId !== null) { + $resourcePath = str_replace( + '{' . 'region_id' . '}', + ObjectSerializer::toPathValue($regionId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getMarketsRegionIdOrders + * + * List orders in a region + * + * @param string $orderType Filter buy/sell orders, return all orders by default. If you query without type_id, we always return both buy and sell orders. (required) + * @param int $regionId Return orders in this region (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param int $typeId Return orders only for this type (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetMarketsRegionIdOrders200Ok[] + */ + public function getMarketsRegionIdOrders($orderType, $regionId, $datasource = 'tranquility', $page = '1', $typeId = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getMarketsRegionIdOrdersWithHttpInfo($orderType, $regionId, $datasource, $page, $typeId, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getMarketsRegionIdOrdersWithHttpInfo + * + * List orders in a region + * + * @param string $orderType Filter buy/sell orders, return all orders by default. If you query without type_id, we always return both buy and sell orders. (required) + * @param int $regionId Return orders in this region (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param int $typeId Return orders only for this type (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetMarketsRegionIdOrders200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getMarketsRegionIdOrdersWithHttpInfo($orderType, $regionId, $datasource = 'tranquility', $page = '1', $typeId = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetMarketsRegionIdOrders200Ok[]'; + $request = $this->getMarketsRegionIdOrdersRequest($orderType, $regionId, $datasource, $page, $typeId, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetMarketsRegionIdOrders200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 422: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetMarketsRegionIdOrdersUnprocessableEntity', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getMarketsRegionIdOrdersAsync + * + * List orders in a region + * + * @param string $orderType Filter buy/sell orders, return all orders by default. If you query without type_id, we always return both buy and sell orders. (required) + * @param int $regionId Return orders in this region (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param int $typeId Return orders only for this type (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getMarketsRegionIdOrdersAsync($orderType, $regionId, $datasource = 'tranquility', $page = '1', $typeId = null, $userAgent = null, $xUserAgent = null) + { + return $this->getMarketsRegionIdOrdersAsyncWithHttpInfo($orderType, $regionId, $datasource, $page, $typeId, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getMarketsRegionIdOrdersAsyncWithHttpInfo + * + * List orders in a region + * + * @param string $orderType Filter buy/sell orders, return all orders by default. If you query without type_id, we always return both buy and sell orders. (required) + * @param int $regionId Return orders in this region (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param int $typeId Return orders only for this type (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getMarketsRegionIdOrdersAsyncWithHttpInfo($orderType, $regionId, $datasource = 'tranquility', $page = '1', $typeId = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetMarketsRegionIdOrders200Ok[]'; + $request = $this->getMarketsRegionIdOrdersRequest($orderType, $regionId, $datasource, $page, $typeId, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getMarketsRegionIdOrders' + * + * @param string $orderType Filter buy/sell orders, return all orders by default. If you query without type_id, we always return both buy and sell orders. (required) + * @param int $regionId Return orders in this region (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param int $typeId Return orders only for this type (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getMarketsRegionIdOrdersRequest($orderType, $regionId, $datasource = 'tranquility', $page = '1', $typeId = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'orderType' is set + if ($orderType === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $orderType when calling getMarketsRegionIdOrders' + ); + } + // verify the required parameter 'regionId' is set + if ($regionId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $regionId when calling getMarketsRegionIdOrders' + ); + } + + $resourcePath = '/markets/{region_id}/orders/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($orderType !== null) { + $queryParams['order_type'] = ObjectSerializer::toQueryValue($orderType); + } + // query params + if ($page !== null) { + $queryParams['page'] = ObjectSerializer::toQueryValue($page); + } + // query params + if ($typeId !== null) { + $queryParams['type_id'] = ObjectSerializer::toQueryValue($typeId); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($regionId !== null) { + $resourcePath = str_replace( + '{' . 'region_id' . '}', + ObjectSerializer::toPathValue($regionId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getMarketsRegionIdTypes + * + * List type IDs relevant to a market + * + * @param int $regionId Return statistics in this region (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return int[] + */ + public function getMarketsRegionIdTypes($regionId, $datasource = 'tranquility', $page = '1', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getMarketsRegionIdTypesWithHttpInfo($regionId, $datasource, $page, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getMarketsRegionIdTypesWithHttpInfo + * + * List type IDs relevant to a market + * + * @param int $regionId Return statistics in this region (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of int[], HTTP status code, HTTP response headers (array of strings) + */ + public function getMarketsRegionIdTypesWithHttpInfo($regionId, $datasource = 'tranquility', $page = '1', $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getMarketsRegionIdTypesRequest($regionId, $datasource, $page, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'int[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getMarketsRegionIdTypesAsync + * + * List type IDs relevant to a market + * + * @param int $regionId Return statistics in this region (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getMarketsRegionIdTypesAsync($regionId, $datasource = 'tranquility', $page = '1', $userAgent = null, $xUserAgent = null) + { + return $this->getMarketsRegionIdTypesAsyncWithHttpInfo($regionId, $datasource, $page, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getMarketsRegionIdTypesAsyncWithHttpInfo + * + * List type IDs relevant to a market + * + * @param int $regionId Return statistics in this region (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getMarketsRegionIdTypesAsyncWithHttpInfo($regionId, $datasource = 'tranquility', $page = '1', $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getMarketsRegionIdTypesRequest($regionId, $datasource, $page, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getMarketsRegionIdTypes' + * + * @param int $regionId Return statistics in this region (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getMarketsRegionIdTypesRequest($regionId, $datasource = 'tranquility', $page = '1', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'regionId' is set + if ($regionId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $regionId when calling getMarketsRegionIdTypes' + ); + } + + $resourcePath = '/markets/{region_id}/types/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($page !== null) { + $queryParams['page'] = ObjectSerializer::toQueryValue($page); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($regionId !== null) { + $resourcePath = str_replace( + '{' . 'region_id' . '}', + ObjectSerializer::toPathValue($regionId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getMarketsStructuresStructureId + * + * List orders in a structure + * + * @param int $structureId Return orders in this structure (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetMarketsStructuresStructureId200Ok[] + */ + public function getMarketsStructuresStructureId($structureId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getMarketsStructuresStructureIdWithHttpInfo($structureId, $datasource, $page, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getMarketsStructuresStructureIdWithHttpInfo + * + * List orders in a structure + * + * @param int $structureId Return orders in this structure (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetMarketsStructuresStructureId200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getMarketsStructuresStructureIdWithHttpInfo($structureId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetMarketsStructuresStructureId200Ok[]'; + $request = $this->getMarketsStructuresStructureIdRequest($structureId, $datasource, $page, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetMarketsStructuresStructureId200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getMarketsStructuresStructureIdAsync + * + * List orders in a structure + * + * @param int $structureId Return orders in this structure (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getMarketsStructuresStructureIdAsync($structureId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getMarketsStructuresStructureIdAsyncWithHttpInfo($structureId, $datasource, $page, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getMarketsStructuresStructureIdAsyncWithHttpInfo + * + * List orders in a structure + * + * @param int $structureId Return orders in this structure (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getMarketsStructuresStructureIdAsyncWithHttpInfo($structureId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetMarketsStructuresStructureId200Ok[]'; + $request = $this->getMarketsStructuresStructureIdRequest($structureId, $datasource, $page, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getMarketsStructuresStructureId' + * + * @param int $structureId Return orders in this structure (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getMarketsStructuresStructureIdRequest($structureId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'structureId' is set + if ($structureId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $structureId when calling getMarketsStructuresStructureId' + ); + } + + $resourcePath = '/markets/structures/{structure_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($page !== null) { + $queryParams['page'] = ObjectSerializer::toQueryValue($page); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($structureId !== null) { + $resourcePath = str_replace( + '{' . 'structure_id' . '}', + ObjectSerializer::toPathValue($structureId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } +} diff --git a/src/nullx27/ESI/Api/OpportunitiesApi.php b/src/nullx27/ESI/Api/OpportunitiesApi.php new file mode 100644 index 0000000..88befc1 --- /dev/null +++ b/src/nullx27/ESI/Api/OpportunitiesApi.php @@ -0,0 +1,1584 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation getCharactersCharacterIdOpportunities + * + * Get a character's completed tasks + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdOpportunities200Ok[] + */ + public function getCharactersCharacterIdOpportunities($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdOpportunitiesWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdOpportunitiesWithHttpInfo + * + * Get a character's completed tasks + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdOpportunities200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdOpportunitiesWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdOpportunities200Ok[]'; + $request = $this->getCharactersCharacterIdOpportunitiesRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdOpportunities200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdOpportunitiesAsync + * + * Get a character's completed tasks + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdOpportunitiesAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdOpportunitiesAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdOpportunitiesAsyncWithHttpInfo + * + * Get a character's completed tasks + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdOpportunitiesAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdOpportunities200Ok[]'; + $request = $this->getCharactersCharacterIdOpportunitiesRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdOpportunities' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdOpportunitiesRequest($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdOpportunities' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling OpportunitiesApi.getCharactersCharacterIdOpportunities, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/opportunities/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getOpportunitiesGroups + * + * Get opportunities groups + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return int[] + */ + public function getOpportunitiesGroups($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getOpportunitiesGroupsWithHttpInfo($datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getOpportunitiesGroupsWithHttpInfo + * + * Get opportunities groups + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of int[], HTTP status code, HTTP response headers (array of strings) + */ + public function getOpportunitiesGroupsWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getOpportunitiesGroupsRequest($datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'int[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getOpportunitiesGroupsAsync + * + * Get opportunities groups + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getOpportunitiesGroupsAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getOpportunitiesGroupsAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getOpportunitiesGroupsAsyncWithHttpInfo + * + * Get opportunities groups + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getOpportunitiesGroupsAsyncWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getOpportunitiesGroupsRequest($datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getOpportunitiesGroups' + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getOpportunitiesGroupsRequest($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + + $resourcePath = '/opportunities/groups/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getOpportunitiesGroupsGroupId + * + * Get opportunities group + * + * @param int $groupId ID of an opportunities group (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetOpportunitiesGroupsGroupIdOk + */ + public function getOpportunitiesGroupsGroupId($groupId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getOpportunitiesGroupsGroupIdWithHttpInfo($groupId, $datasource, $language, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getOpportunitiesGroupsGroupIdWithHttpInfo + * + * Get opportunities group + * + * @param int $groupId ID of an opportunities group (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetOpportunitiesGroupsGroupIdOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getOpportunitiesGroupsGroupIdWithHttpInfo($groupId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetOpportunitiesGroupsGroupIdOk'; + $request = $this->getOpportunitiesGroupsGroupIdRequest($groupId, $datasource, $language, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetOpportunitiesGroupsGroupIdOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getOpportunitiesGroupsGroupIdAsync + * + * Get opportunities group + * + * @param int $groupId ID of an opportunities group (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getOpportunitiesGroupsGroupIdAsync($groupId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + return $this->getOpportunitiesGroupsGroupIdAsyncWithHttpInfo($groupId, $datasource, $language, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getOpportunitiesGroupsGroupIdAsyncWithHttpInfo + * + * Get opportunities group + * + * @param int $groupId ID of an opportunities group (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getOpportunitiesGroupsGroupIdAsyncWithHttpInfo($groupId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetOpportunitiesGroupsGroupIdOk'; + $request = $this->getOpportunitiesGroupsGroupIdRequest($groupId, $datasource, $language, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getOpportunitiesGroupsGroupId' + * + * @param int $groupId ID of an opportunities group (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getOpportunitiesGroupsGroupIdRequest($groupId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'groupId' is set + if ($groupId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $groupId when calling getOpportunitiesGroupsGroupId' + ); + } + + $resourcePath = '/opportunities/groups/{group_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($language !== null) { + $queryParams['language'] = ObjectSerializer::toQueryValue($language); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($groupId !== null) { + $resourcePath = str_replace( + '{' . 'group_id' . '}', + ObjectSerializer::toPathValue($groupId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getOpportunitiesTasks + * + * Get opportunities tasks + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return int[] + */ + public function getOpportunitiesTasks($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getOpportunitiesTasksWithHttpInfo($datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getOpportunitiesTasksWithHttpInfo + * + * Get opportunities tasks + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of int[], HTTP status code, HTTP response headers (array of strings) + */ + public function getOpportunitiesTasksWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getOpportunitiesTasksRequest($datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'int[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getOpportunitiesTasksAsync + * + * Get opportunities tasks + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getOpportunitiesTasksAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getOpportunitiesTasksAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getOpportunitiesTasksAsyncWithHttpInfo + * + * Get opportunities tasks + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getOpportunitiesTasksAsyncWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getOpportunitiesTasksRequest($datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getOpportunitiesTasks' + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getOpportunitiesTasksRequest($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + + $resourcePath = '/opportunities/tasks/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getOpportunitiesTasksTaskId + * + * Get opportunities task + * + * @param int $taskId ID of an opportunities task (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetOpportunitiesTasksTaskIdOk + */ + public function getOpportunitiesTasksTaskId($taskId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getOpportunitiesTasksTaskIdWithHttpInfo($taskId, $datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getOpportunitiesTasksTaskIdWithHttpInfo + * + * Get opportunities task + * + * @param int $taskId ID of an opportunities task (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetOpportunitiesTasksTaskIdOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getOpportunitiesTasksTaskIdWithHttpInfo($taskId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetOpportunitiesTasksTaskIdOk'; + $request = $this->getOpportunitiesTasksTaskIdRequest($taskId, $datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetOpportunitiesTasksTaskIdOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getOpportunitiesTasksTaskIdAsync + * + * Get opportunities task + * + * @param int $taskId ID of an opportunities task (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getOpportunitiesTasksTaskIdAsync($taskId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getOpportunitiesTasksTaskIdAsyncWithHttpInfo($taskId, $datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getOpportunitiesTasksTaskIdAsyncWithHttpInfo + * + * Get opportunities task + * + * @param int $taskId ID of an opportunities task (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getOpportunitiesTasksTaskIdAsyncWithHttpInfo($taskId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetOpportunitiesTasksTaskIdOk'; + $request = $this->getOpportunitiesTasksTaskIdRequest($taskId, $datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getOpportunitiesTasksTaskId' + * + * @param int $taskId ID of an opportunities task (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getOpportunitiesTasksTaskIdRequest($taskId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'taskId' is set + if ($taskId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $taskId when calling getOpportunitiesTasksTaskId' + ); + } + + $resourcePath = '/opportunities/tasks/{task_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($taskId !== null) { + $resourcePath = str_replace( + '{' . 'task_id' . '}', + ObjectSerializer::toPathValue($taskId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } +} diff --git a/src/nullx27/ESI/Api/PlanetaryInteractionApi.php b/src/nullx27/ESI/Api/PlanetaryInteractionApi.php new file mode 100644 index 0000000..19adf31 --- /dev/null +++ b/src/nullx27/ESI/Api/PlanetaryInteractionApi.php @@ -0,0 +1,1410 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation getCharactersCharacterIdPlanets + * + * Get colonies + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanets200Ok[] + */ + public function getCharactersCharacterIdPlanets($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdPlanetsWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdPlanetsWithHttpInfo + * + * Get colonies + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanets200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdPlanetsWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanets200Ok[]'; + $request = $this->getCharactersCharacterIdPlanetsRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanets200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdPlanetsAsync + * + * Get colonies + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdPlanetsAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdPlanetsAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdPlanetsAsyncWithHttpInfo + * + * Get colonies + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdPlanetsAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanets200Ok[]'; + $request = $this->getCharactersCharacterIdPlanetsRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdPlanets' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdPlanetsRequest($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdPlanets' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling PlanetaryInteractionApi.getCharactersCharacterIdPlanets, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/planets/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCharactersCharacterIdPlanetsPlanetId + * + * Get colony layout + * + * @param int $characterId An EVE character ID (required) + * @param int $planetId Planet id of the target planet (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdOk + */ + public function getCharactersCharacterIdPlanetsPlanetId($characterId, $planetId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdPlanetsPlanetIdWithHttpInfo($characterId, $planetId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdPlanetsPlanetIdWithHttpInfo + * + * Get colony layout + * + * @param int $characterId An EVE character ID (required) + * @param int $planetId Planet id of the target planet (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdPlanetsPlanetIdWithHttpInfo($characterId, $planetId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdOk'; + $request = $this->getCharactersCharacterIdPlanetsPlanetIdRequest($characterId, $planetId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdPlanetsPlanetIdAsync + * + * Get colony layout + * + * @param int $characterId An EVE character ID (required) + * @param int $planetId Planet id of the target planet (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdPlanetsPlanetIdAsync($characterId, $planetId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdPlanetsPlanetIdAsyncWithHttpInfo($characterId, $planetId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdPlanetsPlanetIdAsyncWithHttpInfo + * + * Get colony layout + * + * @param int $characterId An EVE character ID (required) + * @param int $planetId Planet id of the target planet (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdPlanetsPlanetIdAsyncWithHttpInfo($characterId, $planetId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdOk'; + $request = $this->getCharactersCharacterIdPlanetsPlanetIdRequest($characterId, $planetId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdPlanetsPlanetId' + * + * @param int $characterId An EVE character ID (required) + * @param int $planetId Planet id of the target planet (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdPlanetsPlanetIdRequest($characterId, $planetId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdPlanetsPlanetId' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling PlanetaryInteractionApi.getCharactersCharacterIdPlanetsPlanetId, must be bigger than or equal to 1.'); + } + + // verify the required parameter 'planetId' is set + if ($planetId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $planetId when calling getCharactersCharacterIdPlanetsPlanetId' + ); + } + + $resourcePath = '/characters/{character_id}/planets/{planet_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + // path params + if ($planetId !== null) { + $resourcePath = str_replace( + '{' . 'planet_id' . '}', + ObjectSerializer::toPathValue($planetId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsCorporationIdCustomsOffices + * + * List corporation customs offices + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdCustomsOffices200Ok[] + */ + public function getCorporationsCorporationIdCustomsOffices($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdCustomsOfficesWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdCustomsOfficesWithHttpInfo + * + * List corporation customs offices + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdCustomsOffices200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdCustomsOfficesWithHttpInfo($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdCustomsOffices200Ok[]'; + $request = $this->getCorporationsCorporationIdCustomsOfficesRequest($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdCustomsOffices200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdCustomsOfficesAsync + * + * List corporation customs offices + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdCustomsOfficesAsync($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdCustomsOfficesAsyncWithHttpInfo($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdCustomsOfficesAsyncWithHttpInfo + * + * List corporation customs offices + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdCustomsOfficesAsyncWithHttpInfo($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdCustomsOffices200Ok[]'; + $request = $this->getCorporationsCorporationIdCustomsOfficesRequest($corporationId, $datasource, $page, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationIdCustomsOffices' + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdCustomsOfficesRequest($corporationId, $datasource = 'tranquility', $page = '1', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationIdCustomsOffices' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling PlanetaryInteractionApi.getCorporationsCorporationIdCustomsOffices, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporations/{corporation_id}/customs_offices/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($page !== null) { + $queryParams['page'] = ObjectSerializer::toQueryValue($page); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getUniverseSchematicsSchematicId + * + * Get schematic information + * + * @param int $schematicId A PI schematic ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetUniverseSchematicsSchematicIdOk + */ + public function getUniverseSchematicsSchematicId($schematicId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getUniverseSchematicsSchematicIdWithHttpInfo($schematicId, $datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getUniverseSchematicsSchematicIdWithHttpInfo + * + * Get schematic information + * + * @param int $schematicId A PI schematic ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetUniverseSchematicsSchematicIdOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getUniverseSchematicsSchematicIdWithHttpInfo($schematicId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniverseSchematicsSchematicIdOk'; + $request = $this->getUniverseSchematicsSchematicIdRequest($schematicId, $datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetUniverseSchematicsSchematicIdOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetUniverseSchematicsSchematicIdNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getUniverseSchematicsSchematicIdAsync + * + * Get schematic information + * + * @param int $schematicId A PI schematic ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseSchematicsSchematicIdAsync($schematicId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getUniverseSchematicsSchematicIdAsyncWithHttpInfo($schematicId, $datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getUniverseSchematicsSchematicIdAsyncWithHttpInfo + * + * Get schematic information + * + * @param int $schematicId A PI schematic ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseSchematicsSchematicIdAsyncWithHttpInfo($schematicId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniverseSchematicsSchematicIdOk'; + $request = $this->getUniverseSchematicsSchematicIdRequest($schematicId, $datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getUniverseSchematicsSchematicId' + * + * @param int $schematicId A PI schematic ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getUniverseSchematicsSchematicIdRequest($schematicId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'schematicId' is set + if ($schematicId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $schematicId when calling getUniverseSchematicsSchematicId' + ); + } + + $resourcePath = '/universe/schematics/{schematic_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($schematicId !== null) { + $resourcePath = str_replace( + '{' . 'schematic_id' . '}', + ObjectSerializer::toPathValue($schematicId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } +} diff --git a/src/nullx27/ESI/Api/RoutesApi.php b/src/nullx27/ESI/Api/RoutesApi.php new file mode 100644 index 0000000..5f66f2a --- /dev/null +++ b/src/nullx27/ESI/Api/RoutesApi.php @@ -0,0 +1,468 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation getRouteOriginDestination + * + * Get route + * + * @param int $destination destination solar system ID (required) + * @param int $origin origin solar system ID (required) + * @param int[] $avoid avoid solar system ID(s) (optional) + * @param int[][] $connections connected solar system pairs (optional) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $flag route security preference (optional, default to shortest) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return int[] + */ + public function getRouteOriginDestination($destination, $origin, $avoid = null, $connections = null, $datasource = 'tranquility', $flag = 'shortest', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getRouteOriginDestinationWithHttpInfo($destination, $origin, $avoid, $connections, $datasource, $flag, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getRouteOriginDestinationWithHttpInfo + * + * Get route + * + * @param int $destination destination solar system ID (required) + * @param int $origin origin solar system ID (required) + * @param int[] $avoid avoid solar system ID(s) (optional) + * @param int[][] $connections connected solar system pairs (optional) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $flag route security preference (optional, default to shortest) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of int[], HTTP status code, HTTP response headers (array of strings) + */ + public function getRouteOriginDestinationWithHttpInfo($destination, $origin, $avoid = null, $connections = null, $datasource = 'tranquility', $flag = 'shortest', $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getRouteOriginDestinationRequest($destination, $origin, $avoid, $connections, $datasource, $flag, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'int[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetRouteOriginDestinationNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getRouteOriginDestinationAsync + * + * Get route + * + * @param int $destination destination solar system ID (required) + * @param int $origin origin solar system ID (required) + * @param int[] $avoid avoid solar system ID(s) (optional) + * @param int[][] $connections connected solar system pairs (optional) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $flag route security preference (optional, default to shortest) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getRouteOriginDestinationAsync($destination, $origin, $avoid = null, $connections = null, $datasource = 'tranquility', $flag = 'shortest', $userAgent = null, $xUserAgent = null) + { + return $this->getRouteOriginDestinationAsyncWithHttpInfo($destination, $origin, $avoid, $connections, $datasource, $flag, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getRouteOriginDestinationAsyncWithHttpInfo + * + * Get route + * + * @param int $destination destination solar system ID (required) + * @param int $origin origin solar system ID (required) + * @param int[] $avoid avoid solar system ID(s) (optional) + * @param int[][] $connections connected solar system pairs (optional) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $flag route security preference (optional, default to shortest) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getRouteOriginDestinationAsyncWithHttpInfo($destination, $origin, $avoid = null, $connections = null, $datasource = 'tranquility', $flag = 'shortest', $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getRouteOriginDestinationRequest($destination, $origin, $avoid, $connections, $datasource, $flag, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getRouteOriginDestination' + * + * @param int $destination destination solar system ID (required) + * @param int $origin origin solar system ID (required) + * @param int[] $avoid avoid solar system ID(s) (optional) + * @param int[][] $connections connected solar system pairs (optional) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $flag route security preference (optional, default to shortest) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getRouteOriginDestinationRequest($destination, $origin, $avoid = null, $connections = null, $datasource = 'tranquility', $flag = 'shortest', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'destination' is set + if ($destination === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $destination when calling getRouteOriginDestination' + ); + } + // verify the required parameter 'origin' is set + if ($origin === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $origin when calling getRouteOriginDestination' + ); + } + if ($avoid !== null && count($avoid) > 100) { + throw new \InvalidArgumentException('invalid value for "$avoid" when calling RoutesApi.getRouteOriginDestination, number of items must be less than or equal to 100.'); + } + + if ($connections !== null && count($connections) > 100) { + throw new \InvalidArgumentException('invalid value for "$connections" when calling RoutesApi.getRouteOriginDestination, number of items must be less than or equal to 100.'); + } + + + $resourcePath = '/route/{origin}/{destination}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if (is_array($avoid)) { + $avoid = ObjectSerializer::serializeCollection($avoid, 'csv', true); + } + if ($avoid !== null) { + $queryParams['avoid'] = ObjectSerializer::toQueryValue($avoid); + } + // query params + if (is_array($connections)) { + $connections = ObjectSerializer::serializeCollection($connections, 'csv', true); + } + if ($connections !== null) { + $queryParams['connections'] = ObjectSerializer::toQueryValue($connections); + } + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($flag !== null) { + $queryParams['flag'] = ObjectSerializer::toQueryValue($flag); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($destination !== null) { + $resourcePath = str_replace( + '{' . 'destination' . '}', + ObjectSerializer::toPathValue($destination), + $resourcePath + ); + } + // path params + if ($origin !== null) { + $resourcePath = str_replace( + '{' . 'origin' . '}', + ObjectSerializer::toPathValue($origin), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } +} diff --git a/src/nullx27/ESI/Api/SearchApi.php b/src/nullx27/ESI/Api/SearchApi.php new file mode 100644 index 0000000..fcad21f --- /dev/null +++ b/src/nullx27/ESI/Api/SearchApi.php @@ -0,0 +1,827 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation getCharactersCharacterIdSearch + * + * Search on a string + * + * @param string[] $categories Type of entities to search for (required) + * @param int $characterId An EVE character ID (required) + * @param string $search The string to search on (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param bool $strict Whether the search should be a strict match (optional, default to false) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdSearchOk + */ + public function getCharactersCharacterIdSearch($categories, $characterId, $search, $datasource = 'tranquility', $language = 'en-us', $strict = 'false', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdSearchWithHttpInfo($categories, $characterId, $search, $datasource, $language, $strict, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdSearchWithHttpInfo + * + * Search on a string + * + * @param string[] $categories Type of entities to search for (required) + * @param int $characterId An EVE character ID (required) + * @param string $search The string to search on (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param bool $strict Whether the search should be a strict match (optional, default to false) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdSearchOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdSearchWithHttpInfo($categories, $characterId, $search, $datasource = 'tranquility', $language = 'en-us', $strict = 'false', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdSearchOk'; + $request = $this->getCharactersCharacterIdSearchRequest($categories, $characterId, $search, $datasource, $language, $strict, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdSearchOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdSearchAsync + * + * Search on a string + * + * @param string[] $categories Type of entities to search for (required) + * @param int $characterId An EVE character ID (required) + * @param string $search The string to search on (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param bool $strict Whether the search should be a strict match (optional, default to false) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdSearchAsync($categories, $characterId, $search, $datasource = 'tranquility', $language = 'en-us', $strict = 'false', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdSearchAsyncWithHttpInfo($categories, $characterId, $search, $datasource, $language, $strict, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdSearchAsyncWithHttpInfo + * + * Search on a string + * + * @param string[] $categories Type of entities to search for (required) + * @param int $characterId An EVE character ID (required) + * @param string $search The string to search on (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param bool $strict Whether the search should be a strict match (optional, default to false) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdSearchAsyncWithHttpInfo($categories, $characterId, $search, $datasource = 'tranquility', $language = 'en-us', $strict = 'false', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdSearchOk'; + $request = $this->getCharactersCharacterIdSearchRequest($categories, $characterId, $search, $datasource, $language, $strict, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdSearch' + * + * @param string[] $categories Type of entities to search for (required) + * @param int $characterId An EVE character ID (required) + * @param string $search The string to search on (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param bool $strict Whether the search should be a strict match (optional, default to false) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdSearchRequest($categories, $characterId, $search, $datasource = 'tranquility', $language = 'en-us', $strict = 'false', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'categories' is set + if ($categories === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $categories when calling getCharactersCharacterIdSearch' + ); + } + if (count($categories) > 11) { + throw new \InvalidArgumentException('invalid value for "$categories" when calling SearchApi.getCharactersCharacterIdSearch, number of items must be less than or equal to 11.'); + } + if (count($categories) < 1) { + throw new \InvalidArgumentException('invalid value for "$categories" when calling SearchApi.getCharactersCharacterIdSearch, number of items must be greater than or equal to 1.'); + } + + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdSearch' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling SearchApi.getCharactersCharacterIdSearch, must be bigger than or equal to 1.'); + } + + // verify the required parameter 'search' is set + if ($search === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $search when calling getCharactersCharacterIdSearch' + ); + } + if (strlen($search) < 3) { + throw new \InvalidArgumentException('invalid length for "$search" when calling SearchApi.getCharactersCharacterIdSearch, must be bigger than or equal to 3.'); + } + + + $resourcePath = '/characters/{character_id}/search/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if (is_array($categories)) { + $categories = ObjectSerializer::serializeCollection($categories, 'csv', true); + } + if ($categories !== null) { + $queryParams['categories'] = ObjectSerializer::toQueryValue($categories); + } + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($language !== null) { + $queryParams['language'] = ObjectSerializer::toQueryValue($language); + } + // query params + if ($search !== null) { + $queryParams['search'] = ObjectSerializer::toQueryValue($search); + } + // query params + if ($strict !== null) { + $queryParams['strict'] = ObjectSerializer::toQueryValue($strict); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getSearch + * + * Search on a string + * + * @param string[] $categories Type of entities to search for (required) + * @param string $search The string to search on (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param bool $strict Whether the search should be a strict match (optional, default to false) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetSearchOk + */ + public function getSearch($categories, $search, $datasource = 'tranquility', $language = 'en-us', $strict = 'false', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getSearchWithHttpInfo($categories, $search, $datasource, $language, $strict, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getSearchWithHttpInfo + * + * Search on a string + * + * @param string[] $categories Type of entities to search for (required) + * @param string $search The string to search on (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param bool $strict Whether the search should be a strict match (optional, default to false) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetSearchOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getSearchWithHttpInfo($categories, $search, $datasource = 'tranquility', $language = 'en-us', $strict = 'false', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetSearchOk'; + $request = $this->getSearchRequest($categories, $search, $datasource, $language, $strict, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetSearchOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getSearchAsync + * + * Search on a string + * + * @param string[] $categories Type of entities to search for (required) + * @param string $search The string to search on (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param bool $strict Whether the search should be a strict match (optional, default to false) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getSearchAsync($categories, $search, $datasource = 'tranquility', $language = 'en-us', $strict = 'false', $userAgent = null, $xUserAgent = null) + { + return $this->getSearchAsyncWithHttpInfo($categories, $search, $datasource, $language, $strict, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getSearchAsyncWithHttpInfo + * + * Search on a string + * + * @param string[] $categories Type of entities to search for (required) + * @param string $search The string to search on (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param bool $strict Whether the search should be a strict match (optional, default to false) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getSearchAsyncWithHttpInfo($categories, $search, $datasource = 'tranquility', $language = 'en-us', $strict = 'false', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetSearchOk'; + $request = $this->getSearchRequest($categories, $search, $datasource, $language, $strict, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getSearch' + * + * @param string[] $categories Type of entities to search for (required) + * @param string $search The string to search on (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param bool $strict Whether the search should be a strict match (optional, default to false) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getSearchRequest($categories, $search, $datasource = 'tranquility', $language = 'en-us', $strict = 'false', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'categories' is set + if ($categories === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $categories when calling getSearch' + ); + } + if (count($categories) > 10) { + throw new \InvalidArgumentException('invalid value for "$categories" when calling SearchApi.getSearch, number of items must be less than or equal to 10.'); + } + if (count($categories) < 1) { + throw new \InvalidArgumentException('invalid value for "$categories" when calling SearchApi.getSearch, number of items must be greater than or equal to 1.'); + } + + // verify the required parameter 'search' is set + if ($search === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $search when calling getSearch' + ); + } + if (strlen($search) < 3) { + throw new \InvalidArgumentException('invalid length for "$search" when calling SearchApi.getSearch, must be bigger than or equal to 3.'); + } + + + $resourcePath = '/search/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if (is_array($categories)) { + $categories = ObjectSerializer::serializeCollection($categories, 'csv', true); + } + if ($categories !== null) { + $queryParams['categories'] = ObjectSerializer::toQueryValue($categories); + } + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($language !== null) { + $queryParams['language'] = ObjectSerializer::toQueryValue($language); + } + // query params + if ($search !== null) { + $queryParams['search'] = ObjectSerializer::toQueryValue($search); + } + // query params + if ($strict !== null) { + $queryParams['strict'] = ObjectSerializer::toQueryValue($strict); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } +} diff --git a/src/nullx27/ESI/Api/SkillsApi.php b/src/nullx27/ESI/Api/SkillsApi.php new file mode 100644 index 0000000..728c5b4 --- /dev/null +++ b/src/nullx27/ESI/Api/SkillsApi.php @@ -0,0 +1,1069 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation getCharactersCharacterIdAttributes + * + * Get character attributes + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdAttributesOk + */ + public function getCharactersCharacterIdAttributes($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdAttributesWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdAttributesWithHttpInfo + * + * Get character attributes + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdAttributesOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdAttributesWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdAttributesOk'; + $request = $this->getCharactersCharacterIdAttributesRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdAttributesOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdAttributesAsync + * + * Get character attributes + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdAttributesAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdAttributesAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdAttributesAsyncWithHttpInfo + * + * Get character attributes + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdAttributesAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdAttributesOk'; + $request = $this->getCharactersCharacterIdAttributesRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdAttributes' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdAttributesRequest($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdAttributes' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling SkillsApi.getCharactersCharacterIdAttributes, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/attributes/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCharactersCharacterIdSkillqueue + * + * Get character's skill queue + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdSkillqueue200Ok[] + */ + public function getCharactersCharacterIdSkillqueue($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdSkillqueueWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdSkillqueueWithHttpInfo + * + * Get character's skill queue + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdSkillqueue200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdSkillqueueWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdSkillqueue200Ok[]'; + $request = $this->getCharactersCharacterIdSkillqueueRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdSkillqueue200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdSkillqueueAsync + * + * Get character's skill queue + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdSkillqueueAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdSkillqueueAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdSkillqueueAsyncWithHttpInfo + * + * Get character's skill queue + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdSkillqueueAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdSkillqueue200Ok[]'; + $request = $this->getCharactersCharacterIdSkillqueueRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdSkillqueue' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdSkillqueueRequest($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdSkillqueue' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling SkillsApi.getCharactersCharacterIdSkillqueue, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/skillqueue/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCharactersCharacterIdSkills + * + * Get character skills + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdSkillsOk + */ + public function getCharactersCharacterIdSkills($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdSkillsWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdSkillsWithHttpInfo + * + * Get character skills + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdSkillsOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdSkillsWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdSkillsOk'; + $request = $this->getCharactersCharacterIdSkillsRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdSkillsOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdSkillsAsync + * + * Get character skills + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdSkillsAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdSkillsAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdSkillsAsyncWithHttpInfo + * + * Get character skills + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdSkillsAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdSkillsOk'; + $request = $this->getCharactersCharacterIdSkillsRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdSkills' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdSkillsRequest($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdSkills' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling SkillsApi.getCharactersCharacterIdSkills, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/skills/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } +} diff --git a/src/nullx27/ESI/Api/SovereigntyApi.php b/src/nullx27/ESI/Api/SovereigntyApi.php new file mode 100644 index 0000000..82065a0 --- /dev/null +++ b/src/nullx27/ESI/Api/SovereigntyApi.php @@ -0,0 +1,937 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation getSovereigntyCampaigns + * + * List sovereignty campaigns + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetSovereigntyCampaigns200Ok[] + */ + public function getSovereigntyCampaigns($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getSovereigntyCampaignsWithHttpInfo($datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getSovereigntyCampaignsWithHttpInfo + * + * List sovereignty campaigns + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetSovereigntyCampaigns200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getSovereigntyCampaignsWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetSovereigntyCampaigns200Ok[]'; + $request = $this->getSovereigntyCampaignsRequest($datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetSovereigntyCampaigns200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getSovereigntyCampaignsAsync + * + * List sovereignty campaigns + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getSovereigntyCampaignsAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getSovereigntyCampaignsAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getSovereigntyCampaignsAsyncWithHttpInfo + * + * List sovereignty campaigns + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getSovereigntyCampaignsAsyncWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetSovereigntyCampaigns200Ok[]'; + $request = $this->getSovereigntyCampaignsRequest($datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getSovereigntyCampaigns' + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getSovereigntyCampaignsRequest($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + + $resourcePath = '/sovereignty/campaigns/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getSovereigntyMap + * + * List sovereignty of systems + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetSovereigntyMap200Ok[] + */ + public function getSovereigntyMap($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getSovereigntyMapWithHttpInfo($datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getSovereigntyMapWithHttpInfo + * + * List sovereignty of systems + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetSovereigntyMap200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getSovereigntyMapWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetSovereigntyMap200Ok[]'; + $request = $this->getSovereigntyMapRequest($datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetSovereigntyMap200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getSovereigntyMapAsync + * + * List sovereignty of systems + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getSovereigntyMapAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getSovereigntyMapAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getSovereigntyMapAsyncWithHttpInfo + * + * List sovereignty of systems + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getSovereigntyMapAsyncWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetSovereigntyMap200Ok[]'; + $request = $this->getSovereigntyMapRequest($datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getSovereigntyMap' + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getSovereigntyMapRequest($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + + $resourcePath = '/sovereignty/map/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getSovereigntyStructures + * + * List sovereignty structures + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetSovereigntyStructures200Ok[] + */ + public function getSovereigntyStructures($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getSovereigntyStructuresWithHttpInfo($datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getSovereigntyStructuresWithHttpInfo + * + * List sovereignty structures + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetSovereigntyStructures200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getSovereigntyStructuresWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetSovereigntyStructures200Ok[]'; + $request = $this->getSovereigntyStructuresRequest($datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetSovereigntyStructures200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getSovereigntyStructuresAsync + * + * List sovereignty structures + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getSovereigntyStructuresAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getSovereigntyStructuresAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getSovereigntyStructuresAsyncWithHttpInfo + * + * List sovereignty structures + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getSovereigntyStructuresAsyncWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetSovereigntyStructures200Ok[]'; + $request = $this->getSovereigntyStructuresRequest($datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getSovereigntyStructures' + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getSovereigntyStructuresRequest($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + + $resourcePath = '/sovereignty/structures/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } +} diff --git a/src/nullx27/ESI/Api/StatusApi.php b/src/nullx27/ESI/Api/StatusApi.php new file mode 100644 index 0000000..5536065 --- /dev/null +++ b/src/nullx27/ESI/Api/StatusApi.php @@ -0,0 +1,381 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation getStatus + * + * Retrieve the uptime and player counts + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetStatusOk + */ + public function getStatus($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getStatusWithHttpInfo($datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getStatusWithHttpInfo + * + * Retrieve the uptime and player counts + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetStatusOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getStatusWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetStatusOk'; + $request = $this->getStatusRequest($datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetStatusOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getStatusAsync + * + * Retrieve the uptime and player counts + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getStatusAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getStatusAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getStatusAsyncWithHttpInfo + * + * Retrieve the uptime and player counts + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getStatusAsyncWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetStatusOk'; + $request = $this->getStatusRequest($datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getStatus' + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getStatusRequest($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + + $resourcePath = '/status/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } +} diff --git a/src/nullx27/ESI/Api/UniverseApi.php b/src/nullx27/ESI/Api/UniverseApi.php new file mode 100644 index 0000000..a3db8af --- /dev/null +++ b/src/nullx27/ESI/Api/UniverseApi.php @@ -0,0 +1,8403 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation getUniverseBloodlines + * + * Get bloodlines + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetUniverseBloodlines200Ok[] + */ + public function getUniverseBloodlines($datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getUniverseBloodlinesWithHttpInfo($datasource, $language, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getUniverseBloodlinesWithHttpInfo + * + * Get bloodlines + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetUniverseBloodlines200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getUniverseBloodlinesWithHttpInfo($datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniverseBloodlines200Ok[]'; + $request = $this->getUniverseBloodlinesRequest($datasource, $language, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetUniverseBloodlines200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getUniverseBloodlinesAsync + * + * Get bloodlines + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseBloodlinesAsync($datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + return $this->getUniverseBloodlinesAsyncWithHttpInfo($datasource, $language, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getUniverseBloodlinesAsyncWithHttpInfo + * + * Get bloodlines + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseBloodlinesAsyncWithHttpInfo($datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniverseBloodlines200Ok[]'; + $request = $this->getUniverseBloodlinesRequest($datasource, $language, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getUniverseBloodlines' + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getUniverseBloodlinesRequest($datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + + $resourcePath = '/universe/bloodlines/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($language !== null) { + $queryParams['language'] = ObjectSerializer::toQueryValue($language); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getUniverseCategories + * + * Get item categories + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return int[] + */ + public function getUniverseCategories($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getUniverseCategoriesWithHttpInfo($datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getUniverseCategoriesWithHttpInfo + * + * Get item categories + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of int[], HTTP status code, HTTP response headers (array of strings) + */ + public function getUniverseCategoriesWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getUniverseCategoriesRequest($datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'int[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getUniverseCategoriesAsync + * + * Get item categories + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseCategoriesAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getUniverseCategoriesAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getUniverseCategoriesAsyncWithHttpInfo + * + * Get item categories + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseCategoriesAsyncWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getUniverseCategoriesRequest($datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getUniverseCategories' + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getUniverseCategoriesRequest($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + + $resourcePath = '/universe/categories/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getUniverseCategoriesCategoryId + * + * Get item category information + * + * @param int $categoryId An Eve item category ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetUniverseCategoriesCategoryIdOk + */ + public function getUniverseCategoriesCategoryId($categoryId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getUniverseCategoriesCategoryIdWithHttpInfo($categoryId, $datasource, $language, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getUniverseCategoriesCategoryIdWithHttpInfo + * + * Get item category information + * + * @param int $categoryId An Eve item category ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetUniverseCategoriesCategoryIdOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getUniverseCategoriesCategoryIdWithHttpInfo($categoryId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniverseCategoriesCategoryIdOk'; + $request = $this->getUniverseCategoriesCategoryIdRequest($categoryId, $datasource, $language, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetUniverseCategoriesCategoryIdOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetUniverseCategoriesCategoryIdNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getUniverseCategoriesCategoryIdAsync + * + * Get item category information + * + * @param int $categoryId An Eve item category ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseCategoriesCategoryIdAsync($categoryId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + return $this->getUniverseCategoriesCategoryIdAsyncWithHttpInfo($categoryId, $datasource, $language, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getUniverseCategoriesCategoryIdAsyncWithHttpInfo + * + * Get item category information + * + * @param int $categoryId An Eve item category ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseCategoriesCategoryIdAsyncWithHttpInfo($categoryId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniverseCategoriesCategoryIdOk'; + $request = $this->getUniverseCategoriesCategoryIdRequest($categoryId, $datasource, $language, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getUniverseCategoriesCategoryId' + * + * @param int $categoryId An Eve item category ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getUniverseCategoriesCategoryIdRequest($categoryId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'categoryId' is set + if ($categoryId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $categoryId when calling getUniverseCategoriesCategoryId' + ); + } + + $resourcePath = '/universe/categories/{category_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($language !== null) { + $queryParams['language'] = ObjectSerializer::toQueryValue($language); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($categoryId !== null) { + $resourcePath = str_replace( + '{' . 'category_id' . '}', + ObjectSerializer::toPathValue($categoryId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getUniverseConstellations + * + * Get constellations + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return int[] + */ + public function getUniverseConstellations($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getUniverseConstellationsWithHttpInfo($datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getUniverseConstellationsWithHttpInfo + * + * Get constellations + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of int[], HTTP status code, HTTP response headers (array of strings) + */ + public function getUniverseConstellationsWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getUniverseConstellationsRequest($datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'int[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getUniverseConstellationsAsync + * + * Get constellations + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseConstellationsAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getUniverseConstellationsAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getUniverseConstellationsAsyncWithHttpInfo + * + * Get constellations + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseConstellationsAsyncWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getUniverseConstellationsRequest($datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getUniverseConstellations' + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getUniverseConstellationsRequest($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + + $resourcePath = '/universe/constellations/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getUniverseConstellationsConstellationId + * + * Get constellation information + * + * @param int $constellationId constellation_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetUniverseConstellationsConstellationIdOk + */ + public function getUniverseConstellationsConstellationId($constellationId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getUniverseConstellationsConstellationIdWithHttpInfo($constellationId, $datasource, $language, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getUniverseConstellationsConstellationIdWithHttpInfo + * + * Get constellation information + * + * @param int $constellationId constellation_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetUniverseConstellationsConstellationIdOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getUniverseConstellationsConstellationIdWithHttpInfo($constellationId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniverseConstellationsConstellationIdOk'; + $request = $this->getUniverseConstellationsConstellationIdRequest($constellationId, $datasource, $language, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetUniverseConstellationsConstellationIdOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetUniverseConstellationsConstellationIdNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getUniverseConstellationsConstellationIdAsync + * + * Get constellation information + * + * @param int $constellationId constellation_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseConstellationsConstellationIdAsync($constellationId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + return $this->getUniverseConstellationsConstellationIdAsyncWithHttpInfo($constellationId, $datasource, $language, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getUniverseConstellationsConstellationIdAsyncWithHttpInfo + * + * Get constellation information + * + * @param int $constellationId constellation_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseConstellationsConstellationIdAsyncWithHttpInfo($constellationId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniverseConstellationsConstellationIdOk'; + $request = $this->getUniverseConstellationsConstellationIdRequest($constellationId, $datasource, $language, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getUniverseConstellationsConstellationId' + * + * @param int $constellationId constellation_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getUniverseConstellationsConstellationIdRequest($constellationId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'constellationId' is set + if ($constellationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $constellationId when calling getUniverseConstellationsConstellationId' + ); + } + + $resourcePath = '/universe/constellations/{constellation_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($language !== null) { + $queryParams['language'] = ObjectSerializer::toQueryValue($language); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($constellationId !== null) { + $resourcePath = str_replace( + '{' . 'constellation_id' . '}', + ObjectSerializer::toPathValue($constellationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getUniverseFactions + * + * Get factions + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetUniverseFactions200Ok[] + */ + public function getUniverseFactions($datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getUniverseFactionsWithHttpInfo($datasource, $language, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getUniverseFactionsWithHttpInfo + * + * Get factions + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetUniverseFactions200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getUniverseFactionsWithHttpInfo($datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniverseFactions200Ok[]'; + $request = $this->getUniverseFactionsRequest($datasource, $language, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetUniverseFactions200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getUniverseFactionsAsync + * + * Get factions + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseFactionsAsync($datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + return $this->getUniverseFactionsAsyncWithHttpInfo($datasource, $language, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getUniverseFactionsAsyncWithHttpInfo + * + * Get factions + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseFactionsAsyncWithHttpInfo($datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniverseFactions200Ok[]'; + $request = $this->getUniverseFactionsRequest($datasource, $language, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getUniverseFactions' + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getUniverseFactionsRequest($datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + + $resourcePath = '/universe/factions/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($language !== null) { + $queryParams['language'] = ObjectSerializer::toQueryValue($language); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getUniverseGraphics + * + * Get graphics + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return int[] + */ + public function getUniverseGraphics($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getUniverseGraphicsWithHttpInfo($datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getUniverseGraphicsWithHttpInfo + * + * Get graphics + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of int[], HTTP status code, HTTP response headers (array of strings) + */ + public function getUniverseGraphicsWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getUniverseGraphicsRequest($datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'int[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getUniverseGraphicsAsync + * + * Get graphics + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseGraphicsAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getUniverseGraphicsAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getUniverseGraphicsAsyncWithHttpInfo + * + * Get graphics + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseGraphicsAsyncWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getUniverseGraphicsRequest($datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getUniverseGraphics' + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getUniverseGraphicsRequest($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + + $resourcePath = '/universe/graphics/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getUniverseGraphicsGraphicId + * + * Get graphic information + * + * @param int $graphicId graphic_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetUniverseGraphicsGraphicIdOk + */ + public function getUniverseGraphicsGraphicId($graphicId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getUniverseGraphicsGraphicIdWithHttpInfo($graphicId, $datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getUniverseGraphicsGraphicIdWithHttpInfo + * + * Get graphic information + * + * @param int $graphicId graphic_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetUniverseGraphicsGraphicIdOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getUniverseGraphicsGraphicIdWithHttpInfo($graphicId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniverseGraphicsGraphicIdOk'; + $request = $this->getUniverseGraphicsGraphicIdRequest($graphicId, $datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetUniverseGraphicsGraphicIdOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetUniverseGraphicsGraphicIdNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getUniverseGraphicsGraphicIdAsync + * + * Get graphic information + * + * @param int $graphicId graphic_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseGraphicsGraphicIdAsync($graphicId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getUniverseGraphicsGraphicIdAsyncWithHttpInfo($graphicId, $datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getUniverseGraphicsGraphicIdAsyncWithHttpInfo + * + * Get graphic information + * + * @param int $graphicId graphic_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseGraphicsGraphicIdAsyncWithHttpInfo($graphicId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniverseGraphicsGraphicIdOk'; + $request = $this->getUniverseGraphicsGraphicIdRequest($graphicId, $datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getUniverseGraphicsGraphicId' + * + * @param int $graphicId graphic_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getUniverseGraphicsGraphicIdRequest($graphicId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'graphicId' is set + if ($graphicId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $graphicId when calling getUniverseGraphicsGraphicId' + ); + } + + $resourcePath = '/universe/graphics/{graphic_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($graphicId !== null) { + $resourcePath = str_replace( + '{' . 'graphic_id' . '}', + ObjectSerializer::toPathValue($graphicId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getUniverseGroups + * + * Get item groups + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return int[] + */ + public function getUniverseGroups($datasource = 'tranquility', $page = '1', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getUniverseGroupsWithHttpInfo($datasource, $page, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getUniverseGroupsWithHttpInfo + * + * Get item groups + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of int[], HTTP status code, HTTP response headers (array of strings) + */ + public function getUniverseGroupsWithHttpInfo($datasource = 'tranquility', $page = '1', $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getUniverseGroupsRequest($datasource, $page, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'int[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getUniverseGroupsAsync + * + * Get item groups + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseGroupsAsync($datasource = 'tranquility', $page = '1', $userAgent = null, $xUserAgent = null) + { + return $this->getUniverseGroupsAsyncWithHttpInfo($datasource, $page, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getUniverseGroupsAsyncWithHttpInfo + * + * Get item groups + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseGroupsAsyncWithHttpInfo($datasource = 'tranquility', $page = '1', $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getUniverseGroupsRequest($datasource, $page, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getUniverseGroups' + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getUniverseGroupsRequest($datasource = 'tranquility', $page = '1', $userAgent = null, $xUserAgent = null) + { + + $resourcePath = '/universe/groups/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($page !== null) { + $queryParams['page'] = ObjectSerializer::toQueryValue($page); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getUniverseGroupsGroupId + * + * Get item group information + * + * @param int $groupId An Eve item group ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetUniverseGroupsGroupIdOk + */ + public function getUniverseGroupsGroupId($groupId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getUniverseGroupsGroupIdWithHttpInfo($groupId, $datasource, $language, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getUniverseGroupsGroupIdWithHttpInfo + * + * Get item group information + * + * @param int $groupId An Eve item group ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetUniverseGroupsGroupIdOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getUniverseGroupsGroupIdWithHttpInfo($groupId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniverseGroupsGroupIdOk'; + $request = $this->getUniverseGroupsGroupIdRequest($groupId, $datasource, $language, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetUniverseGroupsGroupIdOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetUniverseGroupsGroupIdNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getUniverseGroupsGroupIdAsync + * + * Get item group information + * + * @param int $groupId An Eve item group ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseGroupsGroupIdAsync($groupId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + return $this->getUniverseGroupsGroupIdAsyncWithHttpInfo($groupId, $datasource, $language, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getUniverseGroupsGroupIdAsyncWithHttpInfo + * + * Get item group information + * + * @param int $groupId An Eve item group ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseGroupsGroupIdAsyncWithHttpInfo($groupId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniverseGroupsGroupIdOk'; + $request = $this->getUniverseGroupsGroupIdRequest($groupId, $datasource, $language, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getUniverseGroupsGroupId' + * + * @param int $groupId An Eve item group ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getUniverseGroupsGroupIdRequest($groupId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'groupId' is set + if ($groupId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $groupId when calling getUniverseGroupsGroupId' + ); + } + + $resourcePath = '/universe/groups/{group_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($language !== null) { + $queryParams['language'] = ObjectSerializer::toQueryValue($language); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($groupId !== null) { + $resourcePath = str_replace( + '{' . 'group_id' . '}', + ObjectSerializer::toPathValue($groupId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getUniverseMoonsMoonId + * + * Get moon information + * + * @param int $moonId moon_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetUniverseMoonsMoonIdOk + */ + public function getUniverseMoonsMoonId($moonId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getUniverseMoonsMoonIdWithHttpInfo($moonId, $datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getUniverseMoonsMoonIdWithHttpInfo + * + * Get moon information + * + * @param int $moonId moon_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetUniverseMoonsMoonIdOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getUniverseMoonsMoonIdWithHttpInfo($moonId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniverseMoonsMoonIdOk'; + $request = $this->getUniverseMoonsMoonIdRequest($moonId, $datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetUniverseMoonsMoonIdOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetUniverseMoonsMoonIdNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getUniverseMoonsMoonIdAsync + * + * Get moon information + * + * @param int $moonId moon_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseMoonsMoonIdAsync($moonId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getUniverseMoonsMoonIdAsyncWithHttpInfo($moonId, $datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getUniverseMoonsMoonIdAsyncWithHttpInfo + * + * Get moon information + * + * @param int $moonId moon_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseMoonsMoonIdAsyncWithHttpInfo($moonId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniverseMoonsMoonIdOk'; + $request = $this->getUniverseMoonsMoonIdRequest($moonId, $datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getUniverseMoonsMoonId' + * + * @param int $moonId moon_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getUniverseMoonsMoonIdRequest($moonId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'moonId' is set + if ($moonId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $moonId when calling getUniverseMoonsMoonId' + ); + } + + $resourcePath = '/universe/moons/{moon_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($moonId !== null) { + $resourcePath = str_replace( + '{' . 'moon_id' . '}', + ObjectSerializer::toPathValue($moonId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getUniversePlanetsPlanetId + * + * Get planet information + * + * @param int $planetId planet_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetUniversePlanetsPlanetIdOk + */ + public function getUniversePlanetsPlanetId($planetId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getUniversePlanetsPlanetIdWithHttpInfo($planetId, $datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getUniversePlanetsPlanetIdWithHttpInfo + * + * Get planet information + * + * @param int $planetId planet_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetUniversePlanetsPlanetIdOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getUniversePlanetsPlanetIdWithHttpInfo($planetId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniversePlanetsPlanetIdOk'; + $request = $this->getUniversePlanetsPlanetIdRequest($planetId, $datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetUniversePlanetsPlanetIdOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetUniversePlanetsPlanetIdNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getUniversePlanetsPlanetIdAsync + * + * Get planet information + * + * @param int $planetId planet_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniversePlanetsPlanetIdAsync($planetId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getUniversePlanetsPlanetIdAsyncWithHttpInfo($planetId, $datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getUniversePlanetsPlanetIdAsyncWithHttpInfo + * + * Get planet information + * + * @param int $planetId planet_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniversePlanetsPlanetIdAsyncWithHttpInfo($planetId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniversePlanetsPlanetIdOk'; + $request = $this->getUniversePlanetsPlanetIdRequest($planetId, $datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getUniversePlanetsPlanetId' + * + * @param int $planetId planet_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getUniversePlanetsPlanetIdRequest($planetId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'planetId' is set + if ($planetId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $planetId when calling getUniversePlanetsPlanetId' + ); + } + + $resourcePath = '/universe/planets/{planet_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($planetId !== null) { + $resourcePath = str_replace( + '{' . 'planet_id' . '}', + ObjectSerializer::toPathValue($planetId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getUniverseRaces + * + * Get character races + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetUniverseRaces200Ok[] + */ + public function getUniverseRaces($datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getUniverseRacesWithHttpInfo($datasource, $language, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getUniverseRacesWithHttpInfo + * + * Get character races + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetUniverseRaces200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getUniverseRacesWithHttpInfo($datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniverseRaces200Ok[]'; + $request = $this->getUniverseRacesRequest($datasource, $language, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetUniverseRaces200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getUniverseRacesAsync + * + * Get character races + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseRacesAsync($datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + return $this->getUniverseRacesAsyncWithHttpInfo($datasource, $language, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getUniverseRacesAsyncWithHttpInfo + * + * Get character races + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseRacesAsyncWithHttpInfo($datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniverseRaces200Ok[]'; + $request = $this->getUniverseRacesRequest($datasource, $language, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getUniverseRaces' + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getUniverseRacesRequest($datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + + $resourcePath = '/universe/races/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($language !== null) { + $queryParams['language'] = ObjectSerializer::toQueryValue($language); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getUniverseRegions + * + * Get regions + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return int[] + */ + public function getUniverseRegions($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getUniverseRegionsWithHttpInfo($datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getUniverseRegionsWithHttpInfo + * + * Get regions + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of int[], HTTP status code, HTTP response headers (array of strings) + */ + public function getUniverseRegionsWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getUniverseRegionsRequest($datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'int[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getUniverseRegionsAsync + * + * Get regions + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseRegionsAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getUniverseRegionsAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getUniverseRegionsAsyncWithHttpInfo + * + * Get regions + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseRegionsAsyncWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getUniverseRegionsRequest($datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getUniverseRegions' + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getUniverseRegionsRequest($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + + $resourcePath = '/universe/regions/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getUniverseRegionsRegionId + * + * Get region information + * + * @param int $regionId region_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetUniverseRegionsRegionIdOk + */ + public function getUniverseRegionsRegionId($regionId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getUniverseRegionsRegionIdWithHttpInfo($regionId, $datasource, $language, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getUniverseRegionsRegionIdWithHttpInfo + * + * Get region information + * + * @param int $regionId region_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetUniverseRegionsRegionIdOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getUniverseRegionsRegionIdWithHttpInfo($regionId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniverseRegionsRegionIdOk'; + $request = $this->getUniverseRegionsRegionIdRequest($regionId, $datasource, $language, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetUniverseRegionsRegionIdOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetUniverseRegionsRegionIdNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getUniverseRegionsRegionIdAsync + * + * Get region information + * + * @param int $regionId region_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseRegionsRegionIdAsync($regionId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + return $this->getUniverseRegionsRegionIdAsyncWithHttpInfo($regionId, $datasource, $language, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getUniverseRegionsRegionIdAsyncWithHttpInfo + * + * Get region information + * + * @param int $regionId region_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseRegionsRegionIdAsyncWithHttpInfo($regionId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniverseRegionsRegionIdOk'; + $request = $this->getUniverseRegionsRegionIdRequest($regionId, $datasource, $language, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getUniverseRegionsRegionId' + * + * @param int $regionId region_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getUniverseRegionsRegionIdRequest($regionId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'regionId' is set + if ($regionId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $regionId when calling getUniverseRegionsRegionId' + ); + } + + $resourcePath = '/universe/regions/{region_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($language !== null) { + $queryParams['language'] = ObjectSerializer::toQueryValue($language); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($regionId !== null) { + $resourcePath = str_replace( + '{' . 'region_id' . '}', + ObjectSerializer::toPathValue($regionId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getUniverseStargatesStargateId + * + * Get stargate information + * + * @param int $stargateId stargate_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetUniverseStargatesStargateIdOk + */ + public function getUniverseStargatesStargateId($stargateId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getUniverseStargatesStargateIdWithHttpInfo($stargateId, $datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getUniverseStargatesStargateIdWithHttpInfo + * + * Get stargate information + * + * @param int $stargateId stargate_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetUniverseStargatesStargateIdOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getUniverseStargatesStargateIdWithHttpInfo($stargateId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniverseStargatesStargateIdOk'; + $request = $this->getUniverseStargatesStargateIdRequest($stargateId, $datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetUniverseStargatesStargateIdOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetUniverseStargatesStargateIdNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getUniverseStargatesStargateIdAsync + * + * Get stargate information + * + * @param int $stargateId stargate_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseStargatesStargateIdAsync($stargateId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getUniverseStargatesStargateIdAsyncWithHttpInfo($stargateId, $datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getUniverseStargatesStargateIdAsyncWithHttpInfo + * + * Get stargate information + * + * @param int $stargateId stargate_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseStargatesStargateIdAsyncWithHttpInfo($stargateId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniverseStargatesStargateIdOk'; + $request = $this->getUniverseStargatesStargateIdRequest($stargateId, $datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getUniverseStargatesStargateId' + * + * @param int $stargateId stargate_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getUniverseStargatesStargateIdRequest($stargateId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'stargateId' is set + if ($stargateId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $stargateId when calling getUniverseStargatesStargateId' + ); + } + + $resourcePath = '/universe/stargates/{stargate_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($stargateId !== null) { + $resourcePath = str_replace( + '{' . 'stargate_id' . '}', + ObjectSerializer::toPathValue($stargateId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getUniverseStarsStarId + * + * Get star information + * + * @param int $starId star_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetUniverseStarsStarIdOk + */ + public function getUniverseStarsStarId($starId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getUniverseStarsStarIdWithHttpInfo($starId, $datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getUniverseStarsStarIdWithHttpInfo + * + * Get star information + * + * @param int $starId star_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetUniverseStarsStarIdOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getUniverseStarsStarIdWithHttpInfo($starId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniverseStarsStarIdOk'; + $request = $this->getUniverseStarsStarIdRequest($starId, $datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetUniverseStarsStarIdOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getUniverseStarsStarIdAsync + * + * Get star information + * + * @param int $starId star_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseStarsStarIdAsync($starId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getUniverseStarsStarIdAsyncWithHttpInfo($starId, $datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getUniverseStarsStarIdAsyncWithHttpInfo + * + * Get star information + * + * @param int $starId star_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseStarsStarIdAsyncWithHttpInfo($starId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniverseStarsStarIdOk'; + $request = $this->getUniverseStarsStarIdRequest($starId, $datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getUniverseStarsStarId' + * + * @param int $starId star_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getUniverseStarsStarIdRequest($starId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'starId' is set + if ($starId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $starId when calling getUniverseStarsStarId' + ); + } + + $resourcePath = '/universe/stars/{star_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($starId !== null) { + $resourcePath = str_replace( + '{' . 'star_id' . '}', + ObjectSerializer::toPathValue($starId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getUniverseStationsStationId + * + * Get station information + * + * @param int $stationId station_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetUniverseStationsStationIdOk + */ + public function getUniverseStationsStationId($stationId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getUniverseStationsStationIdWithHttpInfo($stationId, $datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getUniverseStationsStationIdWithHttpInfo + * + * Get station information + * + * @param int $stationId station_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetUniverseStationsStationIdOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getUniverseStationsStationIdWithHttpInfo($stationId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniverseStationsStationIdOk'; + $request = $this->getUniverseStationsStationIdRequest($stationId, $datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetUniverseStationsStationIdOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetUniverseStationsStationIdNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getUniverseStationsStationIdAsync + * + * Get station information + * + * @param int $stationId station_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseStationsStationIdAsync($stationId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getUniverseStationsStationIdAsyncWithHttpInfo($stationId, $datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getUniverseStationsStationIdAsyncWithHttpInfo + * + * Get station information + * + * @param int $stationId station_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseStationsStationIdAsyncWithHttpInfo($stationId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniverseStationsStationIdOk'; + $request = $this->getUniverseStationsStationIdRequest($stationId, $datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getUniverseStationsStationId' + * + * @param int $stationId station_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getUniverseStationsStationIdRequest($stationId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'stationId' is set + if ($stationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $stationId when calling getUniverseStationsStationId' + ); + } + + $resourcePath = '/universe/stations/{station_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($stationId !== null) { + $resourcePath = str_replace( + '{' . 'station_id' . '}', + ObjectSerializer::toPathValue($stationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getUniverseStructures + * + * List all public structures + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return int[] + */ + public function getUniverseStructures($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getUniverseStructuresWithHttpInfo($datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getUniverseStructuresWithHttpInfo + * + * List all public structures + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of int[], HTTP status code, HTTP response headers (array of strings) + */ + public function getUniverseStructuresWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getUniverseStructuresRequest($datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'int[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getUniverseStructuresAsync + * + * List all public structures + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseStructuresAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getUniverseStructuresAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getUniverseStructuresAsyncWithHttpInfo + * + * List all public structures + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseStructuresAsyncWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getUniverseStructuresRequest($datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getUniverseStructures' + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getUniverseStructuresRequest($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + + $resourcePath = '/universe/structures/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getUniverseStructuresStructureId + * + * Get structure information + * + * @param int $structureId An Eve structure ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetUniverseStructuresStructureIdOk + */ + public function getUniverseStructuresStructureId($structureId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getUniverseStructuresStructureIdWithHttpInfo($structureId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getUniverseStructuresStructureIdWithHttpInfo + * + * Get structure information + * + * @param int $structureId An Eve structure ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetUniverseStructuresStructureIdOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getUniverseStructuresStructureIdWithHttpInfo($structureId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniverseStructuresStructureIdOk'; + $request = $this->getUniverseStructuresStructureIdRequest($structureId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetUniverseStructuresStructureIdOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetUniverseStructuresStructureIdNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getUniverseStructuresStructureIdAsync + * + * Get structure information + * + * @param int $structureId An Eve structure ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseStructuresStructureIdAsync($structureId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getUniverseStructuresStructureIdAsyncWithHttpInfo($structureId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getUniverseStructuresStructureIdAsyncWithHttpInfo + * + * Get structure information + * + * @param int $structureId An Eve structure ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseStructuresStructureIdAsyncWithHttpInfo($structureId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniverseStructuresStructureIdOk'; + $request = $this->getUniverseStructuresStructureIdRequest($structureId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getUniverseStructuresStructureId' + * + * @param int $structureId An Eve structure ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getUniverseStructuresStructureIdRequest($structureId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'structureId' is set + if ($structureId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $structureId when calling getUniverseStructuresStructureId' + ); + } + + $resourcePath = '/universe/structures/{structure_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($structureId !== null) { + $resourcePath = str_replace( + '{' . 'structure_id' . '}', + ObjectSerializer::toPathValue($structureId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getUniverseSystemJumps + * + * Get system jumps + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetUniverseSystemJumps200Ok[] + */ + public function getUniverseSystemJumps($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getUniverseSystemJumpsWithHttpInfo($datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getUniverseSystemJumpsWithHttpInfo + * + * Get system jumps + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetUniverseSystemJumps200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getUniverseSystemJumpsWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniverseSystemJumps200Ok[]'; + $request = $this->getUniverseSystemJumpsRequest($datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetUniverseSystemJumps200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getUniverseSystemJumpsAsync + * + * Get system jumps + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseSystemJumpsAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getUniverseSystemJumpsAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getUniverseSystemJumpsAsyncWithHttpInfo + * + * Get system jumps + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseSystemJumpsAsyncWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniverseSystemJumps200Ok[]'; + $request = $this->getUniverseSystemJumpsRequest($datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getUniverseSystemJumps' + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getUniverseSystemJumpsRequest($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + + $resourcePath = '/universe/system_jumps/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getUniverseSystemKills + * + * Get system kills + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetUniverseSystemKills200Ok[] + */ + public function getUniverseSystemKills($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getUniverseSystemKillsWithHttpInfo($datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getUniverseSystemKillsWithHttpInfo + * + * Get system kills + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetUniverseSystemKills200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getUniverseSystemKillsWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniverseSystemKills200Ok[]'; + $request = $this->getUniverseSystemKillsRequest($datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetUniverseSystemKills200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getUniverseSystemKillsAsync + * + * Get system kills + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseSystemKillsAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getUniverseSystemKillsAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getUniverseSystemKillsAsyncWithHttpInfo + * + * Get system kills + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseSystemKillsAsyncWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniverseSystemKills200Ok[]'; + $request = $this->getUniverseSystemKillsRequest($datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getUniverseSystemKills' + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getUniverseSystemKillsRequest($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + + $resourcePath = '/universe/system_kills/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getUniverseSystems + * + * Get solar systems + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return int[] + */ + public function getUniverseSystems($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getUniverseSystemsWithHttpInfo($datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getUniverseSystemsWithHttpInfo + * + * Get solar systems + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of int[], HTTP status code, HTTP response headers (array of strings) + */ + public function getUniverseSystemsWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getUniverseSystemsRequest($datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'int[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getUniverseSystemsAsync + * + * Get solar systems + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseSystemsAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getUniverseSystemsAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getUniverseSystemsAsyncWithHttpInfo + * + * Get solar systems + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseSystemsAsyncWithHttpInfo($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getUniverseSystemsRequest($datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getUniverseSystems' + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getUniverseSystemsRequest($datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + + $resourcePath = '/universe/systems/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getUniverseSystemsSystemId + * + * Get solar system information + * + * @param int $systemId system_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetUniverseSystemsSystemIdOk + */ + public function getUniverseSystemsSystemId($systemId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getUniverseSystemsSystemIdWithHttpInfo($systemId, $datasource, $language, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getUniverseSystemsSystemIdWithHttpInfo + * + * Get solar system information + * + * @param int $systemId system_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetUniverseSystemsSystemIdOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getUniverseSystemsSystemIdWithHttpInfo($systemId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniverseSystemsSystemIdOk'; + $request = $this->getUniverseSystemsSystemIdRequest($systemId, $datasource, $language, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetUniverseSystemsSystemIdOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetUniverseSystemsSystemIdNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getUniverseSystemsSystemIdAsync + * + * Get solar system information + * + * @param int $systemId system_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseSystemsSystemIdAsync($systemId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + return $this->getUniverseSystemsSystemIdAsyncWithHttpInfo($systemId, $datasource, $language, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getUniverseSystemsSystemIdAsyncWithHttpInfo + * + * Get solar system information + * + * @param int $systemId system_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseSystemsSystemIdAsyncWithHttpInfo($systemId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniverseSystemsSystemIdOk'; + $request = $this->getUniverseSystemsSystemIdRequest($systemId, $datasource, $language, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getUniverseSystemsSystemId' + * + * @param int $systemId system_id integer (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getUniverseSystemsSystemIdRequest($systemId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'systemId' is set + if ($systemId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $systemId when calling getUniverseSystemsSystemId' + ); + } + + $resourcePath = '/universe/systems/{system_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($language !== null) { + $queryParams['language'] = ObjectSerializer::toQueryValue($language); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($systemId !== null) { + $resourcePath = str_replace( + '{' . 'system_id' . '}', + ObjectSerializer::toPathValue($systemId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getUniverseTypes + * + * Get types + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return int[] + */ + public function getUniverseTypes($datasource = 'tranquility', $page = '1', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getUniverseTypesWithHttpInfo($datasource, $page, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getUniverseTypesWithHttpInfo + * + * Get types + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of int[], HTTP status code, HTTP response headers (array of strings) + */ + public function getUniverseTypesWithHttpInfo($datasource = 'tranquility', $page = '1', $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getUniverseTypesRequest($datasource, $page, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'int[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getUniverseTypesAsync + * + * Get types + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseTypesAsync($datasource = 'tranquility', $page = '1', $userAgent = null, $xUserAgent = null) + { + return $this->getUniverseTypesAsyncWithHttpInfo($datasource, $page, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getUniverseTypesAsyncWithHttpInfo + * + * Get types + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseTypesAsyncWithHttpInfo($datasource = 'tranquility', $page = '1', $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getUniverseTypesRequest($datasource, $page, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getUniverseTypes' + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getUniverseTypesRequest($datasource = 'tranquility', $page = '1', $userAgent = null, $xUserAgent = null) + { + + $resourcePath = '/universe/types/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($page !== null) { + $queryParams['page'] = ObjectSerializer::toQueryValue($page); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getUniverseTypesTypeId + * + * Get type information + * + * @param int $typeId An Eve item type ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetUniverseTypesTypeIdOk + */ + public function getUniverseTypesTypeId($typeId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getUniverseTypesTypeIdWithHttpInfo($typeId, $datasource, $language, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getUniverseTypesTypeIdWithHttpInfo + * + * Get type information + * + * @param int $typeId An Eve item type ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetUniverseTypesTypeIdOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getUniverseTypesTypeIdWithHttpInfo($typeId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniverseTypesTypeIdOk'; + $request = $this->getUniverseTypesTypeIdRequest($typeId, $datasource, $language, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetUniverseTypesTypeIdOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetUniverseTypesTypeIdNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getUniverseTypesTypeIdAsync + * + * Get type information + * + * @param int $typeId An Eve item type ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseTypesTypeIdAsync($typeId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + return $this->getUniverseTypesTypeIdAsyncWithHttpInfo($typeId, $datasource, $language, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getUniverseTypesTypeIdAsyncWithHttpInfo + * + * Get type information + * + * @param int $typeId An Eve item type ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUniverseTypesTypeIdAsyncWithHttpInfo($typeId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetUniverseTypesTypeIdOk'; + $request = $this->getUniverseTypesTypeIdRequest($typeId, $datasource, $language, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getUniverseTypesTypeId' + * + * @param int $typeId An Eve item type ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getUniverseTypesTypeIdRequest($typeId, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'typeId' is set + if ($typeId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $typeId when calling getUniverseTypesTypeId' + ); + } + + $resourcePath = '/universe/types/{type_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($language !== null) { + $queryParams['language'] = ObjectSerializer::toQueryValue($language); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($typeId !== null) { + $resourcePath = str_replace( + '{' . 'type_id' . '}', + ObjectSerializer::toPathValue($typeId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation postUniverseIds + * + * Bulk names to IDs + * + * @param string[] $names The names to resolve (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\PostUniverseIdsOk + */ + public function postUniverseIds($names, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->postUniverseIdsWithHttpInfo($names, $datasource, $language, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation postUniverseIdsWithHttpInfo + * + * Bulk names to IDs + * + * @param string[] $names The names to resolve (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\PostUniverseIdsOk, HTTP status code, HTTP response headers (array of strings) + */ + public function postUniverseIdsWithHttpInfo($names, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\PostUniverseIdsOk'; + $request = $this->postUniverseIdsRequest($names, $datasource, $language, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\PostUniverseIdsOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 503: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\PostUniverseIdsServiceUnavailable', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation postUniverseIdsAsync + * + * Bulk names to IDs + * + * @param string[] $names The names to resolve (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postUniverseIdsAsync($names, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + return $this->postUniverseIdsAsyncWithHttpInfo($names, $datasource, $language, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation postUniverseIdsAsyncWithHttpInfo + * + * Bulk names to IDs + * + * @param string[] $names The names to resolve (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postUniverseIdsAsyncWithHttpInfo($names, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\PostUniverseIdsOk'; + $request = $this->postUniverseIdsRequest($names, $datasource, $language, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'postUniverseIds' + * + * @param string[] $names The names to resolve (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $language Language to use in the response (optional, default to en-us) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function postUniverseIdsRequest($names, $datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'names' is set + if ($names === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $names when calling postUniverseIds' + ); + } + + $resourcePath = '/universe/ids/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($language !== null) { + $queryParams['language'] = ObjectSerializer::toQueryValue($language); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + if (isset($names)) { + $_tempBody = $names; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation postUniverseNames + * + * Get names and categories for a set of ID's + * + * @param int[] $ids The ids to resolve (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\PostUniverseNames200Ok[] + */ + public function postUniverseNames($ids, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->postUniverseNamesWithHttpInfo($ids, $datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation postUniverseNamesWithHttpInfo + * + * Get names and categories for a set of ID's + * + * @param int[] $ids The ids to resolve (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\PostUniverseNames200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function postUniverseNamesWithHttpInfo($ids, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\PostUniverseNames200Ok[]'; + $request = $this->postUniverseNamesRequest($ids, $datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\PostUniverseNames200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\PostUniverseNamesNotFound', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation postUniverseNamesAsync + * + * Get names and categories for a set of ID's + * + * @param int[] $ids The ids to resolve (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postUniverseNamesAsync($ids, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->postUniverseNamesAsyncWithHttpInfo($ids, $datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation postUniverseNamesAsyncWithHttpInfo + * + * Get names and categories for a set of ID's + * + * @param int[] $ids The ids to resolve (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postUniverseNamesAsyncWithHttpInfo($ids, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\PostUniverseNames200Ok[]'; + $request = $this->postUniverseNamesRequest($ids, $datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'postUniverseNames' + * + * @param int[] $ids The ids to resolve (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function postUniverseNamesRequest($ids, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'ids' is set + if ($ids === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $ids when calling postUniverseNames' + ); + } + + $resourcePath = '/universe/names/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + if (isset($ids)) { + $_tempBody = $ids; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } +} diff --git a/src/nullx27/ESI/Api/UserInterfaceApi.php b/src/nullx27/ESI/Api/UserInterfaceApi.php new file mode 100644 index 0000000..d601689 --- /dev/null +++ b/src/nullx27/ESI/Api/UserInterfaceApi.php @@ -0,0 +1,1525 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation postUiAutopilotWaypoint + * + * Set Autopilot Waypoint + * + * @param bool $addToBeginning Whether this solar system should be added to the beginning of all waypoints (required) + * @param bool $clearOtherWaypoints Whether clean other waypoints beforing adding this one (required) + * @param int $destinationId The destination to travel to, can be solar system, station or structure's id (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return void + */ + public function postUiAutopilotWaypoint($addToBeginning, $clearOtherWaypoints, $destinationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $this->postUiAutopilotWaypointWithHttpInfo($addToBeginning, $clearOtherWaypoints, $destinationId, $datasource, $token, $userAgent, $xUserAgent); + } + + /** + * Operation postUiAutopilotWaypointWithHttpInfo + * + * Set Autopilot Waypoint + * + * @param bool $addToBeginning Whether this solar system should be added to the beginning of all waypoints (required) + * @param bool $clearOtherWaypoints Whether clean other waypoints beforing adding this one (required) + * @param int $destinationId The destination to travel to, can be solar system, station or structure's id (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function postUiAutopilotWaypointWithHttpInfo($addToBeginning, $clearOtherWaypoints, $destinationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->postUiAutopilotWaypointRequest($addToBeginning, $clearOtherWaypoints, $destinationId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + return [null, $statusCode, $response->getHeaders()]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation postUiAutopilotWaypointAsync + * + * Set Autopilot Waypoint + * + * @param bool $addToBeginning Whether this solar system should be added to the beginning of all waypoints (required) + * @param bool $clearOtherWaypoints Whether clean other waypoints beforing adding this one (required) + * @param int $destinationId The destination to travel to, can be solar system, station or structure's id (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postUiAutopilotWaypointAsync($addToBeginning, $clearOtherWaypoints, $destinationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->postUiAutopilotWaypointAsyncWithHttpInfo($addToBeginning, $clearOtherWaypoints, $destinationId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation postUiAutopilotWaypointAsyncWithHttpInfo + * + * Set Autopilot Waypoint + * + * @param bool $addToBeginning Whether this solar system should be added to the beginning of all waypoints (required) + * @param bool $clearOtherWaypoints Whether clean other waypoints beforing adding this one (required) + * @param int $destinationId The destination to travel to, can be solar system, station or structure's id (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postUiAutopilotWaypointAsyncWithHttpInfo($addToBeginning, $clearOtherWaypoints, $destinationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->postUiAutopilotWaypointRequest($addToBeginning, $clearOtherWaypoints, $destinationId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'postUiAutopilotWaypoint' + * + * @param bool $addToBeginning Whether this solar system should be added to the beginning of all waypoints (required) + * @param bool $clearOtherWaypoints Whether clean other waypoints beforing adding this one (required) + * @param int $destinationId The destination to travel to, can be solar system, station or structure's id (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function postUiAutopilotWaypointRequest($addToBeginning, $clearOtherWaypoints, $destinationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'addToBeginning' is set + if ($addToBeginning === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $addToBeginning when calling postUiAutopilotWaypoint' + ); + } + // verify the required parameter 'clearOtherWaypoints' is set + if ($clearOtherWaypoints === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $clearOtherWaypoints when calling postUiAutopilotWaypoint' + ); + } + // verify the required parameter 'destinationId' is set + if ($destinationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $destinationId when calling postUiAutopilotWaypoint' + ); + } + + $resourcePath = '/ui/autopilot/waypoint/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($addToBeginning !== null) { + $queryParams['add_to_beginning'] = ObjectSerializer::toQueryValue($addToBeginning); + } + // query params + if ($clearOtherWaypoints !== null) { + $queryParams['clear_other_waypoints'] = ObjectSerializer::toQueryValue($clearOtherWaypoints); + } + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($destinationId !== null) { + $queryParams['destination_id'] = ObjectSerializer::toQueryValue($destinationId); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation postUiOpenwindowContract + * + * Open Contract Window + * + * @param int $contractId The contract to open (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return void + */ + public function postUiOpenwindowContract($contractId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $this->postUiOpenwindowContractWithHttpInfo($contractId, $datasource, $token, $userAgent, $xUserAgent); + } + + /** + * Operation postUiOpenwindowContractWithHttpInfo + * + * Open Contract Window + * + * @param int $contractId The contract to open (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function postUiOpenwindowContractWithHttpInfo($contractId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->postUiOpenwindowContractRequest($contractId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + return [null, $statusCode, $response->getHeaders()]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation postUiOpenwindowContractAsync + * + * Open Contract Window + * + * @param int $contractId The contract to open (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postUiOpenwindowContractAsync($contractId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->postUiOpenwindowContractAsyncWithHttpInfo($contractId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation postUiOpenwindowContractAsyncWithHttpInfo + * + * Open Contract Window + * + * @param int $contractId The contract to open (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postUiOpenwindowContractAsyncWithHttpInfo($contractId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->postUiOpenwindowContractRequest($contractId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'postUiOpenwindowContract' + * + * @param int $contractId The contract to open (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function postUiOpenwindowContractRequest($contractId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'contractId' is set + if ($contractId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $contractId when calling postUiOpenwindowContract' + ); + } + + $resourcePath = '/ui/openwindow/contract/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($contractId !== null) { + $queryParams['contract_id'] = ObjectSerializer::toQueryValue($contractId); + } + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation postUiOpenwindowInformation + * + * Open Information Window + * + * @param int $targetId The target to open (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return void + */ + public function postUiOpenwindowInformation($targetId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $this->postUiOpenwindowInformationWithHttpInfo($targetId, $datasource, $token, $userAgent, $xUserAgent); + } + + /** + * Operation postUiOpenwindowInformationWithHttpInfo + * + * Open Information Window + * + * @param int $targetId The target to open (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function postUiOpenwindowInformationWithHttpInfo($targetId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->postUiOpenwindowInformationRequest($targetId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + return [null, $statusCode, $response->getHeaders()]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation postUiOpenwindowInformationAsync + * + * Open Information Window + * + * @param int $targetId The target to open (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postUiOpenwindowInformationAsync($targetId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->postUiOpenwindowInformationAsyncWithHttpInfo($targetId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation postUiOpenwindowInformationAsyncWithHttpInfo + * + * Open Information Window + * + * @param int $targetId The target to open (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postUiOpenwindowInformationAsyncWithHttpInfo($targetId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->postUiOpenwindowInformationRequest($targetId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'postUiOpenwindowInformation' + * + * @param int $targetId The target to open (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function postUiOpenwindowInformationRequest($targetId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'targetId' is set + if ($targetId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $targetId when calling postUiOpenwindowInformation' + ); + } + + $resourcePath = '/ui/openwindow/information/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($targetId !== null) { + $queryParams['target_id'] = ObjectSerializer::toQueryValue($targetId); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation postUiOpenwindowMarketdetails + * + * Open Market Details + * + * @param int $typeId The item type to open in market window (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return void + */ + public function postUiOpenwindowMarketdetails($typeId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $this->postUiOpenwindowMarketdetailsWithHttpInfo($typeId, $datasource, $token, $userAgent, $xUserAgent); + } + + /** + * Operation postUiOpenwindowMarketdetailsWithHttpInfo + * + * Open Market Details + * + * @param int $typeId The item type to open in market window (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function postUiOpenwindowMarketdetailsWithHttpInfo($typeId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->postUiOpenwindowMarketdetailsRequest($typeId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + return [null, $statusCode, $response->getHeaders()]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation postUiOpenwindowMarketdetailsAsync + * + * Open Market Details + * + * @param int $typeId The item type to open in market window (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postUiOpenwindowMarketdetailsAsync($typeId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->postUiOpenwindowMarketdetailsAsyncWithHttpInfo($typeId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation postUiOpenwindowMarketdetailsAsyncWithHttpInfo + * + * Open Market Details + * + * @param int $typeId The item type to open in market window (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postUiOpenwindowMarketdetailsAsyncWithHttpInfo($typeId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->postUiOpenwindowMarketdetailsRequest($typeId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'postUiOpenwindowMarketdetails' + * + * @param int $typeId The item type to open in market window (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function postUiOpenwindowMarketdetailsRequest($typeId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'typeId' is set + if ($typeId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $typeId when calling postUiOpenwindowMarketdetails' + ); + } + + $resourcePath = '/ui/openwindow/marketdetails/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($typeId !== null) { + $queryParams['type_id'] = ObjectSerializer::toQueryValue($typeId); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation postUiOpenwindowNewmail + * + * Open New Mail Window + * + * @param \nullx27ESI\nullx27\ESI\Models\PostUiOpenwindowNewmailNewMail $newMail The details of mail to create (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return void + */ + public function postUiOpenwindowNewmail($newMail, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $this->postUiOpenwindowNewmailWithHttpInfo($newMail, $datasource, $token, $userAgent, $xUserAgent); + } + + /** + * Operation postUiOpenwindowNewmailWithHttpInfo + * + * Open New Mail Window + * + * @param \nullx27ESI\nullx27\ESI\Models\PostUiOpenwindowNewmailNewMail $newMail The details of mail to create (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function postUiOpenwindowNewmailWithHttpInfo($newMail, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->postUiOpenwindowNewmailRequest($newMail, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + return [null, $statusCode, $response->getHeaders()]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 422: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\PostUiOpenwindowNewmailUnprocessableEntity', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation postUiOpenwindowNewmailAsync + * + * Open New Mail Window + * + * @param \nullx27ESI\nullx27\ESI\Models\PostUiOpenwindowNewmailNewMail $newMail The details of mail to create (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postUiOpenwindowNewmailAsync($newMail, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->postUiOpenwindowNewmailAsyncWithHttpInfo($newMail, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation postUiOpenwindowNewmailAsyncWithHttpInfo + * + * Open New Mail Window + * + * @param \nullx27ESI\nullx27\ESI\Models\PostUiOpenwindowNewmailNewMail $newMail The details of mail to create (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postUiOpenwindowNewmailAsyncWithHttpInfo($newMail, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = ''; + $request = $this->postUiOpenwindowNewmailRequest($newMail, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'postUiOpenwindowNewmail' + * + * @param \nullx27ESI\nullx27\ESI\Models\PostUiOpenwindowNewmailNewMail $newMail The details of mail to create (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function postUiOpenwindowNewmailRequest($newMail, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'newMail' is set + if ($newMail === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $newMail when calling postUiOpenwindowNewmail' + ); + } + + $resourcePath = '/ui/openwindow/newmail/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + if (isset($newMail)) { + $_tempBody = $newMail; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } +} diff --git a/src/nullx27/ESI/Api/WalletApi.php b/src/nullx27/ESI/Api/WalletApi.php new file mode 100644 index 0000000..f1266c4 --- /dev/null +++ b/src/nullx27/ESI/Api/WalletApi.php @@ -0,0 +1,2123 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation getCharactersCharacterIdWallet + * + * Get a character's wallet balance + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return double + */ + public function getCharactersCharacterIdWallet($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdWalletWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdWalletWithHttpInfo + * + * Get a character's wallet balance + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of double, HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdWalletWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = 'double'; + $request = $this->getCharactersCharacterIdWalletRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'double', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdWalletAsync + * + * Get a character's wallet balance + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdWalletAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdWalletAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdWalletAsyncWithHttpInfo + * + * Get a character's wallet balance + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdWalletAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = 'double'; + $request = $this->getCharactersCharacterIdWalletRequest($characterId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdWallet' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdWalletRequest($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdWallet' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling WalletApi.getCharactersCharacterIdWallet, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/wallet/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCharactersCharacterIdWalletJournal + * + * Get character wallet journal + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $fromId Only show journal entries happened before the transaction referenced by this id (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdWalletJournal200Ok[] + */ + public function getCharactersCharacterIdWalletJournal($characterId, $datasource = 'tranquility', $fromId = null, $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdWalletJournalWithHttpInfo($characterId, $datasource, $fromId, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdWalletJournalWithHttpInfo + * + * Get character wallet journal + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $fromId Only show journal entries happened before the transaction referenced by this id (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdWalletJournal200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdWalletJournalWithHttpInfo($characterId, $datasource = 'tranquility', $fromId = null, $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdWalletJournal200Ok[]'; + $request = $this->getCharactersCharacterIdWalletJournalRequest($characterId, $datasource, $fromId, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdWalletJournal200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdWalletJournalAsync + * + * Get character wallet journal + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $fromId Only show journal entries happened before the transaction referenced by this id (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdWalletJournalAsync($characterId, $datasource = 'tranquility', $fromId = null, $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdWalletJournalAsyncWithHttpInfo($characterId, $datasource, $fromId, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdWalletJournalAsyncWithHttpInfo + * + * Get character wallet journal + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $fromId Only show journal entries happened before the transaction referenced by this id (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdWalletJournalAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $fromId = null, $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdWalletJournal200Ok[]'; + $request = $this->getCharactersCharacterIdWalletJournalRequest($characterId, $datasource, $fromId, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdWalletJournal' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $fromId Only show journal entries happened before the transaction referenced by this id (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdWalletJournalRequest($characterId, $datasource = 'tranquility', $fromId = null, $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdWalletJournal' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling WalletApi.getCharactersCharacterIdWalletJournal, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/wallet/journal/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($fromId !== null) { + $queryParams['from_id'] = ObjectSerializer::toQueryValue($fromId); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCharactersCharacterIdWalletTransactions + * + * Get wallet transactions + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $fromId Only show transactions happened before the one referenced by this id (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdWalletTransactions200Ok[] + */ + public function getCharactersCharacterIdWalletTransactions($characterId, $datasource = 'tranquility', $fromId = null, $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCharactersCharacterIdWalletTransactionsWithHttpInfo($characterId, $datasource, $fromId, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCharactersCharacterIdWalletTransactionsWithHttpInfo + * + * Get wallet transactions + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $fromId Only show transactions happened before the one referenced by this id (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdWalletTransactions200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCharactersCharacterIdWalletTransactionsWithHttpInfo($characterId, $datasource = 'tranquility', $fromId = null, $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdWalletTransactions200Ok[]'; + $request = $this->getCharactersCharacterIdWalletTransactionsRequest($characterId, $datasource, $fromId, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdWalletTransactions200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCharactersCharacterIdWalletTransactionsAsync + * + * Get wallet transactions + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $fromId Only show transactions happened before the one referenced by this id (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdWalletTransactionsAsync($characterId, $datasource = 'tranquility', $fromId = null, $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCharactersCharacterIdWalletTransactionsAsyncWithHttpInfo($characterId, $datasource, $fromId, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCharactersCharacterIdWalletTransactionsAsyncWithHttpInfo + * + * Get wallet transactions + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $fromId Only show transactions happened before the one referenced by this id (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCharactersCharacterIdWalletTransactionsAsyncWithHttpInfo($characterId, $datasource = 'tranquility', $fromId = null, $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdWalletTransactions200Ok[]'; + $request = $this->getCharactersCharacterIdWalletTransactionsRequest($characterId, $datasource, $fromId, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCharactersCharacterIdWalletTransactions' + * + * @param int $characterId An EVE character ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $fromId Only show transactions happened before the one referenced by this id (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCharactersCharacterIdWalletTransactionsRequest($characterId, $datasource = 'tranquility', $fromId = null, $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'characterId' is set + if ($characterId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $characterId when calling getCharactersCharacterIdWalletTransactions' + ); + } + if ($characterId < 1) { + throw new \InvalidArgumentException('invalid value for "$characterId" when calling WalletApi.getCharactersCharacterIdWalletTransactions, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/characters/{character_id}/wallet/transactions/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($fromId !== null) { + $queryParams['from_id'] = ObjectSerializer::toQueryValue($fromId); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($characterId !== null) { + $resourcePath = str_replace( + '{' . 'character_id' . '}', + ObjectSerializer::toPathValue($characterId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsCorporationIdWallets + * + * Returns a corporation's wallet balance + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdWallets200Ok[] + */ + public function getCorporationsCorporationIdWallets($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdWalletsWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdWalletsWithHttpInfo + * + * Returns a corporation's wallet balance + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdWallets200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdWalletsWithHttpInfo($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdWallets200Ok[]'; + $request = $this->getCorporationsCorporationIdWalletsRequest($corporationId, $datasource, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdWallets200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdWalletsAsync + * + * Returns a corporation's wallet balance + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdWalletsAsync($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdWalletsAsyncWithHttpInfo($corporationId, $datasource, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdWalletsAsyncWithHttpInfo + * + * Returns a corporation's wallet balance + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdWalletsAsyncWithHttpInfo($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdWallets200Ok[]'; + $request = $this->getCorporationsCorporationIdWalletsRequest($corporationId, $datasource, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationIdWallets' + * + * @param int $corporationId An EVE corporation ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdWalletsRequest($corporationId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationIdWallets' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling WalletApi.getCorporationsCorporationIdWallets, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporations/{corporation_id}/wallets/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsCorporationIdWalletsDivisionJournal + * + * Get corporation wallet journal + * + * @param int $corporationId An EVE corporation ID (required) + * @param int $division Wallet key of the division to fetch journals from (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $fromId Only show journal entries happened before the transaction referenced by this id (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdWalletsDivisionJournal200Ok[] + */ + public function getCorporationsCorporationIdWalletsDivisionJournal($corporationId, $division, $datasource = 'tranquility', $fromId = null, $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdWalletsDivisionJournalWithHttpInfo($corporationId, $division, $datasource, $fromId, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdWalletsDivisionJournalWithHttpInfo + * + * Get corporation wallet journal + * + * @param int $corporationId An EVE corporation ID (required) + * @param int $division Wallet key of the division to fetch journals from (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $fromId Only show journal entries happened before the transaction referenced by this id (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdWalletsDivisionJournal200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdWalletsDivisionJournalWithHttpInfo($corporationId, $division, $datasource = 'tranquility', $fromId = null, $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdWalletsDivisionJournal200Ok[]'; + $request = $this->getCorporationsCorporationIdWalletsDivisionJournalRequest($corporationId, $division, $datasource, $fromId, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdWalletsDivisionJournal200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdWalletsDivisionJournalAsync + * + * Get corporation wallet journal + * + * @param int $corporationId An EVE corporation ID (required) + * @param int $division Wallet key of the division to fetch journals from (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $fromId Only show journal entries happened before the transaction referenced by this id (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdWalletsDivisionJournalAsync($corporationId, $division, $datasource = 'tranquility', $fromId = null, $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdWalletsDivisionJournalAsyncWithHttpInfo($corporationId, $division, $datasource, $fromId, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdWalletsDivisionJournalAsyncWithHttpInfo + * + * Get corporation wallet journal + * + * @param int $corporationId An EVE corporation ID (required) + * @param int $division Wallet key of the division to fetch journals from (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $fromId Only show journal entries happened before the transaction referenced by this id (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdWalletsDivisionJournalAsyncWithHttpInfo($corporationId, $division, $datasource = 'tranquility', $fromId = null, $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdWalletsDivisionJournal200Ok[]'; + $request = $this->getCorporationsCorporationIdWalletsDivisionJournalRequest($corporationId, $division, $datasource, $fromId, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationIdWalletsDivisionJournal' + * + * @param int $corporationId An EVE corporation ID (required) + * @param int $division Wallet key of the division to fetch journals from (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $fromId Only show journal entries happened before the transaction referenced by this id (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdWalletsDivisionJournalRequest($corporationId, $division, $datasource = 'tranquility', $fromId = null, $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationIdWalletsDivisionJournal' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling WalletApi.getCorporationsCorporationIdWalletsDivisionJournal, must be bigger than or equal to 1.'); + } + + // verify the required parameter 'division' is set + if ($division === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $division when calling getCorporationsCorporationIdWalletsDivisionJournal' + ); + } + if ($division > 7) { + throw new \InvalidArgumentException('invalid value for "$division" when calling WalletApi.getCorporationsCorporationIdWalletsDivisionJournal, must be smaller than or equal to 7.'); + } + if ($division < 1) { + throw new \InvalidArgumentException('invalid value for "$division" when calling WalletApi.getCorporationsCorporationIdWalletsDivisionJournal, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporations/{corporation_id}/wallets/{division}/journal/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($fromId !== null) { + $queryParams['from_id'] = ObjectSerializer::toQueryValue($fromId); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + // path params + if ($division !== null) { + $resourcePath = str_replace( + '{' . 'division' . '}', + ObjectSerializer::toPathValue($division), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getCorporationsCorporationIdWalletsDivisionTransactions + * + * Get corporation wallet transactions + * + * @param int $corporationId An EVE corporation ID (required) + * @param int $division Wallet key of the division to fetch journals from (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $fromId Only show journal entries happened before the transaction referenced by this id (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdWalletsDivisionTransactions200Ok[] + */ + public function getCorporationsCorporationIdWalletsDivisionTransactions($corporationId, $division, $datasource = 'tranquility', $fromId = null, $token = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getCorporationsCorporationIdWalletsDivisionTransactionsWithHttpInfo($corporationId, $division, $datasource, $fromId, $token, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getCorporationsCorporationIdWalletsDivisionTransactionsWithHttpInfo + * + * Get corporation wallet transactions + * + * @param int $corporationId An EVE corporation ID (required) + * @param int $division Wallet key of the division to fetch journals from (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $fromId Only show journal entries happened before the transaction referenced by this id (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdWalletsDivisionTransactions200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getCorporationsCorporationIdWalletsDivisionTransactionsWithHttpInfo($corporationId, $division, $datasource = 'tranquility', $fromId = null, $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdWalletsDivisionTransactions200Ok[]'; + $request = $this->getCorporationsCorporationIdWalletsDivisionTransactionsRequest($corporationId, $division, $datasource, $fromId, $token, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdWalletsDivisionTransactions200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\Forbidden', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCorporationsCorporationIdWalletsDivisionTransactionsAsync + * + * Get corporation wallet transactions + * + * @param int $corporationId An EVE corporation ID (required) + * @param int $division Wallet key of the division to fetch journals from (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $fromId Only show journal entries happened before the transaction referenced by this id (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdWalletsDivisionTransactionsAsync($corporationId, $division, $datasource = 'tranquility', $fromId = null, $token = null, $userAgent = null, $xUserAgent = null) + { + return $this->getCorporationsCorporationIdWalletsDivisionTransactionsAsyncWithHttpInfo($corporationId, $division, $datasource, $fromId, $token, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCorporationsCorporationIdWalletsDivisionTransactionsAsyncWithHttpInfo + * + * Get corporation wallet transactions + * + * @param int $corporationId An EVE corporation ID (required) + * @param int $division Wallet key of the division to fetch journals from (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $fromId Only show journal entries happened before the transaction referenced by this id (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCorporationsCorporationIdWalletsDivisionTransactionsAsyncWithHttpInfo($corporationId, $division, $datasource = 'tranquility', $fromId = null, $token = null, $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdWalletsDivisionTransactions200Ok[]'; + $request = $this->getCorporationsCorporationIdWalletsDivisionTransactionsRequest($corporationId, $division, $datasource, $fromId, $token, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCorporationsCorporationIdWalletsDivisionTransactions' + * + * @param int $corporationId An EVE corporation ID (required) + * @param int $division Wallet key of the division to fetch journals from (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $fromId Only show journal entries happened before the transaction referenced by this id (optional) + * @param string $token Access token to use if unable to set a header (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCorporationsCorporationIdWalletsDivisionTransactionsRequest($corporationId, $division, $datasource = 'tranquility', $fromId = null, $token = null, $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'corporationId' is set + if ($corporationId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $corporationId when calling getCorporationsCorporationIdWalletsDivisionTransactions' + ); + } + if ($corporationId < 1) { + throw new \InvalidArgumentException('invalid value for "$corporationId" when calling WalletApi.getCorporationsCorporationIdWalletsDivisionTransactions, must be bigger than or equal to 1.'); + } + + // verify the required parameter 'division' is set + if ($division === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $division when calling getCorporationsCorporationIdWalletsDivisionTransactions' + ); + } + if ($division > 7) { + throw new \InvalidArgumentException('invalid value for "$division" when calling WalletApi.getCorporationsCorporationIdWalletsDivisionTransactions, must be smaller than or equal to 7.'); + } + if ($division < 1) { + throw new \InvalidArgumentException('invalid value for "$division" when calling WalletApi.getCorporationsCorporationIdWalletsDivisionTransactions, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/corporations/{corporation_id}/wallets/{division}/transactions/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($fromId !== null) { + $queryParams['from_id'] = ObjectSerializer::toQueryValue($fromId); + } + // query params + if ($token !== null) { + $queryParams['token'] = ObjectSerializer::toQueryValue($token); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($corporationId !== null) { + $resourcePath = str_replace( + '{' . 'corporation_id' . '}', + ObjectSerializer::toPathValue($corporationId), + $resourcePath + ); + } + // path params + if ($division !== null) { + $resourcePath = str_replace( + '{' . 'division' . '}', + ObjectSerializer::toPathValue($division), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } +} diff --git a/src/nullx27/ESI/Api/WarsApi.php b/src/nullx27/ESI/Api/WarsApi.php new file mode 100644 index 0000000..c0e33ad --- /dev/null +++ b/src/nullx27/ESI/Api/WarsApi.php @@ -0,0 +1,1009 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation getWars + * + * List wars + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $maxWarId Only return wars with ID smaller than this. (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return int[] + */ + public function getWars($datasource = 'tranquility', $maxWarId = null, $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getWarsWithHttpInfo($datasource, $maxWarId, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getWarsWithHttpInfo + * + * List wars + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $maxWarId Only return wars with ID smaller than this. (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of int[], HTTP status code, HTTP response headers (array of strings) + */ + public function getWarsWithHttpInfo($datasource = 'tranquility', $maxWarId = null, $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getWarsRequest($datasource, $maxWarId, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'int[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getWarsAsync + * + * List wars + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $maxWarId Only return wars with ID smaller than this. (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getWarsAsync($datasource = 'tranquility', $maxWarId = null, $userAgent = null, $xUserAgent = null) + { + return $this->getWarsAsyncWithHttpInfo($datasource, $maxWarId, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getWarsAsyncWithHttpInfo + * + * List wars + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $maxWarId Only return wars with ID smaller than this. (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getWarsAsyncWithHttpInfo($datasource = 'tranquility', $maxWarId = null, $userAgent = null, $xUserAgent = null) + { + $returnType = 'int[]'; + $request = $this->getWarsRequest($datasource, $maxWarId, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getWars' + * + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $maxWarId Only return wars with ID smaller than this. (optional) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getWarsRequest($datasource = 'tranquility', $maxWarId = null, $userAgent = null, $xUserAgent = null) + { + + $resourcePath = '/wars/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($maxWarId !== null) { + $queryParams['max_war_id'] = ObjectSerializer::toQueryValue($maxWarId); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getWarsWarId + * + * Get war information + * + * @param int $warId ID for a war (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetWarsWarIdOk + */ + public function getWarsWarId($warId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getWarsWarIdWithHttpInfo($warId, $datasource, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getWarsWarIdWithHttpInfo + * + * Get war information + * + * @param int $warId ID for a war (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetWarsWarIdOk, HTTP status code, HTTP response headers (array of strings) + */ + public function getWarsWarIdWithHttpInfo($warId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetWarsWarIdOk'; + $request = $this->getWarsWarIdRequest($warId, $datasource, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetWarsWarIdOk', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 422: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetWarsWarIdUnprocessableEntity', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getWarsWarIdAsync + * + * Get war information + * + * @param int $warId ID for a war (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getWarsWarIdAsync($warId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + return $this->getWarsWarIdAsyncWithHttpInfo($warId, $datasource, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getWarsWarIdAsyncWithHttpInfo + * + * Get war information + * + * @param int $warId ID for a war (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getWarsWarIdAsyncWithHttpInfo($warId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetWarsWarIdOk'; + $request = $this->getWarsWarIdRequest($warId, $datasource, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getWarsWarId' + * + * @param int $warId ID for a war (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getWarsWarIdRequest($warId, $datasource = 'tranquility', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'warId' is set + if ($warId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $warId when calling getWarsWarId' + ); + } + + $resourcePath = '/wars/{war_id}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($warId !== null) { + $resourcePath = str_replace( + '{' . 'war_id' . '}', + ObjectSerializer::toPathValue($warId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getWarsWarIdKillmails + * + * List kills for a war + * + * @param int $warId A valid war ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \nullx27ESI\nullx27\ESI\Models\GetWarsWarIdKillmails200Ok[] + */ + public function getWarsWarIdKillmails($warId, $datasource = 'tranquility', $page = '1', $userAgent = null, $xUserAgent = null) + { + list($response) = $this->getWarsWarIdKillmailsWithHttpInfo($warId, $datasource, $page, $userAgent, $xUserAgent); + return $response; + } + + /** + * Operation getWarsWarIdKillmailsWithHttpInfo + * + * List kills for a war + * + * @param int $warId A valid war ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \nullx27ESI\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \nullx27ESI\nullx27\ESI\Models\GetWarsWarIdKillmails200Ok[], HTTP status code, HTTP response headers (array of strings) + */ + public function getWarsWarIdKillmailsWithHttpInfo($warId, $datasource = 'tranquility', $page = '1', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetWarsWarIdKillmails200Ok[]'; + $request = $this->getWarsWarIdKillmailsRequest($warId, $datasource, $page, $userAgent, $xUserAgent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetWarsWarIdKillmails200Ok[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 422: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\GetWarsWarIdKillmailsUnprocessableEntity', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\nullx27ESI\nullx27\ESI\Models\InternalServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getWarsWarIdKillmailsAsync + * + * List kills for a war + * + * @param int $warId A valid war ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getWarsWarIdKillmailsAsync($warId, $datasource = 'tranquility', $page = '1', $userAgent = null, $xUserAgent = null) + { + return $this->getWarsWarIdKillmailsAsyncWithHttpInfo($warId, $datasource, $page, $userAgent, $xUserAgent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getWarsWarIdKillmailsAsyncWithHttpInfo + * + * List kills for a war + * + * @param int $warId A valid war ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getWarsWarIdKillmailsAsyncWithHttpInfo($warId, $datasource = 'tranquility', $page = '1', $userAgent = null, $xUserAgent = null) + { + $returnType = '\nullx27ESI\nullx27\ESI\Models\GetWarsWarIdKillmails200Ok[]'; + $request = $this->getWarsWarIdKillmailsRequest($warId, $datasource, $page, $userAgent, $xUserAgent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getWarsWarIdKillmails' + * + * @param int $warId A valid war ID (required) + * @param string $datasource The server name you would like data from (optional, default to tranquility) + * @param int $page Which page of results to return (optional, default to 1) + * @param string $userAgent Client identifier, takes precedence over headers (optional) + * @param string $xUserAgent Client identifier, takes precedence over User-Agent (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getWarsWarIdKillmailsRequest($warId, $datasource = 'tranquility', $page = '1', $userAgent = null, $xUserAgent = null) + { + // verify the required parameter 'warId' is set + if ($warId === null) { + throw new \InvalidArgumentException( + 'Missing the required parameter $warId when calling getWarsWarIdKillmails' + ); + } + + $resourcePath = '/wars/{war_id}/killmails/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($datasource !== null) { + $queryParams['datasource'] = ObjectSerializer::toQueryValue($datasource); + } + // query params + if ($page !== null) { + $queryParams['page'] = ObjectSerializer::toQueryValue($page); + } + // query params + if ($userAgent !== null) { + $queryParams['user_agent'] = ObjectSerializer::toQueryValue($userAgent); + } + // header params + if ($xUserAgent !== null) { + $headerParams['X-User-Agent'] = ObjectSerializer::toHeaderValue($xUserAgent); + } + + // path params + if ($warId !== null) { + $resourcePath = str_replace( + '{' . 'war_id' . '}', + ObjectSerializer::toPathValue($warId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } +} diff --git a/src/nullx27/ESI/Models/DeleteCharactersCharacterIdMailLabelsLabelIdUnprocessableEntity.php b/src/nullx27/ESI/Models/DeleteCharactersCharacterIdMailLabelsLabelIdUnprocessableEntity.php new file mode 100644 index 0000000..27b7e89 --- /dev/null +++ b/src/nullx27/ESI/Models/DeleteCharactersCharacterIdMailLabelsLabelIdUnprocessableEntity.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Unprocessable entity message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/DeleteFleetsFleetIdMembersMemberIdNotFound.php b/src/nullx27/ESI/Models/DeleteFleetsFleetIdMembersMemberIdNotFound.php new file mode 100644 index 0000000..162aba2 --- /dev/null +++ b/src/nullx27/ESI/Models/DeleteFleetsFleetIdMembersMemberIdNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Not found message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/DeleteFleetsFleetIdSquadsSquadIdNotFound.php b/src/nullx27/ESI/Models/DeleteFleetsFleetIdSquadsSquadIdNotFound.php new file mode 100644 index 0000000..79d2388 --- /dev/null +++ b/src/nullx27/ESI/Models/DeleteFleetsFleetIdSquadsSquadIdNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Not found message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/DeleteFleetsFleetIdWingsWingIdNotFound.php b/src/nullx27/ESI/Models/DeleteFleetsFleetIdWingsWingIdNotFound.php new file mode 100644 index 0000000..eeafa52 --- /dev/null +++ b/src/nullx27/ESI/Models/DeleteFleetsFleetIdWingsWingIdNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Not found message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/Forbidden.php b/src/nullx27/ESI/Models/Forbidden.php new file mode 100644 index 0000000..5e8fbf7 --- /dev/null +++ b/src/nullx27/ESI/Models/Forbidden.php @@ -0,0 +1,339 @@ + 'string', + 'ssoStatus' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null, + 'ssoStatus' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error', + 'ssoStatus' => 'sso_status' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError', + 'ssoStatus' => 'setSsoStatus' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError', + 'ssoStatus' => 'getSsoStatus' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + $this->container['ssoStatus'] = isset($data['ssoStatus']) ? $data['ssoStatus'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['error'] === null) { + $invalidProperties[] = "'error' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['error'] === null) { + return false; + } + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Forbidden message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + + /** + * Gets ssoStatus + * + * @return int + */ + public function getSsoStatus() + { + return $this->container['ssoStatus']; + } + + /** + * Sets ssoStatus + * + * @param int $ssoStatus Status code received from SSO + * + * @return $this + */ + public function setSsoStatus($ssoStatus) + { + $this->container['ssoStatus'] = $ssoStatus; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetAlliancesAllianceIdContacts200Ok.php b/src/nullx27/ESI/Models/GetAlliancesAllianceIdContacts200Ok.php new file mode 100644 index 0000000..1df750c --- /dev/null +++ b/src/nullx27/ESI/Models/GetAlliancesAllianceIdContacts200Ok.php @@ -0,0 +1,451 @@ + 'float', + 'contactType' => 'string', + 'contactId' => 'int', + 'labelId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'standing' => 'float', + 'contactType' => null, + 'contactId' => 'int32', + 'labelId' => 'int64' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'standing' => 'standing', + 'contactType' => 'contact_type', + 'contactId' => 'contact_id', + 'labelId' => 'label_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'standing' => 'setStanding', + 'contactType' => 'setContactType', + 'contactId' => 'setContactId', + 'labelId' => 'setLabelId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'standing' => 'getStanding', + 'contactType' => 'getContactType', + 'contactId' => 'getContactId', + 'labelId' => 'getLabelId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const CONTACT_TYPE_CHARACTER = 'character'; + const CONTACT_TYPE_CORPORATION = 'corporation'; + const CONTACT_TYPE_ALLIANCE = 'alliance'; + const CONTACT_TYPE_FACTION = 'faction'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getContactTypeAllowableValues() + { + return [ + self::CONTACT_TYPE_CHARACTER, + self::CONTACT_TYPE_CORPORATION, + self::CONTACT_TYPE_ALLIANCE, + self::CONTACT_TYPE_FACTION, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['standing'] = isset($data['standing']) ? $data['standing'] : null; + $this->container['contactType'] = isset($data['contactType']) ? $data['contactType'] : null; + $this->container['contactId'] = isset($data['contactId']) ? $data['contactId'] : null; + $this->container['labelId'] = isset($data['labelId']) ? $data['labelId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['standing'] === null) { + $invalidProperties[] = "'standing' can't be null"; + } + if ($this->container['contactType'] === null) { + $invalidProperties[] = "'contactType' can't be null"; + } + $allowedValues = $this->getContactTypeAllowableValues(); + if (!in_array($this->container['contactType'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'contactType', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['contactId'] === null) { + $invalidProperties[] = "'contactId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['standing'] === null) { + return false; + } + if ($this->container['contactType'] === null) { + return false; + } + $allowedValues = $this->getContactTypeAllowableValues(); + if (!in_array($this->container['contactType'], $allowedValues)) { + return false; + } + if ($this->container['contactId'] === null) { + return false; + } + return true; + } + + + /** + * Gets standing + * + * @return float + */ + public function getStanding() + { + return $this->container['standing']; + } + + /** + * Sets standing + * + * @param float $standing Standing of the contact + * + * @return $this + */ + public function setStanding($standing) + { + $this->container['standing'] = $standing; + + return $this; + } + + /** + * Gets contactType + * + * @return string + */ + public function getContactType() + { + return $this->container['contactType']; + } + + /** + * Sets contactType + * + * @param string $contactType contact_type string + * + * @return $this + */ + public function setContactType($contactType) + { + $allowedValues = $this->getContactTypeAllowableValues(); + if (!in_array($contactType, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'contactType', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['contactType'] = $contactType; + + return $this; + } + + /** + * Gets contactId + * + * @return int + */ + public function getContactId() + { + return $this->container['contactId']; + } + + /** + * Sets contactId + * + * @param int $contactId contact_id integer + * + * @return $this + */ + public function setContactId($contactId) + { + $this->container['contactId'] = $contactId; + + return $this; + } + + /** + * Gets labelId + * + * @return int + */ + public function getLabelId() + { + return $this->container['labelId']; + } + + /** + * Sets labelId + * + * @param int $labelId Custom label of the contact + * + * @return $this + */ + public function setLabelId($labelId) + { + $this->container['labelId'] = $labelId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetAlliancesAllianceIdIconsNotFound.php b/src/nullx27/ESI/Models/GetAlliancesAllianceIdIconsNotFound.php new file mode 100644 index 0000000..672cf82 --- /dev/null +++ b/src/nullx27/ESI/Models/GetAlliancesAllianceIdIconsNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error error message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetAlliancesAllianceIdIconsOk.php b/src/nullx27/ESI/Models/GetAlliancesAllianceIdIconsOk.php new file mode 100644 index 0000000..8b1f0bb --- /dev/null +++ b/src/nullx27/ESI/Models/GetAlliancesAllianceIdIconsOk.php @@ -0,0 +1,333 @@ + 'string', + 'px128x128' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'px64x64' => null, + 'px128x128' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'px64x64' => 'px64x64', + 'px128x128' => 'px128x128' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'px64x64' => 'setPx64x64', + 'px128x128' => 'setPx128x128' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'px64x64' => 'getPx64x64', + 'px128x128' => 'getPx128x128' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['px64x64'] = isset($data['px64x64']) ? $data['px64x64'] : null; + $this->container['px128x128'] = isset($data['px128x128']) ? $data['px128x128'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets px64x64 + * + * @return string + */ + public function getPx64x64() + { + return $this->container['px64x64']; + } + + /** + * Sets px64x64 + * + * @param string $px64x64 px64x64 string + * + * @return $this + */ + public function setPx64x64($px64x64) + { + $this->container['px64x64'] = $px64x64; + + return $this; + } + + /** + * Gets px128x128 + * + * @return string + */ + public function getPx128x128() + { + return $this->container['px128x128']; + } + + /** + * Sets px128x128 + * + * @param string $px128x128 px128x128 string + * + * @return $this + */ + public function setPx128x128($px128x128) + { + $this->container['px128x128'] = $px128x128; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetAlliancesAllianceIdNotFound.php b/src/nullx27/ESI/Models/GetAlliancesAllianceIdNotFound.php new file mode 100644 index 0000000..a91cefb --- /dev/null +++ b/src/nullx27/ESI/Models/GetAlliancesAllianceIdNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Not found message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetAlliancesAllianceIdOk.php b/src/nullx27/ESI/Models/GetAlliancesAllianceIdOk.php new file mode 100644 index 0000000..886c417 --- /dev/null +++ b/src/nullx27/ESI/Models/GetAlliancesAllianceIdOk.php @@ -0,0 +1,513 @@ + 'string', + 'creatorId' => 'int', + 'creatorCorporationId' => 'int', + 'ticker' => 'string', + 'executorCorporationId' => 'int', + 'dateFounded' => '\DateTime', + 'factionId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'name' => null, + 'creatorId' => 'int32', + 'creatorCorporationId' => 'int32', + 'ticker' => null, + 'executorCorporationId' => 'int32', + 'dateFounded' => 'date-time', + 'factionId' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'name' => 'name', + 'creatorId' => 'creator_id', + 'creatorCorporationId' => 'creator_corporation_id', + 'ticker' => 'ticker', + 'executorCorporationId' => 'executor_corporation_id', + 'dateFounded' => 'date_founded', + 'factionId' => 'faction_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'name' => 'setName', + 'creatorId' => 'setCreatorId', + 'creatorCorporationId' => 'setCreatorCorporationId', + 'ticker' => 'setTicker', + 'executorCorporationId' => 'setExecutorCorporationId', + 'dateFounded' => 'setDateFounded', + 'factionId' => 'setFactionId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'name' => 'getName', + 'creatorId' => 'getCreatorId', + 'creatorCorporationId' => 'getCreatorCorporationId', + 'ticker' => 'getTicker', + 'executorCorporationId' => 'getExecutorCorporationId', + 'dateFounded' => 'getDateFounded', + 'factionId' => 'getFactionId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['creatorId'] = isset($data['creatorId']) ? $data['creatorId'] : null; + $this->container['creatorCorporationId'] = isset($data['creatorCorporationId']) ? $data['creatorCorporationId'] : null; + $this->container['ticker'] = isset($data['ticker']) ? $data['ticker'] : null; + $this->container['executorCorporationId'] = isset($data['executorCorporationId']) ? $data['executorCorporationId'] : null; + $this->container['dateFounded'] = isset($data['dateFounded']) ? $data['dateFounded'] : null; + $this->container['factionId'] = isset($data['factionId']) ? $data['factionId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ($this->container['creatorId'] === null) { + $invalidProperties[] = "'creatorId' can't be null"; + } + if ($this->container['creatorCorporationId'] === null) { + $invalidProperties[] = "'creatorCorporationId' can't be null"; + } + if ($this->container['ticker'] === null) { + $invalidProperties[] = "'ticker' can't be null"; + } + if ($this->container['dateFounded'] === null) { + $invalidProperties[] = "'dateFounded' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['name'] === null) { + return false; + } + if ($this->container['creatorId'] === null) { + return false; + } + if ($this->container['creatorCorporationId'] === null) { + return false; + } + if ($this->container['ticker'] === null) { + return false; + } + if ($this->container['dateFounded'] === null) { + return false; + } + return true; + } + + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name the full name of the alliance + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets creatorId + * + * @return int + */ + public function getCreatorId() + { + return $this->container['creatorId']; + } + + /** + * Sets creatorId + * + * @param int $creatorId ID of the character that created the alliance + * + * @return $this + */ + public function setCreatorId($creatorId) + { + $this->container['creatorId'] = $creatorId; + + return $this; + } + + /** + * Gets creatorCorporationId + * + * @return int + */ + public function getCreatorCorporationId() + { + return $this->container['creatorCorporationId']; + } + + /** + * Sets creatorCorporationId + * + * @param int $creatorCorporationId ID of the corporation that created the alliance + * + * @return $this + */ + public function setCreatorCorporationId($creatorCorporationId) + { + $this->container['creatorCorporationId'] = $creatorCorporationId; + + return $this; + } + + /** + * Gets ticker + * + * @return string + */ + public function getTicker() + { + return $this->container['ticker']; + } + + /** + * Sets ticker + * + * @param string $ticker the short name of the alliance + * + * @return $this + */ + public function setTicker($ticker) + { + $this->container['ticker'] = $ticker; + + return $this; + } + + /** + * Gets executorCorporationId + * + * @return int + */ + public function getExecutorCorporationId() + { + return $this->container['executorCorporationId']; + } + + /** + * Sets executorCorporationId + * + * @param int $executorCorporationId the executor corporation ID, if this alliance is not closed + * + * @return $this + */ + public function setExecutorCorporationId($executorCorporationId) + { + $this->container['executorCorporationId'] = $executorCorporationId; + + return $this; + } + + /** + * Gets dateFounded + * + * @return \DateTime + */ + public function getDateFounded() + { + return $this->container['dateFounded']; + } + + /** + * Sets dateFounded + * + * @param \DateTime $dateFounded date_founded string + * + * @return $this + */ + public function setDateFounded($dateFounded) + { + $this->container['dateFounded'] = $dateFounded; + + return $this; + } + + /** + * Gets factionId + * + * @return int + */ + public function getFactionId() + { + return $this->container['factionId']; + } + + /** + * Sets factionId + * + * @param int $factionId Faction ID this alliance is fighting for, if this alliance is enlisted in factional warfare + * + * @return $this + */ + public function setFactionId($factionId) + { + $this->container['factionId'] = $factionId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetAlliancesNames200Ok.php b/src/nullx27/ESI/Models/GetAlliancesNames200Ok.php new file mode 100644 index 0000000..737c93d --- /dev/null +++ b/src/nullx27/ESI/Models/GetAlliancesNames200Ok.php @@ -0,0 +1,345 @@ + 'int', + 'allianceName' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'allianceId' => 'int32', + 'allianceName' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'allianceId' => 'alliance_id', + 'allianceName' => 'alliance_name' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'allianceId' => 'setAllianceId', + 'allianceName' => 'setAllianceName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'allianceId' => 'getAllianceId', + 'allianceName' => 'getAllianceName' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['allianceId'] = isset($data['allianceId']) ? $data['allianceId'] : null; + $this->container['allianceName'] = isset($data['allianceName']) ? $data['allianceName'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['allianceId'] === null) { + $invalidProperties[] = "'allianceId' can't be null"; + } + if ($this->container['allianceName'] === null) { + $invalidProperties[] = "'allianceName' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['allianceId'] === null) { + return false; + } + if ($this->container['allianceName'] === null) { + return false; + } + return true; + } + + + /** + * Gets allianceId + * + * @return int + */ + public function getAllianceId() + { + return $this->container['allianceId']; + } + + /** + * Sets allianceId + * + * @param int $allianceId alliance_id integer + * + * @return $this + */ + public function setAllianceId($allianceId) + { + $this->container['allianceId'] = $allianceId; + + return $this; + } + + /** + * Gets allianceName + * + * @return string + */ + public function getAllianceName() + { + return $this->container['allianceName']; + } + + /** + * Sets allianceName + * + * @param string $allianceName alliance_name string + * + * @return $this + */ + public function setAllianceName($allianceName) + { + $this->container['allianceName'] = $allianceName; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdAgentsResearch200Ok.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdAgentsResearch200Ok.php new file mode 100644 index 0000000..da555d4 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdAgentsResearch200Ok.php @@ -0,0 +1,453 @@ + 'int', + 'skillTypeId' => 'int', + 'startedAt' => '\DateTime', + 'pointsPerDay' => 'float', + 'remainderPoints' => 'float' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'agentId' => 'int32', + 'skillTypeId' => 'int32', + 'startedAt' => 'date-time', + 'pointsPerDay' => 'float', + 'remainderPoints' => 'float' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'agentId' => 'agent_id', + 'skillTypeId' => 'skill_type_id', + 'startedAt' => 'started_at', + 'pointsPerDay' => 'points_per_day', + 'remainderPoints' => 'remainder_points' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'agentId' => 'setAgentId', + 'skillTypeId' => 'setSkillTypeId', + 'startedAt' => 'setStartedAt', + 'pointsPerDay' => 'setPointsPerDay', + 'remainderPoints' => 'setRemainderPoints' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'agentId' => 'getAgentId', + 'skillTypeId' => 'getSkillTypeId', + 'startedAt' => 'getStartedAt', + 'pointsPerDay' => 'getPointsPerDay', + 'remainderPoints' => 'getRemainderPoints' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['agentId'] = isset($data['agentId']) ? $data['agentId'] : null; + $this->container['skillTypeId'] = isset($data['skillTypeId']) ? $data['skillTypeId'] : null; + $this->container['startedAt'] = isset($data['startedAt']) ? $data['startedAt'] : null; + $this->container['pointsPerDay'] = isset($data['pointsPerDay']) ? $data['pointsPerDay'] : null; + $this->container['remainderPoints'] = isset($data['remainderPoints']) ? $data['remainderPoints'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['agentId'] === null) { + $invalidProperties[] = "'agentId' can't be null"; + } + if ($this->container['skillTypeId'] === null) { + $invalidProperties[] = "'skillTypeId' can't be null"; + } + if ($this->container['startedAt'] === null) { + $invalidProperties[] = "'startedAt' can't be null"; + } + if ($this->container['pointsPerDay'] === null) { + $invalidProperties[] = "'pointsPerDay' can't be null"; + } + if ($this->container['remainderPoints'] === null) { + $invalidProperties[] = "'remainderPoints' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['agentId'] === null) { + return false; + } + if ($this->container['skillTypeId'] === null) { + return false; + } + if ($this->container['startedAt'] === null) { + return false; + } + if ($this->container['pointsPerDay'] === null) { + return false; + } + if ($this->container['remainderPoints'] === null) { + return false; + } + return true; + } + + + /** + * Gets agentId + * + * @return int + */ + public function getAgentId() + { + return $this->container['agentId']; + } + + /** + * Sets agentId + * + * @param int $agentId agent_id integer + * + * @return $this + */ + public function setAgentId($agentId) + { + $this->container['agentId'] = $agentId; + + return $this; + } + + /** + * Gets skillTypeId + * + * @return int + */ + public function getSkillTypeId() + { + return $this->container['skillTypeId']; + } + + /** + * Sets skillTypeId + * + * @param int $skillTypeId skill_type_id integer + * + * @return $this + */ + public function setSkillTypeId($skillTypeId) + { + $this->container['skillTypeId'] = $skillTypeId; + + return $this; + } + + /** + * Gets startedAt + * + * @return \DateTime + */ + public function getStartedAt() + { + return $this->container['startedAt']; + } + + /** + * Sets startedAt + * + * @param \DateTime $startedAt started_at string + * + * @return $this + */ + public function setStartedAt($startedAt) + { + $this->container['startedAt'] = $startedAt; + + return $this; + } + + /** + * Gets pointsPerDay + * + * @return float + */ + public function getPointsPerDay() + { + return $this->container['pointsPerDay']; + } + + /** + * Sets pointsPerDay + * + * @param float $pointsPerDay points_per_day number + * + * @return $this + */ + public function setPointsPerDay($pointsPerDay) + { + $this->container['pointsPerDay'] = $pointsPerDay; + + return $this; + } + + /** + * Gets remainderPoints + * + * @return float + */ + public function getRemainderPoints() + { + return $this->container['remainderPoints']; + } + + /** + * Sets remainderPoints + * + * @param float $remainderPoints remainder_points number + * + * @return $this + */ + public function setRemainderPoints($remainderPoints) + { + $this->container['remainderPoints'] = $remainderPoints; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdAssets200Ok.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdAssets200Ok.php new file mode 100644 index 0000000..4d2ae07 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdAssets200Ok.php @@ -0,0 +1,751 @@ + 'int', + 'quantity' => 'int', + 'locationId' => 'int', + 'locationType' => 'string', + 'itemId' => 'int', + 'locationFlag' => 'string', + 'isSingleton' => 'bool' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'typeId' => 'int32', + 'quantity' => 'int32', + 'locationId' => 'int64', + 'locationType' => null, + 'itemId' => 'int64', + 'locationFlag' => null, + 'isSingleton' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'typeId' => 'type_id', + 'quantity' => 'quantity', + 'locationId' => 'location_id', + 'locationType' => 'location_type', + 'itemId' => 'item_id', + 'locationFlag' => 'location_flag', + 'isSingleton' => 'is_singleton' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'typeId' => 'setTypeId', + 'quantity' => 'setQuantity', + 'locationId' => 'setLocationId', + 'locationType' => 'setLocationType', + 'itemId' => 'setItemId', + 'locationFlag' => 'setLocationFlag', + 'isSingleton' => 'setIsSingleton' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'typeId' => 'getTypeId', + 'quantity' => 'getQuantity', + 'locationId' => 'getLocationId', + 'locationType' => 'getLocationType', + 'itemId' => 'getItemId', + 'locationFlag' => 'getLocationFlag', + 'isSingleton' => 'getIsSingleton' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const LOCATION_TYPE_STATION = 'station'; + const LOCATION_TYPE_SOLAR_SYSTEM = 'solar_system'; + const LOCATION_TYPE_OTHER = 'other'; + const LOCATION_FLAG_ASSET_SAFETY = 'AssetSafety'; + const LOCATION_FLAG_AUTO_FIT = 'AutoFit'; + const LOCATION_FLAG_CARGO = 'Cargo'; + const LOCATION_FLAG_CORPSE_BAY = 'CorpseBay'; + const LOCATION_FLAG_DELIVERIES = 'Deliveries'; + const LOCATION_FLAG_DRONE_BAY = 'DroneBay'; + const LOCATION_FLAG_FIGHTER_BAY = 'FighterBay'; + const LOCATION_FLAG_FIGHTER_TUBE0 = 'FighterTube0'; + const LOCATION_FLAG_FIGHTER_TUBE1 = 'FighterTube1'; + const LOCATION_FLAG_FIGHTER_TUBE2 = 'FighterTube2'; + const LOCATION_FLAG_FIGHTER_TUBE3 = 'FighterTube3'; + const LOCATION_FLAG_FIGHTER_TUBE4 = 'FighterTube4'; + const LOCATION_FLAG_FLEET_HANGAR = 'FleetHangar'; + const LOCATION_FLAG_HANGAR = 'Hangar'; + const LOCATION_FLAG_HANGAR_ALL = 'HangarAll'; + const LOCATION_FLAG_HI_SLOT0 = 'HiSlot0'; + const LOCATION_FLAG_HI_SLOT1 = 'HiSlot1'; + const LOCATION_FLAG_HI_SLOT2 = 'HiSlot2'; + const LOCATION_FLAG_HI_SLOT3 = 'HiSlot3'; + const LOCATION_FLAG_HI_SLOT4 = 'HiSlot4'; + const LOCATION_FLAG_HI_SLOT5 = 'HiSlot5'; + const LOCATION_FLAG_HI_SLOT6 = 'HiSlot6'; + const LOCATION_FLAG_HI_SLOT7 = 'HiSlot7'; + const LOCATION_FLAG_HIDDEN_MODIFIERS = 'HiddenModifiers'; + const LOCATION_FLAG_IMPLANT = 'Implant'; + const LOCATION_FLAG_LO_SLOT0 = 'LoSlot0'; + const LOCATION_FLAG_LO_SLOT1 = 'LoSlot1'; + const LOCATION_FLAG_LO_SLOT2 = 'LoSlot2'; + const LOCATION_FLAG_LO_SLOT3 = 'LoSlot3'; + const LOCATION_FLAG_LO_SLOT4 = 'LoSlot4'; + const LOCATION_FLAG_LO_SLOT5 = 'LoSlot5'; + const LOCATION_FLAG_LO_SLOT6 = 'LoSlot6'; + const LOCATION_FLAG_LO_SLOT7 = 'LoSlot7'; + const LOCATION_FLAG_LOCKED = 'Locked'; + const LOCATION_FLAG_MED_SLOT0 = 'MedSlot0'; + const LOCATION_FLAG_MED_SLOT1 = 'MedSlot1'; + const LOCATION_FLAG_MED_SLOT2 = 'MedSlot2'; + const LOCATION_FLAG_MED_SLOT3 = 'MedSlot3'; + const LOCATION_FLAG_MED_SLOT4 = 'MedSlot4'; + const LOCATION_FLAG_MED_SLOT5 = 'MedSlot5'; + const LOCATION_FLAG_MED_SLOT6 = 'MedSlot6'; + const LOCATION_FLAG_MED_SLOT7 = 'MedSlot7'; + const LOCATION_FLAG_QUAFE_BAY = 'QuafeBay'; + const LOCATION_FLAG_RIG_SLOT0 = 'RigSlot0'; + const LOCATION_FLAG_RIG_SLOT1 = 'RigSlot1'; + const LOCATION_FLAG_RIG_SLOT2 = 'RigSlot2'; + const LOCATION_FLAG_RIG_SLOT3 = 'RigSlot3'; + const LOCATION_FLAG_RIG_SLOT4 = 'RigSlot4'; + const LOCATION_FLAG_RIG_SLOT5 = 'RigSlot5'; + const LOCATION_FLAG_RIG_SLOT6 = 'RigSlot6'; + const LOCATION_FLAG_RIG_SLOT7 = 'RigSlot7'; + const LOCATION_FLAG_SHIP_HANGAR = 'ShipHangar'; + const LOCATION_FLAG_SKILL = 'Skill'; + const LOCATION_FLAG_SPECIALIZED_AMMO_HOLD = 'SpecializedAmmoHold'; + const LOCATION_FLAG_SPECIALIZED_COMMAND_CENTER_HOLD = 'SpecializedCommandCenterHold'; + const LOCATION_FLAG_SPECIALIZED_FUEL_BAY = 'SpecializedFuelBay'; + const LOCATION_FLAG_SPECIALIZED_GAS_HOLD = 'SpecializedGasHold'; + const LOCATION_FLAG_SPECIALIZED_INDUSTRIAL_SHIP_HOLD = 'SpecializedIndustrialShipHold'; + const LOCATION_FLAG_SPECIALIZED_LARGE_SHIP_HOLD = 'SpecializedLargeShipHold'; + const LOCATION_FLAG_SPECIALIZED_MATERIAL_BAY = 'SpecializedMaterialBay'; + const LOCATION_FLAG_SPECIALIZED_MEDIUM_SHIP_HOLD = 'SpecializedMediumShipHold'; + const LOCATION_FLAG_SPECIALIZED_MINERAL_HOLD = 'SpecializedMineralHold'; + const LOCATION_FLAG_SPECIALIZED_ORE_HOLD = 'SpecializedOreHold'; + const LOCATION_FLAG_SPECIALIZED_PLANETARY_COMMODITIES_HOLD = 'SpecializedPlanetaryCommoditiesHold'; + const LOCATION_FLAG_SPECIALIZED_SALVAGE_HOLD = 'SpecializedSalvageHold'; + const LOCATION_FLAG_SPECIALIZED_SHIP_HOLD = 'SpecializedShipHold'; + const LOCATION_FLAG_SPECIALIZED_SMALL_SHIP_HOLD = 'SpecializedSmallShipHold'; + const LOCATION_FLAG_SUB_SYSTEM_BAY = 'SubSystemBay'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT0 = 'SubSystemSlot0'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT1 = 'SubSystemSlot1'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT2 = 'SubSystemSlot2'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT3 = 'SubSystemSlot3'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT4 = 'SubSystemSlot4'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT5 = 'SubSystemSlot5'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT6 = 'SubSystemSlot6'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT7 = 'SubSystemSlot7'; + const LOCATION_FLAG_UNLOCKED = 'Unlocked'; + const LOCATION_FLAG_WARDROBE = 'Wardrobe'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getLocationTypeAllowableValues() + { + return [ + self::LOCATION_TYPE_STATION, + self::LOCATION_TYPE_SOLAR_SYSTEM, + self::LOCATION_TYPE_OTHER, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getLocationFlagAllowableValues() + { + return [ + self::LOCATION_FLAG_ASSET_SAFETY, + self::LOCATION_FLAG_AUTO_FIT, + self::LOCATION_FLAG_CARGO, + self::LOCATION_FLAG_CORPSE_BAY, + self::LOCATION_FLAG_DELIVERIES, + self::LOCATION_FLAG_DRONE_BAY, + self::LOCATION_FLAG_FIGHTER_BAY, + self::LOCATION_FLAG_FIGHTER_TUBE0, + self::LOCATION_FLAG_FIGHTER_TUBE1, + self::LOCATION_FLAG_FIGHTER_TUBE2, + self::LOCATION_FLAG_FIGHTER_TUBE3, + self::LOCATION_FLAG_FIGHTER_TUBE4, + self::LOCATION_FLAG_FLEET_HANGAR, + self::LOCATION_FLAG_HANGAR, + self::LOCATION_FLAG_HANGAR_ALL, + self::LOCATION_FLAG_HI_SLOT0, + self::LOCATION_FLAG_HI_SLOT1, + self::LOCATION_FLAG_HI_SLOT2, + self::LOCATION_FLAG_HI_SLOT3, + self::LOCATION_FLAG_HI_SLOT4, + self::LOCATION_FLAG_HI_SLOT5, + self::LOCATION_FLAG_HI_SLOT6, + self::LOCATION_FLAG_HI_SLOT7, + self::LOCATION_FLAG_HIDDEN_MODIFIERS, + self::LOCATION_FLAG_IMPLANT, + self::LOCATION_FLAG_LO_SLOT0, + self::LOCATION_FLAG_LO_SLOT1, + self::LOCATION_FLAG_LO_SLOT2, + self::LOCATION_FLAG_LO_SLOT3, + self::LOCATION_FLAG_LO_SLOT4, + self::LOCATION_FLAG_LO_SLOT5, + self::LOCATION_FLAG_LO_SLOT6, + self::LOCATION_FLAG_LO_SLOT7, + self::LOCATION_FLAG_LOCKED, + self::LOCATION_FLAG_MED_SLOT0, + self::LOCATION_FLAG_MED_SLOT1, + self::LOCATION_FLAG_MED_SLOT2, + self::LOCATION_FLAG_MED_SLOT3, + self::LOCATION_FLAG_MED_SLOT4, + self::LOCATION_FLAG_MED_SLOT5, + self::LOCATION_FLAG_MED_SLOT6, + self::LOCATION_FLAG_MED_SLOT7, + self::LOCATION_FLAG_QUAFE_BAY, + self::LOCATION_FLAG_RIG_SLOT0, + self::LOCATION_FLAG_RIG_SLOT1, + self::LOCATION_FLAG_RIG_SLOT2, + self::LOCATION_FLAG_RIG_SLOT3, + self::LOCATION_FLAG_RIG_SLOT4, + self::LOCATION_FLAG_RIG_SLOT5, + self::LOCATION_FLAG_RIG_SLOT6, + self::LOCATION_FLAG_RIG_SLOT7, + self::LOCATION_FLAG_SHIP_HANGAR, + self::LOCATION_FLAG_SKILL, + self::LOCATION_FLAG_SPECIALIZED_AMMO_HOLD, + self::LOCATION_FLAG_SPECIALIZED_COMMAND_CENTER_HOLD, + self::LOCATION_FLAG_SPECIALIZED_FUEL_BAY, + self::LOCATION_FLAG_SPECIALIZED_GAS_HOLD, + self::LOCATION_FLAG_SPECIALIZED_INDUSTRIAL_SHIP_HOLD, + self::LOCATION_FLAG_SPECIALIZED_LARGE_SHIP_HOLD, + self::LOCATION_FLAG_SPECIALIZED_MATERIAL_BAY, + self::LOCATION_FLAG_SPECIALIZED_MEDIUM_SHIP_HOLD, + self::LOCATION_FLAG_SPECIALIZED_MINERAL_HOLD, + self::LOCATION_FLAG_SPECIALIZED_ORE_HOLD, + self::LOCATION_FLAG_SPECIALIZED_PLANETARY_COMMODITIES_HOLD, + self::LOCATION_FLAG_SPECIALIZED_SALVAGE_HOLD, + self::LOCATION_FLAG_SPECIALIZED_SHIP_HOLD, + self::LOCATION_FLAG_SPECIALIZED_SMALL_SHIP_HOLD, + self::LOCATION_FLAG_SUB_SYSTEM_BAY, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT0, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT1, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT2, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT3, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT4, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT5, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT6, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT7, + self::LOCATION_FLAG_UNLOCKED, + self::LOCATION_FLAG_WARDROBE, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['typeId'] = isset($data['typeId']) ? $data['typeId'] : null; + $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null; + $this->container['locationId'] = isset($data['locationId']) ? $data['locationId'] : null; + $this->container['locationType'] = isset($data['locationType']) ? $data['locationType'] : null; + $this->container['itemId'] = isset($data['itemId']) ? $data['itemId'] : null; + $this->container['locationFlag'] = isset($data['locationFlag']) ? $data['locationFlag'] : null; + $this->container['isSingleton'] = isset($data['isSingleton']) ? $data['isSingleton'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['typeId'] === null) { + $invalidProperties[] = "'typeId' can't be null"; + } + if ($this->container['quantity'] === null) { + $invalidProperties[] = "'quantity' can't be null"; + } + if ($this->container['locationId'] === null) { + $invalidProperties[] = "'locationId' can't be null"; + } + if ($this->container['locationType'] === null) { + $invalidProperties[] = "'locationType' can't be null"; + } + $allowedValues = $this->getLocationTypeAllowableValues(); + if (!in_array($this->container['locationType'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'locationType', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['itemId'] === null) { + $invalidProperties[] = "'itemId' can't be null"; + } + if ($this->container['locationFlag'] === null) { + $invalidProperties[] = "'locationFlag' can't be null"; + } + $allowedValues = $this->getLocationFlagAllowableValues(); + if (!in_array($this->container['locationFlag'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'locationFlag', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['isSingleton'] === null) { + $invalidProperties[] = "'isSingleton' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['typeId'] === null) { + return false; + } + if ($this->container['quantity'] === null) { + return false; + } + if ($this->container['locationId'] === null) { + return false; + } + if ($this->container['locationType'] === null) { + return false; + } + $allowedValues = $this->getLocationTypeAllowableValues(); + if (!in_array($this->container['locationType'], $allowedValues)) { + return false; + } + if ($this->container['itemId'] === null) { + return false; + } + if ($this->container['locationFlag'] === null) { + return false; + } + $allowedValues = $this->getLocationFlagAllowableValues(); + if (!in_array($this->container['locationFlag'], $allowedValues)) { + return false; + } + if ($this->container['isSingleton'] === null) { + return false; + } + return true; + } + + + /** + * Gets typeId + * + * @return int + */ + public function getTypeId() + { + return $this->container['typeId']; + } + + /** + * Sets typeId + * + * @param int $typeId type_id integer + * + * @return $this + */ + public function setTypeId($typeId) + { + $this->container['typeId'] = $typeId; + + return $this; + } + + /** + * Gets quantity + * + * @return int + */ + public function getQuantity() + { + return $this->container['quantity']; + } + + /** + * Sets quantity + * + * @param int $quantity quantity integer + * + * @return $this + */ + public function setQuantity($quantity) + { + $this->container['quantity'] = $quantity; + + return $this; + } + + /** + * Gets locationId + * + * @return int + */ + public function getLocationId() + { + return $this->container['locationId']; + } + + /** + * Sets locationId + * + * @param int $locationId location_id integer + * + * @return $this + */ + public function setLocationId($locationId) + { + $this->container['locationId'] = $locationId; + + return $this; + } + + /** + * Gets locationType + * + * @return string + */ + public function getLocationType() + { + return $this->container['locationType']; + } + + /** + * Sets locationType + * + * @param string $locationType location_type string + * + * @return $this + */ + public function setLocationType($locationType) + { + $allowedValues = $this->getLocationTypeAllowableValues(); + if (!in_array($locationType, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'locationType', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['locationType'] = $locationType; + + return $this; + } + + /** + * Gets itemId + * + * @return int + */ + public function getItemId() + { + return $this->container['itemId']; + } + + /** + * Sets itemId + * + * @param int $itemId item_id integer + * + * @return $this + */ + public function setItemId($itemId) + { + $this->container['itemId'] = $itemId; + + return $this; + } + + /** + * Gets locationFlag + * + * @return string + */ + public function getLocationFlag() + { + return $this->container['locationFlag']; + } + + /** + * Sets locationFlag + * + * @param string $locationFlag location_flag string + * + * @return $this + */ + public function setLocationFlag($locationFlag) + { + $allowedValues = $this->getLocationFlagAllowableValues(); + if (!in_array($locationFlag, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'locationFlag', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['locationFlag'] = $locationFlag; + + return $this; + } + + /** + * Gets isSingleton + * + * @return bool + */ + public function getIsSingleton() + { + return $this->container['isSingleton']; + } + + /** + * Sets isSingleton + * + * @param bool $isSingleton is_singleton boolean + * + * @return $this + */ + public function setIsSingleton($isSingleton) + { + $this->container['isSingleton'] = $isSingleton; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdAttributesOk.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdAttributesOk.php new file mode 100644 index 0000000..2a2905b --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdAttributesOk.php @@ -0,0 +1,543 @@ + 'int', + 'intelligence' => 'int', + 'memory' => 'int', + 'perception' => 'int', + 'willpower' => 'int', + 'bonusRemaps' => 'int', + 'lastRemapDate' => '\DateTime', + 'accruedRemapCooldownDate' => '\DateTime' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'charisma' => 'int32', + 'intelligence' => 'int32', + 'memory' => 'int32', + 'perception' => 'int32', + 'willpower' => 'int32', + 'bonusRemaps' => 'int32', + 'lastRemapDate' => 'date-time', + 'accruedRemapCooldownDate' => 'date-time' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'charisma' => 'charisma', + 'intelligence' => 'intelligence', + 'memory' => 'memory', + 'perception' => 'perception', + 'willpower' => 'willpower', + 'bonusRemaps' => 'bonus_remaps', + 'lastRemapDate' => 'last_remap_date', + 'accruedRemapCooldownDate' => 'accrued_remap_cooldown_date' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'charisma' => 'setCharisma', + 'intelligence' => 'setIntelligence', + 'memory' => 'setMemory', + 'perception' => 'setPerception', + 'willpower' => 'setWillpower', + 'bonusRemaps' => 'setBonusRemaps', + 'lastRemapDate' => 'setLastRemapDate', + 'accruedRemapCooldownDate' => 'setAccruedRemapCooldownDate' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'charisma' => 'getCharisma', + 'intelligence' => 'getIntelligence', + 'memory' => 'getMemory', + 'perception' => 'getPerception', + 'willpower' => 'getWillpower', + 'bonusRemaps' => 'getBonusRemaps', + 'lastRemapDate' => 'getLastRemapDate', + 'accruedRemapCooldownDate' => 'getAccruedRemapCooldownDate' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['charisma'] = isset($data['charisma']) ? $data['charisma'] : null; + $this->container['intelligence'] = isset($data['intelligence']) ? $data['intelligence'] : null; + $this->container['memory'] = isset($data['memory']) ? $data['memory'] : null; + $this->container['perception'] = isset($data['perception']) ? $data['perception'] : null; + $this->container['willpower'] = isset($data['willpower']) ? $data['willpower'] : null; + $this->container['bonusRemaps'] = isset($data['bonusRemaps']) ? $data['bonusRemaps'] : null; + $this->container['lastRemapDate'] = isset($data['lastRemapDate']) ? $data['lastRemapDate'] : null; + $this->container['accruedRemapCooldownDate'] = isset($data['accruedRemapCooldownDate']) ? $data['accruedRemapCooldownDate'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['charisma'] === null) { + $invalidProperties[] = "'charisma' can't be null"; + } + if ($this->container['intelligence'] === null) { + $invalidProperties[] = "'intelligence' can't be null"; + } + if ($this->container['memory'] === null) { + $invalidProperties[] = "'memory' can't be null"; + } + if ($this->container['perception'] === null) { + $invalidProperties[] = "'perception' can't be null"; + } + if ($this->container['willpower'] === null) { + $invalidProperties[] = "'willpower' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['charisma'] === null) { + return false; + } + if ($this->container['intelligence'] === null) { + return false; + } + if ($this->container['memory'] === null) { + return false; + } + if ($this->container['perception'] === null) { + return false; + } + if ($this->container['willpower'] === null) { + return false; + } + return true; + } + + + /** + * Gets charisma + * + * @return int + */ + public function getCharisma() + { + return $this->container['charisma']; + } + + /** + * Sets charisma + * + * @param int $charisma charisma integer + * + * @return $this + */ + public function setCharisma($charisma) + { + $this->container['charisma'] = $charisma; + + return $this; + } + + /** + * Gets intelligence + * + * @return int + */ + public function getIntelligence() + { + return $this->container['intelligence']; + } + + /** + * Sets intelligence + * + * @param int $intelligence intelligence integer + * + * @return $this + */ + public function setIntelligence($intelligence) + { + $this->container['intelligence'] = $intelligence; + + return $this; + } + + /** + * Gets memory + * + * @return int + */ + public function getMemory() + { + return $this->container['memory']; + } + + /** + * Sets memory + * + * @param int $memory memory integer + * + * @return $this + */ + public function setMemory($memory) + { + $this->container['memory'] = $memory; + + return $this; + } + + /** + * Gets perception + * + * @return int + */ + public function getPerception() + { + return $this->container['perception']; + } + + /** + * Sets perception + * + * @param int $perception perception integer + * + * @return $this + */ + public function setPerception($perception) + { + $this->container['perception'] = $perception; + + return $this; + } + + /** + * Gets willpower + * + * @return int + */ + public function getWillpower() + { + return $this->container['willpower']; + } + + /** + * Sets willpower + * + * @param int $willpower willpower integer + * + * @return $this + */ + public function setWillpower($willpower) + { + $this->container['willpower'] = $willpower; + + return $this; + } + + /** + * Gets bonusRemaps + * + * @return int + */ + public function getBonusRemaps() + { + return $this->container['bonusRemaps']; + } + + /** + * Sets bonusRemaps + * + * @param int $bonusRemaps Number of available bonus character neural remaps + * + * @return $this + */ + public function setBonusRemaps($bonusRemaps) + { + $this->container['bonusRemaps'] = $bonusRemaps; + + return $this; + } + + /** + * Gets lastRemapDate + * + * @return \DateTime + */ + public function getLastRemapDate() + { + return $this->container['lastRemapDate']; + } + + /** + * Sets lastRemapDate + * + * @param \DateTime $lastRemapDate Datetime of last neural remap, including usage of bonus remaps + * + * @return $this + */ + public function setLastRemapDate($lastRemapDate) + { + $this->container['lastRemapDate'] = $lastRemapDate; + + return $this; + } + + /** + * Gets accruedRemapCooldownDate + * + * @return \DateTime + */ + public function getAccruedRemapCooldownDate() + { + return $this->container['accruedRemapCooldownDate']; + } + + /** + * Sets accruedRemapCooldownDate + * + * @param \DateTime $accruedRemapCooldownDate Neural remapping cooldown after a character uses remap accrued over time + * + * @return $this + */ + public function setAccruedRemapCooldownDate($accruedRemapCooldownDate) + { + $this->container['accruedRemapCooldownDate'] = $accruedRemapCooldownDate; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdBlueprints200Ok.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdBlueprints200Ok.php new file mode 100644 index 0000000..983f367 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdBlueprints200Ok.php @@ -0,0 +1,813 @@ + 'int', + 'typeId' => 'int', + 'locationId' => 'int', + 'locationFlag' => 'string', + 'quantity' => 'int', + 'timeEfficiency' => 'int', + 'materialEfficiency' => 'int', + 'runs' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'itemId' => 'int64', + 'typeId' => 'int32', + 'locationId' => 'int64', + 'locationFlag' => null, + 'quantity' => 'int32', + 'timeEfficiency' => 'int32', + 'materialEfficiency' => 'int32', + 'runs' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'itemId' => 'item_id', + 'typeId' => 'type_id', + 'locationId' => 'location_id', + 'locationFlag' => 'location_flag', + 'quantity' => 'quantity', + 'timeEfficiency' => 'time_efficiency', + 'materialEfficiency' => 'material_efficiency', + 'runs' => 'runs' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'itemId' => 'setItemId', + 'typeId' => 'setTypeId', + 'locationId' => 'setLocationId', + 'locationFlag' => 'setLocationFlag', + 'quantity' => 'setQuantity', + 'timeEfficiency' => 'setTimeEfficiency', + 'materialEfficiency' => 'setMaterialEfficiency', + 'runs' => 'setRuns' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'itemId' => 'getItemId', + 'typeId' => 'getTypeId', + 'locationId' => 'getLocationId', + 'locationFlag' => 'getLocationFlag', + 'quantity' => 'getQuantity', + 'timeEfficiency' => 'getTimeEfficiency', + 'materialEfficiency' => 'getMaterialEfficiency', + 'runs' => 'getRuns' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const LOCATION_FLAG_AUTO_FIT = 'AutoFit'; + const LOCATION_FLAG_CARGO = 'Cargo'; + const LOCATION_FLAG_CORPSE_BAY = 'CorpseBay'; + const LOCATION_FLAG_DRONE_BAY = 'DroneBay'; + const LOCATION_FLAG_FLEET_HANGAR = 'FleetHangar'; + const LOCATION_FLAG_DELIVERIES = 'Deliveries'; + const LOCATION_FLAG_HIDDEN_MODIFIERS = 'HiddenModifiers'; + const LOCATION_FLAG_HANGAR = 'Hangar'; + const LOCATION_FLAG_HANGAR_ALL = 'HangarAll'; + const LOCATION_FLAG_LO_SLOT0 = 'LoSlot0'; + const LOCATION_FLAG_LO_SLOT1 = 'LoSlot1'; + const LOCATION_FLAG_LO_SLOT2 = 'LoSlot2'; + const LOCATION_FLAG_LO_SLOT3 = 'LoSlot3'; + const LOCATION_FLAG_LO_SLOT4 = 'LoSlot4'; + const LOCATION_FLAG_LO_SLOT5 = 'LoSlot5'; + const LOCATION_FLAG_LO_SLOT6 = 'LoSlot6'; + const LOCATION_FLAG_LO_SLOT7 = 'LoSlot7'; + const LOCATION_FLAG_MED_SLOT0 = 'MedSlot0'; + const LOCATION_FLAG_MED_SLOT1 = 'MedSlot1'; + const LOCATION_FLAG_MED_SLOT2 = 'MedSlot2'; + const LOCATION_FLAG_MED_SLOT3 = 'MedSlot3'; + const LOCATION_FLAG_MED_SLOT4 = 'MedSlot4'; + const LOCATION_FLAG_MED_SLOT5 = 'MedSlot5'; + const LOCATION_FLAG_MED_SLOT6 = 'MedSlot6'; + const LOCATION_FLAG_MED_SLOT7 = 'MedSlot7'; + const LOCATION_FLAG_HI_SLOT0 = 'HiSlot0'; + const LOCATION_FLAG_HI_SLOT1 = 'HiSlot1'; + const LOCATION_FLAG_HI_SLOT2 = 'HiSlot2'; + const LOCATION_FLAG_HI_SLOT3 = 'HiSlot3'; + const LOCATION_FLAG_HI_SLOT4 = 'HiSlot4'; + const LOCATION_FLAG_HI_SLOT5 = 'HiSlot5'; + const LOCATION_FLAG_HI_SLOT6 = 'HiSlot6'; + const LOCATION_FLAG_HI_SLOT7 = 'HiSlot7'; + const LOCATION_FLAG_ASSET_SAFETY = 'AssetSafety'; + const LOCATION_FLAG_LOCKED = 'Locked'; + const LOCATION_FLAG_UNLOCKED = 'Unlocked'; + const LOCATION_FLAG_IMPLANT = 'Implant'; + const LOCATION_FLAG_QUAFE_BAY = 'QuafeBay'; + const LOCATION_FLAG_RIG_SLOT0 = 'RigSlot0'; + const LOCATION_FLAG_RIG_SLOT1 = 'RigSlot1'; + const LOCATION_FLAG_RIG_SLOT2 = 'RigSlot2'; + const LOCATION_FLAG_RIG_SLOT3 = 'RigSlot3'; + const LOCATION_FLAG_RIG_SLOT4 = 'RigSlot4'; + const LOCATION_FLAG_RIG_SLOT5 = 'RigSlot5'; + const LOCATION_FLAG_RIG_SLOT6 = 'RigSlot6'; + const LOCATION_FLAG_RIG_SLOT7 = 'RigSlot7'; + const LOCATION_FLAG_SHIP_HANGAR = 'ShipHangar'; + const LOCATION_FLAG_SPECIALIZED_FUEL_BAY = 'SpecializedFuelBay'; + const LOCATION_FLAG_SPECIALIZED_ORE_HOLD = 'SpecializedOreHold'; + const LOCATION_FLAG_SPECIALIZED_GAS_HOLD = 'SpecializedGasHold'; + const LOCATION_FLAG_SPECIALIZED_MINERAL_HOLD = 'SpecializedMineralHold'; + const LOCATION_FLAG_SPECIALIZED_SALVAGE_HOLD = 'SpecializedSalvageHold'; + const LOCATION_FLAG_SPECIALIZED_SHIP_HOLD = 'SpecializedShipHold'; + const LOCATION_FLAG_SPECIALIZED_SMALL_SHIP_HOLD = 'SpecializedSmallShipHold'; + const LOCATION_FLAG_SPECIALIZED_MEDIUM_SHIP_HOLD = 'SpecializedMediumShipHold'; + const LOCATION_FLAG_SPECIALIZED_LARGE_SHIP_HOLD = 'SpecializedLargeShipHold'; + const LOCATION_FLAG_SPECIALIZED_INDUSTRIAL_SHIP_HOLD = 'SpecializedIndustrialShipHold'; + const LOCATION_FLAG_SPECIALIZED_AMMO_HOLD = 'SpecializedAmmoHold'; + const LOCATION_FLAG_SPECIALIZED_COMMAND_CENTER_HOLD = 'SpecializedCommandCenterHold'; + const LOCATION_FLAG_SPECIALIZED_PLANETARY_COMMODITIES_HOLD = 'SpecializedPlanetaryCommoditiesHold'; + const LOCATION_FLAG_SPECIALIZED_MATERIAL_BAY = 'SpecializedMaterialBay'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT0 = 'SubSystemSlot0'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT1 = 'SubSystemSlot1'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT2 = 'SubSystemSlot2'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT3 = 'SubSystemSlot3'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT4 = 'SubSystemSlot4'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT5 = 'SubSystemSlot5'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT6 = 'SubSystemSlot6'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT7 = 'SubSystemSlot7'; + const LOCATION_FLAG_FIGHTER_BAY = 'FighterBay'; + const LOCATION_FLAG_FIGHTER_TUBE0 = 'FighterTube0'; + const LOCATION_FLAG_FIGHTER_TUBE1 = 'FighterTube1'; + const LOCATION_FLAG_FIGHTER_TUBE2 = 'FighterTube2'; + const LOCATION_FLAG_FIGHTER_TUBE3 = 'FighterTube3'; + const LOCATION_FLAG_FIGHTER_TUBE4 = 'FighterTube4'; + const LOCATION_FLAG_MODULE = 'Module'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getLocationFlagAllowableValues() + { + return [ + self::LOCATION_FLAG_AUTO_FIT, + self::LOCATION_FLAG_CARGO, + self::LOCATION_FLAG_CORPSE_BAY, + self::LOCATION_FLAG_DRONE_BAY, + self::LOCATION_FLAG_FLEET_HANGAR, + self::LOCATION_FLAG_DELIVERIES, + self::LOCATION_FLAG_HIDDEN_MODIFIERS, + self::LOCATION_FLAG_HANGAR, + self::LOCATION_FLAG_HANGAR_ALL, + self::LOCATION_FLAG_LO_SLOT0, + self::LOCATION_FLAG_LO_SLOT1, + self::LOCATION_FLAG_LO_SLOT2, + self::LOCATION_FLAG_LO_SLOT3, + self::LOCATION_FLAG_LO_SLOT4, + self::LOCATION_FLAG_LO_SLOT5, + self::LOCATION_FLAG_LO_SLOT6, + self::LOCATION_FLAG_LO_SLOT7, + self::LOCATION_FLAG_MED_SLOT0, + self::LOCATION_FLAG_MED_SLOT1, + self::LOCATION_FLAG_MED_SLOT2, + self::LOCATION_FLAG_MED_SLOT3, + self::LOCATION_FLAG_MED_SLOT4, + self::LOCATION_FLAG_MED_SLOT5, + self::LOCATION_FLAG_MED_SLOT6, + self::LOCATION_FLAG_MED_SLOT7, + self::LOCATION_FLAG_HI_SLOT0, + self::LOCATION_FLAG_HI_SLOT1, + self::LOCATION_FLAG_HI_SLOT2, + self::LOCATION_FLAG_HI_SLOT3, + self::LOCATION_FLAG_HI_SLOT4, + self::LOCATION_FLAG_HI_SLOT5, + self::LOCATION_FLAG_HI_SLOT6, + self::LOCATION_FLAG_HI_SLOT7, + self::LOCATION_FLAG_ASSET_SAFETY, + self::LOCATION_FLAG_LOCKED, + self::LOCATION_FLAG_UNLOCKED, + self::LOCATION_FLAG_IMPLANT, + self::LOCATION_FLAG_QUAFE_BAY, + self::LOCATION_FLAG_RIG_SLOT0, + self::LOCATION_FLAG_RIG_SLOT1, + self::LOCATION_FLAG_RIG_SLOT2, + self::LOCATION_FLAG_RIG_SLOT3, + self::LOCATION_FLAG_RIG_SLOT4, + self::LOCATION_FLAG_RIG_SLOT5, + self::LOCATION_FLAG_RIG_SLOT6, + self::LOCATION_FLAG_RIG_SLOT7, + self::LOCATION_FLAG_SHIP_HANGAR, + self::LOCATION_FLAG_SPECIALIZED_FUEL_BAY, + self::LOCATION_FLAG_SPECIALIZED_ORE_HOLD, + self::LOCATION_FLAG_SPECIALIZED_GAS_HOLD, + self::LOCATION_FLAG_SPECIALIZED_MINERAL_HOLD, + self::LOCATION_FLAG_SPECIALIZED_SALVAGE_HOLD, + self::LOCATION_FLAG_SPECIALIZED_SHIP_HOLD, + self::LOCATION_FLAG_SPECIALIZED_SMALL_SHIP_HOLD, + self::LOCATION_FLAG_SPECIALIZED_MEDIUM_SHIP_HOLD, + self::LOCATION_FLAG_SPECIALIZED_LARGE_SHIP_HOLD, + self::LOCATION_FLAG_SPECIALIZED_INDUSTRIAL_SHIP_HOLD, + self::LOCATION_FLAG_SPECIALIZED_AMMO_HOLD, + self::LOCATION_FLAG_SPECIALIZED_COMMAND_CENTER_HOLD, + self::LOCATION_FLAG_SPECIALIZED_PLANETARY_COMMODITIES_HOLD, + self::LOCATION_FLAG_SPECIALIZED_MATERIAL_BAY, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT0, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT1, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT2, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT3, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT4, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT5, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT6, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT7, + self::LOCATION_FLAG_FIGHTER_BAY, + self::LOCATION_FLAG_FIGHTER_TUBE0, + self::LOCATION_FLAG_FIGHTER_TUBE1, + self::LOCATION_FLAG_FIGHTER_TUBE2, + self::LOCATION_FLAG_FIGHTER_TUBE3, + self::LOCATION_FLAG_FIGHTER_TUBE4, + self::LOCATION_FLAG_MODULE, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['itemId'] = isset($data['itemId']) ? $data['itemId'] : null; + $this->container['typeId'] = isset($data['typeId']) ? $data['typeId'] : null; + $this->container['locationId'] = isset($data['locationId']) ? $data['locationId'] : null; + $this->container['locationFlag'] = isset($data['locationFlag']) ? $data['locationFlag'] : null; + $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null; + $this->container['timeEfficiency'] = isset($data['timeEfficiency']) ? $data['timeEfficiency'] : null; + $this->container['materialEfficiency'] = isset($data['materialEfficiency']) ? $data['materialEfficiency'] : null; + $this->container['runs'] = isset($data['runs']) ? $data['runs'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['itemId'] === null) { + $invalidProperties[] = "'itemId' can't be null"; + } + if ($this->container['typeId'] === null) { + $invalidProperties[] = "'typeId' can't be null"; + } + if ($this->container['locationId'] === null) { + $invalidProperties[] = "'locationId' can't be null"; + } + if ($this->container['locationFlag'] === null) { + $invalidProperties[] = "'locationFlag' can't be null"; + } + $allowedValues = $this->getLocationFlagAllowableValues(); + if (!in_array($this->container['locationFlag'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'locationFlag', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['quantity'] === null) { + $invalidProperties[] = "'quantity' can't be null"; + } + if (($this->container['quantity'] < -2)) { + $invalidProperties[] = "invalid value for 'quantity', must be bigger than or equal to -2."; + } + + if ($this->container['timeEfficiency'] === null) { + $invalidProperties[] = "'timeEfficiency' can't be null"; + } + if (($this->container['timeEfficiency'] > 20)) { + $invalidProperties[] = "invalid value for 'timeEfficiency', must be smaller than or equal to 20."; + } + + if (($this->container['timeEfficiency'] < 0)) { + $invalidProperties[] = "invalid value for 'timeEfficiency', must be bigger than or equal to 0."; + } + + if ($this->container['materialEfficiency'] === null) { + $invalidProperties[] = "'materialEfficiency' can't be null"; + } + if (($this->container['materialEfficiency'] > 25)) { + $invalidProperties[] = "invalid value for 'materialEfficiency', must be smaller than or equal to 25."; + } + + if (($this->container['materialEfficiency'] < 0)) { + $invalidProperties[] = "invalid value for 'materialEfficiency', must be bigger than or equal to 0."; + } + + if ($this->container['runs'] === null) { + $invalidProperties[] = "'runs' can't be null"; + } + if (($this->container['runs'] < -1)) { + $invalidProperties[] = "invalid value for 'runs', must be bigger than or equal to -1."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['itemId'] === null) { + return false; + } + if ($this->container['typeId'] === null) { + return false; + } + if ($this->container['locationId'] === null) { + return false; + } + if ($this->container['locationFlag'] === null) { + return false; + } + $allowedValues = $this->getLocationFlagAllowableValues(); + if (!in_array($this->container['locationFlag'], $allowedValues)) { + return false; + } + if ($this->container['quantity'] === null) { + return false; + } + if ($this->container['quantity'] < -2) { + return false; + } + if ($this->container['timeEfficiency'] === null) { + return false; + } + if ($this->container['timeEfficiency'] > 20) { + return false; + } + if ($this->container['timeEfficiency'] < 0) { + return false; + } + if ($this->container['materialEfficiency'] === null) { + return false; + } + if ($this->container['materialEfficiency'] > 25) { + return false; + } + if ($this->container['materialEfficiency'] < 0) { + return false; + } + if ($this->container['runs'] === null) { + return false; + } + if ($this->container['runs'] < -1) { + return false; + } + return true; + } + + + /** + * Gets itemId + * + * @return int + */ + public function getItemId() + { + return $this->container['itemId']; + } + + /** + * Sets itemId + * + * @param int $itemId Unique ID for this item. + * + * @return $this + */ + public function setItemId($itemId) + { + $this->container['itemId'] = $itemId; + + return $this; + } + + /** + * Gets typeId + * + * @return int + */ + public function getTypeId() + { + return $this->container['typeId']; + } + + /** + * Sets typeId + * + * @param int $typeId type_id integer + * + * @return $this + */ + public function setTypeId($typeId) + { + $this->container['typeId'] = $typeId; + + return $this; + } + + /** + * Gets locationId + * + * @return int + */ + public function getLocationId() + { + return $this->container['locationId']; + } + + /** + * Sets locationId + * + * @param int $locationId References a solar system, station or item_id if this blueprint is located within a container. If the return value is an item_id, then the Character AssetList API must be queried to find the container using the given item_id to determine the correct location of the Blueprint. + * + * @return $this + */ + public function setLocationId($locationId) + { + $this->container['locationId'] = $locationId; + + return $this; + } + + /** + * Gets locationFlag + * + * @return string + */ + public function getLocationFlag() + { + return $this->container['locationFlag']; + } + + /** + * Sets locationFlag + * + * @param string $locationFlag Type of the location_id + * + * @return $this + */ + public function setLocationFlag($locationFlag) + { + $allowedValues = $this->getLocationFlagAllowableValues(); + if (!in_array($locationFlag, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'locationFlag', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['locationFlag'] = $locationFlag; + + return $this; + } + + /** + * Gets quantity + * + * @return int + */ + public function getQuantity() + { + return $this->container['quantity']; + } + + /** + * Sets quantity + * + * @param int $quantity A range of numbers with a minimum of -2 and no maximum value where -1 is an original and -2 is a copy. It can be a positive integer if it is a stack of blueprint originals fresh from the market (e.g. no activities performed on them yet). + * + * @return $this + */ + public function setQuantity($quantity) + { + + if (($quantity < -2)) { + throw new \InvalidArgumentException('invalid value for $quantity when calling GetCharactersCharacterIdBlueprints200Ok., must be bigger than or equal to -2.'); + } + + $this->container['quantity'] = $quantity; + + return $this; + } + + /** + * Gets timeEfficiency + * + * @return int + */ + public function getTimeEfficiency() + { + return $this->container['timeEfficiency']; + } + + /** + * Sets timeEfficiency + * + * @param int $timeEfficiency Time Efficiency Level of the blueprint. + * + * @return $this + */ + public function setTimeEfficiency($timeEfficiency) + { + + if (($timeEfficiency > 20)) { + throw new \InvalidArgumentException('invalid value for $timeEfficiency when calling GetCharactersCharacterIdBlueprints200Ok., must be smaller than or equal to 20.'); + } + if (($timeEfficiency < 0)) { + throw new \InvalidArgumentException('invalid value for $timeEfficiency when calling GetCharactersCharacterIdBlueprints200Ok., must be bigger than or equal to 0.'); + } + + $this->container['timeEfficiency'] = $timeEfficiency; + + return $this; + } + + /** + * Gets materialEfficiency + * + * @return int + */ + public function getMaterialEfficiency() + { + return $this->container['materialEfficiency']; + } + + /** + * Sets materialEfficiency + * + * @param int $materialEfficiency Material Efficiency Level of the blueprint. + * + * @return $this + */ + public function setMaterialEfficiency($materialEfficiency) + { + + if (($materialEfficiency > 25)) { + throw new \InvalidArgumentException('invalid value for $materialEfficiency when calling GetCharactersCharacterIdBlueprints200Ok., must be smaller than or equal to 25.'); + } + if (($materialEfficiency < 0)) { + throw new \InvalidArgumentException('invalid value for $materialEfficiency when calling GetCharactersCharacterIdBlueprints200Ok., must be bigger than or equal to 0.'); + } + + $this->container['materialEfficiency'] = $materialEfficiency; + + return $this; + } + + /** + * Gets runs + * + * @return int + */ + public function getRuns() + { + return $this->container['runs']; + } + + /** + * Sets runs + * + * @param int $runs Number of runs remaining if the blueprint is a copy, -1 if it is an original. + * + * @return $this + */ + public function setRuns($runs) + { + + if (($runs < -1)) { + throw new \InvalidArgumentException('invalid value for $runs when calling GetCharactersCharacterIdBlueprints200Ok., must be bigger than or equal to -1.'); + } + + $this->container['runs'] = $runs; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdBookmarks200Ok.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdBookmarks200Ok.php new file mode 100644 index 0000000..59a0840 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdBookmarks200Ok.php @@ -0,0 +1,579 @@ + 'int', + 'folderId' => 'int', + 'created' => '\DateTime', + 'label' => 'string', + 'notes' => 'string', + 'locationId' => 'int', + 'creatorId' => 'int', + 'item' => '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdBookmarksItem', + 'coordinates' => '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdBookmarksCoordinates' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'bookmarkId' => 'int32', + 'folderId' => 'int32', + 'created' => 'date-time', + 'label' => null, + 'notes' => null, + 'locationId' => 'int32', + 'creatorId' => 'int32', + 'item' => null, + 'coordinates' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'bookmarkId' => 'bookmark_id', + 'folderId' => 'folder_id', + 'created' => 'created', + 'label' => 'label', + 'notes' => 'notes', + 'locationId' => 'location_id', + 'creatorId' => 'creator_id', + 'item' => 'item', + 'coordinates' => 'coordinates' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'bookmarkId' => 'setBookmarkId', + 'folderId' => 'setFolderId', + 'created' => 'setCreated', + 'label' => 'setLabel', + 'notes' => 'setNotes', + 'locationId' => 'setLocationId', + 'creatorId' => 'setCreatorId', + 'item' => 'setItem', + 'coordinates' => 'setCoordinates' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'bookmarkId' => 'getBookmarkId', + 'folderId' => 'getFolderId', + 'created' => 'getCreated', + 'label' => 'getLabel', + 'notes' => 'getNotes', + 'locationId' => 'getLocationId', + 'creatorId' => 'getCreatorId', + 'item' => 'getItem', + 'coordinates' => 'getCoordinates' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['bookmarkId'] = isset($data['bookmarkId']) ? $data['bookmarkId'] : null; + $this->container['folderId'] = isset($data['folderId']) ? $data['folderId'] : null; + $this->container['created'] = isset($data['created']) ? $data['created'] : null; + $this->container['label'] = isset($data['label']) ? $data['label'] : null; + $this->container['notes'] = isset($data['notes']) ? $data['notes'] : null; + $this->container['locationId'] = isset($data['locationId']) ? $data['locationId'] : null; + $this->container['creatorId'] = isset($data['creatorId']) ? $data['creatorId'] : null; + $this->container['item'] = isset($data['item']) ? $data['item'] : null; + $this->container['coordinates'] = isset($data['coordinates']) ? $data['coordinates'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['bookmarkId'] === null) { + $invalidProperties[] = "'bookmarkId' can't be null"; + } + if ($this->container['created'] === null) { + $invalidProperties[] = "'created' can't be null"; + } + if ($this->container['label'] === null) { + $invalidProperties[] = "'label' can't be null"; + } + if ($this->container['notes'] === null) { + $invalidProperties[] = "'notes' can't be null"; + } + if ($this->container['locationId'] === null) { + $invalidProperties[] = "'locationId' can't be null"; + } + if ($this->container['creatorId'] === null) { + $invalidProperties[] = "'creatorId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['bookmarkId'] === null) { + return false; + } + if ($this->container['created'] === null) { + return false; + } + if ($this->container['label'] === null) { + return false; + } + if ($this->container['notes'] === null) { + return false; + } + if ($this->container['locationId'] === null) { + return false; + } + if ($this->container['creatorId'] === null) { + return false; + } + return true; + } + + + /** + * Gets bookmarkId + * + * @return int + */ + public function getBookmarkId() + { + return $this->container['bookmarkId']; + } + + /** + * Sets bookmarkId + * + * @param int $bookmarkId bookmark_id integer + * + * @return $this + */ + public function setBookmarkId($bookmarkId) + { + $this->container['bookmarkId'] = $bookmarkId; + + return $this; + } + + /** + * Gets folderId + * + * @return int + */ + public function getFolderId() + { + return $this->container['folderId']; + } + + /** + * Sets folderId + * + * @param int $folderId folder_id integer + * + * @return $this + */ + public function setFolderId($folderId) + { + $this->container['folderId'] = $folderId; + + return $this; + } + + /** + * Gets created + * + * @return \DateTime + */ + public function getCreated() + { + return $this->container['created']; + } + + /** + * Sets created + * + * @param \DateTime $created created string + * + * @return $this + */ + public function setCreated($created) + { + $this->container['created'] = $created; + + return $this; + } + + /** + * Gets label + * + * @return string + */ + public function getLabel() + { + return $this->container['label']; + } + + /** + * Sets label + * + * @param string $label label string + * + * @return $this + */ + public function setLabel($label) + { + $this->container['label'] = $label; + + return $this; + } + + /** + * Gets notes + * + * @return string + */ + public function getNotes() + { + return $this->container['notes']; + } + + /** + * Sets notes + * + * @param string $notes notes string + * + * @return $this + */ + public function setNotes($notes) + { + $this->container['notes'] = $notes; + + return $this; + } + + /** + * Gets locationId + * + * @return int + */ + public function getLocationId() + { + return $this->container['locationId']; + } + + /** + * Sets locationId + * + * @param int $locationId location_id integer + * + * @return $this + */ + public function setLocationId($locationId) + { + $this->container['locationId'] = $locationId; + + return $this; + } + + /** + * Gets creatorId + * + * @return int + */ + public function getCreatorId() + { + return $this->container['creatorId']; + } + + /** + * Sets creatorId + * + * @param int $creatorId creator_id integer + * + * @return $this + */ + public function setCreatorId($creatorId) + { + $this->container['creatorId'] = $creatorId; + + return $this; + } + + /** + * Gets item + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdBookmarksItem + */ + public function getItem() + { + return $this->container['item']; + } + + /** + * Sets item + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdBookmarksItem $item item + * + * @return $this + */ + public function setItem($item) + { + $this->container['item'] = $item; + + return $this; + } + + /** + * Gets coordinates + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdBookmarksCoordinates + */ + public function getCoordinates() + { + return $this->container['coordinates']; + } + + /** + * Sets coordinates + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdBookmarksCoordinates $coordinates coordinates + * + * @return $this + */ + public function setCoordinates($coordinates) + { + $this->container['coordinates'] = $coordinates; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdBookmarksCoordinates.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdBookmarksCoordinates.php new file mode 100644 index 0000000..5c98a43 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdBookmarksCoordinates.php @@ -0,0 +1,381 @@ + 'double', + 'y' => 'double', + 'z' => 'double' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'x' => 'double', + 'y' => 'double', + 'z' => 'double' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'x' => 'x', + 'y' => 'y', + 'z' => 'z' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'x' => 'setX', + 'y' => 'setY', + 'z' => 'setZ' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'x' => 'getX', + 'y' => 'getY', + 'z' => 'getZ' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['x'] = isset($data['x']) ? $data['x'] : null; + $this->container['y'] = isset($data['y']) ? $data['y'] : null; + $this->container['z'] = isset($data['z']) ? $data['z'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['x'] === null) { + $invalidProperties[] = "'x' can't be null"; + } + if ($this->container['y'] === null) { + $invalidProperties[] = "'y' can't be null"; + } + if ($this->container['z'] === null) { + $invalidProperties[] = "'z' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['x'] === null) { + return false; + } + if ($this->container['y'] === null) { + return false; + } + if ($this->container['z'] === null) { + return false; + } + return true; + } + + + /** + * Gets x + * + * @return double + */ + public function getX() + { + return $this->container['x']; + } + + /** + * Sets x + * + * @param double $x x number + * + * @return $this + */ + public function setX($x) + { + $this->container['x'] = $x; + + return $this; + } + + /** + * Gets y + * + * @return double + */ + public function getY() + { + return $this->container['y']; + } + + /** + * Sets y + * + * @param double $y y number + * + * @return $this + */ + public function setY($y) + { + $this->container['y'] = $y; + + return $this; + } + + /** + * Gets z + * + * @return double + */ + public function getZ() + { + return $this->container['z']; + } + + /** + * Sets z + * + * @param double $z z number + * + * @return $this + */ + public function setZ($z) + { + $this->container['z'] = $z; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdBookmarksFolders200Ok.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdBookmarksFolders200Ok.php new file mode 100644 index 0000000..4dc8756 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdBookmarksFolders200Ok.php @@ -0,0 +1,345 @@ + 'int', + 'name' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'folderId' => 'int32', + 'name' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'folderId' => 'folder_id', + 'name' => 'name' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'folderId' => 'setFolderId', + 'name' => 'setName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'folderId' => 'getFolderId', + 'name' => 'getName' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['folderId'] = isset($data['folderId']) ? $data['folderId'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['folderId'] === null) { + $invalidProperties[] = "'folderId' can't be null"; + } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['folderId'] === null) { + return false; + } + if ($this->container['name'] === null) { + return false; + } + return true; + } + + + /** + * Gets folderId + * + * @return int + */ + public function getFolderId() + { + return $this->container['folderId']; + } + + /** + * Sets folderId + * + * @param int $folderId folder_id integer + * + * @return $this + */ + public function setFolderId($folderId) + { + $this->container['folderId'] = $folderId; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdBookmarksItem.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdBookmarksItem.php new file mode 100644 index 0000000..b288b6f --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdBookmarksItem.php @@ -0,0 +1,345 @@ + 'int', + 'typeId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'itemId' => 'int64', + 'typeId' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'itemId' => 'item_id', + 'typeId' => 'type_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'itemId' => 'setItemId', + 'typeId' => 'setTypeId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'itemId' => 'getItemId', + 'typeId' => 'getTypeId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['itemId'] = isset($data['itemId']) ? $data['itemId'] : null; + $this->container['typeId'] = isset($data['typeId']) ? $data['typeId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['itemId'] === null) { + $invalidProperties[] = "'itemId' can't be null"; + } + if ($this->container['typeId'] === null) { + $invalidProperties[] = "'typeId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['itemId'] === null) { + return false; + } + if ($this->container['typeId'] === null) { + return false; + } + return true; + } + + + /** + * Gets itemId + * + * @return int + */ + public function getItemId() + { + return $this->container['itemId']; + } + + /** + * Sets itemId + * + * @param int $itemId item_id integer + * + * @return $this + */ + public function setItemId($itemId) + { + $this->container['itemId'] = $itemId; + + return $this; + } + + /** + * Gets typeId + * + * @return int + */ + public function getTypeId() + { + return $this->container['typeId']; + } + + /** + * Sets typeId + * + * @param int $typeId type_id integer + * + * @return $this + */ + public function setTypeId($typeId) + { + $this->container['typeId'] = $typeId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdCalendar200Ok.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdCalendar200Ok.php new file mode 100644 index 0000000..214fbd6 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdCalendar200Ok.php @@ -0,0 +1,463 @@ + 'int', + 'eventDate' => '\DateTime', + 'title' => 'string', + 'importance' => 'int', + 'eventResponse' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'eventId' => 'int32', + 'eventDate' => 'date-time', + 'title' => null, + 'importance' => 'int32', + 'eventResponse' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'eventId' => 'event_id', + 'eventDate' => 'event_date', + 'title' => 'title', + 'importance' => 'importance', + 'eventResponse' => 'event_response' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'eventId' => 'setEventId', + 'eventDate' => 'setEventDate', + 'title' => 'setTitle', + 'importance' => 'setImportance', + 'eventResponse' => 'setEventResponse' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'eventId' => 'getEventId', + 'eventDate' => 'getEventDate', + 'title' => 'getTitle', + 'importance' => 'getImportance', + 'eventResponse' => 'getEventResponse' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const EVENT_RESPONSE_DECLINED = 'declined'; + const EVENT_RESPONSE_NOT_RESPONDED = 'not_responded'; + const EVENT_RESPONSE_ACCEPTED = 'accepted'; + const EVENT_RESPONSE_TENTATIVE = 'tentative'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getEventResponseAllowableValues() + { + return [ + self::EVENT_RESPONSE_DECLINED, + self::EVENT_RESPONSE_NOT_RESPONDED, + self::EVENT_RESPONSE_ACCEPTED, + self::EVENT_RESPONSE_TENTATIVE, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['eventId'] = isset($data['eventId']) ? $data['eventId'] : null; + $this->container['eventDate'] = isset($data['eventDate']) ? $data['eventDate'] : null; + $this->container['title'] = isset($data['title']) ? $data['title'] : null; + $this->container['importance'] = isset($data['importance']) ? $data['importance'] : null; + $this->container['eventResponse'] = isset($data['eventResponse']) ? $data['eventResponse'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + $allowedValues = $this->getEventResponseAllowableValues(); + if (!in_array($this->container['eventResponse'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'eventResponse', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + $allowedValues = $this->getEventResponseAllowableValues(); + if (!in_array($this->container['eventResponse'], $allowedValues)) { + return false; + } + return true; + } + + + /** + * Gets eventId + * + * @return int + */ + public function getEventId() + { + return $this->container['eventId']; + } + + /** + * Sets eventId + * + * @param int $eventId event_id integer + * + * @return $this + */ + public function setEventId($eventId) + { + $this->container['eventId'] = $eventId; + + return $this; + } + + /** + * Gets eventDate + * + * @return \DateTime + */ + public function getEventDate() + { + return $this->container['eventDate']; + } + + /** + * Sets eventDate + * + * @param \DateTime $eventDate event_date string + * + * @return $this + */ + public function setEventDate($eventDate) + { + $this->container['eventDate'] = $eventDate; + + return $this; + } + + /** + * Gets title + * + * @return string + */ + public function getTitle() + { + return $this->container['title']; + } + + /** + * Sets title + * + * @param string $title title string + * + * @return $this + */ + public function setTitle($title) + { + $this->container['title'] = $title; + + return $this; + } + + /** + * Gets importance + * + * @return int + */ + public function getImportance() + { + return $this->container['importance']; + } + + /** + * Sets importance + * + * @param int $importance importance integer + * + * @return $this + */ + public function setImportance($importance) + { + $this->container['importance'] = $importance; + + return $this; + } + + /** + * Gets eventResponse + * + * @return string + */ + public function getEventResponse() + { + return $this->container['eventResponse']; + } + + /** + * Sets eventResponse + * + * @param string $eventResponse event_response string + * + * @return $this + */ + public function setEventResponse($eventResponse) + { + $allowedValues = $this->getEventResponseAllowableValues(); + if (!is_null($eventResponse) && !in_array($eventResponse, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'eventResponse', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['eventResponse'] = $eventResponse; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdCalendarEventIdAttendees200Ok.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdCalendarEventIdAttendees200Ok.php new file mode 100644 index 0000000..7afc1ef --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdCalendarEventIdAttendees200Ok.php @@ -0,0 +1,373 @@ + 'int', + 'eventResponse' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'characterId' => 'int32', + 'eventResponse' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'characterId' => 'character_id', + 'eventResponse' => 'event_response' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'characterId' => 'setCharacterId', + 'eventResponse' => 'setEventResponse' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'characterId' => 'getCharacterId', + 'eventResponse' => 'getEventResponse' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const EVENT_RESPONSE_DECLINED = 'declined'; + const EVENT_RESPONSE_NOT_RESPONDED = 'not_responded'; + const EVENT_RESPONSE_ACCEPTED = 'accepted'; + const EVENT_RESPONSE_TENTATIVE = 'tentative'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getEventResponseAllowableValues() + { + return [ + self::EVENT_RESPONSE_DECLINED, + self::EVENT_RESPONSE_NOT_RESPONDED, + self::EVENT_RESPONSE_ACCEPTED, + self::EVENT_RESPONSE_TENTATIVE, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['characterId'] = isset($data['characterId']) ? $data['characterId'] : null; + $this->container['eventResponse'] = isset($data['eventResponse']) ? $data['eventResponse'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + $allowedValues = $this->getEventResponseAllowableValues(); + if (!in_array($this->container['eventResponse'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'eventResponse', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + $allowedValues = $this->getEventResponseAllowableValues(); + if (!in_array($this->container['eventResponse'], $allowedValues)) { + return false; + } + return true; + } + + + /** + * Gets characterId + * + * @return int + */ + public function getCharacterId() + { + return $this->container['characterId']; + } + + /** + * Sets characterId + * + * @param int $characterId character_id integer + * + * @return $this + */ + public function setCharacterId($characterId) + { + $this->container['characterId'] = $characterId; + + return $this; + } + + /** + * Gets eventResponse + * + * @return string + */ + public function getEventResponse() + { + return $this->container['eventResponse']; + } + + /** + * Sets eventResponse + * + * @param string $eventResponse event_response string + * + * @return $this + */ + public function setEventResponse($eventResponse) + { + $allowedValues = $this->getEventResponseAllowableValues(); + if (!is_null($eventResponse) && !in_array($eventResponse, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'eventResponse', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['eventResponse'] = $eventResponse; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdCalendarEventIdOk.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdCalendarEventIdOk.php new file mode 100644 index 0000000..a2200c4 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdCalendarEventIdOk.php @@ -0,0 +1,675 @@ + 'int', + 'ownerId' => 'int', + 'ownerName' => 'string', + 'date' => '\DateTime', + 'title' => 'string', + 'duration' => 'int', + 'importance' => 'int', + 'response' => 'string', + 'text' => 'string', + 'ownerType' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'eventId' => 'int32', + 'ownerId' => 'int32', + 'ownerName' => null, + 'date' => 'date-time', + 'title' => null, + 'duration' => 'int32', + 'importance' => 'int32', + 'response' => null, + 'text' => null, + 'ownerType' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'eventId' => 'event_id', + 'ownerId' => 'owner_id', + 'ownerName' => 'owner_name', + 'date' => 'date', + 'title' => 'title', + 'duration' => 'duration', + 'importance' => 'importance', + 'response' => 'response', + 'text' => 'text', + 'ownerType' => 'owner_type' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'eventId' => 'setEventId', + 'ownerId' => 'setOwnerId', + 'ownerName' => 'setOwnerName', + 'date' => 'setDate', + 'title' => 'setTitle', + 'duration' => 'setDuration', + 'importance' => 'setImportance', + 'response' => 'setResponse', + 'text' => 'setText', + 'ownerType' => 'setOwnerType' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'eventId' => 'getEventId', + 'ownerId' => 'getOwnerId', + 'ownerName' => 'getOwnerName', + 'date' => 'getDate', + 'title' => 'getTitle', + 'duration' => 'getDuration', + 'importance' => 'getImportance', + 'response' => 'getResponse', + 'text' => 'getText', + 'ownerType' => 'getOwnerType' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const OWNER_TYPE_EVE_SERVER = 'eve_server'; + const OWNER_TYPE_CORPORATION = 'corporation'; + const OWNER_TYPE_FACTION = 'faction'; + const OWNER_TYPE_CHARACTER = 'character'; + const OWNER_TYPE_ALLIANCE = 'alliance'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getOwnerTypeAllowableValues() + { + return [ + self::OWNER_TYPE_EVE_SERVER, + self::OWNER_TYPE_CORPORATION, + self::OWNER_TYPE_FACTION, + self::OWNER_TYPE_CHARACTER, + self::OWNER_TYPE_ALLIANCE, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['eventId'] = isset($data['eventId']) ? $data['eventId'] : null; + $this->container['ownerId'] = isset($data['ownerId']) ? $data['ownerId'] : null; + $this->container['ownerName'] = isset($data['ownerName']) ? $data['ownerName'] : null; + $this->container['date'] = isset($data['date']) ? $data['date'] : null; + $this->container['title'] = isset($data['title']) ? $data['title'] : null; + $this->container['duration'] = isset($data['duration']) ? $data['duration'] : null; + $this->container['importance'] = isset($data['importance']) ? $data['importance'] : null; + $this->container['response'] = isset($data['response']) ? $data['response'] : null; + $this->container['text'] = isset($data['text']) ? $data['text'] : null; + $this->container['ownerType'] = isset($data['ownerType']) ? $data['ownerType'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['eventId'] === null) { + $invalidProperties[] = "'eventId' can't be null"; + } + if ($this->container['ownerId'] === null) { + $invalidProperties[] = "'ownerId' can't be null"; + } + if ($this->container['ownerName'] === null) { + $invalidProperties[] = "'ownerName' can't be null"; + } + if ($this->container['date'] === null) { + $invalidProperties[] = "'date' can't be null"; + } + if ($this->container['title'] === null) { + $invalidProperties[] = "'title' can't be null"; + } + if ($this->container['duration'] === null) { + $invalidProperties[] = "'duration' can't be null"; + } + if ($this->container['importance'] === null) { + $invalidProperties[] = "'importance' can't be null"; + } + if ($this->container['response'] === null) { + $invalidProperties[] = "'response' can't be null"; + } + if ($this->container['text'] === null) { + $invalidProperties[] = "'text' can't be null"; + } + if ($this->container['ownerType'] === null) { + $invalidProperties[] = "'ownerType' can't be null"; + } + $allowedValues = $this->getOwnerTypeAllowableValues(); + if (!in_array($this->container['ownerType'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'ownerType', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['eventId'] === null) { + return false; + } + if ($this->container['ownerId'] === null) { + return false; + } + if ($this->container['ownerName'] === null) { + return false; + } + if ($this->container['date'] === null) { + return false; + } + if ($this->container['title'] === null) { + return false; + } + if ($this->container['duration'] === null) { + return false; + } + if ($this->container['importance'] === null) { + return false; + } + if ($this->container['response'] === null) { + return false; + } + if ($this->container['text'] === null) { + return false; + } + if ($this->container['ownerType'] === null) { + return false; + } + $allowedValues = $this->getOwnerTypeAllowableValues(); + if (!in_array($this->container['ownerType'], $allowedValues)) { + return false; + } + return true; + } + + + /** + * Gets eventId + * + * @return int + */ + public function getEventId() + { + return $this->container['eventId']; + } + + /** + * Sets eventId + * + * @param int $eventId event_id integer + * + * @return $this + */ + public function setEventId($eventId) + { + $this->container['eventId'] = $eventId; + + return $this; + } + + /** + * Gets ownerId + * + * @return int + */ + public function getOwnerId() + { + return $this->container['ownerId']; + } + + /** + * Sets ownerId + * + * @param int $ownerId owner_id integer + * + * @return $this + */ + public function setOwnerId($ownerId) + { + $this->container['ownerId'] = $ownerId; + + return $this; + } + + /** + * Gets ownerName + * + * @return string + */ + public function getOwnerName() + { + return $this->container['ownerName']; + } + + /** + * Sets ownerName + * + * @param string $ownerName owner_name string + * + * @return $this + */ + public function setOwnerName($ownerName) + { + $this->container['ownerName'] = $ownerName; + + return $this; + } + + /** + * Gets date + * + * @return \DateTime + */ + public function getDate() + { + return $this->container['date']; + } + + /** + * Sets date + * + * @param \DateTime $date date string + * + * @return $this + */ + public function setDate($date) + { + $this->container['date'] = $date; + + return $this; + } + + /** + * Gets title + * + * @return string + */ + public function getTitle() + { + return $this->container['title']; + } + + /** + * Sets title + * + * @param string $title title string + * + * @return $this + */ + public function setTitle($title) + { + $this->container['title'] = $title; + + return $this; + } + + /** + * Gets duration + * + * @return int + */ + public function getDuration() + { + return $this->container['duration']; + } + + /** + * Sets duration + * + * @param int $duration Length in minutes + * + * @return $this + */ + public function setDuration($duration) + { + $this->container['duration'] = $duration; + + return $this; + } + + /** + * Gets importance + * + * @return int + */ + public function getImportance() + { + return $this->container['importance']; + } + + /** + * Sets importance + * + * @param int $importance importance integer + * + * @return $this + */ + public function setImportance($importance) + { + $this->container['importance'] = $importance; + + return $this; + } + + /** + * Gets response + * + * @return string + */ + public function getResponse() + { + return $this->container['response']; + } + + /** + * Sets response + * + * @param string $response response string + * + * @return $this + */ + public function setResponse($response) + { + $this->container['response'] = $response; + + return $this; + } + + /** + * Gets text + * + * @return string + */ + public function getText() + { + return $this->container['text']; + } + + /** + * Sets text + * + * @param string $text text string + * + * @return $this + */ + public function setText($text) + { + $this->container['text'] = $text; + + return $this; + } + + /** + * Gets ownerType + * + * @return string + */ + public function getOwnerType() + { + return $this->container['ownerType']; + } + + /** + * Sets ownerType + * + * @param string $ownerType owner_type string + * + * @return $this + */ + public function setOwnerType($ownerType) + { + $allowedValues = $this->getOwnerTypeAllowableValues(); + if (!in_array($ownerType, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'ownerType', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['ownerType'] = $ownerType; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdChatChannels200Ok.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdChatChannels200Ok.php new file mode 100644 index 0000000..1b83de4 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdChatChannels200Ok.php @@ -0,0 +1,633 @@ + 'int', + 'name' => 'string', + 'ownerId' => 'int', + 'comparisonKey' => 'string', + 'hasPassword' => 'bool', + 'motd' => 'string', + 'allowed' => '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdChatChannelsAllowed[]', + 'operators' => '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdChatChannelsOperator[]', + 'blocked' => '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdChatChannelsBlocked[]', + 'muted' => '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdChatChannelsMuted[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'channelId' => 'int32', + 'name' => null, + 'ownerId' => 'int32', + 'comparisonKey' => null, + 'hasPassword' => null, + 'motd' => null, + 'allowed' => null, + 'operators' => null, + 'blocked' => null, + 'muted' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'channelId' => 'channel_id', + 'name' => 'name', + 'ownerId' => 'owner_id', + 'comparisonKey' => 'comparison_key', + 'hasPassword' => 'has_password', + 'motd' => 'motd', + 'allowed' => 'allowed', + 'operators' => 'operators', + 'blocked' => 'blocked', + 'muted' => 'muted' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'channelId' => 'setChannelId', + 'name' => 'setName', + 'ownerId' => 'setOwnerId', + 'comparisonKey' => 'setComparisonKey', + 'hasPassword' => 'setHasPassword', + 'motd' => 'setMotd', + 'allowed' => 'setAllowed', + 'operators' => 'setOperators', + 'blocked' => 'setBlocked', + 'muted' => 'setMuted' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'channelId' => 'getChannelId', + 'name' => 'getName', + 'ownerId' => 'getOwnerId', + 'comparisonKey' => 'getComparisonKey', + 'hasPassword' => 'getHasPassword', + 'motd' => 'getMotd', + 'allowed' => 'getAllowed', + 'operators' => 'getOperators', + 'blocked' => 'getBlocked', + 'muted' => 'getMuted' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['channelId'] = isset($data['channelId']) ? $data['channelId'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['ownerId'] = isset($data['ownerId']) ? $data['ownerId'] : null; + $this->container['comparisonKey'] = isset($data['comparisonKey']) ? $data['comparisonKey'] : null; + $this->container['hasPassword'] = isset($data['hasPassword']) ? $data['hasPassword'] : null; + $this->container['motd'] = isset($data['motd']) ? $data['motd'] : null; + $this->container['allowed'] = isset($data['allowed']) ? $data['allowed'] : null; + $this->container['operators'] = isset($data['operators']) ? $data['operators'] : null; + $this->container['blocked'] = isset($data['blocked']) ? $data['blocked'] : null; + $this->container['muted'] = isset($data['muted']) ? $data['muted'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['channelId'] === null) { + $invalidProperties[] = "'channelId' can't be null"; + } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ($this->container['ownerId'] === null) { + $invalidProperties[] = "'ownerId' can't be null"; + } + if ($this->container['comparisonKey'] === null) { + $invalidProperties[] = "'comparisonKey' can't be null"; + } + if ($this->container['hasPassword'] === null) { + $invalidProperties[] = "'hasPassword' can't be null"; + } + if ($this->container['motd'] === null) { + $invalidProperties[] = "'motd' can't be null"; + } + if ($this->container['allowed'] === null) { + $invalidProperties[] = "'allowed' can't be null"; + } + if ($this->container['operators'] === null) { + $invalidProperties[] = "'operators' can't be null"; + } + if ($this->container['blocked'] === null) { + $invalidProperties[] = "'blocked' can't be null"; + } + if ($this->container['muted'] === null) { + $invalidProperties[] = "'muted' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['channelId'] === null) { + return false; + } + if ($this->container['name'] === null) { + return false; + } + if ($this->container['ownerId'] === null) { + return false; + } + if ($this->container['comparisonKey'] === null) { + return false; + } + if ($this->container['hasPassword'] === null) { + return false; + } + if ($this->container['motd'] === null) { + return false; + } + if ($this->container['allowed'] === null) { + return false; + } + if ($this->container['operators'] === null) { + return false; + } + if ($this->container['blocked'] === null) { + return false; + } + if ($this->container['muted'] === null) { + return false; + } + return true; + } + + + /** + * Gets channelId + * + * @return int + */ + public function getChannelId() + { + return $this->container['channelId']; + } + + /** + * Sets channelId + * + * @param int $channelId Unique channel ID. Always negative for player-created channels. Permanent (CCP created) channels have a positive ID, but don't appear in the API + * + * @return $this + */ + public function setChannelId($channelId) + { + $this->container['channelId'] = $channelId; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name Displayed name of channel + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets ownerId + * + * @return int + */ + public function getOwnerId() + { + return $this->container['ownerId']; + } + + /** + * Sets ownerId + * + * @param int $ownerId owner_id integer + * + * @return $this + */ + public function setOwnerId($ownerId) + { + $this->container['ownerId'] = $ownerId; + + return $this; + } + + /** + * Gets comparisonKey + * + * @return string + */ + public function getComparisonKey() + { + return $this->container['comparisonKey']; + } + + /** + * Sets comparisonKey + * + * @param string $comparisonKey Normalized, unique string used to compare channel names + * + * @return $this + */ + public function setComparisonKey($comparisonKey) + { + $this->container['comparisonKey'] = $comparisonKey; + + return $this; + } + + /** + * Gets hasPassword + * + * @return bool + */ + public function getHasPassword() + { + return $this->container['hasPassword']; + } + + /** + * Sets hasPassword + * + * @param bool $hasPassword If this is a password protected channel + * + * @return $this + */ + public function setHasPassword($hasPassword) + { + $this->container['hasPassword'] = $hasPassword; + + return $this; + } + + /** + * Gets motd + * + * @return string + */ + public function getMotd() + { + return $this->container['motd']; + } + + /** + * Sets motd + * + * @param string $motd Message of the day for this channel + * + * @return $this + */ + public function setMotd($motd) + { + $this->container['motd'] = $motd; + + return $this; + } + + /** + * Gets allowed + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdChatChannelsAllowed[] + */ + public function getAllowed() + { + return $this->container['allowed']; + } + + /** + * Sets allowed + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdChatChannelsAllowed[] $allowed allowed array + * + * @return $this + */ + public function setAllowed($allowed) + { + $this->container['allowed'] = $allowed; + + return $this; + } + + /** + * Gets operators + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdChatChannelsOperator[] + */ + public function getOperators() + { + return $this->container['operators']; + } + + /** + * Sets operators + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdChatChannelsOperator[] $operators operators array + * + * @return $this + */ + public function setOperators($operators) + { + $this->container['operators'] = $operators; + + return $this; + } + + /** + * Gets blocked + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdChatChannelsBlocked[] + */ + public function getBlocked() + { + return $this->container['blocked']; + } + + /** + * Sets blocked + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdChatChannelsBlocked[] $blocked blocked array + * + * @return $this + */ + public function setBlocked($blocked) + { + $this->container['blocked'] = $blocked; + + return $this; + } + + /** + * Gets muted + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdChatChannelsMuted[] + */ + public function getMuted() + { + return $this->container['muted']; + } + + /** + * Sets muted + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdChatChannelsMuted[] $muted muted array + * + * @return $this + */ + public function setMuted($muted) + { + $this->container['muted'] = $muted; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdChatChannelsAllowed.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdChatChannelsAllowed.php new file mode 100644 index 0000000..67ab9f2 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdChatChannelsAllowed.php @@ -0,0 +1,383 @@ + 'int', + 'accessorType' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'accessorId' => 'int32', + 'accessorType' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'accessorId' => 'accessor_id', + 'accessorType' => 'accessor_type' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'accessorId' => 'setAccessorId', + 'accessorType' => 'setAccessorType' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'accessorId' => 'getAccessorId', + 'accessorType' => 'getAccessorType' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const ACCESSOR_TYPE_CHARACTER = 'character'; + const ACCESSOR_TYPE_CORPORATION = 'corporation'; + const ACCESSOR_TYPE_ALLIANCE = 'alliance'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getAccessorTypeAllowableValues() + { + return [ + self::ACCESSOR_TYPE_CHARACTER, + self::ACCESSOR_TYPE_CORPORATION, + self::ACCESSOR_TYPE_ALLIANCE, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['accessorId'] = isset($data['accessorId']) ? $data['accessorId'] : null; + $this->container['accessorType'] = isset($data['accessorType']) ? $data['accessorType'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['accessorId'] === null) { + $invalidProperties[] = "'accessorId' can't be null"; + } + if ($this->container['accessorType'] === null) { + $invalidProperties[] = "'accessorType' can't be null"; + } + $allowedValues = $this->getAccessorTypeAllowableValues(); + if (!in_array($this->container['accessorType'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'accessorType', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['accessorId'] === null) { + return false; + } + if ($this->container['accessorType'] === null) { + return false; + } + $allowedValues = $this->getAccessorTypeAllowableValues(); + if (!in_array($this->container['accessorType'], $allowedValues)) { + return false; + } + return true; + } + + + /** + * Gets accessorId + * + * @return int + */ + public function getAccessorId() + { + return $this->container['accessorId']; + } + + /** + * Sets accessorId + * + * @param int $accessorId ID of an allowed channel member + * + * @return $this + */ + public function setAccessorId($accessorId) + { + $this->container['accessorId'] = $accessorId; + + return $this; + } + + /** + * Gets accessorType + * + * @return string + */ + public function getAccessorType() + { + return $this->container['accessorType']; + } + + /** + * Sets accessorType + * + * @param string $accessorType accessor_type string + * + * @return $this + */ + public function setAccessorType($accessorType) + { + $allowedValues = $this->getAccessorTypeAllowableValues(); + if (!in_array($accessorType, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'accessorType', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['accessorType'] = $accessorType; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdChatChannelsBlocked.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdChatChannelsBlocked.php new file mode 100644 index 0000000..8339f32 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdChatChannelsBlocked.php @@ -0,0 +1,443 @@ + 'int', + 'accessorType' => 'string', + 'reason' => 'string', + 'endAt' => '\DateTime' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'accessorId' => 'int32', + 'accessorType' => null, + 'reason' => null, + 'endAt' => 'date-time' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'accessorId' => 'accessor_id', + 'accessorType' => 'accessor_type', + 'reason' => 'reason', + 'endAt' => 'end_at' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'accessorId' => 'setAccessorId', + 'accessorType' => 'setAccessorType', + 'reason' => 'setReason', + 'endAt' => 'setEndAt' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'accessorId' => 'getAccessorId', + 'accessorType' => 'getAccessorType', + 'reason' => 'getReason', + 'endAt' => 'getEndAt' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const ACCESSOR_TYPE_CHARACTER = 'character'; + const ACCESSOR_TYPE_CORPORATION = 'corporation'; + const ACCESSOR_TYPE_ALLIANCE = 'alliance'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getAccessorTypeAllowableValues() + { + return [ + self::ACCESSOR_TYPE_CHARACTER, + self::ACCESSOR_TYPE_CORPORATION, + self::ACCESSOR_TYPE_ALLIANCE, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['accessorId'] = isset($data['accessorId']) ? $data['accessorId'] : null; + $this->container['accessorType'] = isset($data['accessorType']) ? $data['accessorType'] : null; + $this->container['reason'] = isset($data['reason']) ? $data['reason'] : null; + $this->container['endAt'] = isset($data['endAt']) ? $data['endAt'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['accessorId'] === null) { + $invalidProperties[] = "'accessorId' can't be null"; + } + if ($this->container['accessorType'] === null) { + $invalidProperties[] = "'accessorType' can't be null"; + } + $allowedValues = $this->getAccessorTypeAllowableValues(); + if (!in_array($this->container['accessorType'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'accessorType', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['accessorId'] === null) { + return false; + } + if ($this->container['accessorType'] === null) { + return false; + } + $allowedValues = $this->getAccessorTypeAllowableValues(); + if (!in_array($this->container['accessorType'], $allowedValues)) { + return false; + } + return true; + } + + + /** + * Gets accessorId + * + * @return int + */ + public function getAccessorId() + { + return $this->container['accessorId']; + } + + /** + * Sets accessorId + * + * @param int $accessorId ID of a blocked channel member + * + * @return $this + */ + public function setAccessorId($accessorId) + { + $this->container['accessorId'] = $accessorId; + + return $this; + } + + /** + * Gets accessorType + * + * @return string + */ + public function getAccessorType() + { + return $this->container['accessorType']; + } + + /** + * Sets accessorType + * + * @param string $accessorType accessor_type string + * + * @return $this + */ + public function setAccessorType($accessorType) + { + $allowedValues = $this->getAccessorTypeAllowableValues(); + if (!in_array($accessorType, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'accessorType', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['accessorType'] = $accessorType; + + return $this; + } + + /** + * Gets reason + * + * @return string + */ + public function getReason() + { + return $this->container['reason']; + } + + /** + * Sets reason + * + * @param string $reason Reason this accessor is blocked + * + * @return $this + */ + public function setReason($reason) + { + $this->container['reason'] = $reason; + + return $this; + } + + /** + * Gets endAt + * + * @return \DateTime + */ + public function getEndAt() + { + return $this->container['endAt']; + } + + /** + * Sets endAt + * + * @param \DateTime $endAt Time at which this accessor will no longer be blocked + * + * @return $this + */ + public function setEndAt($endAt) + { + $this->container['endAt'] = $endAt; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdChatChannelsMuted.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdChatChannelsMuted.php new file mode 100644 index 0000000..b4188b2 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdChatChannelsMuted.php @@ -0,0 +1,443 @@ + 'int', + 'accessorType' => 'string', + 'reason' => 'string', + 'endAt' => '\DateTime' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'accessorId' => 'int32', + 'accessorType' => null, + 'reason' => null, + 'endAt' => 'date-time' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'accessorId' => 'accessor_id', + 'accessorType' => 'accessor_type', + 'reason' => 'reason', + 'endAt' => 'end_at' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'accessorId' => 'setAccessorId', + 'accessorType' => 'setAccessorType', + 'reason' => 'setReason', + 'endAt' => 'setEndAt' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'accessorId' => 'getAccessorId', + 'accessorType' => 'getAccessorType', + 'reason' => 'getReason', + 'endAt' => 'getEndAt' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const ACCESSOR_TYPE_CHARACTER = 'character'; + const ACCESSOR_TYPE_CORPORATION = 'corporation'; + const ACCESSOR_TYPE_ALLIANCE = 'alliance'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getAccessorTypeAllowableValues() + { + return [ + self::ACCESSOR_TYPE_CHARACTER, + self::ACCESSOR_TYPE_CORPORATION, + self::ACCESSOR_TYPE_ALLIANCE, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['accessorId'] = isset($data['accessorId']) ? $data['accessorId'] : null; + $this->container['accessorType'] = isset($data['accessorType']) ? $data['accessorType'] : null; + $this->container['reason'] = isset($data['reason']) ? $data['reason'] : null; + $this->container['endAt'] = isset($data['endAt']) ? $data['endAt'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['accessorId'] === null) { + $invalidProperties[] = "'accessorId' can't be null"; + } + if ($this->container['accessorType'] === null) { + $invalidProperties[] = "'accessorType' can't be null"; + } + $allowedValues = $this->getAccessorTypeAllowableValues(); + if (!in_array($this->container['accessorType'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'accessorType', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['accessorId'] === null) { + return false; + } + if ($this->container['accessorType'] === null) { + return false; + } + $allowedValues = $this->getAccessorTypeAllowableValues(); + if (!in_array($this->container['accessorType'], $allowedValues)) { + return false; + } + return true; + } + + + /** + * Gets accessorId + * + * @return int + */ + public function getAccessorId() + { + return $this->container['accessorId']; + } + + /** + * Sets accessorId + * + * @param int $accessorId ID of a muted channel member + * + * @return $this + */ + public function setAccessorId($accessorId) + { + $this->container['accessorId'] = $accessorId; + + return $this; + } + + /** + * Gets accessorType + * + * @return string + */ + public function getAccessorType() + { + return $this->container['accessorType']; + } + + /** + * Sets accessorType + * + * @param string $accessorType accessor_type string + * + * @return $this + */ + public function setAccessorType($accessorType) + { + $allowedValues = $this->getAccessorTypeAllowableValues(); + if (!in_array($accessorType, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'accessorType', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['accessorType'] = $accessorType; + + return $this; + } + + /** + * Gets reason + * + * @return string + */ + public function getReason() + { + return $this->container['reason']; + } + + /** + * Sets reason + * + * @param string $reason Reason this accessor is muted + * + * @return $this + */ + public function setReason($reason) + { + $this->container['reason'] = $reason; + + return $this; + } + + /** + * Gets endAt + * + * @return \DateTime + */ + public function getEndAt() + { + return $this->container['endAt']; + } + + /** + * Sets endAt + * + * @param \DateTime $endAt Time at which this accessor will no longer be muted + * + * @return $this + */ + public function setEndAt($endAt) + { + $this->container['endAt'] = $endAt; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdChatChannelsOperator.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdChatChannelsOperator.php new file mode 100644 index 0000000..42759e7 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdChatChannelsOperator.php @@ -0,0 +1,383 @@ + 'int', + 'accessorType' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'accessorId' => 'int32', + 'accessorType' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'accessorId' => 'accessor_id', + 'accessorType' => 'accessor_type' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'accessorId' => 'setAccessorId', + 'accessorType' => 'setAccessorType' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'accessorId' => 'getAccessorId', + 'accessorType' => 'getAccessorType' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const ACCESSOR_TYPE_CHARACTER = 'character'; + const ACCESSOR_TYPE_CORPORATION = 'corporation'; + const ACCESSOR_TYPE_ALLIANCE = 'alliance'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getAccessorTypeAllowableValues() + { + return [ + self::ACCESSOR_TYPE_CHARACTER, + self::ACCESSOR_TYPE_CORPORATION, + self::ACCESSOR_TYPE_ALLIANCE, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['accessorId'] = isset($data['accessorId']) ? $data['accessorId'] : null; + $this->container['accessorType'] = isset($data['accessorType']) ? $data['accessorType'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['accessorId'] === null) { + $invalidProperties[] = "'accessorId' can't be null"; + } + if ($this->container['accessorType'] === null) { + $invalidProperties[] = "'accessorType' can't be null"; + } + $allowedValues = $this->getAccessorTypeAllowableValues(); + if (!in_array($this->container['accessorType'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'accessorType', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['accessorId'] === null) { + return false; + } + if ($this->container['accessorType'] === null) { + return false; + } + $allowedValues = $this->getAccessorTypeAllowableValues(); + if (!in_array($this->container['accessorType'], $allowedValues)) { + return false; + } + return true; + } + + + /** + * Gets accessorId + * + * @return int + */ + public function getAccessorId() + { + return $this->container['accessorId']; + } + + /** + * Sets accessorId + * + * @param int $accessorId ID of a channel operator + * + * @return $this + */ + public function setAccessorId($accessorId) + { + $this->container['accessorId'] = $accessorId; + + return $this; + } + + /** + * Gets accessorType + * + * @return string + */ + public function getAccessorType() + { + return $this->container['accessorType']; + } + + /** + * Sets accessorType + * + * @param string $accessorType accessor_type string + * + * @return $this + */ + public function setAccessorType($accessorType) + { + $allowedValues = $this->getAccessorTypeAllowableValues(); + if (!in_array($accessorType, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'accessorType', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['accessorType'] = $accessorType; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdClonesHomeLocation.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdClonesHomeLocation.php new file mode 100644 index 0000000..be0c5b1 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdClonesHomeLocation.php @@ -0,0 +1,369 @@ + 'int', + 'locationType' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'locationId' => 'int64', + 'locationType' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'locationId' => 'location_id', + 'locationType' => 'location_type' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'locationId' => 'setLocationId', + 'locationType' => 'setLocationType' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'locationId' => 'getLocationId', + 'locationType' => 'getLocationType' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const LOCATION_TYPE_STATION = 'station'; + const LOCATION_TYPE_STRUCTURE = 'structure'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getLocationTypeAllowableValues() + { + return [ + self::LOCATION_TYPE_STATION, + self::LOCATION_TYPE_STRUCTURE, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['locationId'] = isset($data['locationId']) ? $data['locationId'] : null; + $this->container['locationType'] = isset($data['locationType']) ? $data['locationType'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + $allowedValues = $this->getLocationTypeAllowableValues(); + if (!in_array($this->container['locationType'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'locationType', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + $allowedValues = $this->getLocationTypeAllowableValues(); + if (!in_array($this->container['locationType'], $allowedValues)) { + return false; + } + return true; + } + + + /** + * Gets locationId + * + * @return int + */ + public function getLocationId() + { + return $this->container['locationId']; + } + + /** + * Sets locationId + * + * @param int $locationId location_id integer + * + * @return $this + */ + public function setLocationId($locationId) + { + $this->container['locationId'] = $locationId; + + return $this; + } + + /** + * Gets locationType + * + * @return string + */ + public function getLocationType() + { + return $this->container['locationType']; + } + + /** + * Sets locationType + * + * @param string $locationType location_type string + * + * @return $this + */ + public function setLocationType($locationType) + { + $allowedValues = $this->getLocationTypeAllowableValues(); + if (!is_null($locationType) && !in_array($locationType, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'locationType', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['locationType'] = $locationType; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdClonesJumpClone.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdClonesJumpClone.php new file mode 100644 index 0000000..e995ef2 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdClonesJumpClone.php @@ -0,0 +1,483 @@ + 'int', + 'name' => 'string', + 'locationId' => 'int', + 'locationType' => 'string', + 'implants' => 'int[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'jumpCloneId' => 'int32', + 'name' => null, + 'locationId' => 'int64', + 'locationType' => null, + 'implants' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'jumpCloneId' => 'jump_clone_id', + 'name' => 'name', + 'locationId' => 'location_id', + 'locationType' => 'location_type', + 'implants' => 'implants' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'jumpCloneId' => 'setJumpCloneId', + 'name' => 'setName', + 'locationId' => 'setLocationId', + 'locationType' => 'setLocationType', + 'implants' => 'setImplants' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'jumpCloneId' => 'getJumpCloneId', + 'name' => 'getName', + 'locationId' => 'getLocationId', + 'locationType' => 'getLocationType', + 'implants' => 'getImplants' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const LOCATION_TYPE_STATION = 'station'; + const LOCATION_TYPE_STRUCTURE = 'structure'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getLocationTypeAllowableValues() + { + return [ + self::LOCATION_TYPE_STATION, + self::LOCATION_TYPE_STRUCTURE, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['jumpCloneId'] = isset($data['jumpCloneId']) ? $data['jumpCloneId'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['locationId'] = isset($data['locationId']) ? $data['locationId'] : null; + $this->container['locationType'] = isset($data['locationType']) ? $data['locationType'] : null; + $this->container['implants'] = isset($data['implants']) ? $data['implants'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['jumpCloneId'] === null) { + $invalidProperties[] = "'jumpCloneId' can't be null"; + } + if ($this->container['locationId'] === null) { + $invalidProperties[] = "'locationId' can't be null"; + } + if ($this->container['locationType'] === null) { + $invalidProperties[] = "'locationType' can't be null"; + } + $allowedValues = $this->getLocationTypeAllowableValues(); + if (!in_array($this->container['locationType'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'locationType', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['implants'] === null) { + $invalidProperties[] = "'implants' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['jumpCloneId'] === null) { + return false; + } + if ($this->container['locationId'] === null) { + return false; + } + if ($this->container['locationType'] === null) { + return false; + } + $allowedValues = $this->getLocationTypeAllowableValues(); + if (!in_array($this->container['locationType'], $allowedValues)) { + return false; + } + if ($this->container['implants'] === null) { + return false; + } + return true; + } + + + /** + * Gets jumpCloneId + * + * @return int + */ + public function getJumpCloneId() + { + return $this->container['jumpCloneId']; + } + + /** + * Sets jumpCloneId + * + * @param int $jumpCloneId jump_clone_id integer + * + * @return $this + */ + public function setJumpCloneId($jumpCloneId) + { + $this->container['jumpCloneId'] = $jumpCloneId; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets locationId + * + * @return int + */ + public function getLocationId() + { + return $this->container['locationId']; + } + + /** + * Sets locationId + * + * @param int $locationId location_id integer + * + * @return $this + */ + public function setLocationId($locationId) + { + $this->container['locationId'] = $locationId; + + return $this; + } + + /** + * Gets locationType + * + * @return string + */ + public function getLocationType() + { + return $this->container['locationType']; + } + + /** + * Sets locationType + * + * @param string $locationType location_type string + * + * @return $this + */ + public function setLocationType($locationType) + { + $allowedValues = $this->getLocationTypeAllowableValues(); + if (!in_array($locationType, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'locationType', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['locationType'] = $locationType; + + return $this; + } + + /** + * Gets implants + * + * @return int[] + */ + public function getImplants() + { + return $this->container['implants']; + } + + /** + * Sets implants + * + * @param int[] $implants implants array + * + * @return $this + */ + public function setImplants($implants) + { + $this->container['implants'] = $implants; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdClonesOk.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdClonesOk.php new file mode 100644 index 0000000..cbae68a --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdClonesOk.php @@ -0,0 +1,399 @@ + '\DateTime', + 'homeLocation' => '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdClonesHomeLocation', + 'lastStationChangeDate' => '\DateTime', + 'jumpClones' => '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdClonesJumpClone[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'lastCloneJumpDate' => 'date-time', + 'homeLocation' => null, + 'lastStationChangeDate' => 'date-time', + 'jumpClones' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'lastCloneJumpDate' => 'last_clone_jump_date', + 'homeLocation' => 'home_location', + 'lastStationChangeDate' => 'last_station_change_date', + 'jumpClones' => 'jump_clones' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'lastCloneJumpDate' => 'setLastCloneJumpDate', + 'homeLocation' => 'setHomeLocation', + 'lastStationChangeDate' => 'setLastStationChangeDate', + 'jumpClones' => 'setJumpClones' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'lastCloneJumpDate' => 'getLastCloneJumpDate', + 'homeLocation' => 'getHomeLocation', + 'lastStationChangeDate' => 'getLastStationChangeDate', + 'jumpClones' => 'getJumpClones' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['lastCloneJumpDate'] = isset($data['lastCloneJumpDate']) ? $data['lastCloneJumpDate'] : null; + $this->container['homeLocation'] = isset($data['homeLocation']) ? $data['homeLocation'] : null; + $this->container['lastStationChangeDate'] = isset($data['lastStationChangeDate']) ? $data['lastStationChangeDate'] : null; + $this->container['jumpClones'] = isset($data['jumpClones']) ? $data['jumpClones'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['jumpClones'] === null) { + $invalidProperties[] = "'jumpClones' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['jumpClones'] === null) { + return false; + } + return true; + } + + + /** + * Gets lastCloneJumpDate + * + * @return \DateTime + */ + public function getLastCloneJumpDate() + { + return $this->container['lastCloneJumpDate']; + } + + /** + * Sets lastCloneJumpDate + * + * @param \DateTime $lastCloneJumpDate last_clone_jump_date string + * + * @return $this + */ + public function setLastCloneJumpDate($lastCloneJumpDate) + { + $this->container['lastCloneJumpDate'] = $lastCloneJumpDate; + + return $this; + } + + /** + * Gets homeLocation + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdClonesHomeLocation + */ + public function getHomeLocation() + { + return $this->container['homeLocation']; + } + + /** + * Sets homeLocation + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdClonesHomeLocation $homeLocation homeLocation + * + * @return $this + */ + public function setHomeLocation($homeLocation) + { + $this->container['homeLocation'] = $homeLocation; + + return $this; + } + + /** + * Gets lastStationChangeDate + * + * @return \DateTime + */ + public function getLastStationChangeDate() + { + return $this->container['lastStationChangeDate']; + } + + /** + * Sets lastStationChangeDate + * + * @param \DateTime $lastStationChangeDate last_station_change_date string + * + * @return $this + */ + public function setLastStationChangeDate($lastStationChangeDate) + { + $this->container['lastStationChangeDate'] = $lastStationChangeDate; + + return $this; + } + + /** + * Gets jumpClones + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdClonesJumpClone[] + */ + public function getJumpClones() + { + return $this->container['jumpClones']; + } + + /** + * Sets jumpClones + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdClonesJumpClone[] $jumpClones jump_clones array + * + * @return $this + */ + public function setJumpClones($jumpClones) + { + $this->container['jumpClones'] = $jumpClones; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdContacts200Ok.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdContacts200Ok.php new file mode 100644 index 0000000..7bdcab8 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdContacts200Ok.php @@ -0,0 +1,511 @@ + 'float', + 'contactType' => 'string', + 'contactId' => 'int', + 'isWatched' => 'bool', + 'isBlocked' => 'bool', + 'labelId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'standing' => 'float', + 'contactType' => null, + 'contactId' => 'int32', + 'isWatched' => null, + 'isBlocked' => null, + 'labelId' => 'int64' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'standing' => 'standing', + 'contactType' => 'contact_type', + 'contactId' => 'contact_id', + 'isWatched' => 'is_watched', + 'isBlocked' => 'is_blocked', + 'labelId' => 'label_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'standing' => 'setStanding', + 'contactType' => 'setContactType', + 'contactId' => 'setContactId', + 'isWatched' => 'setIsWatched', + 'isBlocked' => 'setIsBlocked', + 'labelId' => 'setLabelId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'standing' => 'getStanding', + 'contactType' => 'getContactType', + 'contactId' => 'getContactId', + 'isWatched' => 'getIsWatched', + 'isBlocked' => 'getIsBlocked', + 'labelId' => 'getLabelId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const CONTACT_TYPE_CHARACTER = 'character'; + const CONTACT_TYPE_CORPORATION = 'corporation'; + const CONTACT_TYPE_ALLIANCE = 'alliance'; + const CONTACT_TYPE_FACTION = 'faction'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getContactTypeAllowableValues() + { + return [ + self::CONTACT_TYPE_CHARACTER, + self::CONTACT_TYPE_CORPORATION, + self::CONTACT_TYPE_ALLIANCE, + self::CONTACT_TYPE_FACTION, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['standing'] = isset($data['standing']) ? $data['standing'] : null; + $this->container['contactType'] = isset($data['contactType']) ? $data['contactType'] : null; + $this->container['contactId'] = isset($data['contactId']) ? $data['contactId'] : null; + $this->container['isWatched'] = isset($data['isWatched']) ? $data['isWatched'] : null; + $this->container['isBlocked'] = isset($data['isBlocked']) ? $data['isBlocked'] : null; + $this->container['labelId'] = isset($data['labelId']) ? $data['labelId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['standing'] === null) { + $invalidProperties[] = "'standing' can't be null"; + } + if ($this->container['contactType'] === null) { + $invalidProperties[] = "'contactType' can't be null"; + } + $allowedValues = $this->getContactTypeAllowableValues(); + if (!in_array($this->container['contactType'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'contactType', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['contactId'] === null) { + $invalidProperties[] = "'contactId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['standing'] === null) { + return false; + } + if ($this->container['contactType'] === null) { + return false; + } + $allowedValues = $this->getContactTypeAllowableValues(); + if (!in_array($this->container['contactType'], $allowedValues)) { + return false; + } + if ($this->container['contactId'] === null) { + return false; + } + return true; + } + + + /** + * Gets standing + * + * @return float + */ + public function getStanding() + { + return $this->container['standing']; + } + + /** + * Sets standing + * + * @param float $standing Standing of the contact + * + * @return $this + */ + public function setStanding($standing) + { + $this->container['standing'] = $standing; + + return $this; + } + + /** + * Gets contactType + * + * @return string + */ + public function getContactType() + { + return $this->container['contactType']; + } + + /** + * Sets contactType + * + * @param string $contactType contact_type string + * + * @return $this + */ + public function setContactType($contactType) + { + $allowedValues = $this->getContactTypeAllowableValues(); + if (!in_array($contactType, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'contactType', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['contactType'] = $contactType; + + return $this; + } + + /** + * Gets contactId + * + * @return int + */ + public function getContactId() + { + return $this->container['contactId']; + } + + /** + * Sets contactId + * + * @param int $contactId contact_id integer + * + * @return $this + */ + public function setContactId($contactId) + { + $this->container['contactId'] = $contactId; + + return $this; + } + + /** + * Gets isWatched + * + * @return bool + */ + public function getIsWatched() + { + return $this->container['isWatched']; + } + + /** + * Sets isWatched + * + * @param bool $isWatched Whether this contact is being watched + * + * @return $this + */ + public function setIsWatched($isWatched) + { + $this->container['isWatched'] = $isWatched; + + return $this; + } + + /** + * Gets isBlocked + * + * @return bool + */ + public function getIsBlocked() + { + return $this->container['isBlocked']; + } + + /** + * Sets isBlocked + * + * @param bool $isBlocked Whether this contact is in the blocked list. Note a missing value denotes unknown, not true or false + * + * @return $this + */ + public function setIsBlocked($isBlocked) + { + $this->container['isBlocked'] = $isBlocked; + + return $this; + } + + /** + * Gets labelId + * + * @return int + */ + public function getLabelId() + { + return $this->container['labelId']; + } + + /** + * Sets labelId + * + * @param int $labelId Custom label of the contact + * + * @return $this + */ + public function setLabelId($labelId) + { + $this->container['labelId'] = $labelId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdContactsLabels200Ok.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdContactsLabels200Ok.php new file mode 100644 index 0000000..6cb3506 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdContactsLabels200Ok.php @@ -0,0 +1,345 @@ + 'int', + 'labelName' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'labelId' => 'int64', + 'labelName' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'labelId' => 'label_id', + 'labelName' => 'label_name' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'labelId' => 'setLabelId', + 'labelName' => 'setLabelName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'labelId' => 'getLabelId', + 'labelName' => 'getLabelName' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['labelId'] = isset($data['labelId']) ? $data['labelId'] : null; + $this->container['labelName'] = isset($data['labelName']) ? $data['labelName'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['labelId'] === null) { + $invalidProperties[] = "'labelId' can't be null"; + } + if ($this->container['labelName'] === null) { + $invalidProperties[] = "'labelName' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['labelId'] === null) { + return false; + } + if ($this->container['labelName'] === null) { + return false; + } + return true; + } + + + /** + * Gets labelId + * + * @return int + */ + public function getLabelId() + { + return $this->container['labelId']; + } + + /** + * Sets labelId + * + * @param int $labelId label_id integer + * + * @return $this + */ + public function setLabelId($labelId) + { + $this->container['labelId'] = $labelId; + + return $this; + } + + /** + * Gets labelName + * + * @return string + */ + public function getLabelName() + { + return $this->container['labelName']; + } + + /** + * Sets labelName + * + * @param string $labelName label_name string + * + * @return $this + */ + public function setLabelName($labelName) + { + $this->container['labelName'] = $labelName; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdContracts200Ok.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdContracts200Ok.php new file mode 100644 index 0000000..6ad165e --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdContracts200Ok.php @@ -0,0 +1,1133 @@ + 'int', + 'issuerId' => 'int', + 'issuerCorporationId' => 'int', + 'assigneeId' => 'int', + 'acceptorId' => 'int', + 'startLocationId' => 'int', + 'endLocationId' => 'int', + 'type' => 'string', + 'status' => 'string', + 'title' => 'string', + 'forCorporation' => 'bool', + 'availability' => 'string', + 'dateIssued' => '\DateTime', + 'dateExpired' => '\DateTime', + 'dateAccepted' => '\DateTime', + 'daysToComplete' => 'int', + 'dateCompleted' => '\DateTime', + 'price' => 'double', + 'reward' => 'double', + 'collateral' => 'double', + 'buyout' => 'double', + 'volume' => 'float' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'contractId' => 'int32', + 'issuerId' => 'int32', + 'issuerCorporationId' => 'int32', + 'assigneeId' => 'int32', + 'acceptorId' => 'int32', + 'startLocationId' => 'int64', + 'endLocationId' => 'int64', + 'type' => null, + 'status' => null, + 'title' => null, + 'forCorporation' => null, + 'availability' => null, + 'dateIssued' => 'date-time', + 'dateExpired' => 'date-time', + 'dateAccepted' => 'date-time', + 'daysToComplete' => 'int32', + 'dateCompleted' => 'date-time', + 'price' => 'double', + 'reward' => 'double', + 'collateral' => 'double', + 'buyout' => 'double', + 'volume' => 'float' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'contractId' => 'contract_id', + 'issuerId' => 'issuer_id', + 'issuerCorporationId' => 'issuer_corporation_id', + 'assigneeId' => 'assignee_id', + 'acceptorId' => 'acceptor_id', + 'startLocationId' => 'start_location_id', + 'endLocationId' => 'end_location_id', + 'type' => 'type', + 'status' => 'status', + 'title' => 'title', + 'forCorporation' => 'for_corporation', + 'availability' => 'availability', + 'dateIssued' => 'date_issued', + 'dateExpired' => 'date_expired', + 'dateAccepted' => 'date_accepted', + 'daysToComplete' => 'days_to_complete', + 'dateCompleted' => 'date_completed', + 'price' => 'price', + 'reward' => 'reward', + 'collateral' => 'collateral', + 'buyout' => 'buyout', + 'volume' => 'volume' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'contractId' => 'setContractId', + 'issuerId' => 'setIssuerId', + 'issuerCorporationId' => 'setIssuerCorporationId', + 'assigneeId' => 'setAssigneeId', + 'acceptorId' => 'setAcceptorId', + 'startLocationId' => 'setStartLocationId', + 'endLocationId' => 'setEndLocationId', + 'type' => 'setType', + 'status' => 'setStatus', + 'title' => 'setTitle', + 'forCorporation' => 'setForCorporation', + 'availability' => 'setAvailability', + 'dateIssued' => 'setDateIssued', + 'dateExpired' => 'setDateExpired', + 'dateAccepted' => 'setDateAccepted', + 'daysToComplete' => 'setDaysToComplete', + 'dateCompleted' => 'setDateCompleted', + 'price' => 'setPrice', + 'reward' => 'setReward', + 'collateral' => 'setCollateral', + 'buyout' => 'setBuyout', + 'volume' => 'setVolume' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'contractId' => 'getContractId', + 'issuerId' => 'getIssuerId', + 'issuerCorporationId' => 'getIssuerCorporationId', + 'assigneeId' => 'getAssigneeId', + 'acceptorId' => 'getAcceptorId', + 'startLocationId' => 'getStartLocationId', + 'endLocationId' => 'getEndLocationId', + 'type' => 'getType', + 'status' => 'getStatus', + 'title' => 'getTitle', + 'forCorporation' => 'getForCorporation', + 'availability' => 'getAvailability', + 'dateIssued' => 'getDateIssued', + 'dateExpired' => 'getDateExpired', + 'dateAccepted' => 'getDateAccepted', + 'daysToComplete' => 'getDaysToComplete', + 'dateCompleted' => 'getDateCompleted', + 'price' => 'getPrice', + 'reward' => 'getReward', + 'collateral' => 'getCollateral', + 'buyout' => 'getBuyout', + 'volume' => 'getVolume' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const TYPE_UNKNOWN = 'unknown'; + const TYPE_ITEM_EXCHANGE = 'item_exchange'; + const TYPE_AUCTION = 'auction'; + const TYPE_COURIER = 'courier'; + const TYPE_LOAN = 'loan'; + const STATUS_OUTSTANDING = 'outstanding'; + const STATUS_IN_PROGRESS = 'in_progress'; + const STATUS_FINISHED_ISSUER = 'finished_issuer'; + const STATUS_FINISHED_CONTRACTOR = 'finished_contractor'; + const STATUS_FINISHED = 'finished'; + const STATUS_CANCELLED = 'cancelled'; + const STATUS_REJECTED = 'rejected'; + const STATUS_FAILED = 'failed'; + const STATUS_DELETED = 'deleted'; + const STATUS_REVERSED = 'reversed'; + const AVAILABILITY__PUBLIC = 'public'; + const AVAILABILITY_PERSONAL = 'personal'; + const AVAILABILITY_CORPORATION = 'corporation'; + const AVAILABILITY_ALLIANCE = 'alliance'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_UNKNOWN, + self::TYPE_ITEM_EXCHANGE, + self::TYPE_AUCTION, + self::TYPE_COURIER, + self::TYPE_LOAN, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getStatusAllowableValues() + { + return [ + self::STATUS_OUTSTANDING, + self::STATUS_IN_PROGRESS, + self::STATUS_FINISHED_ISSUER, + self::STATUS_FINISHED_CONTRACTOR, + self::STATUS_FINISHED, + self::STATUS_CANCELLED, + self::STATUS_REJECTED, + self::STATUS_FAILED, + self::STATUS_DELETED, + self::STATUS_REVERSED, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getAvailabilityAllowableValues() + { + return [ + self::AVAILABILITY__PUBLIC, + self::AVAILABILITY_PERSONAL, + self::AVAILABILITY_CORPORATION, + self::AVAILABILITY_ALLIANCE, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['contractId'] = isset($data['contractId']) ? $data['contractId'] : null; + $this->container['issuerId'] = isset($data['issuerId']) ? $data['issuerId'] : null; + $this->container['issuerCorporationId'] = isset($data['issuerCorporationId']) ? $data['issuerCorporationId'] : null; + $this->container['assigneeId'] = isset($data['assigneeId']) ? $data['assigneeId'] : null; + $this->container['acceptorId'] = isset($data['acceptorId']) ? $data['acceptorId'] : null; + $this->container['startLocationId'] = isset($data['startLocationId']) ? $data['startLocationId'] : null; + $this->container['endLocationId'] = isset($data['endLocationId']) ? $data['endLocationId'] : null; + $this->container['type'] = isset($data['type']) ? $data['type'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['title'] = isset($data['title']) ? $data['title'] : null; + $this->container['forCorporation'] = isset($data['forCorporation']) ? $data['forCorporation'] : null; + $this->container['availability'] = isset($data['availability']) ? $data['availability'] : null; + $this->container['dateIssued'] = isset($data['dateIssued']) ? $data['dateIssued'] : null; + $this->container['dateExpired'] = isset($data['dateExpired']) ? $data['dateExpired'] : null; + $this->container['dateAccepted'] = isset($data['dateAccepted']) ? $data['dateAccepted'] : null; + $this->container['daysToComplete'] = isset($data['daysToComplete']) ? $data['daysToComplete'] : null; + $this->container['dateCompleted'] = isset($data['dateCompleted']) ? $data['dateCompleted'] : null; + $this->container['price'] = isset($data['price']) ? $data['price'] : null; + $this->container['reward'] = isset($data['reward']) ? $data['reward'] : null; + $this->container['collateral'] = isset($data['collateral']) ? $data['collateral'] : null; + $this->container['buyout'] = isset($data['buyout']) ? $data['buyout'] : null; + $this->container['volume'] = isset($data['volume']) ? $data['volume'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['contractId'] === null) { + $invalidProperties[] = "'contractId' can't be null"; + } + if ($this->container['issuerId'] === null) { + $invalidProperties[] = "'issuerId' can't be null"; + } + if ($this->container['issuerCorporationId'] === null) { + $invalidProperties[] = "'issuerCorporationId' can't be null"; + } + if ($this->container['assigneeId'] === null) { + $invalidProperties[] = "'assigneeId' can't be null"; + } + if ($this->container['acceptorId'] === null) { + $invalidProperties[] = "'acceptorId' can't be null"; + } + if ($this->container['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($this->container['type'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['status'] === null) { + $invalidProperties[] = "'status' can't be null"; + } + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($this->container['status'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'status', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['forCorporation'] === null) { + $invalidProperties[] = "'forCorporation' can't be null"; + } + if ($this->container['availability'] === null) { + $invalidProperties[] = "'availability' can't be null"; + } + $allowedValues = $this->getAvailabilityAllowableValues(); + if (!in_array($this->container['availability'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'availability', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['dateIssued'] === null) { + $invalidProperties[] = "'dateIssued' can't be null"; + } + if ($this->container['dateExpired'] === null) { + $invalidProperties[] = "'dateExpired' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['contractId'] === null) { + return false; + } + if ($this->container['issuerId'] === null) { + return false; + } + if ($this->container['issuerCorporationId'] === null) { + return false; + } + if ($this->container['assigneeId'] === null) { + return false; + } + if ($this->container['acceptorId'] === null) { + return false; + } + if ($this->container['type'] === null) { + return false; + } + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($this->container['type'], $allowedValues)) { + return false; + } + if ($this->container['status'] === null) { + return false; + } + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($this->container['status'], $allowedValues)) { + return false; + } + if ($this->container['forCorporation'] === null) { + return false; + } + if ($this->container['availability'] === null) { + return false; + } + $allowedValues = $this->getAvailabilityAllowableValues(); + if (!in_array($this->container['availability'], $allowedValues)) { + return false; + } + if ($this->container['dateIssued'] === null) { + return false; + } + if ($this->container['dateExpired'] === null) { + return false; + } + return true; + } + + + /** + * Gets contractId + * + * @return int + */ + public function getContractId() + { + return $this->container['contractId']; + } + + /** + * Sets contractId + * + * @param int $contractId contract_id integer + * + * @return $this + */ + public function setContractId($contractId) + { + $this->container['contractId'] = $contractId; + + return $this; + } + + /** + * Gets issuerId + * + * @return int + */ + public function getIssuerId() + { + return $this->container['issuerId']; + } + + /** + * Sets issuerId + * + * @param int $issuerId Character ID for the issuer + * + * @return $this + */ + public function setIssuerId($issuerId) + { + $this->container['issuerId'] = $issuerId; + + return $this; + } + + /** + * Gets issuerCorporationId + * + * @return int + */ + public function getIssuerCorporationId() + { + return $this->container['issuerCorporationId']; + } + + /** + * Sets issuerCorporationId + * + * @param int $issuerCorporationId Character's corporation ID for the issuer + * + * @return $this + */ + public function setIssuerCorporationId($issuerCorporationId) + { + $this->container['issuerCorporationId'] = $issuerCorporationId; + + return $this; + } + + /** + * Gets assigneeId + * + * @return int + */ + public function getAssigneeId() + { + return $this->container['assigneeId']; + } + + /** + * Sets assigneeId + * + * @param int $assigneeId ID to whom the contract is assigned, can be corporation or character ID + * + * @return $this + */ + public function setAssigneeId($assigneeId) + { + $this->container['assigneeId'] = $assigneeId; + + return $this; + } + + /** + * Gets acceptorId + * + * @return int + */ + public function getAcceptorId() + { + return $this->container['acceptorId']; + } + + /** + * Sets acceptorId + * + * @param int $acceptorId Who will accept the contract + * + * @return $this + */ + public function setAcceptorId($acceptorId) + { + $this->container['acceptorId'] = $acceptorId; + + return $this; + } + + /** + * Gets startLocationId + * + * @return int + */ + public function getStartLocationId() + { + return $this->container['startLocationId']; + } + + /** + * Sets startLocationId + * + * @param int $startLocationId Start location ID (for Couriers contract) + * + * @return $this + */ + public function setStartLocationId($startLocationId) + { + $this->container['startLocationId'] = $startLocationId; + + return $this; + } + + /** + * Gets endLocationId + * + * @return int + */ + public function getEndLocationId() + { + return $this->container['endLocationId']; + } + + /** + * Sets endLocationId + * + * @param int $endLocationId End location ID (for Couriers contract) + * + * @return $this + */ + public function setEndLocationId($endLocationId) + { + $this->container['endLocationId'] = $endLocationId; + + return $this; + } + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type Type of the contract + * + * @return $this + */ + public function setType($type) + { + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($type, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status Status of the the contract + * + * @return $this + */ + public function setStatus($status) + { + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($status, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'status', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets title + * + * @return string + */ + public function getTitle() + { + return $this->container['title']; + } + + /** + * Sets title + * + * @param string $title Title of the contract + * + * @return $this + */ + public function setTitle($title) + { + $this->container['title'] = $title; + + return $this; + } + + /** + * Gets forCorporation + * + * @return bool + */ + public function getForCorporation() + { + return $this->container['forCorporation']; + } + + /** + * Sets forCorporation + * + * @param bool $forCorporation true if the contract was issued on behalf of the issuer's corporation + * + * @return $this + */ + public function setForCorporation($forCorporation) + { + $this->container['forCorporation'] = $forCorporation; + + return $this; + } + + /** + * Gets availability + * + * @return string + */ + public function getAvailability() + { + return $this->container['availability']; + } + + /** + * Sets availability + * + * @param string $availability To whom the contract is available + * + * @return $this + */ + public function setAvailability($availability) + { + $allowedValues = $this->getAvailabilityAllowableValues(); + if (!in_array($availability, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'availability', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['availability'] = $availability; + + return $this; + } + + /** + * Gets dateIssued + * + * @return \DateTime + */ + public function getDateIssued() + { + return $this->container['dateIssued']; + } + + /** + * Sets dateIssued + * + * @param \DateTime $dateIssued Сreation date of the contract + * + * @return $this + */ + public function setDateIssued($dateIssued) + { + $this->container['dateIssued'] = $dateIssued; + + return $this; + } + + /** + * Gets dateExpired + * + * @return \DateTime + */ + public function getDateExpired() + { + return $this->container['dateExpired']; + } + + /** + * Sets dateExpired + * + * @param \DateTime $dateExpired Expiration date of the contract + * + * @return $this + */ + public function setDateExpired($dateExpired) + { + $this->container['dateExpired'] = $dateExpired; + + return $this; + } + + /** + * Gets dateAccepted + * + * @return \DateTime + */ + public function getDateAccepted() + { + return $this->container['dateAccepted']; + } + + /** + * Sets dateAccepted + * + * @param \DateTime $dateAccepted Date of confirmation of contract + * + * @return $this + */ + public function setDateAccepted($dateAccepted) + { + $this->container['dateAccepted'] = $dateAccepted; + + return $this; + } + + /** + * Gets daysToComplete + * + * @return int + */ + public function getDaysToComplete() + { + return $this->container['daysToComplete']; + } + + /** + * Sets daysToComplete + * + * @param int $daysToComplete Number of days to perform the contract + * + * @return $this + */ + public function setDaysToComplete($daysToComplete) + { + $this->container['daysToComplete'] = $daysToComplete; + + return $this; + } + + /** + * Gets dateCompleted + * + * @return \DateTime + */ + public function getDateCompleted() + { + return $this->container['dateCompleted']; + } + + /** + * Sets dateCompleted + * + * @param \DateTime $dateCompleted Date of completed of contract + * + * @return $this + */ + public function setDateCompleted($dateCompleted) + { + $this->container['dateCompleted'] = $dateCompleted; + + return $this; + } + + /** + * Gets price + * + * @return double + */ + public function getPrice() + { + return $this->container['price']; + } + + /** + * Sets price + * + * @param double $price Price of contract (for ItemsExchange and Auctions) + * + * @return $this + */ + public function setPrice($price) + { + $this->container['price'] = $price; + + return $this; + } + + /** + * Gets reward + * + * @return double + */ + public function getReward() + { + return $this->container['reward']; + } + + /** + * Sets reward + * + * @param double $reward Remuneration for contract (for Couriers only) + * + * @return $this + */ + public function setReward($reward) + { + $this->container['reward'] = $reward; + + return $this; + } + + /** + * Gets collateral + * + * @return double + */ + public function getCollateral() + { + return $this->container['collateral']; + } + + /** + * Sets collateral + * + * @param double $collateral Collateral price (for Couriers only) + * + * @return $this + */ + public function setCollateral($collateral) + { + $this->container['collateral'] = $collateral; + + return $this; + } + + /** + * Gets buyout + * + * @return double + */ + public function getBuyout() + { + return $this->container['buyout']; + } + + /** + * Sets buyout + * + * @param double $buyout Buyout price (for Auctions only) + * + * @return $this + */ + public function setBuyout($buyout) + { + $this->container['buyout'] = $buyout; + + return $this; + } + + /** + * Gets volume + * + * @return float + */ + public function getVolume() + { + return $this->container['volume']; + } + + /** + * Sets volume + * + * @param float $volume Volume of items in the contract + * + * @return $this + */ + public function setVolume($volume) + { + $this->container['volume'] = $volume; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdContractsContractIdBids200Ok.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdContractsContractIdBids200Ok.php new file mode 100644 index 0000000..676156e --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdContractsContractIdBids200Ok.php @@ -0,0 +1,417 @@ + 'int', + 'bidderId' => 'int', + 'dateBid' => '\DateTime', + 'amount' => 'float' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'bidId' => 'int32', + 'bidderId' => 'int32', + 'dateBid' => 'date-time', + 'amount' => 'float' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'bidId' => 'bid_id', + 'bidderId' => 'bidder_id', + 'dateBid' => 'date_bid', + 'amount' => 'amount' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'bidId' => 'setBidId', + 'bidderId' => 'setBidderId', + 'dateBid' => 'setDateBid', + 'amount' => 'setAmount' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'bidId' => 'getBidId', + 'bidderId' => 'getBidderId', + 'dateBid' => 'getDateBid', + 'amount' => 'getAmount' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['bidId'] = isset($data['bidId']) ? $data['bidId'] : null; + $this->container['bidderId'] = isset($data['bidderId']) ? $data['bidderId'] : null; + $this->container['dateBid'] = isset($data['dateBid']) ? $data['dateBid'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['bidId'] === null) { + $invalidProperties[] = "'bidId' can't be null"; + } + if ($this->container['bidderId'] === null) { + $invalidProperties[] = "'bidderId' can't be null"; + } + if ($this->container['dateBid'] === null) { + $invalidProperties[] = "'dateBid' can't be null"; + } + if ($this->container['amount'] === null) { + $invalidProperties[] = "'amount' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['bidId'] === null) { + return false; + } + if ($this->container['bidderId'] === null) { + return false; + } + if ($this->container['dateBid'] === null) { + return false; + } + if ($this->container['amount'] === null) { + return false; + } + return true; + } + + + /** + * Gets bidId + * + * @return int + */ + public function getBidId() + { + return $this->container['bidId']; + } + + /** + * Sets bidId + * + * @param int $bidId Unique ID for the bid + * + * @return $this + */ + public function setBidId($bidId) + { + $this->container['bidId'] = $bidId; + + return $this; + } + + /** + * Gets bidderId + * + * @return int + */ + public function getBidderId() + { + return $this->container['bidderId']; + } + + /** + * Sets bidderId + * + * @param int $bidderId Character ID of the bidder + * + * @return $this + */ + public function setBidderId($bidderId) + { + $this->container['bidderId'] = $bidderId; + + return $this; + } + + /** + * Gets dateBid + * + * @return \DateTime + */ + public function getDateBid() + { + return $this->container['dateBid']; + } + + /** + * Sets dateBid + * + * @param \DateTime $dateBid Datetime when the bid was placed + * + * @return $this + */ + public function setDateBid($dateBid) + { + $this->container['dateBid'] = $dateBid; + + return $this; + } + + /** + * Gets amount + * + * @return float + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param float $amount The amount bid, in ISK + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdContractsContractIdItems200Ok.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdContractsContractIdItems200Ok.php new file mode 100644 index 0000000..e5c98e4 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdContractsContractIdItems200Ok.php @@ -0,0 +1,483 @@ + 'int', + 'typeId' => 'int', + 'quantity' => 'int', + 'rawQuantity' => 'int', + 'isSingleton' => 'bool', + 'isIncluded' => 'bool' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'recordId' => 'int64', + 'typeId' => 'int32', + 'quantity' => 'int32', + 'rawQuantity' => 'int32', + 'isSingleton' => null, + 'isIncluded' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'recordId' => 'record_id', + 'typeId' => 'type_id', + 'quantity' => 'quantity', + 'rawQuantity' => 'raw_quantity', + 'isSingleton' => 'is_singleton', + 'isIncluded' => 'is_included' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'recordId' => 'setRecordId', + 'typeId' => 'setTypeId', + 'quantity' => 'setQuantity', + 'rawQuantity' => 'setRawQuantity', + 'isSingleton' => 'setIsSingleton', + 'isIncluded' => 'setIsIncluded' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'recordId' => 'getRecordId', + 'typeId' => 'getTypeId', + 'quantity' => 'getQuantity', + 'rawQuantity' => 'getRawQuantity', + 'isSingleton' => 'getIsSingleton', + 'isIncluded' => 'getIsIncluded' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['recordId'] = isset($data['recordId']) ? $data['recordId'] : null; + $this->container['typeId'] = isset($data['typeId']) ? $data['typeId'] : null; + $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null; + $this->container['rawQuantity'] = isset($data['rawQuantity']) ? $data['rawQuantity'] : null; + $this->container['isSingleton'] = isset($data['isSingleton']) ? $data['isSingleton'] : null; + $this->container['isIncluded'] = isset($data['isIncluded']) ? $data['isIncluded'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['recordId'] === null) { + $invalidProperties[] = "'recordId' can't be null"; + } + if ($this->container['typeId'] === null) { + $invalidProperties[] = "'typeId' can't be null"; + } + if ($this->container['quantity'] === null) { + $invalidProperties[] = "'quantity' can't be null"; + } + if ($this->container['isSingleton'] === null) { + $invalidProperties[] = "'isSingleton' can't be null"; + } + if ($this->container['isIncluded'] === null) { + $invalidProperties[] = "'isIncluded' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['recordId'] === null) { + return false; + } + if ($this->container['typeId'] === null) { + return false; + } + if ($this->container['quantity'] === null) { + return false; + } + if ($this->container['isSingleton'] === null) { + return false; + } + if ($this->container['isIncluded'] === null) { + return false; + } + return true; + } + + + /** + * Gets recordId + * + * @return int + */ + public function getRecordId() + { + return $this->container['recordId']; + } + + /** + * Sets recordId + * + * @param int $recordId Unique ID for the item + * + * @return $this + */ + public function setRecordId($recordId) + { + $this->container['recordId'] = $recordId; + + return $this; + } + + /** + * Gets typeId + * + * @return int + */ + public function getTypeId() + { + return $this->container['typeId']; + } + + /** + * Sets typeId + * + * @param int $typeId Type ID for item + * + * @return $this + */ + public function setTypeId($typeId) + { + $this->container['typeId'] = $typeId; + + return $this; + } + + /** + * Gets quantity + * + * @return int + */ + public function getQuantity() + { + return $this->container['quantity']; + } + + /** + * Sets quantity + * + * @param int $quantity Number of items in the stack + * + * @return $this + */ + public function setQuantity($quantity) + { + $this->container['quantity'] = $quantity; + + return $this; + } + + /** + * Gets rawQuantity + * + * @return int + */ + public function getRawQuantity() + { + return $this->container['rawQuantity']; + } + + /** + * Sets rawQuantity + * + * @param int $rawQuantity -1 indicates that the item is a singleton (non-stackable). If the item happens to be a Blueprint, -1 is an Original and -2 is a Blueprint Copy + * + * @return $this + */ + public function setRawQuantity($rawQuantity) + { + $this->container['rawQuantity'] = $rawQuantity; + + return $this; + } + + /** + * Gets isSingleton + * + * @return bool + */ + public function getIsSingleton() + { + return $this->container['isSingleton']; + } + + /** + * Sets isSingleton + * + * @param bool $isSingleton is_singleton boolean + * + * @return $this + */ + public function setIsSingleton($isSingleton) + { + $this->container['isSingleton'] = $isSingleton; + + return $this; + } + + /** + * Gets isIncluded + * + * @return bool + */ + public function getIsIncluded() + { + return $this->container['isIncluded']; + } + + /** + * Sets isIncluded + * + * @param bool $isIncluded true if the contract issuer has submitted this item with the contract, false if the isser is asking for this item in the contract. + * + * @return $this + */ + public function setIsIncluded($isIncluded) + { + $this->container['isIncluded'] = $isIncluded; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdCorporationhistory200Ok.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdCorporationhistory200Ok.php new file mode 100644 index 0000000..a105bca --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdCorporationhistory200Ok.php @@ -0,0 +1,411 @@ + '\DateTime', + 'corporationId' => 'int', + 'isDeleted' => 'bool', + 'recordId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'startDate' => 'date-time', + 'corporationId' => 'int32', + 'isDeleted' => null, + 'recordId' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'startDate' => 'start_date', + 'corporationId' => 'corporation_id', + 'isDeleted' => 'is_deleted', + 'recordId' => 'record_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'startDate' => 'setStartDate', + 'corporationId' => 'setCorporationId', + 'isDeleted' => 'setIsDeleted', + 'recordId' => 'setRecordId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'startDate' => 'getStartDate', + 'corporationId' => 'getCorporationId', + 'isDeleted' => 'getIsDeleted', + 'recordId' => 'getRecordId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['startDate'] = isset($data['startDate']) ? $data['startDate'] : null; + $this->container['corporationId'] = isset($data['corporationId']) ? $data['corporationId'] : null; + $this->container['isDeleted'] = isset($data['isDeleted']) ? $data['isDeleted'] : null; + $this->container['recordId'] = isset($data['recordId']) ? $data['recordId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['startDate'] === null) { + $invalidProperties[] = "'startDate' can't be null"; + } + if ($this->container['corporationId'] === null) { + $invalidProperties[] = "'corporationId' can't be null"; + } + if ($this->container['recordId'] === null) { + $invalidProperties[] = "'recordId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['startDate'] === null) { + return false; + } + if ($this->container['corporationId'] === null) { + return false; + } + if ($this->container['recordId'] === null) { + return false; + } + return true; + } + + + /** + * Gets startDate + * + * @return \DateTime + */ + public function getStartDate() + { + return $this->container['startDate']; + } + + /** + * Sets startDate + * + * @param \DateTime $startDate start_date string + * + * @return $this + */ + public function setStartDate($startDate) + { + $this->container['startDate'] = $startDate; + + return $this; + } + + /** + * Gets corporationId + * + * @return int + */ + public function getCorporationId() + { + return $this->container['corporationId']; + } + + /** + * Sets corporationId + * + * @param int $corporationId corporation_id integer + * + * @return $this + */ + public function setCorporationId($corporationId) + { + $this->container['corporationId'] = $corporationId; + + return $this; + } + + /** + * Gets isDeleted + * + * @return bool + */ + public function getIsDeleted() + { + return $this->container['isDeleted']; + } + + /** + * Sets isDeleted + * + * @param bool $isDeleted True if the corporation has been deleted + * + * @return $this + */ + public function setIsDeleted($isDeleted) + { + $this->container['isDeleted'] = $isDeleted; + + return $this; + } + + /** + * Gets recordId + * + * @return int + */ + public function getRecordId() + { + return $this->container['recordId']; + } + + /** + * Sets recordId + * + * @param int $recordId An incrementing ID that can be used to canonically establish order of records in cases where dates may be ambiguous + * + * @return $this + */ + public function setRecordId($recordId) + { + $this->container['recordId'] = $recordId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdFatigueOk.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdFatigueOk.php new file mode 100644 index 0000000..a894ca0 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdFatigueOk.php @@ -0,0 +1,363 @@ + '\DateTime', + 'jumpFatigueExpireDate' => '\DateTime', + 'lastUpdateDate' => '\DateTime' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'lastJumpDate' => 'date-time', + 'jumpFatigueExpireDate' => 'date-time', + 'lastUpdateDate' => 'date-time' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'lastJumpDate' => 'last_jump_date', + 'jumpFatigueExpireDate' => 'jump_fatigue_expire_date', + 'lastUpdateDate' => 'last_update_date' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'lastJumpDate' => 'setLastJumpDate', + 'jumpFatigueExpireDate' => 'setJumpFatigueExpireDate', + 'lastUpdateDate' => 'setLastUpdateDate' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'lastJumpDate' => 'getLastJumpDate', + 'jumpFatigueExpireDate' => 'getJumpFatigueExpireDate', + 'lastUpdateDate' => 'getLastUpdateDate' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['lastJumpDate'] = isset($data['lastJumpDate']) ? $data['lastJumpDate'] : null; + $this->container['jumpFatigueExpireDate'] = isset($data['jumpFatigueExpireDate']) ? $data['jumpFatigueExpireDate'] : null; + $this->container['lastUpdateDate'] = isset($data['lastUpdateDate']) ? $data['lastUpdateDate'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets lastJumpDate + * + * @return \DateTime + */ + public function getLastJumpDate() + { + return $this->container['lastJumpDate']; + } + + /** + * Sets lastJumpDate + * + * @param \DateTime $lastJumpDate Character's last jump activation + * + * @return $this + */ + public function setLastJumpDate($lastJumpDate) + { + $this->container['lastJumpDate'] = $lastJumpDate; + + return $this; + } + + /** + * Gets jumpFatigueExpireDate + * + * @return \DateTime + */ + public function getJumpFatigueExpireDate() + { + return $this->container['jumpFatigueExpireDate']; + } + + /** + * Sets jumpFatigueExpireDate + * + * @param \DateTime $jumpFatigueExpireDate Character's jump fatigue expiry + * + * @return $this + */ + public function setJumpFatigueExpireDate($jumpFatigueExpireDate) + { + $this->container['jumpFatigueExpireDate'] = $jumpFatigueExpireDate; + + return $this; + } + + /** + * Gets lastUpdateDate + * + * @return \DateTime + */ + public function getLastUpdateDate() + { + return $this->container['lastUpdateDate']; + } + + /** + * Sets lastUpdateDate + * + * @param \DateTime $lastUpdateDate Character's last jump update + * + * @return $this + */ + public function setLastUpdateDate($lastUpdateDate) + { + $this->container['lastUpdateDate'] = $lastUpdateDate; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdFittings200Ok.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdFittings200Ok.php new file mode 100644 index 0000000..3be6b7f --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdFittings200Ok.php @@ -0,0 +1,453 @@ + 'int', + 'name' => 'string', + 'description' => 'string', + 'shipTypeId' => 'int', + 'items' => '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFittingsItem[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'fittingId' => 'int32', + 'name' => null, + 'description' => null, + 'shipTypeId' => 'int32', + 'items' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'fittingId' => 'fitting_id', + 'name' => 'name', + 'description' => 'description', + 'shipTypeId' => 'ship_type_id', + 'items' => 'items' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'fittingId' => 'setFittingId', + 'name' => 'setName', + 'description' => 'setDescription', + 'shipTypeId' => 'setShipTypeId', + 'items' => 'setItems' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'fittingId' => 'getFittingId', + 'name' => 'getName', + 'description' => 'getDescription', + 'shipTypeId' => 'getShipTypeId', + 'items' => 'getItems' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['fittingId'] = isset($data['fittingId']) ? $data['fittingId'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['description'] = isset($data['description']) ? $data['description'] : null; + $this->container['shipTypeId'] = isset($data['shipTypeId']) ? $data['shipTypeId'] : null; + $this->container['items'] = isset($data['items']) ? $data['items'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['fittingId'] === null) { + $invalidProperties[] = "'fittingId' can't be null"; + } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ($this->container['description'] === null) { + $invalidProperties[] = "'description' can't be null"; + } + if ($this->container['shipTypeId'] === null) { + $invalidProperties[] = "'shipTypeId' can't be null"; + } + if ($this->container['items'] === null) { + $invalidProperties[] = "'items' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['fittingId'] === null) { + return false; + } + if ($this->container['name'] === null) { + return false; + } + if ($this->container['description'] === null) { + return false; + } + if ($this->container['shipTypeId'] === null) { + return false; + } + if ($this->container['items'] === null) { + return false; + } + return true; + } + + + /** + * Gets fittingId + * + * @return int + */ + public function getFittingId() + { + return $this->container['fittingId']; + } + + /** + * Sets fittingId + * + * @param int $fittingId fitting_id integer + * + * @return $this + */ + public function setFittingId($fittingId) + { + $this->container['fittingId'] = $fittingId; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets description + * + * @return string + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string $description description string + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets shipTypeId + * + * @return int + */ + public function getShipTypeId() + { + return $this->container['shipTypeId']; + } + + /** + * Sets shipTypeId + * + * @param int $shipTypeId ship_type_id integer + * + * @return $this + */ + public function setShipTypeId($shipTypeId) + { + $this->container['shipTypeId'] = $shipTypeId; + + return $this; + } + + /** + * Gets items + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFittingsItem[] + */ + public function getItems() + { + return $this->container['items']; + } + + /** + * Sets items + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFittingsItem[] $items items array + * + * @return $this + */ + public function setItems($items) + { + $this->container['items'] = $items; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdFittingsItem.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdFittingsItem.php new file mode 100644 index 0000000..2f6635a --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdFittingsItem.php @@ -0,0 +1,381 @@ + 'int', + 'flag' => 'int', + 'quantity' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'typeId' => 'int32', + 'flag' => 'int32', + 'quantity' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'typeId' => 'type_id', + 'flag' => 'flag', + 'quantity' => 'quantity' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'typeId' => 'setTypeId', + 'flag' => 'setFlag', + 'quantity' => 'setQuantity' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'typeId' => 'getTypeId', + 'flag' => 'getFlag', + 'quantity' => 'getQuantity' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['typeId'] = isset($data['typeId']) ? $data['typeId'] : null; + $this->container['flag'] = isset($data['flag']) ? $data['flag'] : null; + $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['typeId'] === null) { + $invalidProperties[] = "'typeId' can't be null"; + } + if ($this->container['flag'] === null) { + $invalidProperties[] = "'flag' can't be null"; + } + if ($this->container['quantity'] === null) { + $invalidProperties[] = "'quantity' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['typeId'] === null) { + return false; + } + if ($this->container['flag'] === null) { + return false; + } + if ($this->container['quantity'] === null) { + return false; + } + return true; + } + + + /** + * Gets typeId + * + * @return int + */ + public function getTypeId() + { + return $this->container['typeId']; + } + + /** + * Sets typeId + * + * @param int $typeId type_id integer + * + * @return $this + */ + public function setTypeId($typeId) + { + $this->container['typeId'] = $typeId; + + return $this; + } + + /** + * Gets flag + * + * @return int + */ + public function getFlag() + { + return $this->container['flag']; + } + + /** + * Sets flag + * + * @param int $flag flag integer + * + * @return $this + */ + public function setFlag($flag) + { + $this->container['flag'] = $flag; + + return $this; + } + + /** + * Gets quantity + * + * @return int + */ + public function getQuantity() + { + return $this->container['quantity']; + } + + /** + * Sets quantity + * + * @param int $quantity quantity integer + * + * @return $this + */ + public function setQuantity($quantity) + { + $this->container['quantity'] = $quantity; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdFleetNotFound.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdFleetNotFound.php new file mode 100644 index 0000000..ba76b63 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdFleetNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Not found message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdFleetOk.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdFleetOk.php new file mode 100644 index 0000000..0aea23b --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdFleetOk.php @@ -0,0 +1,457 @@ + 'int', + 'wingId' => 'int', + 'squadId' => 'int', + 'role' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'fleetId' => 'int64', + 'wingId' => 'int64', + 'squadId' => 'int64', + 'role' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'fleetId' => 'fleet_id', + 'wingId' => 'wing_id', + 'squadId' => 'squad_id', + 'role' => 'role' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'fleetId' => 'setFleetId', + 'wingId' => 'setWingId', + 'squadId' => 'setSquadId', + 'role' => 'setRole' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'fleetId' => 'getFleetId', + 'wingId' => 'getWingId', + 'squadId' => 'getSquadId', + 'role' => 'getRole' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const ROLE_FLEET_COMMANDER = 'fleet_commander'; + const ROLE_SQUAD_COMMANDER = 'squad_commander'; + const ROLE_SQUAD_MEMBER = 'squad_member'; + const ROLE_WING_COMMANDER = 'wing_commander'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getRoleAllowableValues() + { + return [ + self::ROLE_FLEET_COMMANDER, + self::ROLE_SQUAD_COMMANDER, + self::ROLE_SQUAD_MEMBER, + self::ROLE_WING_COMMANDER, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['fleetId'] = isset($data['fleetId']) ? $data['fleetId'] : null; + $this->container['wingId'] = isset($data['wingId']) ? $data['wingId'] : null; + $this->container['squadId'] = isset($data['squadId']) ? $data['squadId'] : null; + $this->container['role'] = isset($data['role']) ? $data['role'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['fleetId'] === null) { + $invalidProperties[] = "'fleetId' can't be null"; + } + if ($this->container['wingId'] === null) { + $invalidProperties[] = "'wingId' can't be null"; + } + if ($this->container['squadId'] === null) { + $invalidProperties[] = "'squadId' can't be null"; + } + if ($this->container['role'] === null) { + $invalidProperties[] = "'role' can't be null"; + } + $allowedValues = $this->getRoleAllowableValues(); + if (!in_array($this->container['role'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'role', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['fleetId'] === null) { + return false; + } + if ($this->container['wingId'] === null) { + return false; + } + if ($this->container['squadId'] === null) { + return false; + } + if ($this->container['role'] === null) { + return false; + } + $allowedValues = $this->getRoleAllowableValues(); + if (!in_array($this->container['role'], $allowedValues)) { + return false; + } + return true; + } + + + /** + * Gets fleetId + * + * @return int + */ + public function getFleetId() + { + return $this->container['fleetId']; + } + + /** + * Sets fleetId + * + * @param int $fleetId The character's current fleet ID + * + * @return $this + */ + public function setFleetId($fleetId) + { + $this->container['fleetId'] = $fleetId; + + return $this; + } + + /** + * Gets wingId + * + * @return int + */ + public function getWingId() + { + return $this->container['wingId']; + } + + /** + * Sets wingId + * + * @param int $wingId ID of the wing the member is in. If not applicable, will be set to -1 + * + * @return $this + */ + public function setWingId($wingId) + { + $this->container['wingId'] = $wingId; + + return $this; + } + + /** + * Gets squadId + * + * @return int + */ + public function getSquadId() + { + return $this->container['squadId']; + } + + /** + * Sets squadId + * + * @param int $squadId ID of the squad the member is in. If not applicable, will be set to -1 + * + * @return $this + */ + public function setSquadId($squadId) + { + $this->container['squadId'] = $squadId; + + return $this; + } + + /** + * Gets role + * + * @return string + */ + public function getRole() + { + return $this->container['role']; + } + + /** + * Sets role + * + * @param string $role Member’s role in fleet + * + * @return $this + */ + public function setRole($role) + { + $allowedValues = $this->getRoleAllowableValues(); + if (!in_array($role, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'role', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['role'] = $role; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdFwStatsKills.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdFwStatsKills.php new file mode 100644 index 0000000..9e88f86 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdFwStatsKills.php @@ -0,0 +1,381 @@ + 'int', + 'lastWeek' => 'int', + 'total' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'yesterday' => 'int32', + 'lastWeek' => 'int32', + 'total' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'yesterday' => 'yesterday', + 'lastWeek' => 'last_week', + 'total' => 'total' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'yesterday' => 'setYesterday', + 'lastWeek' => 'setLastWeek', + 'total' => 'setTotal' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'yesterday' => 'getYesterday', + 'lastWeek' => 'getLastWeek', + 'total' => 'getTotal' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['yesterday'] = isset($data['yesterday']) ? $data['yesterday'] : null; + $this->container['lastWeek'] = isset($data['lastWeek']) ? $data['lastWeek'] : null; + $this->container['total'] = isset($data['total']) ? $data['total'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['yesterday'] === null) { + $invalidProperties[] = "'yesterday' can't be null"; + } + if ($this->container['lastWeek'] === null) { + $invalidProperties[] = "'lastWeek' can't be null"; + } + if ($this->container['total'] === null) { + $invalidProperties[] = "'total' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['yesterday'] === null) { + return false; + } + if ($this->container['lastWeek'] === null) { + return false; + } + if ($this->container['total'] === null) { + return false; + } + return true; + } + + + /** + * Gets yesterday + * + * @return int + */ + public function getYesterday() + { + return $this->container['yesterday']; + } + + /** + * Sets yesterday + * + * @param int $yesterday Yesterday's total number of kills by a given character against enemy factions + * + * @return $this + */ + public function setYesterday($yesterday) + { + $this->container['yesterday'] = $yesterday; + + return $this; + } + + /** + * Gets lastWeek + * + * @return int + */ + public function getLastWeek() + { + return $this->container['lastWeek']; + } + + /** + * Sets lastWeek + * + * @param int $lastWeek Last week's total number of kills by a given character against enemy factions + * + * @return $this + */ + public function setLastWeek($lastWeek) + { + $this->container['lastWeek'] = $lastWeek; + + return $this; + } + + /** + * Gets total + * + * @return int + */ + public function getTotal() + { + return $this->container['total']; + } + + /** + * Sets total + * + * @param int $total Total number of kills by a given character against enemy factions since the character enlisted + * + * @return $this + */ + public function setTotal($total) + { + $this->container['total'] = $total; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdFwStatsOk.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdFwStatsOk.php new file mode 100644 index 0000000..b4bb8fa --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdFwStatsOk.php @@ -0,0 +1,509 @@ + 'int', + 'enlistedOn' => '\DateTime', + 'currentRank' => 'int', + 'highestRank' => 'int', + 'kills' => '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFwStatsKills', + 'victoryPoints' => '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFwStatsVictoryPoints' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'factionId' => 'int32', + 'enlistedOn' => 'date-time', + 'currentRank' => 'int32', + 'highestRank' => 'int32', + 'kills' => null, + 'victoryPoints' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'factionId' => 'faction_id', + 'enlistedOn' => 'enlisted_on', + 'currentRank' => 'current_rank', + 'highestRank' => 'highest_rank', + 'kills' => 'kills', + 'victoryPoints' => 'victory_points' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'factionId' => 'setFactionId', + 'enlistedOn' => 'setEnlistedOn', + 'currentRank' => 'setCurrentRank', + 'highestRank' => 'setHighestRank', + 'kills' => 'setKills', + 'victoryPoints' => 'setVictoryPoints' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'factionId' => 'getFactionId', + 'enlistedOn' => 'getEnlistedOn', + 'currentRank' => 'getCurrentRank', + 'highestRank' => 'getHighestRank', + 'kills' => 'getKills', + 'victoryPoints' => 'getVictoryPoints' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['factionId'] = isset($data['factionId']) ? $data['factionId'] : null; + $this->container['enlistedOn'] = isset($data['enlistedOn']) ? $data['enlistedOn'] : null; + $this->container['currentRank'] = isset($data['currentRank']) ? $data['currentRank'] : null; + $this->container['highestRank'] = isset($data['highestRank']) ? $data['highestRank'] : null; + $this->container['kills'] = isset($data['kills']) ? $data['kills'] : null; + $this->container['victoryPoints'] = isset($data['victoryPoints']) ? $data['victoryPoints'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if (!is_null($this->container['currentRank']) && ($this->container['currentRank'] > 9)) { + $invalidProperties[] = "invalid value for 'currentRank', must be smaller than or equal to 9."; + } + + if (!is_null($this->container['currentRank']) && ($this->container['currentRank'] < 0)) { + $invalidProperties[] = "invalid value for 'currentRank', must be bigger than or equal to 0."; + } + + if (!is_null($this->container['highestRank']) && ($this->container['highestRank'] > 9)) { + $invalidProperties[] = "invalid value for 'highestRank', must be smaller than or equal to 9."; + } + + if (!is_null($this->container['highestRank']) && ($this->container['highestRank'] < 0)) { + $invalidProperties[] = "invalid value for 'highestRank', must be bigger than or equal to 0."; + } + + if ($this->container['kills'] === null) { + $invalidProperties[] = "'kills' can't be null"; + } + if ($this->container['victoryPoints'] === null) { + $invalidProperties[] = "'victoryPoints' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['currentRank'] > 9) { + return false; + } + if ($this->container['currentRank'] < 0) { + return false; + } + if ($this->container['highestRank'] > 9) { + return false; + } + if ($this->container['highestRank'] < 0) { + return false; + } + if ($this->container['kills'] === null) { + return false; + } + if ($this->container['victoryPoints'] === null) { + return false; + } + return true; + } + + + /** + * Gets factionId + * + * @return int + */ + public function getFactionId() + { + return $this->container['factionId']; + } + + /** + * Sets factionId + * + * @param int $factionId The faction the given character is enlisted to fight for. Will not be included if character is not enlisted in faction warfare + * + * @return $this + */ + public function setFactionId($factionId) + { + $this->container['factionId'] = $factionId; + + return $this; + } + + /** + * Gets enlistedOn + * + * @return \DateTime + */ + public function getEnlistedOn() + { + return $this->container['enlistedOn']; + } + + /** + * Sets enlistedOn + * + * @param \DateTime $enlistedOn The enlistment date of the given character into faction warfare. Will not be included if character is not enlisted in faction warfare + * + * @return $this + */ + public function setEnlistedOn($enlistedOn) + { + $this->container['enlistedOn'] = $enlistedOn; + + return $this; + } + + /** + * Gets currentRank + * + * @return int + */ + public function getCurrentRank() + { + return $this->container['currentRank']; + } + + /** + * Sets currentRank + * + * @param int $currentRank The given character's current faction rank + * + * @return $this + */ + public function setCurrentRank($currentRank) + { + + if (!is_null($currentRank) && ($currentRank > 9)) { + throw new \InvalidArgumentException('invalid value for $currentRank when calling GetCharactersCharacterIdFwStatsOk., must be smaller than or equal to 9.'); + } + if (!is_null($currentRank) && ($currentRank < 0)) { + throw new \InvalidArgumentException('invalid value for $currentRank when calling GetCharactersCharacterIdFwStatsOk., must be bigger than or equal to 0.'); + } + + $this->container['currentRank'] = $currentRank; + + return $this; + } + + /** + * Gets highestRank + * + * @return int + */ + public function getHighestRank() + { + return $this->container['highestRank']; + } + + /** + * Sets highestRank + * + * @param int $highestRank The given character's highest faction rank achieved + * + * @return $this + */ + public function setHighestRank($highestRank) + { + + if (!is_null($highestRank) && ($highestRank > 9)) { + throw new \InvalidArgumentException('invalid value for $highestRank when calling GetCharactersCharacterIdFwStatsOk., must be smaller than or equal to 9.'); + } + if (!is_null($highestRank) && ($highestRank < 0)) { + throw new \InvalidArgumentException('invalid value for $highestRank when calling GetCharactersCharacterIdFwStatsOk., must be bigger than or equal to 0.'); + } + + $this->container['highestRank'] = $highestRank; + + return $this; + } + + /** + * Gets kills + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFwStatsKills + */ + public function getKills() + { + return $this->container['kills']; + } + + /** + * Sets kills + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFwStatsKills $kills kills + * + * @return $this + */ + public function setKills($kills) + { + $this->container['kills'] = $kills; + + return $this; + } + + /** + * Gets victoryPoints + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFwStatsVictoryPoints + */ + public function getVictoryPoints() + { + return $this->container['victoryPoints']; + } + + /** + * Sets victoryPoints + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdFwStatsVictoryPoints $victoryPoints victoryPoints + * + * @return $this + */ + public function setVictoryPoints($victoryPoints) + { + $this->container['victoryPoints'] = $victoryPoints; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdFwStatsVictoryPoints.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdFwStatsVictoryPoints.php new file mode 100644 index 0000000..c7cdc79 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdFwStatsVictoryPoints.php @@ -0,0 +1,381 @@ + 'int', + 'lastWeek' => 'int', + 'total' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'yesterday' => 'int32', + 'lastWeek' => 'int32', + 'total' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'yesterday' => 'yesterday', + 'lastWeek' => 'last_week', + 'total' => 'total' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'yesterday' => 'setYesterday', + 'lastWeek' => 'setLastWeek', + 'total' => 'setTotal' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'yesterday' => 'getYesterday', + 'lastWeek' => 'getLastWeek', + 'total' => 'getTotal' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['yesterday'] = isset($data['yesterday']) ? $data['yesterday'] : null; + $this->container['lastWeek'] = isset($data['lastWeek']) ? $data['lastWeek'] : null; + $this->container['total'] = isset($data['total']) ? $data['total'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['yesterday'] === null) { + $invalidProperties[] = "'yesterday' can't be null"; + } + if ($this->container['lastWeek'] === null) { + $invalidProperties[] = "'lastWeek' can't be null"; + } + if ($this->container['total'] === null) { + $invalidProperties[] = "'total' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['yesterday'] === null) { + return false; + } + if ($this->container['lastWeek'] === null) { + return false; + } + if ($this->container['total'] === null) { + return false; + } + return true; + } + + + /** + * Gets yesterday + * + * @return int + */ + public function getYesterday() + { + return $this->container['yesterday']; + } + + /** + * Sets yesterday + * + * @param int $yesterday Yesterday's victory points gained by the given character + * + * @return $this + */ + public function setYesterday($yesterday) + { + $this->container['yesterday'] = $yesterday; + + return $this; + } + + /** + * Gets lastWeek + * + * @return int + */ + public function getLastWeek() + { + return $this->container['lastWeek']; + } + + /** + * Sets lastWeek + * + * @param int $lastWeek Last week's victory points gained by the given character + * + * @return $this + */ + public function setLastWeek($lastWeek) + { + $this->container['lastWeek'] = $lastWeek; + + return $this; + } + + /** + * Gets total + * + * @return int + */ + public function getTotal() + { + return $this->container['total']; + } + + /** + * Sets total + * + * @param int $total Total victory points gained since the given character enlisted + * + * @return $this + */ + public function setTotal($total) + { + $this->container['total'] = $total; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdIndustryJobs200Ok.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdIndustryJobs200Ok.php new file mode 100644 index 0000000..88fb67b --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdIndustryJobs200Ok.php @@ -0,0 +1,1061 @@ + 'int', + 'installerId' => 'int', + 'facilityId' => 'int', + 'stationId' => 'int', + 'activityId' => 'int', + 'blueprintId' => 'int', + 'blueprintTypeId' => 'int', + 'blueprintLocationId' => 'int', + 'outputLocationId' => 'int', + 'runs' => 'int', + 'cost' => 'double', + 'licensedRuns' => 'int', + 'probability' => 'float', + 'productTypeId' => 'int', + 'status' => 'string', + 'duration' => 'int', + 'startDate' => '\DateTime', + 'endDate' => '\DateTime', + 'pauseDate' => '\DateTime', + 'completedDate' => '\DateTime', + 'completedCharacterId' => 'int', + 'successfulRuns' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'jobId' => 'int32', + 'installerId' => 'int32', + 'facilityId' => 'int64', + 'stationId' => 'int64', + 'activityId' => 'int32', + 'blueprintId' => 'int64', + 'blueprintTypeId' => 'int32', + 'blueprintLocationId' => 'int64', + 'outputLocationId' => 'int64', + 'runs' => 'int32', + 'cost' => 'double', + 'licensedRuns' => 'int32', + 'probability' => 'float', + 'productTypeId' => 'int32', + 'status' => null, + 'duration' => 'int32', + 'startDate' => 'date-time', + 'endDate' => 'date-time', + 'pauseDate' => 'date-time', + 'completedDate' => 'date-time', + 'completedCharacterId' => 'int32', + 'successfulRuns' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'jobId' => 'job_id', + 'installerId' => 'installer_id', + 'facilityId' => 'facility_id', + 'stationId' => 'station_id', + 'activityId' => 'activity_id', + 'blueprintId' => 'blueprint_id', + 'blueprintTypeId' => 'blueprint_type_id', + 'blueprintLocationId' => 'blueprint_location_id', + 'outputLocationId' => 'output_location_id', + 'runs' => 'runs', + 'cost' => 'cost', + 'licensedRuns' => 'licensed_runs', + 'probability' => 'probability', + 'productTypeId' => 'product_type_id', + 'status' => 'status', + 'duration' => 'duration', + 'startDate' => 'start_date', + 'endDate' => 'end_date', + 'pauseDate' => 'pause_date', + 'completedDate' => 'completed_date', + 'completedCharacterId' => 'completed_character_id', + 'successfulRuns' => 'successful_runs' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'jobId' => 'setJobId', + 'installerId' => 'setInstallerId', + 'facilityId' => 'setFacilityId', + 'stationId' => 'setStationId', + 'activityId' => 'setActivityId', + 'blueprintId' => 'setBlueprintId', + 'blueprintTypeId' => 'setBlueprintTypeId', + 'blueprintLocationId' => 'setBlueprintLocationId', + 'outputLocationId' => 'setOutputLocationId', + 'runs' => 'setRuns', + 'cost' => 'setCost', + 'licensedRuns' => 'setLicensedRuns', + 'probability' => 'setProbability', + 'productTypeId' => 'setProductTypeId', + 'status' => 'setStatus', + 'duration' => 'setDuration', + 'startDate' => 'setStartDate', + 'endDate' => 'setEndDate', + 'pauseDate' => 'setPauseDate', + 'completedDate' => 'setCompletedDate', + 'completedCharacterId' => 'setCompletedCharacterId', + 'successfulRuns' => 'setSuccessfulRuns' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'jobId' => 'getJobId', + 'installerId' => 'getInstallerId', + 'facilityId' => 'getFacilityId', + 'stationId' => 'getStationId', + 'activityId' => 'getActivityId', + 'blueprintId' => 'getBlueprintId', + 'blueprintTypeId' => 'getBlueprintTypeId', + 'blueprintLocationId' => 'getBlueprintLocationId', + 'outputLocationId' => 'getOutputLocationId', + 'runs' => 'getRuns', + 'cost' => 'getCost', + 'licensedRuns' => 'getLicensedRuns', + 'probability' => 'getProbability', + 'productTypeId' => 'getProductTypeId', + 'status' => 'getStatus', + 'duration' => 'getDuration', + 'startDate' => 'getStartDate', + 'endDate' => 'getEndDate', + 'pauseDate' => 'getPauseDate', + 'completedDate' => 'getCompletedDate', + 'completedCharacterId' => 'getCompletedCharacterId', + 'successfulRuns' => 'getSuccessfulRuns' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const STATUS_ACTIVE = 'active'; + const STATUS_CANCELLED = 'cancelled'; + const STATUS_DELIVERED = 'delivered'; + const STATUS_PAUSED = 'paused'; + const STATUS_READY = 'ready'; + const STATUS_REVERTED = 'reverted'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getStatusAllowableValues() + { + return [ + self::STATUS_ACTIVE, + self::STATUS_CANCELLED, + self::STATUS_DELIVERED, + self::STATUS_PAUSED, + self::STATUS_READY, + self::STATUS_REVERTED, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['jobId'] = isset($data['jobId']) ? $data['jobId'] : null; + $this->container['installerId'] = isset($data['installerId']) ? $data['installerId'] : null; + $this->container['facilityId'] = isset($data['facilityId']) ? $data['facilityId'] : null; + $this->container['stationId'] = isset($data['stationId']) ? $data['stationId'] : null; + $this->container['activityId'] = isset($data['activityId']) ? $data['activityId'] : null; + $this->container['blueprintId'] = isset($data['blueprintId']) ? $data['blueprintId'] : null; + $this->container['blueprintTypeId'] = isset($data['blueprintTypeId']) ? $data['blueprintTypeId'] : null; + $this->container['blueprintLocationId'] = isset($data['blueprintLocationId']) ? $data['blueprintLocationId'] : null; + $this->container['outputLocationId'] = isset($data['outputLocationId']) ? $data['outputLocationId'] : null; + $this->container['runs'] = isset($data['runs']) ? $data['runs'] : null; + $this->container['cost'] = isset($data['cost']) ? $data['cost'] : null; + $this->container['licensedRuns'] = isset($data['licensedRuns']) ? $data['licensedRuns'] : null; + $this->container['probability'] = isset($data['probability']) ? $data['probability'] : null; + $this->container['productTypeId'] = isset($data['productTypeId']) ? $data['productTypeId'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['duration'] = isset($data['duration']) ? $data['duration'] : null; + $this->container['startDate'] = isset($data['startDate']) ? $data['startDate'] : null; + $this->container['endDate'] = isset($data['endDate']) ? $data['endDate'] : null; + $this->container['pauseDate'] = isset($data['pauseDate']) ? $data['pauseDate'] : null; + $this->container['completedDate'] = isset($data['completedDate']) ? $data['completedDate'] : null; + $this->container['completedCharacterId'] = isset($data['completedCharacterId']) ? $data['completedCharacterId'] : null; + $this->container['successfulRuns'] = isset($data['successfulRuns']) ? $data['successfulRuns'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['jobId'] === null) { + $invalidProperties[] = "'jobId' can't be null"; + } + if ($this->container['installerId'] === null) { + $invalidProperties[] = "'installerId' can't be null"; + } + if ($this->container['facilityId'] === null) { + $invalidProperties[] = "'facilityId' can't be null"; + } + if ($this->container['stationId'] === null) { + $invalidProperties[] = "'stationId' can't be null"; + } + if ($this->container['activityId'] === null) { + $invalidProperties[] = "'activityId' can't be null"; + } + if ($this->container['blueprintId'] === null) { + $invalidProperties[] = "'blueprintId' can't be null"; + } + if ($this->container['blueprintTypeId'] === null) { + $invalidProperties[] = "'blueprintTypeId' can't be null"; + } + if ($this->container['blueprintLocationId'] === null) { + $invalidProperties[] = "'blueprintLocationId' can't be null"; + } + if ($this->container['outputLocationId'] === null) { + $invalidProperties[] = "'outputLocationId' can't be null"; + } + if ($this->container['runs'] === null) { + $invalidProperties[] = "'runs' can't be null"; + } + if ($this->container['status'] === null) { + $invalidProperties[] = "'status' can't be null"; + } + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($this->container['status'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'status', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['duration'] === null) { + $invalidProperties[] = "'duration' can't be null"; + } + if ($this->container['startDate'] === null) { + $invalidProperties[] = "'startDate' can't be null"; + } + if ($this->container['endDate'] === null) { + $invalidProperties[] = "'endDate' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['jobId'] === null) { + return false; + } + if ($this->container['installerId'] === null) { + return false; + } + if ($this->container['facilityId'] === null) { + return false; + } + if ($this->container['stationId'] === null) { + return false; + } + if ($this->container['activityId'] === null) { + return false; + } + if ($this->container['blueprintId'] === null) { + return false; + } + if ($this->container['blueprintTypeId'] === null) { + return false; + } + if ($this->container['blueprintLocationId'] === null) { + return false; + } + if ($this->container['outputLocationId'] === null) { + return false; + } + if ($this->container['runs'] === null) { + return false; + } + if ($this->container['status'] === null) { + return false; + } + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($this->container['status'], $allowedValues)) { + return false; + } + if ($this->container['duration'] === null) { + return false; + } + if ($this->container['startDate'] === null) { + return false; + } + if ($this->container['endDate'] === null) { + return false; + } + return true; + } + + + /** + * Gets jobId + * + * @return int + */ + public function getJobId() + { + return $this->container['jobId']; + } + + /** + * Sets jobId + * + * @param int $jobId Unique job ID + * + * @return $this + */ + public function setJobId($jobId) + { + $this->container['jobId'] = $jobId; + + return $this; + } + + /** + * Gets installerId + * + * @return int + */ + public function getInstallerId() + { + return $this->container['installerId']; + } + + /** + * Sets installerId + * + * @param int $installerId ID of the character which installed this job + * + * @return $this + */ + public function setInstallerId($installerId) + { + $this->container['installerId'] = $installerId; + + return $this; + } + + /** + * Gets facilityId + * + * @return int + */ + public function getFacilityId() + { + return $this->container['facilityId']; + } + + /** + * Sets facilityId + * + * @param int $facilityId ID of the facility where this job is running + * + * @return $this + */ + public function setFacilityId($facilityId) + { + $this->container['facilityId'] = $facilityId; + + return $this; + } + + /** + * Gets stationId + * + * @return int + */ + public function getStationId() + { + return $this->container['stationId']; + } + + /** + * Sets stationId + * + * @param int $stationId ID of the station where industry facility is located + * + * @return $this + */ + public function setStationId($stationId) + { + $this->container['stationId'] = $stationId; + + return $this; + } + + /** + * Gets activityId + * + * @return int + */ + public function getActivityId() + { + return $this->container['activityId']; + } + + /** + * Sets activityId + * + * @param int $activityId Job activity ID + * + * @return $this + */ + public function setActivityId($activityId) + { + $this->container['activityId'] = $activityId; + + return $this; + } + + /** + * Gets blueprintId + * + * @return int + */ + public function getBlueprintId() + { + return $this->container['blueprintId']; + } + + /** + * Sets blueprintId + * + * @param int $blueprintId blueprint_id integer + * + * @return $this + */ + public function setBlueprintId($blueprintId) + { + $this->container['blueprintId'] = $blueprintId; + + return $this; + } + + /** + * Gets blueprintTypeId + * + * @return int + */ + public function getBlueprintTypeId() + { + return $this->container['blueprintTypeId']; + } + + /** + * Sets blueprintTypeId + * + * @param int $blueprintTypeId blueprint_type_id integer + * + * @return $this + */ + public function setBlueprintTypeId($blueprintTypeId) + { + $this->container['blueprintTypeId'] = $blueprintTypeId; + + return $this; + } + + /** + * Gets blueprintLocationId + * + * @return int + */ + public function getBlueprintLocationId() + { + return $this->container['blueprintLocationId']; + } + + /** + * Sets blueprintLocationId + * + * @param int $blueprintLocationId Location ID of the location from which the blueprint was installed. Normally a station ID, but can also be an asset (e.g. container) or corporation facility + * + * @return $this + */ + public function setBlueprintLocationId($blueprintLocationId) + { + $this->container['blueprintLocationId'] = $blueprintLocationId; + + return $this; + } + + /** + * Gets outputLocationId + * + * @return int + */ + public function getOutputLocationId() + { + return $this->container['outputLocationId']; + } + + /** + * Sets outputLocationId + * + * @param int $outputLocationId Location ID of the location to which the output of the job will be delivered. Normally a station ID, but can also be a corporation facility + * + * @return $this + */ + public function setOutputLocationId($outputLocationId) + { + $this->container['outputLocationId'] = $outputLocationId; + + return $this; + } + + /** + * Gets runs + * + * @return int + */ + public function getRuns() + { + return $this->container['runs']; + } + + /** + * Sets runs + * + * @param int $runs Number of runs for a manufacturing job, or number of copies to make for a blueprint copy + * + * @return $this + */ + public function setRuns($runs) + { + $this->container['runs'] = $runs; + + return $this; + } + + /** + * Gets cost + * + * @return double + */ + public function getCost() + { + return $this->container['cost']; + } + + /** + * Sets cost + * + * @param double $cost The sume of job installation fee and industry facility tax + * + * @return $this + */ + public function setCost($cost) + { + $this->container['cost'] = $cost; + + return $this; + } + + /** + * Gets licensedRuns + * + * @return int + */ + public function getLicensedRuns() + { + return $this->container['licensedRuns']; + } + + /** + * Sets licensedRuns + * + * @param int $licensedRuns Number of runs blueprint is licensed for + * + * @return $this + */ + public function setLicensedRuns($licensedRuns) + { + $this->container['licensedRuns'] = $licensedRuns; + + return $this; + } + + /** + * Gets probability + * + * @return float + */ + public function getProbability() + { + return $this->container['probability']; + } + + /** + * Sets probability + * + * @param float $probability Chance of success for invention + * + * @return $this + */ + public function setProbability($probability) + { + $this->container['probability'] = $probability; + + return $this; + } + + /** + * Gets productTypeId + * + * @return int + */ + public function getProductTypeId() + { + return $this->container['productTypeId']; + } + + /** + * Sets productTypeId + * + * @param int $productTypeId Type ID of product (manufactured, copied or invented) + * + * @return $this + */ + public function setProductTypeId($productTypeId) + { + $this->container['productTypeId'] = $productTypeId; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status status string + * + * @return $this + */ + public function setStatus($status) + { + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($status, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'status', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets duration + * + * @return int + */ + public function getDuration() + { + return $this->container['duration']; + } + + /** + * Sets duration + * + * @param int $duration Job duration in seconds + * + * @return $this + */ + public function setDuration($duration) + { + $this->container['duration'] = $duration; + + return $this; + } + + /** + * Gets startDate + * + * @return \DateTime + */ + public function getStartDate() + { + return $this->container['startDate']; + } + + /** + * Sets startDate + * + * @param \DateTime $startDate Date and time when this job started + * + * @return $this + */ + public function setStartDate($startDate) + { + $this->container['startDate'] = $startDate; + + return $this; + } + + /** + * Gets endDate + * + * @return \DateTime + */ + public function getEndDate() + { + return $this->container['endDate']; + } + + /** + * Sets endDate + * + * @param \DateTime $endDate Date and time when this job finished + * + * @return $this + */ + public function setEndDate($endDate) + { + $this->container['endDate'] = $endDate; + + return $this; + } + + /** + * Gets pauseDate + * + * @return \DateTime + */ + public function getPauseDate() + { + return $this->container['pauseDate']; + } + + /** + * Sets pauseDate + * + * @param \DateTime $pauseDate Date and time when this job was paused (i.e. time when the facility where this job was installed went offline) + * + * @return $this + */ + public function setPauseDate($pauseDate) + { + $this->container['pauseDate'] = $pauseDate; + + return $this; + } + + /** + * Gets completedDate + * + * @return \DateTime + */ + public function getCompletedDate() + { + return $this->container['completedDate']; + } + + /** + * Sets completedDate + * + * @param \DateTime $completedDate Date and time when this job was completed + * + * @return $this + */ + public function setCompletedDate($completedDate) + { + $this->container['completedDate'] = $completedDate; + + return $this; + } + + /** + * Gets completedCharacterId + * + * @return int + */ + public function getCompletedCharacterId() + { + return $this->container['completedCharacterId']; + } + + /** + * Sets completedCharacterId + * + * @param int $completedCharacterId ID of the character which completed this job + * + * @return $this + */ + public function setCompletedCharacterId($completedCharacterId) + { + $this->container['completedCharacterId'] = $completedCharacterId; + + return $this; + } + + /** + * Gets successfulRuns + * + * @return int + */ + public function getSuccessfulRuns() + { + return $this->container['successfulRuns']; + } + + /** + * Sets successfulRuns + * + * @param int $successfulRuns Number of successful runs for this job. Equal to runs unless this is an invention job + * + * @return $this + */ + public function setSuccessfulRuns($successfulRuns) + { + $this->container['successfulRuns'] = $successfulRuns; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdKillmailsRecent200Ok.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdKillmailsRecent200Ok.php new file mode 100644 index 0000000..f2c108a --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdKillmailsRecent200Ok.php @@ -0,0 +1,345 @@ + 'int', + 'killmailHash' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'killmailId' => 'int32', + 'killmailHash' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'killmailId' => 'killmail_id', + 'killmailHash' => 'killmail_hash' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'killmailId' => 'setKillmailId', + 'killmailHash' => 'setKillmailHash' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'killmailId' => 'getKillmailId', + 'killmailHash' => 'getKillmailHash' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['killmailId'] = isset($data['killmailId']) ? $data['killmailId'] : null; + $this->container['killmailHash'] = isset($data['killmailHash']) ? $data['killmailHash'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['killmailId'] === null) { + $invalidProperties[] = "'killmailId' can't be null"; + } + if ($this->container['killmailHash'] === null) { + $invalidProperties[] = "'killmailHash' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['killmailId'] === null) { + return false; + } + if ($this->container['killmailHash'] === null) { + return false; + } + return true; + } + + + /** + * Gets killmailId + * + * @return int + */ + public function getKillmailId() + { + return $this->container['killmailId']; + } + + /** + * Sets killmailId + * + * @param int $killmailId ID of this killmail + * + * @return $this + */ + public function setKillmailId($killmailId) + { + $this->container['killmailId'] = $killmailId; + + return $this; + } + + /** + * Gets killmailHash + * + * @return string + */ + public function getKillmailHash() + { + return $this->container['killmailHash']; + } + + /** + * Sets killmailHash + * + * @param string $killmailHash A hash of this killmail + * + * @return $this + */ + public function setKillmailHash($killmailHash) + { + $this->container['killmailHash'] = $killmailHash; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdLocationOk.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdLocationOk.php new file mode 100644 index 0000000..8eb7bf1 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdLocationOk.php @@ -0,0 +1,369 @@ + 'int', + 'stationId' => 'int', + 'structureId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'solarSystemId' => 'int32', + 'stationId' => 'int32', + 'structureId' => 'int64' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'solarSystemId' => 'solar_system_id', + 'stationId' => 'station_id', + 'structureId' => 'structure_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'solarSystemId' => 'setSolarSystemId', + 'stationId' => 'setStationId', + 'structureId' => 'setStructureId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'solarSystemId' => 'getSolarSystemId', + 'stationId' => 'getStationId', + 'structureId' => 'getStructureId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['solarSystemId'] = isset($data['solarSystemId']) ? $data['solarSystemId'] : null; + $this->container['stationId'] = isset($data['stationId']) ? $data['stationId'] : null; + $this->container['structureId'] = isset($data['structureId']) ? $data['structureId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['solarSystemId'] === null) { + $invalidProperties[] = "'solarSystemId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['solarSystemId'] === null) { + return false; + } + return true; + } + + + /** + * Gets solarSystemId + * + * @return int + */ + public function getSolarSystemId() + { + return $this->container['solarSystemId']; + } + + /** + * Sets solarSystemId + * + * @param int $solarSystemId solar_system_id integer + * + * @return $this + */ + public function setSolarSystemId($solarSystemId) + { + $this->container['solarSystemId'] = $solarSystemId; + + return $this; + } + + /** + * Gets stationId + * + * @return int + */ + public function getStationId() + { + return $this->container['stationId']; + } + + /** + * Sets stationId + * + * @param int $stationId station_id integer + * + * @return $this + */ + public function setStationId($stationId) + { + $this->container['stationId'] = $stationId; + + return $this; + } + + /** + * Gets structureId + * + * @return int + */ + public function getStructureId() + { + return $this->container['structureId']; + } + + /** + * Sets structureId + * + * @param int $structureId structure_id integer + * + * @return $this + */ + public function setStructureId($structureId) + { + $this->container['structureId'] = $structureId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdLoyaltyPoints200Ok.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdLoyaltyPoints200Ok.php new file mode 100644 index 0000000..d1b8bc4 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdLoyaltyPoints200Ok.php @@ -0,0 +1,345 @@ + 'int', + 'loyaltyPoints' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'corporationId' => 'int32', + 'loyaltyPoints' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'corporationId' => 'corporation_id', + 'loyaltyPoints' => 'loyalty_points' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'corporationId' => 'setCorporationId', + 'loyaltyPoints' => 'setLoyaltyPoints' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'corporationId' => 'getCorporationId', + 'loyaltyPoints' => 'getLoyaltyPoints' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['corporationId'] = isset($data['corporationId']) ? $data['corporationId'] : null; + $this->container['loyaltyPoints'] = isset($data['loyaltyPoints']) ? $data['loyaltyPoints'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['corporationId'] === null) { + $invalidProperties[] = "'corporationId' can't be null"; + } + if ($this->container['loyaltyPoints'] === null) { + $invalidProperties[] = "'loyaltyPoints' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['corporationId'] === null) { + return false; + } + if ($this->container['loyaltyPoints'] === null) { + return false; + } + return true; + } + + + /** + * Gets corporationId + * + * @return int + */ + public function getCorporationId() + { + return $this->container['corporationId']; + } + + /** + * Sets corporationId + * + * @param int $corporationId corporation_id integer + * + * @return $this + */ + public function setCorporationId($corporationId) + { + $this->container['corporationId'] = $corporationId; + + return $this; + } + + /** + * Gets loyaltyPoints + * + * @return int + */ + public function getLoyaltyPoints() + { + return $this->container['loyaltyPoints']; + } + + /** + * Sets loyaltyPoints + * + * @param int $loyaltyPoints loyalty_points integer + * + * @return $this + */ + public function setLoyaltyPoints($loyaltyPoints) + { + $this->container['loyaltyPoints'] = $loyaltyPoints; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdMail200Ok.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdMail200Ok.php new file mode 100644 index 0000000..fff7bc7 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdMail200Ok.php @@ -0,0 +1,483 @@ + 'int', + 'subject' => 'string', + 'from' => 'int', + 'timestamp' => '\DateTime', + 'labels' => 'int[]', + 'recipients' => '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMailRecipient[]', + 'isRead' => 'bool' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'mailId' => 'int64', + 'subject' => null, + 'from' => 'int32', + 'timestamp' => 'date-time', + 'labels' => 'int64', + 'recipients' => null, + 'isRead' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'mailId' => 'mail_id', + 'subject' => 'subject', + 'from' => 'from', + 'timestamp' => 'timestamp', + 'labels' => 'labels', + 'recipients' => 'recipients', + 'isRead' => 'is_read' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'mailId' => 'setMailId', + 'subject' => 'setSubject', + 'from' => 'setFrom', + 'timestamp' => 'setTimestamp', + 'labels' => 'setLabels', + 'recipients' => 'setRecipients', + 'isRead' => 'setIsRead' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'mailId' => 'getMailId', + 'subject' => 'getSubject', + 'from' => 'getFrom', + 'timestamp' => 'getTimestamp', + 'labels' => 'getLabels', + 'recipients' => 'getRecipients', + 'isRead' => 'getIsRead' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['mailId'] = isset($data['mailId']) ? $data['mailId'] : null; + $this->container['subject'] = isset($data['subject']) ? $data['subject'] : null; + $this->container['from'] = isset($data['from']) ? $data['from'] : null; + $this->container['timestamp'] = isset($data['timestamp']) ? $data['timestamp'] : null; + $this->container['labels'] = isset($data['labels']) ? $data['labels'] : null; + $this->container['recipients'] = isset($data['recipients']) ? $data['recipients'] : null; + $this->container['isRead'] = isset($data['isRead']) ? $data['isRead'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets mailId + * + * @return int + */ + public function getMailId() + { + return $this->container['mailId']; + } + + /** + * Sets mailId + * + * @param int $mailId mail_id integer + * + * @return $this + */ + public function setMailId($mailId) + { + $this->container['mailId'] = $mailId; + + return $this; + } + + /** + * Gets subject + * + * @return string + */ + public function getSubject() + { + return $this->container['subject']; + } + + /** + * Sets subject + * + * @param string $subject Mail subject + * + * @return $this + */ + public function setSubject($subject) + { + $this->container['subject'] = $subject; + + return $this; + } + + /** + * Gets from + * + * @return int + */ + public function getFrom() + { + return $this->container['from']; + } + + /** + * Sets from + * + * @param int $from From whom the mail was sent + * + * @return $this + */ + public function setFrom($from) + { + $this->container['from'] = $from; + + return $this; + } + + /** + * Gets timestamp + * + * @return \DateTime + */ + public function getTimestamp() + { + return $this->container['timestamp']; + } + + /** + * Sets timestamp + * + * @param \DateTime $timestamp When the mail was sent + * + * @return $this + */ + public function setTimestamp($timestamp) + { + $this->container['timestamp'] = $timestamp; + + return $this; + } + + /** + * Gets labels + * + * @return int[] + */ + public function getLabels() + { + return $this->container['labels']; + } + + /** + * Sets labels + * + * @param int[] $labels labels array + * + * @return $this + */ + public function setLabels($labels) + { + $this->container['labels'] = $labels; + + return $this; + } + + /** + * Gets recipients + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMailRecipient[] + */ + public function getRecipients() + { + return $this->container['recipients']; + } + + /** + * Sets recipients + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMailRecipient[] $recipients Recipients of the mail + * + * @return $this + */ + public function setRecipients($recipients) + { + $this->container['recipients'] = $recipients; + + return $this; + } + + /** + * Gets isRead + * + * @return bool + */ + public function getIsRead() + { + return $this->container['isRead']; + } + + /** + * Sets isRead + * + * @param bool $isRead is_read boolean + * + * @return $this + */ + public function setIsRead($isRead) + { + $this->container['isRead'] = $isRead; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdMailLabelsLabel.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdMailLabelsLabel.php new file mode 100644 index 0000000..2388191 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdMailLabelsLabel.php @@ -0,0 +1,496 @@ + 'int', + 'labelId' => 'int', + 'name' => 'string', + 'color' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'unreadCount' => 'int32', + 'labelId' => 'int32', + 'name' => null, + 'color' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'unreadCount' => 'unread_count', + 'labelId' => 'label_id', + 'name' => 'name', + 'color' => 'color' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'unreadCount' => 'setUnreadCount', + 'labelId' => 'setLabelId', + 'name' => 'setName', + 'color' => 'setColor' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'unreadCount' => 'getUnreadCount', + 'labelId' => 'getLabelId', + 'name' => 'getName', + 'color' => 'getColor' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const COLOR__0000FE = '#0000fe'; + const COLOR__006634 = '#006634'; + const COLOR__0099FF = '#0099ff'; + const COLOR__00FF33 = '#00ff33'; + const COLOR__01FFFF = '#01ffff'; + const COLOR__349800 = '#349800'; + const COLOR__660066 = '#660066'; + const COLOR__666666 = '#666666'; + const COLOR__999999 = '#999999'; + const COLOR__99FFFF = '#99ffff'; + const COLOR__9A0000 = '#9a0000'; + const COLOR_CCFF9A = '#ccff9a'; + const COLOR_E6E6E6 = '#e6e6e6'; + const COLOR_FE0000 = '#fe0000'; + const COLOR_FF6600 = '#ff6600'; + const COLOR_FFFF01 = '#ffff01'; + const COLOR_FFFFCD = '#ffffcd'; + const COLOR_FFFFFF = '#ffffff'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getColorAllowableValues() + { + return [ + self::COLOR__0000FE, + self::COLOR__006634, + self::COLOR__0099FF, + self::COLOR__00FF33, + self::COLOR__01FFFF, + self::COLOR__349800, + self::COLOR__660066, + self::COLOR__666666, + self::COLOR__999999, + self::COLOR__99FFFF, + self::COLOR__9A0000, + self::COLOR_CCFF9A, + self::COLOR_E6E6E6, + self::COLOR_FE0000, + self::COLOR_FF6600, + self::COLOR_FFFF01, + self::COLOR_FFFFCD, + self::COLOR_FFFFFF, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['unreadCount'] = isset($data['unreadCount']) ? $data['unreadCount'] : null; + $this->container['labelId'] = isset($data['labelId']) ? $data['labelId'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['color'] = isset($data['color']) ? $data['color'] : '#ffffff'; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if (!is_null($this->container['unreadCount']) && ($this->container['unreadCount'] < 0)) { + $invalidProperties[] = "invalid value for 'unreadCount', must be bigger than or equal to 0."; + } + + if (!is_null($this->container['labelId']) && ($this->container['labelId'] < 0)) { + $invalidProperties[] = "invalid value for 'labelId', must be bigger than or equal to 0."; + } + + if (!is_null($this->container['name']) && (strlen($this->container['name']) > 40)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 40."; + } + + $allowedValues = $this->getColorAllowableValues(); + if (!in_array($this->container['color'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'color', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['unreadCount'] < 0) { + return false; + } + if ($this->container['labelId'] < 0) { + return false; + } + if (strlen($this->container['name']) > 40) { + return false; + } + $allowedValues = $this->getColorAllowableValues(); + if (!in_array($this->container['color'], $allowedValues)) { + return false; + } + return true; + } + + + /** + * Gets unreadCount + * + * @return int + */ + public function getUnreadCount() + { + return $this->container['unreadCount']; + } + + /** + * Sets unreadCount + * + * @param int $unreadCount unread_count integer + * + * @return $this + */ + public function setUnreadCount($unreadCount) + { + + if (!is_null($unreadCount) && ($unreadCount < 0)) { + throw new \InvalidArgumentException('invalid value for $unreadCount when calling GetCharactersCharacterIdMailLabelsLabel., must be bigger than or equal to 0.'); + } + + $this->container['unreadCount'] = $unreadCount; + + return $this; + } + + /** + * Gets labelId + * + * @return int + */ + public function getLabelId() + { + return $this->container['labelId']; + } + + /** + * Sets labelId + * + * @param int $labelId label_id integer + * + * @return $this + */ + public function setLabelId($labelId) + { + + if (!is_null($labelId) && ($labelId < 0)) { + throw new \InvalidArgumentException('invalid value for $labelId when calling GetCharactersCharacterIdMailLabelsLabel., must be bigger than or equal to 0.'); + } + + $this->container['labelId'] = $labelId; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + if (!is_null($name) && (strlen($name) > 40)) { + throw new \InvalidArgumentException('invalid length for $name when calling GetCharactersCharacterIdMailLabelsLabel., must be smaller than or equal to 40.'); + } + + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets color + * + * @return string + */ + public function getColor() + { + return $this->container['color']; + } + + /** + * Sets color + * + * @param string $color color string + * + * @return $this + */ + public function setColor($color) + { + $allowedValues = $this->getColorAllowableValues(); + if (!is_null($color) && !in_array($color, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'color', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['color'] = $color; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdMailLabelsOk.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdMailLabelsOk.php new file mode 100644 index 0000000..beab7bf --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdMailLabelsOk.php @@ -0,0 +1,345 @@ + 'int', + 'labels' => '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMailLabelsLabel[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'totalUnreadCount' => 'int32', + 'labels' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'totalUnreadCount' => 'total_unread_count', + 'labels' => 'labels' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'totalUnreadCount' => 'setTotalUnreadCount', + 'labels' => 'setLabels' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'totalUnreadCount' => 'getTotalUnreadCount', + 'labels' => 'getLabels' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['totalUnreadCount'] = isset($data['totalUnreadCount']) ? $data['totalUnreadCount'] : null; + $this->container['labels'] = isset($data['labels']) ? $data['labels'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if (!is_null($this->container['totalUnreadCount']) && ($this->container['totalUnreadCount'] < 0)) { + $invalidProperties[] = "invalid value for 'totalUnreadCount', must be bigger than or equal to 0."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['totalUnreadCount'] < 0) { + return false; + } + return true; + } + + + /** + * Gets totalUnreadCount + * + * @return int + */ + public function getTotalUnreadCount() + { + return $this->container['totalUnreadCount']; + } + + /** + * Sets totalUnreadCount + * + * @param int $totalUnreadCount total_unread_count integer + * + * @return $this + */ + public function setTotalUnreadCount($totalUnreadCount) + { + + if (!is_null($totalUnreadCount) && ($totalUnreadCount < 0)) { + throw new \InvalidArgumentException('invalid value for $totalUnreadCount when calling GetCharactersCharacterIdMailLabelsOk., must be bigger than or equal to 0.'); + } + + $this->container['totalUnreadCount'] = $totalUnreadCount; + + return $this; + } + + /** + * Gets labels + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMailLabelsLabel[] + */ + public function getLabels() + { + return $this->container['labels']; + } + + /** + * Sets labels + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMailLabelsLabel[] $labels labels array + * + * @return $this + */ + public function setLabels($labels) + { + $this->container['labels'] = $labels; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdMailLists200Ok.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdMailLists200Ok.php new file mode 100644 index 0000000..68e71f9 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdMailLists200Ok.php @@ -0,0 +1,345 @@ + 'int', + 'name' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'mailingListId' => 'int32', + 'name' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'mailingListId' => 'mailing_list_id', + 'name' => 'name' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'mailingListId' => 'setMailingListId', + 'name' => 'setName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'mailingListId' => 'getMailingListId', + 'name' => 'getName' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['mailingListId'] = isset($data['mailingListId']) ? $data['mailingListId'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['mailingListId'] === null) { + $invalidProperties[] = "'mailingListId' can't be null"; + } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['mailingListId'] === null) { + return false; + } + if ($this->container['name'] === null) { + return false; + } + return true; + } + + + /** + * Gets mailingListId + * + * @return int + */ + public function getMailingListId() + { + return $this->container['mailingListId']; + } + + /** + * Sets mailingListId + * + * @param int $mailingListId Mailing list ID + * + * @return $this + */ + public function setMailingListId($mailingListId) + { + $this->container['mailingListId'] = $mailingListId; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdMailMailIdNotFound.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdMailMailIdNotFound.php new file mode 100644 index 0000000..af9496b --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdMailMailIdNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Not found message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdMailMailIdOk.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdMailMailIdOk.php new file mode 100644 index 0000000..0492ab1 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdMailMailIdOk.php @@ -0,0 +1,483 @@ + 'string', + 'from' => 'int', + 'timestamp' => '\DateTime', + 'recipients' => '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMailMailIdRecipient[]', + 'body' => 'string', + 'labels' => 'int[]', + 'read' => 'bool' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'subject' => null, + 'from' => 'int32', + 'timestamp' => 'date-time', + 'recipients' => null, + 'body' => null, + 'labels' => 'int64', + 'read' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'subject' => 'subject', + 'from' => 'from', + 'timestamp' => 'timestamp', + 'recipients' => 'recipients', + 'body' => 'body', + 'labels' => 'labels', + 'read' => 'read' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'subject' => 'setSubject', + 'from' => 'setFrom', + 'timestamp' => 'setTimestamp', + 'recipients' => 'setRecipients', + 'body' => 'setBody', + 'labels' => 'setLabels', + 'read' => 'setRead' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'subject' => 'getSubject', + 'from' => 'getFrom', + 'timestamp' => 'getTimestamp', + 'recipients' => 'getRecipients', + 'body' => 'getBody', + 'labels' => 'getLabels', + 'read' => 'getRead' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['subject'] = isset($data['subject']) ? $data['subject'] : null; + $this->container['from'] = isset($data['from']) ? $data['from'] : null; + $this->container['timestamp'] = isset($data['timestamp']) ? $data['timestamp'] : null; + $this->container['recipients'] = isset($data['recipients']) ? $data['recipients'] : null; + $this->container['body'] = isset($data['body']) ? $data['body'] : null; + $this->container['labels'] = isset($data['labels']) ? $data['labels'] : null; + $this->container['read'] = isset($data['read']) ? $data['read'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets subject + * + * @return string + */ + public function getSubject() + { + return $this->container['subject']; + } + + /** + * Sets subject + * + * @param string $subject Mail subject + * + * @return $this + */ + public function setSubject($subject) + { + $this->container['subject'] = $subject; + + return $this; + } + + /** + * Gets from + * + * @return int + */ + public function getFrom() + { + return $this->container['from']; + } + + /** + * Sets from + * + * @param int $from From whom the mail was sent + * + * @return $this + */ + public function setFrom($from) + { + $this->container['from'] = $from; + + return $this; + } + + /** + * Gets timestamp + * + * @return \DateTime + */ + public function getTimestamp() + { + return $this->container['timestamp']; + } + + /** + * Sets timestamp + * + * @param \DateTime $timestamp When the mail was sent + * + * @return $this + */ + public function setTimestamp($timestamp) + { + $this->container['timestamp'] = $timestamp; + + return $this; + } + + /** + * Gets recipients + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMailMailIdRecipient[] + */ + public function getRecipients() + { + return $this->container['recipients']; + } + + /** + * Sets recipients + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMailMailIdRecipient[] $recipients Recipients of the mail + * + * @return $this + */ + public function setRecipients($recipients) + { + $this->container['recipients'] = $recipients; + + return $this; + } + + /** + * Gets body + * + * @return string + */ + public function getBody() + { + return $this->container['body']; + } + + /** + * Sets body + * + * @param string $body Mail's body + * + * @return $this + */ + public function setBody($body) + { + $this->container['body'] = $body; + + return $this; + } + + /** + * Gets labels + * + * @return int[] + */ + public function getLabels() + { + return $this->container['labels']; + } + + /** + * Sets labels + * + * @param int[] $labels Labels attached to the mail + * + * @return $this + */ + public function setLabels($labels) + { + $this->container['labels'] = $labels; + + return $this; + } + + /** + * Gets read + * + * @return bool + */ + public function getRead() + { + return $this->container['read']; + } + + /** + * Sets read + * + * @param bool $read Whether the mail is flagged as read + * + * @return $this + */ + public function setRead($read) + { + $this->container['read'] = $read; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdMailMailIdRecipient.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdMailMailIdRecipient.php new file mode 100644 index 0000000..689e77d --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdMailMailIdRecipient.php @@ -0,0 +1,385 @@ + 'string', + 'recipientId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'recipientType' => null, + 'recipientId' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'recipientType' => 'recipient_type', + 'recipientId' => 'recipient_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'recipientType' => 'setRecipientType', + 'recipientId' => 'setRecipientId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'recipientType' => 'getRecipientType', + 'recipientId' => 'getRecipientId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const RECIPIENT_TYPE_ALLIANCE = 'alliance'; + const RECIPIENT_TYPE_CHARACTER = 'character'; + const RECIPIENT_TYPE_CORPORATION = 'corporation'; + const RECIPIENT_TYPE_MAILING_LIST = 'mailing_list'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getRecipientTypeAllowableValues() + { + return [ + self::RECIPIENT_TYPE_ALLIANCE, + self::RECIPIENT_TYPE_CHARACTER, + self::RECIPIENT_TYPE_CORPORATION, + self::RECIPIENT_TYPE_MAILING_LIST, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['recipientType'] = isset($data['recipientType']) ? $data['recipientType'] : null; + $this->container['recipientId'] = isset($data['recipientId']) ? $data['recipientId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['recipientType'] === null) { + $invalidProperties[] = "'recipientType' can't be null"; + } + $allowedValues = $this->getRecipientTypeAllowableValues(); + if (!in_array($this->container['recipientType'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'recipientType', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['recipientId'] === null) { + $invalidProperties[] = "'recipientId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['recipientType'] === null) { + return false; + } + $allowedValues = $this->getRecipientTypeAllowableValues(); + if (!in_array($this->container['recipientType'], $allowedValues)) { + return false; + } + if ($this->container['recipientId'] === null) { + return false; + } + return true; + } + + + /** + * Gets recipientType + * + * @return string + */ + public function getRecipientType() + { + return $this->container['recipientType']; + } + + /** + * Sets recipientType + * + * @param string $recipientType recipient_type string + * + * @return $this + */ + public function setRecipientType($recipientType) + { + $allowedValues = $this->getRecipientTypeAllowableValues(); + if (!in_array($recipientType, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'recipientType', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['recipientType'] = $recipientType; + + return $this; + } + + /** + * Gets recipientId + * + * @return int + */ + public function getRecipientId() + { + return $this->container['recipientId']; + } + + /** + * Sets recipientId + * + * @param int $recipientId recipient_id integer + * + * @return $this + */ + public function setRecipientId($recipientId) + { + $this->container['recipientId'] = $recipientId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdMailRecipient.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdMailRecipient.php new file mode 100644 index 0000000..f199093 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdMailRecipient.php @@ -0,0 +1,385 @@ + 'string', + 'recipientId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'recipientType' => null, + 'recipientId' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'recipientType' => 'recipient_type', + 'recipientId' => 'recipient_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'recipientType' => 'setRecipientType', + 'recipientId' => 'setRecipientId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'recipientType' => 'getRecipientType', + 'recipientId' => 'getRecipientId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const RECIPIENT_TYPE_ALLIANCE = 'alliance'; + const RECIPIENT_TYPE_CHARACTER = 'character'; + const RECIPIENT_TYPE_CORPORATION = 'corporation'; + const RECIPIENT_TYPE_MAILING_LIST = 'mailing_list'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getRecipientTypeAllowableValues() + { + return [ + self::RECIPIENT_TYPE_ALLIANCE, + self::RECIPIENT_TYPE_CHARACTER, + self::RECIPIENT_TYPE_CORPORATION, + self::RECIPIENT_TYPE_MAILING_LIST, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['recipientType'] = isset($data['recipientType']) ? $data['recipientType'] : null; + $this->container['recipientId'] = isset($data['recipientId']) ? $data['recipientId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['recipientType'] === null) { + $invalidProperties[] = "'recipientType' can't be null"; + } + $allowedValues = $this->getRecipientTypeAllowableValues(); + if (!in_array($this->container['recipientType'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'recipientType', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['recipientId'] === null) { + $invalidProperties[] = "'recipientId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['recipientType'] === null) { + return false; + } + $allowedValues = $this->getRecipientTypeAllowableValues(); + if (!in_array($this->container['recipientType'], $allowedValues)) { + return false; + } + if ($this->container['recipientId'] === null) { + return false; + } + return true; + } + + + /** + * Gets recipientType + * + * @return string + */ + public function getRecipientType() + { + return $this->container['recipientType']; + } + + /** + * Sets recipientType + * + * @param string $recipientType recipient_type string + * + * @return $this + */ + public function setRecipientType($recipientType) + { + $allowedValues = $this->getRecipientTypeAllowableValues(); + if (!in_array($recipientType, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'recipientType', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['recipientType'] = $recipientType; + + return $this; + } + + /** + * Gets recipientId + * + * @return int + */ + public function getRecipientId() + { + return $this->container['recipientId']; + } + + /** + * Sets recipientId + * + * @param int $recipientId recipient_id integer + * + * @return $this + */ + public function setRecipientId($recipientId) + { + $this->container['recipientId'] = $recipientId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdMedals200Ok.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdMedals200Ok.php new file mode 100644 index 0000000..f008756 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdMedals200Ok.php @@ -0,0 +1,633 @@ + 'int', + 'title' => 'string', + 'description' => 'string', + 'corporationId' => 'int', + 'issuerId' => 'int', + 'date' => '\DateTime', + 'reason' => 'string', + 'status' => 'string', + 'graphics' => '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMedalsGraphic[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'medalId' => 'int32', + 'title' => null, + 'description' => null, + 'corporationId' => 'int32', + 'issuerId' => 'int32', + 'date' => 'date-time', + 'reason' => null, + 'status' => null, + 'graphics' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'medalId' => 'medal_id', + 'title' => 'title', + 'description' => 'description', + 'corporationId' => 'corporation_id', + 'issuerId' => 'issuer_id', + 'date' => 'date', + 'reason' => 'reason', + 'status' => 'status', + 'graphics' => 'graphics' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'medalId' => 'setMedalId', + 'title' => 'setTitle', + 'description' => 'setDescription', + 'corporationId' => 'setCorporationId', + 'issuerId' => 'setIssuerId', + 'date' => 'setDate', + 'reason' => 'setReason', + 'status' => 'setStatus', + 'graphics' => 'setGraphics' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'medalId' => 'getMedalId', + 'title' => 'getTitle', + 'description' => 'getDescription', + 'corporationId' => 'getCorporationId', + 'issuerId' => 'getIssuerId', + 'date' => 'getDate', + 'reason' => 'getReason', + 'status' => 'getStatus', + 'graphics' => 'getGraphics' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const STATUS__PUBLIC = 'public'; + const STATUS__PRIVATE = 'private'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getStatusAllowableValues() + { + return [ + self::STATUS__PUBLIC, + self::STATUS__PRIVATE, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['medalId'] = isset($data['medalId']) ? $data['medalId'] : null; + $this->container['title'] = isset($data['title']) ? $data['title'] : null; + $this->container['description'] = isset($data['description']) ? $data['description'] : null; + $this->container['corporationId'] = isset($data['corporationId']) ? $data['corporationId'] : null; + $this->container['issuerId'] = isset($data['issuerId']) ? $data['issuerId'] : null; + $this->container['date'] = isset($data['date']) ? $data['date'] : null; + $this->container['reason'] = isset($data['reason']) ? $data['reason'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['graphics'] = isset($data['graphics']) ? $data['graphics'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['medalId'] === null) { + $invalidProperties[] = "'medalId' can't be null"; + } + if ($this->container['title'] === null) { + $invalidProperties[] = "'title' can't be null"; + } + if ($this->container['description'] === null) { + $invalidProperties[] = "'description' can't be null"; + } + if ($this->container['corporationId'] === null) { + $invalidProperties[] = "'corporationId' can't be null"; + } + if ($this->container['issuerId'] === null) { + $invalidProperties[] = "'issuerId' can't be null"; + } + if ($this->container['date'] === null) { + $invalidProperties[] = "'date' can't be null"; + } + if ($this->container['reason'] === null) { + $invalidProperties[] = "'reason' can't be null"; + } + if ($this->container['status'] === null) { + $invalidProperties[] = "'status' can't be null"; + } + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($this->container['status'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'status', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['graphics'] === null) { + $invalidProperties[] = "'graphics' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['medalId'] === null) { + return false; + } + if ($this->container['title'] === null) { + return false; + } + if ($this->container['description'] === null) { + return false; + } + if ($this->container['corporationId'] === null) { + return false; + } + if ($this->container['issuerId'] === null) { + return false; + } + if ($this->container['date'] === null) { + return false; + } + if ($this->container['reason'] === null) { + return false; + } + if ($this->container['status'] === null) { + return false; + } + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($this->container['status'], $allowedValues)) { + return false; + } + if ($this->container['graphics'] === null) { + return false; + } + return true; + } + + + /** + * Gets medalId + * + * @return int + */ + public function getMedalId() + { + return $this->container['medalId']; + } + + /** + * Sets medalId + * + * @param int $medalId medal_id integer + * + * @return $this + */ + public function setMedalId($medalId) + { + $this->container['medalId'] = $medalId; + + return $this; + } + + /** + * Gets title + * + * @return string + */ + public function getTitle() + { + return $this->container['title']; + } + + /** + * Sets title + * + * @param string $title title string + * + * @return $this + */ + public function setTitle($title) + { + $this->container['title'] = $title; + + return $this; + } + + /** + * Gets description + * + * @return string + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string $description description string + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets corporationId + * + * @return int + */ + public function getCorporationId() + { + return $this->container['corporationId']; + } + + /** + * Sets corporationId + * + * @param int $corporationId corporation_id integer + * + * @return $this + */ + public function setCorporationId($corporationId) + { + $this->container['corporationId'] = $corporationId; + + return $this; + } + + /** + * Gets issuerId + * + * @return int + */ + public function getIssuerId() + { + return $this->container['issuerId']; + } + + /** + * Sets issuerId + * + * @param int $issuerId issuer_id integer + * + * @return $this + */ + public function setIssuerId($issuerId) + { + $this->container['issuerId'] = $issuerId; + + return $this; + } + + /** + * Gets date + * + * @return \DateTime + */ + public function getDate() + { + return $this->container['date']; + } + + /** + * Sets date + * + * @param \DateTime $date date string + * + * @return $this + */ + public function setDate($date) + { + $this->container['date'] = $date; + + return $this; + } + + /** + * Gets reason + * + * @return string + */ + public function getReason() + { + return $this->container['reason']; + } + + /** + * Sets reason + * + * @param string $reason reason string + * + * @return $this + */ + public function setReason($reason) + { + $this->container['reason'] = $reason; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status status string + * + * @return $this + */ + public function setStatus($status) + { + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($status, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'status', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets graphics + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMedalsGraphic[] + */ + public function getGraphics() + { + return $this->container['graphics']; + } + + /** + * Sets graphics + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdMedalsGraphic[] $graphics graphics array + * + * @return $this + */ + public function setGraphics($graphics) + { + $this->container['graphics'] = $graphics; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdMedalsGraphic.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdMedalsGraphic.php new file mode 100644 index 0000000..e93afb0 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdMedalsGraphic.php @@ -0,0 +1,411 @@ + 'int', + 'layer' => 'int', + 'graphic' => 'string', + 'color' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'part' => 'int32', + 'layer' => 'int32', + 'graphic' => null, + 'color' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'part' => 'part', + 'layer' => 'layer', + 'graphic' => 'graphic', + 'color' => 'color' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'part' => 'setPart', + 'layer' => 'setLayer', + 'graphic' => 'setGraphic', + 'color' => 'setColor' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'part' => 'getPart', + 'layer' => 'getLayer', + 'graphic' => 'getGraphic', + 'color' => 'getColor' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['part'] = isset($data['part']) ? $data['part'] : null; + $this->container['layer'] = isset($data['layer']) ? $data['layer'] : null; + $this->container['graphic'] = isset($data['graphic']) ? $data['graphic'] : null; + $this->container['color'] = isset($data['color']) ? $data['color'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['part'] === null) { + $invalidProperties[] = "'part' can't be null"; + } + if ($this->container['layer'] === null) { + $invalidProperties[] = "'layer' can't be null"; + } + if ($this->container['graphic'] === null) { + $invalidProperties[] = "'graphic' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['part'] === null) { + return false; + } + if ($this->container['layer'] === null) { + return false; + } + if ($this->container['graphic'] === null) { + return false; + } + return true; + } + + + /** + * Gets part + * + * @return int + */ + public function getPart() + { + return $this->container['part']; + } + + /** + * Sets part + * + * @param int $part part integer + * + * @return $this + */ + public function setPart($part) + { + $this->container['part'] = $part; + + return $this; + } + + /** + * Gets layer + * + * @return int + */ + public function getLayer() + { + return $this->container['layer']; + } + + /** + * Sets layer + * + * @param int $layer layer integer + * + * @return $this + */ + public function setLayer($layer) + { + $this->container['layer'] = $layer; + + return $this; + } + + /** + * Gets graphic + * + * @return string + */ + public function getGraphic() + { + return $this->container['graphic']; + } + + /** + * Sets graphic + * + * @param string $graphic graphic string + * + * @return $this + */ + public function setGraphic($graphic) + { + $this->container['graphic'] = $graphic; + + return $this; + } + + /** + * Gets color + * + * @return int + */ + public function getColor() + { + return $this->container['color']; + } + + /** + * Sets color + * + * @param int $color color integer + * + * @return $this + */ + public function setColor($color) + { + $this->container['color'] = $color; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdMining200Ok.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdMining200Ok.php new file mode 100644 index 0000000..65df162 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdMining200Ok.php @@ -0,0 +1,417 @@ + '\DateTime', + 'solarSystemId' => 'int', + 'typeId' => 'int', + 'quantity' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'date' => 'date', + 'solarSystemId' => 'int32', + 'typeId' => 'int32', + 'quantity' => 'int64' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'date' => 'date', + 'solarSystemId' => 'solar_system_id', + 'typeId' => 'type_id', + 'quantity' => 'quantity' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'date' => 'setDate', + 'solarSystemId' => 'setSolarSystemId', + 'typeId' => 'setTypeId', + 'quantity' => 'setQuantity' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'date' => 'getDate', + 'solarSystemId' => 'getSolarSystemId', + 'typeId' => 'getTypeId', + 'quantity' => 'getQuantity' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['date'] = isset($data['date']) ? $data['date'] : null; + $this->container['solarSystemId'] = isset($data['solarSystemId']) ? $data['solarSystemId'] : null; + $this->container['typeId'] = isset($data['typeId']) ? $data['typeId'] : null; + $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['date'] === null) { + $invalidProperties[] = "'date' can't be null"; + } + if ($this->container['solarSystemId'] === null) { + $invalidProperties[] = "'solarSystemId' can't be null"; + } + if ($this->container['typeId'] === null) { + $invalidProperties[] = "'typeId' can't be null"; + } + if ($this->container['quantity'] === null) { + $invalidProperties[] = "'quantity' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['date'] === null) { + return false; + } + if ($this->container['solarSystemId'] === null) { + return false; + } + if ($this->container['typeId'] === null) { + return false; + } + if ($this->container['quantity'] === null) { + return false; + } + return true; + } + + + /** + * Gets date + * + * @return \DateTime + */ + public function getDate() + { + return $this->container['date']; + } + + /** + * Sets date + * + * @param \DateTime $date date string + * + * @return $this + */ + public function setDate($date) + { + $this->container['date'] = $date; + + return $this; + } + + /** + * Gets solarSystemId + * + * @return int + */ + public function getSolarSystemId() + { + return $this->container['solarSystemId']; + } + + /** + * Sets solarSystemId + * + * @param int $solarSystemId solar_system_id integer + * + * @return $this + */ + public function setSolarSystemId($solarSystemId) + { + $this->container['solarSystemId'] = $solarSystemId; + + return $this; + } + + /** + * Gets typeId + * + * @return int + */ + public function getTypeId() + { + return $this->container['typeId']; + } + + /** + * Sets typeId + * + * @param int $typeId type_id integer + * + * @return $this + */ + public function setTypeId($typeId) + { + $this->container['typeId'] = $typeId; + + return $this; + } + + /** + * Gets quantity + * + * @return int + */ + public function getQuantity() + { + return $this->container['quantity']; + } + + /** + * Sets quantity + * + * @param int $quantity quantity integer + * + * @return $this + */ + public function setQuantity($quantity) + { + $this->container['quantity'] = $quantity; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdNotFound.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdNotFound.php new file mode 100644 index 0000000..3d8f7e7 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Not found message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdNotifications200Ok.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdNotifications200Ok.php new file mode 100644 index 0000000..6c0e057 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdNotifications200Ok.php @@ -0,0 +1,939 @@ + 'int', + 'type' => 'string', + 'senderId' => 'int', + 'senderType' => 'string', + 'timestamp' => '\DateTime', + 'isRead' => 'bool', + 'text' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'notificationId' => 'int64', + 'type' => null, + 'senderId' => 'int32', + 'senderType' => null, + 'timestamp' => 'date-time', + 'isRead' => null, + 'text' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'notificationId' => 'notification_id', + 'type' => 'type', + 'senderId' => 'sender_id', + 'senderType' => 'sender_type', + 'timestamp' => 'timestamp', + 'isRead' => 'is_read', + 'text' => 'text' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'notificationId' => 'setNotificationId', + 'type' => 'setType', + 'senderId' => 'setSenderId', + 'senderType' => 'setSenderType', + 'timestamp' => 'setTimestamp', + 'isRead' => 'setIsRead', + 'text' => 'setText' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'notificationId' => 'getNotificationId', + 'type' => 'getType', + 'senderId' => 'getSenderId', + 'senderType' => 'getSenderType', + 'timestamp' => 'getTimestamp', + 'isRead' => 'getIsRead', + 'text' => 'getText' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const TYPE_ACCEPTED_ALLY = 'AcceptedAlly'; + const TYPE_ACCEPTED_SURRENDER = 'AcceptedSurrender'; + const TYPE_ALL_ANCHORING_MSG = 'AllAnchoringMsg'; + const TYPE_ALL_MAINTENANCE_BILL_MSG = 'AllMaintenanceBillMsg'; + const TYPE_ALL_STRUC_INVULNERABLE_MSG = 'AllStrucInvulnerableMsg'; + const TYPE_ALL_STRUCT_VULNERABLE_MSG = 'AllStructVulnerableMsg'; + const TYPE_ALL_WAR_CORP_JOINED_ALLIANCE_MSG = 'AllWarCorpJoinedAllianceMsg'; + const TYPE_ALL_WAR_DECLARED_MSG = 'AllWarDeclaredMsg'; + const TYPE_ALL_WAR_INVALIDATED_MSG = 'AllWarInvalidatedMsg'; + const TYPE_ALL_WAR_RETRACTED_MSG = 'AllWarRetractedMsg'; + const TYPE_ALL_WAR_SURRENDER_MSG = 'AllWarSurrenderMsg'; + const TYPE_ALLIANCE_CAPITAL_CHANGED = 'AllianceCapitalChanged'; + const TYPE_ALLY_CONTRACT_CANCELLED = 'AllyContractCancelled'; + const TYPE_ALLY_JOINED_WAR_AGGRESSOR_MSG = 'AllyJoinedWarAggressorMsg'; + const TYPE_ALLY_JOINED_WAR_ALLY_MSG = 'AllyJoinedWarAllyMsg'; + const TYPE_ALLY_JOINED_WAR_DEFENDER_MSG = 'AllyJoinedWarDefenderMsg'; + const TYPE_BATTLE_PUNISH_FRIENDLY_FIRE = 'BattlePunishFriendlyFire'; + const TYPE_BILL_OUT_OF_MONEY_MSG = 'BillOutOfMoneyMsg'; + const TYPE_BILL_PAID_CORP_ALL_MSG = 'BillPaidCorpAllMsg'; + const TYPE_BOUNTY_CLAIM_MSG = 'BountyClaimMsg'; + const TYPE_BOUNTY_ESS_SHARED = 'BountyESSShared'; + const TYPE_BOUNTY_ESS_TAKEN = 'BountyESSTaken'; + const TYPE_BOUNTY_PLACED_ALLIANCE = 'BountyPlacedAlliance'; + const TYPE_BOUNTY_PLACED_CHAR = 'BountyPlacedChar'; + const TYPE_BOUNTY_PLACED_CORP = 'BountyPlacedCorp'; + const TYPE_BOUNTY_YOUR_BOUNTY_CLAIMED = 'BountyYourBountyClaimed'; + const TYPE_BUDDY_CONNECT_CONTACT_ADD = 'BuddyConnectContactAdd'; + const TYPE_CHAR_APP_ACCEPT_MSG = 'CharAppAcceptMsg'; + const TYPE_CHAR_APP_REJECT_MSG = 'CharAppRejectMsg'; + const TYPE_CHAR_APP_WITHDRAW_MSG = 'CharAppWithdrawMsg'; + const TYPE_CHAR_LEFT_CORP_MSG = 'CharLeftCorpMsg'; + const TYPE_CHAR_MEDAL_MSG = 'CharMedalMsg'; + const TYPE_CHAR_TERMINATION_MSG = 'CharTerminationMsg'; + const TYPE_CLONE_ACTIVATION_MSG = 'CloneActivationMsg'; + const TYPE_CLONE_ACTIVATION_MSG2 = 'CloneActivationMsg2'; + const TYPE_CLONE_MOVED_MSG = 'CloneMovedMsg'; + const TYPE_CLONE_REVOKED_MSG1 = 'CloneRevokedMsg1'; + const TYPE_CLONE_REVOKED_MSG2 = 'CloneRevokedMsg2'; + const TYPE_CONTACT_ADD = 'ContactAdd'; + const TYPE_CONTACT_EDIT = 'ContactEdit'; + const TYPE_CONTAINER_PASSWORD_MSG = 'ContainerPasswordMsg'; + const TYPE_CORP_ALL_BILL_MSG = 'CorpAllBillMsg'; + const TYPE_CORP_APP_ACCEPT_MSG = 'CorpAppAcceptMsg'; + const TYPE_CORP_APP_INVITED_MSG = 'CorpAppInvitedMsg'; + const TYPE_CORP_APP_NEW_MSG = 'CorpAppNewMsg'; + const TYPE_CORP_APP_REJECT_CUSTOM_MSG = 'CorpAppRejectCustomMsg'; + const TYPE_CORP_APP_REJECT_MSG = 'CorpAppRejectMsg'; + const TYPE_CORP_DIVIDEND_MSG = 'CorpDividendMsg'; + const TYPE_CORP_FRIENDLY_FIRE_DISABLE_TIMER_COMPLETED = 'CorpFriendlyFireDisableTimerCompleted'; + const TYPE_CORP_FRIENDLY_FIRE_DISABLE_TIMER_STARTED = 'CorpFriendlyFireDisableTimerStarted'; + const TYPE_CORP_FRIENDLY_FIRE_ENABLE_TIMER_COMPLETED = 'CorpFriendlyFireEnableTimerCompleted'; + const TYPE_CORP_FRIENDLY_FIRE_ENABLE_TIMER_STARTED = 'CorpFriendlyFireEnableTimerStarted'; + const TYPE_CORP_KICKED = 'CorpKicked'; + const TYPE_CORP_LIQUIDATION_MSG = 'CorpLiquidationMsg'; + const TYPE_CORP_NEW_CEO_MSG = 'CorpNewCEOMsg'; + const TYPE_CORP_NEWS_MSG = 'CorpNewsMsg'; + const TYPE_CORP_OFFICE_EXPIRATION_MSG = 'CorpOfficeExpirationMsg'; + const TYPE_CORP_STRUCT_LOST_MSG = 'CorpStructLostMsg'; + const TYPE_CORP_TAX_CHANGE_MSG = 'CorpTaxChangeMsg'; + const TYPE_CORP_VOTE_CEO_REVOKED_MSG = 'CorpVoteCEORevokedMsg'; + const TYPE_CORP_VOTE_MSG = 'CorpVoteMsg'; + const TYPE_CORP_WAR_DECLARED_MSG = 'CorpWarDeclaredMsg'; + const TYPE_CORP_WAR_FIGHTING_LEGAL_MSG = 'CorpWarFightingLegalMsg'; + const TYPE_CORP_WAR_INVALIDATED_MSG = 'CorpWarInvalidatedMsg'; + const TYPE_CORP_WAR_RETRACTED_MSG = 'CorpWarRetractedMsg'; + const TYPE_CORP_WAR_SURRENDER_MSG = 'CorpWarSurrenderMsg'; + const TYPE_CUSTOMS_MSG = 'CustomsMsg'; + const TYPE_DECLARE_WAR = 'DeclareWar'; + const TYPE_DISTRICT_ATTACKED = 'DistrictAttacked'; + const TYPE_DUST_APP_ACCEPTED_MSG = 'DustAppAcceptedMsg'; + const TYPE_ENTOSIS_CAPTURE_STARTED = 'EntosisCaptureStarted'; + const TYPE_FW_ALLIANCE_KICK_MSG = 'FWAllianceKickMsg'; + const TYPE_FW_ALLIANCE_WARNING_MSG = 'FWAllianceWarningMsg'; + const TYPE_FW_CHAR_KICK_MSG = 'FWCharKickMsg'; + const TYPE_FW_CHAR_RANK_GAIN_MSG = 'FWCharRankGainMsg'; + const TYPE_FW_CHAR_RANK_LOSS_MSG = 'FWCharRankLossMsg'; + const TYPE_FW_CHAR_WARNING_MSG = 'FWCharWarningMsg'; + const TYPE_FW_CORP_JOIN_MSG = 'FWCorpJoinMsg'; + const TYPE_FW_CORP_KICK_MSG = 'FWCorpKickMsg'; + const TYPE_FW_CORP_LEAVE_MSG = 'FWCorpLeaveMsg'; + const TYPE_FW_CORP_WARNING_MSG = 'FWCorpWarningMsg'; + const TYPE_FAC_WAR_CORP_JOIN_REQUEST_MSG = 'FacWarCorpJoinRequestMsg'; + const TYPE_FAC_WAR_CORP_JOIN_WITHDRAW_MSG = 'FacWarCorpJoinWithdrawMsg'; + const TYPE_FAC_WAR_CORP_LEAVE_REQUEST_MSG = 'FacWarCorpLeaveRequestMsg'; + const TYPE_FAC_WAR_CORP_LEAVE_WITHDRAW_MSG = 'FacWarCorpLeaveWithdrawMsg'; + const TYPE_FAC_WAR_LP_DISQUALIFIED_EVENT = 'FacWarLPDisqualifiedEvent'; + const TYPE_FAC_WAR_LP_DISQUALIFIED_KILL = 'FacWarLPDisqualifiedKill'; + const TYPE_FAC_WAR_LP_PAYOUT_EVENT = 'FacWarLPPayoutEvent'; + const TYPE_FAC_WAR_LP_PAYOUT_KILL = 'FacWarLPPayoutKill'; + const TYPE_GAME_TIME_ADDED = 'GameTimeAdded'; + const TYPE_GAME_TIME_RECEIVED = 'GameTimeReceived'; + const TYPE_GAME_TIME_SENT = 'GameTimeSent'; + const TYPE_GIFT_RECEIVED = 'GiftReceived'; + const TYPE_I_HUB_DESTROYED_BY_BILL_FAILURE = 'IHubDestroyedByBillFailure'; + const TYPE_INCURSION_COMPLETED_MSG = 'IncursionCompletedMsg'; + const TYPE_INDUSTRY_TEAM_AUCTION_LOST = 'IndustryTeamAuctionLost'; + const TYPE_INDUSTRY_TEAM_AUCTION_WON = 'IndustryTeamAuctionWon'; + const TYPE_INFRASTRUCTURE_HUB_BILL_ABOUT_TO_EXPIRE = 'InfrastructureHubBillAboutToExpire'; + const TYPE_INSURANCE_EXPIRATION_MSG = 'InsuranceExpirationMsg'; + const TYPE_INSURANCE_FIRST_SHIP_MSG = 'InsuranceFirstShipMsg'; + const TYPE_INSURANCE_INVALIDATED_MSG = 'InsuranceInvalidatedMsg'; + const TYPE_INSURANCE_ISSUED_MSG = 'InsuranceIssuedMsg'; + const TYPE_INSURANCE_PAYOUT_MSG = 'InsurancePayoutMsg'; + const TYPE_JUMP_CLONE_DELETED_MSG1 = 'JumpCloneDeletedMsg1'; + const TYPE_JUMP_CLONE_DELETED_MSG2 = 'JumpCloneDeletedMsg2'; + const TYPE_KILL_REPORT_FINAL_BLOW = 'KillReportFinalBlow'; + const TYPE_KILL_REPORT_VICTIM = 'KillReportVictim'; + const TYPE_KILL_RIGHT_AVAILABLE = 'KillRightAvailable'; + const TYPE_KILL_RIGHT_AVAILABLE_OPEN = 'KillRightAvailableOpen'; + const TYPE_KILL_RIGHT_EARNED = 'KillRightEarned'; + const TYPE_KILL_RIGHT_UNAVAILABLE = 'KillRightUnavailable'; + const TYPE_KILL_RIGHT_UNAVAILABLE_OPEN = 'KillRightUnavailableOpen'; + const TYPE_KILL_RIGHT_USED = 'KillRightUsed'; + const TYPE_LOCATE_CHAR_MSG = 'LocateCharMsg'; + const TYPE_MADE_WAR_MUTUAL = 'MadeWarMutual'; + const TYPE_MERC_OFFERED_NEGOTIATION_MSG = 'MercOfferedNegotiationMsg'; + const TYPE_MISSION_OFFER_EXPIRATION_MSG = 'MissionOfferExpirationMsg'; + const TYPE_MISSION_TIMEOUT_MSG = 'MissionTimeoutMsg'; + const TYPE_MOONMINING_AUTOMATIC_FRACTURE = 'MoonminingAutomaticFracture'; + const TYPE_MOONMINING_EXTRACTION_CANCELLED = 'MoonminingExtractionCancelled'; + const TYPE_MOONMINING_EXTRACTION_FINISHED = 'MoonminingExtractionFinished'; + const TYPE_MOONMINING_LASER_FIRED = 'MoonminingLaserFired'; + const TYPE_NPC_STANDINGS_GAINED = 'NPCStandingsGained'; + const TYPE_NPC_STANDINGS_LOST = 'NPCStandingsLost'; + const TYPE_OFFERED_SURRENDER = 'OfferedSurrender'; + const TYPE_OFFERED_TO_ALLY = 'OfferedToAlly'; + const TYPE_OLD_LSC_MESSAGES = 'OldLscMessages'; + const TYPE_OPERATION_FINISHED = 'OperationFinished'; + const TYPE_ORBITAL_ATTACKED = 'OrbitalAttacked'; + const TYPE_ORBITAL_REINFORCED = 'OrbitalReinforced'; + const TYPE_OWNERSHIP_TRANSFERRED = 'OwnershipTransferred'; + const TYPE_REIMBURSEMENT_MSG = 'ReimbursementMsg'; + const TYPE_RESEARCH_MISSION_AVAILABLE_MSG = 'ResearchMissionAvailableMsg'; + const TYPE_RETRACTS_WAR = 'RetractsWar'; + const TYPE_SEASONAL_CHALLENGE_COMPLETED = 'SeasonalChallengeCompleted'; + const TYPE_SOV_ALL_CLAIM_AQUIRED_MSG = 'SovAllClaimAquiredMsg'; + const TYPE_SOV_ALL_CLAIM_LOST_MSG = 'SovAllClaimLostMsg'; + const TYPE_SOV_COMMAND_NODE_EVENT_STARTED = 'SovCommandNodeEventStarted'; + const TYPE_SOV_CORP_BILL_LATE_MSG = 'SovCorpBillLateMsg'; + const TYPE_SOV_CORP_CLAIM_FAIL_MSG = 'SovCorpClaimFailMsg'; + const TYPE_SOV_DISRUPTOR_MSG = 'SovDisruptorMsg'; + const TYPE_SOV_STATION_ENTERED_FREEPORT = 'SovStationEnteredFreeport'; + const TYPE_SOV_STRUCTURE_DESTROYED = 'SovStructureDestroyed'; + const TYPE_SOV_STRUCTURE_REINFORCED = 'SovStructureReinforced'; + const TYPE_SOV_STRUCTURE_SELF_DESTRUCT_CANCEL = 'SovStructureSelfDestructCancel'; + const TYPE_SOV_STRUCTURE_SELF_DESTRUCT_FINISHED = 'SovStructureSelfDestructFinished'; + const TYPE_SOV_STRUCTURE_SELF_DESTRUCT_REQUESTED = 'SovStructureSelfDestructRequested'; + const TYPE_SOVEREIGNTY_IH_DAMAGE_MSG = 'SovereigntyIHDamageMsg'; + const TYPE_SOVEREIGNTY_SBU_DAMAGE_MSG = 'SovereigntySBUDamageMsg'; + const TYPE_SOVEREIGNTY_TCU_DAMAGE_MSG = 'SovereigntyTCUDamageMsg'; + const TYPE_STATION_AGGRESSION_MSG1 = 'StationAggressionMsg1'; + const TYPE_STATION_AGGRESSION_MSG2 = 'StationAggressionMsg2'; + const TYPE_STATION_CONQUER_MSG = 'StationConquerMsg'; + const TYPE_STATION_SERVICE_DISABLED = 'StationServiceDisabled'; + const TYPE_STATION_SERVICE_ENABLED = 'StationServiceEnabled'; + const TYPE_STATION_STATE_CHANGE_MSG = 'StationStateChangeMsg'; + const TYPE_STORY_LINE_MISSION_AVAILABLE_MSG = 'StoryLineMissionAvailableMsg'; + const TYPE_STRUCTURE_ANCHORING = 'StructureAnchoring'; + const TYPE_STRUCTURE_COURIER_CONTRACT_CHANGED = 'StructureCourierContractChanged'; + const TYPE_STRUCTURE_DESTROYED = 'StructureDestroyed'; + const TYPE_STRUCTURE_FUEL_ALERT = 'StructureFuelAlert'; + const TYPE_STRUCTURE_ITEMS_DELIVERED = 'StructureItemsDelivered'; + const TYPE_STRUCTURE_LOST_ARMOR = 'StructureLostArmor'; + const TYPE_STRUCTURE_LOST_SHIELDS = 'StructureLostShields'; + const TYPE_STRUCTURE_ONLINE = 'StructureOnline'; + const TYPE_STRUCTURE_SERVICES_OFFLINE = 'StructureServicesOffline'; + const TYPE_STRUCTURE_UNANCHORING = 'StructureUnanchoring'; + const TYPE_STRUCTURE_UNDER_ATTACK = 'StructureUnderAttack'; + const TYPE_TOWER_ALERT_MSG = 'TowerAlertMsg'; + const TYPE_TOWER_RESOURCE_ALERT_MSG = 'TowerResourceAlertMsg'; + const TYPE_TRANSACTION_REVERSAL_MSG = 'TransactionReversalMsg'; + const TYPE_TUTORIAL_MSG = 'TutorialMsg'; + const TYPE_WAR_ALLY_OFFER_DECLINED_MSG = 'WarAllyOfferDeclinedMsg'; + const TYPE_WAR_SURRENDER_DECLINED_MSG = 'WarSurrenderDeclinedMsg'; + const TYPE_WAR_SURRENDER_OFFER_MSG = 'WarSurrenderOfferMsg'; + const TYPE_NOTIFICATION_TYPE_MOONMINING_EXTRACTION_STARTED = 'notificationTypeMoonminingExtractionStarted'; + const SENDER_TYPE_CHARACTER = 'character'; + const SENDER_TYPE_CORPORATION = 'corporation'; + const SENDER_TYPE_ALLIANCE = 'alliance'; + const SENDER_TYPE_FACTION = 'faction'; + const SENDER_TYPE_OTHER = 'other'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_ACCEPTED_ALLY, + self::TYPE_ACCEPTED_SURRENDER, + self::TYPE_ALL_ANCHORING_MSG, + self::TYPE_ALL_MAINTENANCE_BILL_MSG, + self::TYPE_ALL_STRUC_INVULNERABLE_MSG, + self::TYPE_ALL_STRUCT_VULNERABLE_MSG, + self::TYPE_ALL_WAR_CORP_JOINED_ALLIANCE_MSG, + self::TYPE_ALL_WAR_DECLARED_MSG, + self::TYPE_ALL_WAR_INVALIDATED_MSG, + self::TYPE_ALL_WAR_RETRACTED_MSG, + self::TYPE_ALL_WAR_SURRENDER_MSG, + self::TYPE_ALLIANCE_CAPITAL_CHANGED, + self::TYPE_ALLY_CONTRACT_CANCELLED, + self::TYPE_ALLY_JOINED_WAR_AGGRESSOR_MSG, + self::TYPE_ALLY_JOINED_WAR_ALLY_MSG, + self::TYPE_ALLY_JOINED_WAR_DEFENDER_MSG, + self::TYPE_BATTLE_PUNISH_FRIENDLY_FIRE, + self::TYPE_BILL_OUT_OF_MONEY_MSG, + self::TYPE_BILL_PAID_CORP_ALL_MSG, + self::TYPE_BOUNTY_CLAIM_MSG, + self::TYPE_BOUNTY_ESS_SHARED, + self::TYPE_BOUNTY_ESS_TAKEN, + self::TYPE_BOUNTY_PLACED_ALLIANCE, + self::TYPE_BOUNTY_PLACED_CHAR, + self::TYPE_BOUNTY_PLACED_CORP, + self::TYPE_BOUNTY_YOUR_BOUNTY_CLAIMED, + self::TYPE_BUDDY_CONNECT_CONTACT_ADD, + self::TYPE_CHAR_APP_ACCEPT_MSG, + self::TYPE_CHAR_APP_REJECT_MSG, + self::TYPE_CHAR_APP_WITHDRAW_MSG, + self::TYPE_CHAR_LEFT_CORP_MSG, + self::TYPE_CHAR_MEDAL_MSG, + self::TYPE_CHAR_TERMINATION_MSG, + self::TYPE_CLONE_ACTIVATION_MSG, + self::TYPE_CLONE_ACTIVATION_MSG2, + self::TYPE_CLONE_MOVED_MSG, + self::TYPE_CLONE_REVOKED_MSG1, + self::TYPE_CLONE_REVOKED_MSG2, + self::TYPE_CONTACT_ADD, + self::TYPE_CONTACT_EDIT, + self::TYPE_CONTAINER_PASSWORD_MSG, + self::TYPE_CORP_ALL_BILL_MSG, + self::TYPE_CORP_APP_ACCEPT_MSG, + self::TYPE_CORP_APP_INVITED_MSG, + self::TYPE_CORP_APP_NEW_MSG, + self::TYPE_CORP_APP_REJECT_CUSTOM_MSG, + self::TYPE_CORP_APP_REJECT_MSG, + self::TYPE_CORP_DIVIDEND_MSG, + self::TYPE_CORP_FRIENDLY_FIRE_DISABLE_TIMER_COMPLETED, + self::TYPE_CORP_FRIENDLY_FIRE_DISABLE_TIMER_STARTED, + self::TYPE_CORP_FRIENDLY_FIRE_ENABLE_TIMER_COMPLETED, + self::TYPE_CORP_FRIENDLY_FIRE_ENABLE_TIMER_STARTED, + self::TYPE_CORP_KICKED, + self::TYPE_CORP_LIQUIDATION_MSG, + self::TYPE_CORP_NEW_CEO_MSG, + self::TYPE_CORP_NEWS_MSG, + self::TYPE_CORP_OFFICE_EXPIRATION_MSG, + self::TYPE_CORP_STRUCT_LOST_MSG, + self::TYPE_CORP_TAX_CHANGE_MSG, + self::TYPE_CORP_VOTE_CEO_REVOKED_MSG, + self::TYPE_CORP_VOTE_MSG, + self::TYPE_CORP_WAR_DECLARED_MSG, + self::TYPE_CORP_WAR_FIGHTING_LEGAL_MSG, + self::TYPE_CORP_WAR_INVALIDATED_MSG, + self::TYPE_CORP_WAR_RETRACTED_MSG, + self::TYPE_CORP_WAR_SURRENDER_MSG, + self::TYPE_CUSTOMS_MSG, + self::TYPE_DECLARE_WAR, + self::TYPE_DISTRICT_ATTACKED, + self::TYPE_DUST_APP_ACCEPTED_MSG, + self::TYPE_ENTOSIS_CAPTURE_STARTED, + self::TYPE_FW_ALLIANCE_KICK_MSG, + self::TYPE_FW_ALLIANCE_WARNING_MSG, + self::TYPE_FW_CHAR_KICK_MSG, + self::TYPE_FW_CHAR_RANK_GAIN_MSG, + self::TYPE_FW_CHAR_RANK_LOSS_MSG, + self::TYPE_FW_CHAR_WARNING_MSG, + self::TYPE_FW_CORP_JOIN_MSG, + self::TYPE_FW_CORP_KICK_MSG, + self::TYPE_FW_CORP_LEAVE_MSG, + self::TYPE_FW_CORP_WARNING_MSG, + self::TYPE_FAC_WAR_CORP_JOIN_REQUEST_MSG, + self::TYPE_FAC_WAR_CORP_JOIN_WITHDRAW_MSG, + self::TYPE_FAC_WAR_CORP_LEAVE_REQUEST_MSG, + self::TYPE_FAC_WAR_CORP_LEAVE_WITHDRAW_MSG, + self::TYPE_FAC_WAR_LP_DISQUALIFIED_EVENT, + self::TYPE_FAC_WAR_LP_DISQUALIFIED_KILL, + self::TYPE_FAC_WAR_LP_PAYOUT_EVENT, + self::TYPE_FAC_WAR_LP_PAYOUT_KILL, + self::TYPE_GAME_TIME_ADDED, + self::TYPE_GAME_TIME_RECEIVED, + self::TYPE_GAME_TIME_SENT, + self::TYPE_GIFT_RECEIVED, + self::TYPE_I_HUB_DESTROYED_BY_BILL_FAILURE, + self::TYPE_INCURSION_COMPLETED_MSG, + self::TYPE_INDUSTRY_TEAM_AUCTION_LOST, + self::TYPE_INDUSTRY_TEAM_AUCTION_WON, + self::TYPE_INFRASTRUCTURE_HUB_BILL_ABOUT_TO_EXPIRE, + self::TYPE_INSURANCE_EXPIRATION_MSG, + self::TYPE_INSURANCE_FIRST_SHIP_MSG, + self::TYPE_INSURANCE_INVALIDATED_MSG, + self::TYPE_INSURANCE_ISSUED_MSG, + self::TYPE_INSURANCE_PAYOUT_MSG, + self::TYPE_JUMP_CLONE_DELETED_MSG1, + self::TYPE_JUMP_CLONE_DELETED_MSG2, + self::TYPE_KILL_REPORT_FINAL_BLOW, + self::TYPE_KILL_REPORT_VICTIM, + self::TYPE_KILL_RIGHT_AVAILABLE, + self::TYPE_KILL_RIGHT_AVAILABLE_OPEN, + self::TYPE_KILL_RIGHT_EARNED, + self::TYPE_KILL_RIGHT_UNAVAILABLE, + self::TYPE_KILL_RIGHT_UNAVAILABLE_OPEN, + self::TYPE_KILL_RIGHT_USED, + self::TYPE_LOCATE_CHAR_MSG, + self::TYPE_MADE_WAR_MUTUAL, + self::TYPE_MERC_OFFERED_NEGOTIATION_MSG, + self::TYPE_MISSION_OFFER_EXPIRATION_MSG, + self::TYPE_MISSION_TIMEOUT_MSG, + self::TYPE_MOONMINING_AUTOMATIC_FRACTURE, + self::TYPE_MOONMINING_EXTRACTION_CANCELLED, + self::TYPE_MOONMINING_EXTRACTION_FINISHED, + self::TYPE_MOONMINING_LASER_FIRED, + self::TYPE_NPC_STANDINGS_GAINED, + self::TYPE_NPC_STANDINGS_LOST, + self::TYPE_OFFERED_SURRENDER, + self::TYPE_OFFERED_TO_ALLY, + self::TYPE_OLD_LSC_MESSAGES, + self::TYPE_OPERATION_FINISHED, + self::TYPE_ORBITAL_ATTACKED, + self::TYPE_ORBITAL_REINFORCED, + self::TYPE_OWNERSHIP_TRANSFERRED, + self::TYPE_REIMBURSEMENT_MSG, + self::TYPE_RESEARCH_MISSION_AVAILABLE_MSG, + self::TYPE_RETRACTS_WAR, + self::TYPE_SEASONAL_CHALLENGE_COMPLETED, + self::TYPE_SOV_ALL_CLAIM_AQUIRED_MSG, + self::TYPE_SOV_ALL_CLAIM_LOST_MSG, + self::TYPE_SOV_COMMAND_NODE_EVENT_STARTED, + self::TYPE_SOV_CORP_BILL_LATE_MSG, + self::TYPE_SOV_CORP_CLAIM_FAIL_MSG, + self::TYPE_SOV_DISRUPTOR_MSG, + self::TYPE_SOV_STATION_ENTERED_FREEPORT, + self::TYPE_SOV_STRUCTURE_DESTROYED, + self::TYPE_SOV_STRUCTURE_REINFORCED, + self::TYPE_SOV_STRUCTURE_SELF_DESTRUCT_CANCEL, + self::TYPE_SOV_STRUCTURE_SELF_DESTRUCT_FINISHED, + self::TYPE_SOV_STRUCTURE_SELF_DESTRUCT_REQUESTED, + self::TYPE_SOVEREIGNTY_IH_DAMAGE_MSG, + self::TYPE_SOVEREIGNTY_SBU_DAMAGE_MSG, + self::TYPE_SOVEREIGNTY_TCU_DAMAGE_MSG, + self::TYPE_STATION_AGGRESSION_MSG1, + self::TYPE_STATION_AGGRESSION_MSG2, + self::TYPE_STATION_CONQUER_MSG, + self::TYPE_STATION_SERVICE_DISABLED, + self::TYPE_STATION_SERVICE_ENABLED, + self::TYPE_STATION_STATE_CHANGE_MSG, + self::TYPE_STORY_LINE_MISSION_AVAILABLE_MSG, + self::TYPE_STRUCTURE_ANCHORING, + self::TYPE_STRUCTURE_COURIER_CONTRACT_CHANGED, + self::TYPE_STRUCTURE_DESTROYED, + self::TYPE_STRUCTURE_FUEL_ALERT, + self::TYPE_STRUCTURE_ITEMS_DELIVERED, + self::TYPE_STRUCTURE_LOST_ARMOR, + self::TYPE_STRUCTURE_LOST_SHIELDS, + self::TYPE_STRUCTURE_ONLINE, + self::TYPE_STRUCTURE_SERVICES_OFFLINE, + self::TYPE_STRUCTURE_UNANCHORING, + self::TYPE_STRUCTURE_UNDER_ATTACK, + self::TYPE_TOWER_ALERT_MSG, + self::TYPE_TOWER_RESOURCE_ALERT_MSG, + self::TYPE_TRANSACTION_REVERSAL_MSG, + self::TYPE_TUTORIAL_MSG, + self::TYPE_WAR_ALLY_OFFER_DECLINED_MSG, + self::TYPE_WAR_SURRENDER_DECLINED_MSG, + self::TYPE_WAR_SURRENDER_OFFER_MSG, + self::TYPE_NOTIFICATION_TYPE_MOONMINING_EXTRACTION_STARTED, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getSenderTypeAllowableValues() + { + return [ + self::SENDER_TYPE_CHARACTER, + self::SENDER_TYPE_CORPORATION, + self::SENDER_TYPE_ALLIANCE, + self::SENDER_TYPE_FACTION, + self::SENDER_TYPE_OTHER, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['notificationId'] = isset($data['notificationId']) ? $data['notificationId'] : null; + $this->container['type'] = isset($data['type']) ? $data['type'] : null; + $this->container['senderId'] = isset($data['senderId']) ? $data['senderId'] : null; + $this->container['senderType'] = isset($data['senderType']) ? $data['senderType'] : null; + $this->container['timestamp'] = isset($data['timestamp']) ? $data['timestamp'] : null; + $this->container['isRead'] = isset($data['isRead']) ? $data['isRead'] : null; + $this->container['text'] = isset($data['text']) ? $data['text'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['notificationId'] === null) { + $invalidProperties[] = "'notificationId' can't be null"; + } + if ($this->container['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($this->container['type'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['senderId'] === null) { + $invalidProperties[] = "'senderId' can't be null"; + } + if ($this->container['senderType'] === null) { + $invalidProperties[] = "'senderType' can't be null"; + } + $allowedValues = $this->getSenderTypeAllowableValues(); + if (!in_array($this->container['senderType'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'senderType', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['timestamp'] === null) { + $invalidProperties[] = "'timestamp' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['notificationId'] === null) { + return false; + } + if ($this->container['type'] === null) { + return false; + } + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($this->container['type'], $allowedValues)) { + return false; + } + if ($this->container['senderId'] === null) { + return false; + } + if ($this->container['senderType'] === null) { + return false; + } + $allowedValues = $this->getSenderTypeAllowableValues(); + if (!in_array($this->container['senderType'], $allowedValues)) { + return false; + } + if ($this->container['timestamp'] === null) { + return false; + } + return true; + } + + + /** + * Gets notificationId + * + * @return int + */ + public function getNotificationId() + { + return $this->container['notificationId']; + } + + /** + * Sets notificationId + * + * @param int $notificationId notification_id integer + * + * @return $this + */ + public function setNotificationId($notificationId) + { + $this->container['notificationId'] = $notificationId; + + return $this; + } + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type type string + * + * @return $this + */ + public function setType($type) + { + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($type, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets senderId + * + * @return int + */ + public function getSenderId() + { + return $this->container['senderId']; + } + + /** + * Sets senderId + * + * @param int $senderId sender_id integer + * + * @return $this + */ + public function setSenderId($senderId) + { + $this->container['senderId'] = $senderId; + + return $this; + } + + /** + * Gets senderType + * + * @return string + */ + public function getSenderType() + { + return $this->container['senderType']; + } + + /** + * Sets senderType + * + * @param string $senderType sender_type string + * + * @return $this + */ + public function setSenderType($senderType) + { + $allowedValues = $this->getSenderTypeAllowableValues(); + if (!in_array($senderType, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'senderType', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['senderType'] = $senderType; + + return $this; + } + + /** + * Gets timestamp + * + * @return \DateTime + */ + public function getTimestamp() + { + return $this->container['timestamp']; + } + + /** + * Sets timestamp + * + * @param \DateTime $timestamp timestamp string + * + * @return $this + */ + public function setTimestamp($timestamp) + { + $this->container['timestamp'] = $timestamp; + + return $this; + } + + /** + * Gets isRead + * + * @return bool + */ + public function getIsRead() + { + return $this->container['isRead']; + } + + /** + * Sets isRead + * + * @param bool $isRead is_read boolean + * + * @return $this + */ + public function setIsRead($isRead) + { + $this->container['isRead'] = $isRead; + + return $this; + } + + /** + * Gets text + * + * @return string + */ + public function getText() + { + return $this->container['text']; + } + + /** + * Sets text + * + * @param string $text text string + * + * @return $this + */ + public function setText($text) + { + $this->container['text'] = $text; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdNotificationsContacts200Ok.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdNotificationsContacts200Ok.php new file mode 100644 index 0000000..2e95c57 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdNotificationsContacts200Ok.php @@ -0,0 +1,453 @@ + 'int', + 'sendDate' => '\DateTime', + 'standingLevel' => 'float', + 'message' => 'string', + 'senderCharacterId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'notificationId' => 'int32', + 'sendDate' => 'date-time', + 'standingLevel' => 'float', + 'message' => null, + 'senderCharacterId' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'notificationId' => 'notification_id', + 'sendDate' => 'send_date', + 'standingLevel' => 'standing_level', + 'message' => 'message', + 'senderCharacterId' => 'sender_character_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'notificationId' => 'setNotificationId', + 'sendDate' => 'setSendDate', + 'standingLevel' => 'setStandingLevel', + 'message' => 'setMessage', + 'senderCharacterId' => 'setSenderCharacterId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'notificationId' => 'getNotificationId', + 'sendDate' => 'getSendDate', + 'standingLevel' => 'getStandingLevel', + 'message' => 'getMessage', + 'senderCharacterId' => 'getSenderCharacterId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['notificationId'] = isset($data['notificationId']) ? $data['notificationId'] : null; + $this->container['sendDate'] = isset($data['sendDate']) ? $data['sendDate'] : null; + $this->container['standingLevel'] = isset($data['standingLevel']) ? $data['standingLevel'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['senderCharacterId'] = isset($data['senderCharacterId']) ? $data['senderCharacterId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['notificationId'] === null) { + $invalidProperties[] = "'notificationId' can't be null"; + } + if ($this->container['sendDate'] === null) { + $invalidProperties[] = "'sendDate' can't be null"; + } + if ($this->container['standingLevel'] === null) { + $invalidProperties[] = "'standingLevel' can't be null"; + } + if ($this->container['message'] === null) { + $invalidProperties[] = "'message' can't be null"; + } + if ($this->container['senderCharacterId'] === null) { + $invalidProperties[] = "'senderCharacterId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['notificationId'] === null) { + return false; + } + if ($this->container['sendDate'] === null) { + return false; + } + if ($this->container['standingLevel'] === null) { + return false; + } + if ($this->container['message'] === null) { + return false; + } + if ($this->container['senderCharacterId'] === null) { + return false; + } + return true; + } + + + /** + * Gets notificationId + * + * @return int + */ + public function getNotificationId() + { + return $this->container['notificationId']; + } + + /** + * Sets notificationId + * + * @param int $notificationId notification_id integer + * + * @return $this + */ + public function setNotificationId($notificationId) + { + $this->container['notificationId'] = $notificationId; + + return $this; + } + + /** + * Gets sendDate + * + * @return \DateTime + */ + public function getSendDate() + { + return $this->container['sendDate']; + } + + /** + * Sets sendDate + * + * @param \DateTime $sendDate send_date string + * + * @return $this + */ + public function setSendDate($sendDate) + { + $this->container['sendDate'] = $sendDate; + + return $this; + } + + /** + * Gets standingLevel + * + * @return float + */ + public function getStandingLevel() + { + return $this->container['standingLevel']; + } + + /** + * Sets standingLevel + * + * @param float $standingLevel A number representing the standing level the receiver has been added at by the sender. The standing levels are as follows: -10 -> Terrible | -5 -> Bad | 0 -> Neutral | 5 -> Good | 10 -> Excellent + * + * @return $this + */ + public function setStandingLevel($standingLevel) + { + $this->container['standingLevel'] = $standingLevel; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message message string + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets senderCharacterId + * + * @return int + */ + public function getSenderCharacterId() + { + return $this->container['senderCharacterId']; + } + + /** + * Sets senderCharacterId + * + * @param int $senderCharacterId sender_character_id integer + * + * @return $this + */ + public function setSenderCharacterId($senderCharacterId) + { + $this->container['senderCharacterId'] = $senderCharacterId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdOk.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdOk.php new file mode 100644 index 0000000..1869454 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdOk.php @@ -0,0 +1,697 @@ + 'string', + 'description' => 'string', + 'corporationId' => 'int', + 'allianceId' => 'int', + 'birthday' => '\DateTime', + 'gender' => 'string', + 'raceId' => 'int', + 'bloodlineId' => 'int', + 'ancestryId' => 'int', + 'securityStatus' => 'float', + 'factionId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'name' => null, + 'description' => null, + 'corporationId' => 'int32', + 'allianceId' => 'int32', + 'birthday' => 'date-time', + 'gender' => null, + 'raceId' => 'int32', + 'bloodlineId' => 'int32', + 'ancestryId' => 'int32', + 'securityStatus' => 'float', + 'factionId' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'name' => 'name', + 'description' => 'description', + 'corporationId' => 'corporation_id', + 'allianceId' => 'alliance_id', + 'birthday' => 'birthday', + 'gender' => 'gender', + 'raceId' => 'race_id', + 'bloodlineId' => 'bloodline_id', + 'ancestryId' => 'ancestry_id', + 'securityStatus' => 'security_status', + 'factionId' => 'faction_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'name' => 'setName', + 'description' => 'setDescription', + 'corporationId' => 'setCorporationId', + 'allianceId' => 'setAllianceId', + 'birthday' => 'setBirthday', + 'gender' => 'setGender', + 'raceId' => 'setRaceId', + 'bloodlineId' => 'setBloodlineId', + 'ancestryId' => 'setAncestryId', + 'securityStatus' => 'setSecurityStatus', + 'factionId' => 'setFactionId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'name' => 'getName', + 'description' => 'getDescription', + 'corporationId' => 'getCorporationId', + 'allianceId' => 'getAllianceId', + 'birthday' => 'getBirthday', + 'gender' => 'getGender', + 'raceId' => 'getRaceId', + 'bloodlineId' => 'getBloodlineId', + 'ancestryId' => 'getAncestryId', + 'securityStatus' => 'getSecurityStatus', + 'factionId' => 'getFactionId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const GENDER_FEMALE = 'female'; + const GENDER_MALE = 'male'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getGenderAllowableValues() + { + return [ + self::GENDER_FEMALE, + self::GENDER_MALE, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['description'] = isset($data['description']) ? $data['description'] : null; + $this->container['corporationId'] = isset($data['corporationId']) ? $data['corporationId'] : null; + $this->container['allianceId'] = isset($data['allianceId']) ? $data['allianceId'] : null; + $this->container['birthday'] = isset($data['birthday']) ? $data['birthday'] : null; + $this->container['gender'] = isset($data['gender']) ? $data['gender'] : null; + $this->container['raceId'] = isset($data['raceId']) ? $data['raceId'] : null; + $this->container['bloodlineId'] = isset($data['bloodlineId']) ? $data['bloodlineId'] : null; + $this->container['ancestryId'] = isset($data['ancestryId']) ? $data['ancestryId'] : null; + $this->container['securityStatus'] = isset($data['securityStatus']) ? $data['securityStatus'] : null; + $this->container['factionId'] = isset($data['factionId']) ? $data['factionId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ($this->container['corporationId'] === null) { + $invalidProperties[] = "'corporationId' can't be null"; + } + if ($this->container['birthday'] === null) { + $invalidProperties[] = "'birthday' can't be null"; + } + if ($this->container['gender'] === null) { + $invalidProperties[] = "'gender' can't be null"; + } + $allowedValues = $this->getGenderAllowableValues(); + if (!in_array($this->container['gender'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'gender', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['raceId'] === null) { + $invalidProperties[] = "'raceId' can't be null"; + } + if ($this->container['bloodlineId'] === null) { + $invalidProperties[] = "'bloodlineId' can't be null"; + } + if (!is_null($this->container['securityStatus']) && ($this->container['securityStatus'] > 10)) { + $invalidProperties[] = "invalid value for 'securityStatus', must be smaller than or equal to 10."; + } + + if (!is_null($this->container['securityStatus']) && ($this->container['securityStatus'] < -10)) { + $invalidProperties[] = "invalid value for 'securityStatus', must be bigger than or equal to -10."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['name'] === null) { + return false; + } + if ($this->container['corporationId'] === null) { + return false; + } + if ($this->container['birthday'] === null) { + return false; + } + if ($this->container['gender'] === null) { + return false; + } + $allowedValues = $this->getGenderAllowableValues(); + if (!in_array($this->container['gender'], $allowedValues)) { + return false; + } + if ($this->container['raceId'] === null) { + return false; + } + if ($this->container['bloodlineId'] === null) { + return false; + } + if ($this->container['securityStatus'] > 10) { + return false; + } + if ($this->container['securityStatus'] < -10) { + return false; + } + return true; + } + + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets description + * + * @return string + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string $description description string + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets corporationId + * + * @return int + */ + public function getCorporationId() + { + return $this->container['corporationId']; + } + + /** + * Sets corporationId + * + * @param int $corporationId The character's corporation ID + * + * @return $this + */ + public function setCorporationId($corporationId) + { + $this->container['corporationId'] = $corporationId; + + return $this; + } + + /** + * Gets allianceId + * + * @return int + */ + public function getAllianceId() + { + return $this->container['allianceId']; + } + + /** + * Sets allianceId + * + * @param int $allianceId The character's alliance ID + * + * @return $this + */ + public function setAllianceId($allianceId) + { + $this->container['allianceId'] = $allianceId; + + return $this; + } + + /** + * Gets birthday + * + * @return \DateTime + */ + public function getBirthday() + { + return $this->container['birthday']; + } + + /** + * Sets birthday + * + * @param \DateTime $birthday Creation date of the character + * + * @return $this + */ + public function setBirthday($birthday) + { + $this->container['birthday'] = $birthday; + + return $this; + } + + /** + * Gets gender + * + * @return string + */ + public function getGender() + { + return $this->container['gender']; + } + + /** + * Sets gender + * + * @param string $gender gender string + * + * @return $this + */ + public function setGender($gender) + { + $allowedValues = $this->getGenderAllowableValues(); + if (!in_array($gender, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'gender', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['gender'] = $gender; + + return $this; + } + + /** + * Gets raceId + * + * @return int + */ + public function getRaceId() + { + return $this->container['raceId']; + } + + /** + * Sets raceId + * + * @param int $raceId race_id integer + * + * @return $this + */ + public function setRaceId($raceId) + { + $this->container['raceId'] = $raceId; + + return $this; + } + + /** + * Gets bloodlineId + * + * @return int + */ + public function getBloodlineId() + { + return $this->container['bloodlineId']; + } + + /** + * Sets bloodlineId + * + * @param int $bloodlineId bloodline_id integer + * + * @return $this + */ + public function setBloodlineId($bloodlineId) + { + $this->container['bloodlineId'] = $bloodlineId; + + return $this; + } + + /** + * Gets ancestryId + * + * @return int + */ + public function getAncestryId() + { + return $this->container['ancestryId']; + } + + /** + * Sets ancestryId + * + * @param int $ancestryId ancestry_id integer + * + * @return $this + */ + public function setAncestryId($ancestryId) + { + $this->container['ancestryId'] = $ancestryId; + + return $this; + } + + /** + * Gets securityStatus + * + * @return float + */ + public function getSecurityStatus() + { + return $this->container['securityStatus']; + } + + /** + * Sets securityStatus + * + * @param float $securityStatus security_status number + * + * @return $this + */ + public function setSecurityStatus($securityStatus) + { + + if (!is_null($securityStatus) && ($securityStatus > 10)) { + throw new \InvalidArgumentException('invalid value for $securityStatus when calling GetCharactersCharacterIdOk., must be smaller than or equal to 10.'); + } + if (!is_null($securityStatus) && ($securityStatus < -10)) { + throw new \InvalidArgumentException('invalid value for $securityStatus when calling GetCharactersCharacterIdOk., must be bigger than or equal to -10.'); + } + + $this->container['securityStatus'] = $securityStatus; + + return $this; + } + + /** + * Gets factionId + * + * @return int + */ + public function getFactionId() + { + return $this->container['factionId']; + } + + /** + * Sets factionId + * + * @param int $factionId ID of the faction the character is fighting for, if the character is enlisted in Factional Warfare + * + * @return $this + */ + public function setFactionId($factionId) + { + $this->container['factionId'] = $factionId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdOnlineOk.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdOnlineOk.php new file mode 100644 index 0000000..5df3193 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdOnlineOk.php @@ -0,0 +1,399 @@ + 'bool', + 'lastLogin' => '\DateTime', + 'lastLogout' => '\DateTime', + 'logins' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'online' => null, + 'lastLogin' => 'date-time', + 'lastLogout' => 'date-time', + 'logins' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'online' => 'online', + 'lastLogin' => 'last_login', + 'lastLogout' => 'last_logout', + 'logins' => 'logins' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'online' => 'setOnline', + 'lastLogin' => 'setLastLogin', + 'lastLogout' => 'setLastLogout', + 'logins' => 'setLogins' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'online' => 'getOnline', + 'lastLogin' => 'getLastLogin', + 'lastLogout' => 'getLastLogout', + 'logins' => 'getLogins' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['online'] = isset($data['online']) ? $data['online'] : null; + $this->container['lastLogin'] = isset($data['lastLogin']) ? $data['lastLogin'] : null; + $this->container['lastLogout'] = isset($data['lastLogout']) ? $data['lastLogout'] : null; + $this->container['logins'] = isset($data['logins']) ? $data['logins'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['online'] === null) { + $invalidProperties[] = "'online' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['online'] === null) { + return false; + } + return true; + } + + + /** + * Gets online + * + * @return bool + */ + public function getOnline() + { + return $this->container['online']; + } + + /** + * Sets online + * + * @param bool $online If the character is online + * + * @return $this + */ + public function setOnline($online) + { + $this->container['online'] = $online; + + return $this; + } + + /** + * Gets lastLogin + * + * @return \DateTime + */ + public function getLastLogin() + { + return $this->container['lastLogin']; + } + + /** + * Sets lastLogin + * + * @param \DateTime $lastLogin Timestamp of the last login + * + * @return $this + */ + public function setLastLogin($lastLogin) + { + $this->container['lastLogin'] = $lastLogin; + + return $this; + } + + /** + * Gets lastLogout + * + * @return \DateTime + */ + public function getLastLogout() + { + return $this->container['lastLogout']; + } + + /** + * Sets lastLogout + * + * @param \DateTime $lastLogout Timestamp of the last logout + * + * @return $this + */ + public function setLastLogout($lastLogout) + { + $this->container['lastLogout'] = $lastLogout; + + return $this; + } + + /** + * Gets logins + * + * @return int + */ + public function getLogins() + { + return $this->container['logins']; + } + + /** + * Sets logins + * + * @param int $logins Total number of times the character has logged in + * + * @return $this + */ + public function setLogins($logins) + { + $this->container['logins'] = $logins; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdOpportunities200Ok.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdOpportunities200Ok.php new file mode 100644 index 0000000..5d8b505 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdOpportunities200Ok.php @@ -0,0 +1,345 @@ + 'int', + 'completedAt' => '\DateTime' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'taskId' => 'int32', + 'completedAt' => 'date-time' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'taskId' => 'task_id', + 'completedAt' => 'completed_at' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'taskId' => 'setTaskId', + 'completedAt' => 'setCompletedAt' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'taskId' => 'getTaskId', + 'completedAt' => 'getCompletedAt' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['taskId'] = isset($data['taskId']) ? $data['taskId'] : null; + $this->container['completedAt'] = isset($data['completedAt']) ? $data['completedAt'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['taskId'] === null) { + $invalidProperties[] = "'taskId' can't be null"; + } + if ($this->container['completedAt'] === null) { + $invalidProperties[] = "'completedAt' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['taskId'] === null) { + return false; + } + if ($this->container['completedAt'] === null) { + return false; + } + return true; + } + + + /** + * Gets taskId + * + * @return int + */ + public function getTaskId() + { + return $this->container['taskId']; + } + + /** + * Sets taskId + * + * @param int $taskId task_id integer + * + * @return $this + */ + public function setTaskId($taskId) + { + $this->container['taskId'] = $taskId; + + return $this; + } + + /** + * Gets completedAt + * + * @return \DateTime + */ + public function getCompletedAt() + { + return $this->container['completedAt']; + } + + /** + * Sets completedAt + * + * @param \DateTime $completedAt completed_at string + * + * @return $this + */ + public function setCompletedAt($completedAt) + { + $this->container['completedAt'] = $completedAt; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdOrders200Ok.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdOrders200Ok.php new file mode 100644 index 0000000..3771943 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdOrders200Ok.php @@ -0,0 +1,949 @@ + 'int', + 'typeId' => 'int', + 'regionId' => 'int', + 'locationId' => 'int', + 'range' => 'string', + 'isBuyOrder' => 'bool', + 'price' => 'double', + 'volumeTotal' => 'int', + 'volumeRemain' => 'int', + 'issued' => '\DateTime', + 'state' => 'string', + 'minVolume' => 'int', + 'accountId' => 'int', + 'duration' => 'int', + 'isCorp' => 'bool', + 'escrow' => 'double' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'orderId' => 'int64', + 'typeId' => 'int32', + 'regionId' => 'int32', + 'locationId' => 'int64', + 'range' => null, + 'isBuyOrder' => null, + 'price' => 'double', + 'volumeTotal' => 'int32', + 'volumeRemain' => 'int32', + 'issued' => 'date-time', + 'state' => null, + 'minVolume' => 'int32', + 'accountId' => 'int32', + 'duration' => 'int32', + 'isCorp' => null, + 'escrow' => 'double' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'orderId' => 'order_id', + 'typeId' => 'type_id', + 'regionId' => 'region_id', + 'locationId' => 'location_id', + 'range' => 'range', + 'isBuyOrder' => 'is_buy_order', + 'price' => 'price', + 'volumeTotal' => 'volume_total', + 'volumeRemain' => 'volume_remain', + 'issued' => 'issued', + 'state' => 'state', + 'minVolume' => 'min_volume', + 'accountId' => 'account_id', + 'duration' => 'duration', + 'isCorp' => 'is_corp', + 'escrow' => 'escrow' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'orderId' => 'setOrderId', + 'typeId' => 'setTypeId', + 'regionId' => 'setRegionId', + 'locationId' => 'setLocationId', + 'range' => 'setRange', + 'isBuyOrder' => 'setIsBuyOrder', + 'price' => 'setPrice', + 'volumeTotal' => 'setVolumeTotal', + 'volumeRemain' => 'setVolumeRemain', + 'issued' => 'setIssued', + 'state' => 'setState', + 'minVolume' => 'setMinVolume', + 'accountId' => 'setAccountId', + 'duration' => 'setDuration', + 'isCorp' => 'setIsCorp', + 'escrow' => 'setEscrow' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'orderId' => 'getOrderId', + 'typeId' => 'getTypeId', + 'regionId' => 'getRegionId', + 'locationId' => 'getLocationId', + 'range' => 'getRange', + 'isBuyOrder' => 'getIsBuyOrder', + 'price' => 'getPrice', + 'volumeTotal' => 'getVolumeTotal', + 'volumeRemain' => 'getVolumeRemain', + 'issued' => 'getIssued', + 'state' => 'getState', + 'minVolume' => 'getMinVolume', + 'accountId' => 'getAccountId', + 'duration' => 'getDuration', + 'isCorp' => 'getIsCorp', + 'escrow' => 'getEscrow' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const RANGE__1 = '1'; + const RANGE__10 = '10'; + const RANGE__2 = '2'; + const RANGE__20 = '20'; + const RANGE__3 = '3'; + const RANGE__30 = '30'; + const RANGE__4 = '4'; + const RANGE__40 = '40'; + const RANGE__5 = '5'; + const RANGE_REGION = 'region'; + const RANGE_SOLARSYSTEM = 'solarsystem'; + const RANGE_STATION = 'station'; + const STATE_CANCELLED = 'cancelled'; + const STATE_CHARACTER_DELETED = 'character_deleted'; + const STATE_CLOSED = 'closed'; + const STATE_EXPIRED = 'expired'; + const STATE_OPEN = 'open'; + const STATE_PENDING = 'pending'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getRangeAllowableValues() + { + return [ + self::RANGE__1, + self::RANGE__10, + self::RANGE__2, + self::RANGE__20, + self::RANGE__3, + self::RANGE__30, + self::RANGE__4, + self::RANGE__40, + self::RANGE__5, + self::RANGE_REGION, + self::RANGE_SOLARSYSTEM, + self::RANGE_STATION, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getStateAllowableValues() + { + return [ + self::STATE_CANCELLED, + self::STATE_CHARACTER_DELETED, + self::STATE_CLOSED, + self::STATE_EXPIRED, + self::STATE_OPEN, + self::STATE_PENDING, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['orderId'] = isset($data['orderId']) ? $data['orderId'] : null; + $this->container['typeId'] = isset($data['typeId']) ? $data['typeId'] : null; + $this->container['regionId'] = isset($data['regionId']) ? $data['regionId'] : null; + $this->container['locationId'] = isset($data['locationId']) ? $data['locationId'] : null; + $this->container['range'] = isset($data['range']) ? $data['range'] : null; + $this->container['isBuyOrder'] = isset($data['isBuyOrder']) ? $data['isBuyOrder'] : null; + $this->container['price'] = isset($data['price']) ? $data['price'] : null; + $this->container['volumeTotal'] = isset($data['volumeTotal']) ? $data['volumeTotal'] : null; + $this->container['volumeRemain'] = isset($data['volumeRemain']) ? $data['volumeRemain'] : null; + $this->container['issued'] = isset($data['issued']) ? $data['issued'] : null; + $this->container['state'] = isset($data['state']) ? $data['state'] : null; + $this->container['minVolume'] = isset($data['minVolume']) ? $data['minVolume'] : null; + $this->container['accountId'] = isset($data['accountId']) ? $data['accountId'] : null; + $this->container['duration'] = isset($data['duration']) ? $data['duration'] : null; + $this->container['isCorp'] = isset($data['isCorp']) ? $data['isCorp'] : null; + $this->container['escrow'] = isset($data['escrow']) ? $data['escrow'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['orderId'] === null) { + $invalidProperties[] = "'orderId' can't be null"; + } + if ($this->container['typeId'] === null) { + $invalidProperties[] = "'typeId' can't be null"; + } + if ($this->container['regionId'] === null) { + $invalidProperties[] = "'regionId' can't be null"; + } + if ($this->container['locationId'] === null) { + $invalidProperties[] = "'locationId' can't be null"; + } + if ($this->container['range'] === null) { + $invalidProperties[] = "'range' can't be null"; + } + $allowedValues = $this->getRangeAllowableValues(); + if (!in_array($this->container['range'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'range', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['isBuyOrder'] === null) { + $invalidProperties[] = "'isBuyOrder' can't be null"; + } + if ($this->container['price'] === null) { + $invalidProperties[] = "'price' can't be null"; + } + if ($this->container['volumeTotal'] === null) { + $invalidProperties[] = "'volumeTotal' can't be null"; + } + if ($this->container['volumeRemain'] === null) { + $invalidProperties[] = "'volumeRemain' can't be null"; + } + if ($this->container['issued'] === null) { + $invalidProperties[] = "'issued' can't be null"; + } + if ($this->container['state'] === null) { + $invalidProperties[] = "'state' can't be null"; + } + $allowedValues = $this->getStateAllowableValues(); + if (!in_array($this->container['state'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'state', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['minVolume'] === null) { + $invalidProperties[] = "'minVolume' can't be null"; + } + if ($this->container['accountId'] === null) { + $invalidProperties[] = "'accountId' can't be null"; + } + if ($this->container['duration'] === null) { + $invalidProperties[] = "'duration' can't be null"; + } + if ($this->container['isCorp'] === null) { + $invalidProperties[] = "'isCorp' can't be null"; + } + if ($this->container['escrow'] === null) { + $invalidProperties[] = "'escrow' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['orderId'] === null) { + return false; + } + if ($this->container['typeId'] === null) { + return false; + } + if ($this->container['regionId'] === null) { + return false; + } + if ($this->container['locationId'] === null) { + return false; + } + if ($this->container['range'] === null) { + return false; + } + $allowedValues = $this->getRangeAllowableValues(); + if (!in_array($this->container['range'], $allowedValues)) { + return false; + } + if ($this->container['isBuyOrder'] === null) { + return false; + } + if ($this->container['price'] === null) { + return false; + } + if ($this->container['volumeTotal'] === null) { + return false; + } + if ($this->container['volumeRemain'] === null) { + return false; + } + if ($this->container['issued'] === null) { + return false; + } + if ($this->container['state'] === null) { + return false; + } + $allowedValues = $this->getStateAllowableValues(); + if (!in_array($this->container['state'], $allowedValues)) { + return false; + } + if ($this->container['minVolume'] === null) { + return false; + } + if ($this->container['accountId'] === null) { + return false; + } + if ($this->container['duration'] === null) { + return false; + } + if ($this->container['isCorp'] === null) { + return false; + } + if ($this->container['escrow'] === null) { + return false; + } + return true; + } + + + /** + * Gets orderId + * + * @return int + */ + public function getOrderId() + { + return $this->container['orderId']; + } + + /** + * Sets orderId + * + * @param int $orderId Unique order ID + * + * @return $this + */ + public function setOrderId($orderId) + { + $this->container['orderId'] = $orderId; + + return $this; + } + + /** + * Gets typeId + * + * @return int + */ + public function getTypeId() + { + return $this->container['typeId']; + } + + /** + * Sets typeId + * + * @param int $typeId The type ID of the item transacted in this order + * + * @return $this + */ + public function setTypeId($typeId) + { + $this->container['typeId'] = $typeId; + + return $this; + } + + /** + * Gets regionId + * + * @return int + */ + public function getRegionId() + { + return $this->container['regionId']; + } + + /** + * Sets regionId + * + * @param int $regionId ID of the region where order was placed + * + * @return $this + */ + public function setRegionId($regionId) + { + $this->container['regionId'] = $regionId; + + return $this; + } + + /** + * Gets locationId + * + * @return int + */ + public function getLocationId() + { + return $this->container['locationId']; + } + + /** + * Sets locationId + * + * @param int $locationId ID of the location where order was placed + * + * @return $this + */ + public function setLocationId($locationId) + { + $this->container['locationId'] = $locationId; + + return $this; + } + + /** + * Gets range + * + * @return string + */ + public function getRange() + { + return $this->container['range']; + } + + /** + * Sets range + * + * @param string $range Valid order range, numbers are ranges in jumps + * + * @return $this + */ + public function setRange($range) + { + $allowedValues = $this->getRangeAllowableValues(); + if (!in_array($range, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'range', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['range'] = $range; + + return $this; + } + + /** + * Gets isBuyOrder + * + * @return bool + */ + public function getIsBuyOrder() + { + return $this->container['isBuyOrder']; + } + + /** + * Sets isBuyOrder + * + * @param bool $isBuyOrder True for a bid (buy) order. False for an offer (sell) order + * + * @return $this + */ + public function setIsBuyOrder($isBuyOrder) + { + $this->container['isBuyOrder'] = $isBuyOrder; + + return $this; + } + + /** + * Gets price + * + * @return double + */ + public function getPrice() + { + return $this->container['price']; + } + + /** + * Sets price + * + * @param double $price Cost per unit for this order + * + * @return $this + */ + public function setPrice($price) + { + $this->container['price'] = $price; + + return $this; + } + + /** + * Gets volumeTotal + * + * @return int + */ + public function getVolumeTotal() + { + return $this->container['volumeTotal']; + } + + /** + * Sets volumeTotal + * + * @param int $volumeTotal Quantity of items required or offered at time order was placed + * + * @return $this + */ + public function setVolumeTotal($volumeTotal) + { + $this->container['volumeTotal'] = $volumeTotal; + + return $this; + } + + /** + * Gets volumeRemain + * + * @return int + */ + public function getVolumeRemain() + { + return $this->container['volumeRemain']; + } + + /** + * Sets volumeRemain + * + * @param int $volumeRemain Quantity of items still required or offered + * + * @return $this + */ + public function setVolumeRemain($volumeRemain) + { + $this->container['volumeRemain'] = $volumeRemain; + + return $this; + } + + /** + * Gets issued + * + * @return \DateTime + */ + public function getIssued() + { + return $this->container['issued']; + } + + /** + * Sets issued + * + * @param \DateTime $issued Date and time when this order was issued + * + * @return $this + */ + public function setIssued($issued) + { + $this->container['issued'] = $issued; + + return $this; + } + + /** + * Gets state + * + * @return string + */ + public function getState() + { + return $this->container['state']; + } + + /** + * Sets state + * + * @param string $state Current order state + * + * @return $this + */ + public function setState($state) + { + $allowedValues = $this->getStateAllowableValues(); + if (!in_array($state, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'state', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['state'] = $state; + + return $this; + } + + /** + * Gets minVolume + * + * @return int + */ + public function getMinVolume() + { + return $this->container['minVolume']; + } + + /** + * Sets minVolume + * + * @param int $minVolume For bids (buy orders), the minimum quantity that will be accepted in a matching offer (sell order) + * + * @return $this + */ + public function setMinVolume($minVolume) + { + $this->container['minVolume'] = $minVolume; + + return $this; + } + + /** + * Gets accountId + * + * @return int + */ + public function getAccountId() + { + return $this->container['accountId']; + } + + /** + * Sets accountId + * + * @param int $accountId Wallet division for the buyer or seller of this order. Always 1000 for characters. Currently 1000 through 1006 for corporations + * + * @return $this + */ + public function setAccountId($accountId) + { + $this->container['accountId'] = $accountId; + + return $this; + } + + /** + * Gets duration + * + * @return int + */ + public function getDuration() + { + return $this->container['duration']; + } + + /** + * Sets duration + * + * @param int $duration Numer of days for which order is valid (starting from the issued date). An order expires at time issued + duration + * + * @return $this + */ + public function setDuration($duration) + { + $this->container['duration'] = $duration; + + return $this; + } + + /** + * Gets isCorp + * + * @return bool + */ + public function getIsCorp() + { + return $this->container['isCorp']; + } + + /** + * Sets isCorp + * + * @param bool $isCorp is_corp boolean + * + * @return $this + */ + public function setIsCorp($isCorp) + { + $this->container['isCorp'] = $isCorp; + + return $this; + } + + /** + * Gets escrow + * + * @return double + */ + public function getEscrow() + { + return $this->container['escrow']; + } + + /** + * Sets escrow + * + * @param double $escrow For buy orders, the amount of ISK in escrow + * + * @return $this + */ + public function setEscrow($escrow) + { + $this->container['escrow'] = $escrow; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdPlanets200Ok.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdPlanets200Ok.php new file mode 100644 index 0000000..2fb7cc4 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdPlanets200Ok.php @@ -0,0 +1,607 @@ + 'int', + 'planetId' => 'int', + 'ownerId' => 'int', + 'upgradeLevel' => 'int', + 'numPins' => 'int', + 'lastUpdate' => '\DateTime', + 'planetType' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'solarSystemId' => 'int32', + 'planetId' => 'int32', + 'ownerId' => 'int32', + 'upgradeLevel' => 'int32', + 'numPins' => 'int32', + 'lastUpdate' => 'date-time', + 'planetType' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'solarSystemId' => 'solar_system_id', + 'planetId' => 'planet_id', + 'ownerId' => 'owner_id', + 'upgradeLevel' => 'upgrade_level', + 'numPins' => 'num_pins', + 'lastUpdate' => 'last_update', + 'planetType' => 'planet_type' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'solarSystemId' => 'setSolarSystemId', + 'planetId' => 'setPlanetId', + 'ownerId' => 'setOwnerId', + 'upgradeLevel' => 'setUpgradeLevel', + 'numPins' => 'setNumPins', + 'lastUpdate' => 'setLastUpdate', + 'planetType' => 'setPlanetType' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'solarSystemId' => 'getSolarSystemId', + 'planetId' => 'getPlanetId', + 'ownerId' => 'getOwnerId', + 'upgradeLevel' => 'getUpgradeLevel', + 'numPins' => 'getNumPins', + 'lastUpdate' => 'getLastUpdate', + 'planetType' => 'getPlanetType' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const PLANET_TYPE_TEMPERATE = 'temperate'; + const PLANET_TYPE_BARREN = 'barren'; + const PLANET_TYPE_OCEANIC = 'oceanic'; + const PLANET_TYPE_ICE = 'ice'; + const PLANET_TYPE_GAS = 'gas'; + const PLANET_TYPE_LAVA = 'lava'; + const PLANET_TYPE_STORM = 'storm'; + const PLANET_TYPE_PLASMA = 'plasma'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getPlanetTypeAllowableValues() + { + return [ + self::PLANET_TYPE_TEMPERATE, + self::PLANET_TYPE_BARREN, + self::PLANET_TYPE_OCEANIC, + self::PLANET_TYPE_ICE, + self::PLANET_TYPE_GAS, + self::PLANET_TYPE_LAVA, + self::PLANET_TYPE_STORM, + self::PLANET_TYPE_PLASMA, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['solarSystemId'] = isset($data['solarSystemId']) ? $data['solarSystemId'] : null; + $this->container['planetId'] = isset($data['planetId']) ? $data['planetId'] : null; + $this->container['ownerId'] = isset($data['ownerId']) ? $data['ownerId'] : null; + $this->container['upgradeLevel'] = isset($data['upgradeLevel']) ? $data['upgradeLevel'] : null; + $this->container['numPins'] = isset($data['numPins']) ? $data['numPins'] : null; + $this->container['lastUpdate'] = isset($data['lastUpdate']) ? $data['lastUpdate'] : null; + $this->container['planetType'] = isset($data['planetType']) ? $data['planetType'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['solarSystemId'] === null) { + $invalidProperties[] = "'solarSystemId' can't be null"; + } + if ($this->container['planetId'] === null) { + $invalidProperties[] = "'planetId' can't be null"; + } + if ($this->container['ownerId'] === null) { + $invalidProperties[] = "'ownerId' can't be null"; + } + if ($this->container['upgradeLevel'] === null) { + $invalidProperties[] = "'upgradeLevel' can't be null"; + } + if (($this->container['upgradeLevel'] > 5)) { + $invalidProperties[] = "invalid value for 'upgradeLevel', must be smaller than or equal to 5."; + } + + if (($this->container['upgradeLevel'] < 0)) { + $invalidProperties[] = "invalid value for 'upgradeLevel', must be bigger than or equal to 0."; + } + + if ($this->container['numPins'] === null) { + $invalidProperties[] = "'numPins' can't be null"; + } + if (($this->container['numPins'] < 1)) { + $invalidProperties[] = "invalid value for 'numPins', must be bigger than or equal to 1."; + } + + if ($this->container['lastUpdate'] === null) { + $invalidProperties[] = "'lastUpdate' can't be null"; + } + if ($this->container['planetType'] === null) { + $invalidProperties[] = "'planetType' can't be null"; + } + $allowedValues = $this->getPlanetTypeAllowableValues(); + if (!in_array($this->container['planetType'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'planetType', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['solarSystemId'] === null) { + return false; + } + if ($this->container['planetId'] === null) { + return false; + } + if ($this->container['ownerId'] === null) { + return false; + } + if ($this->container['upgradeLevel'] === null) { + return false; + } + if ($this->container['upgradeLevel'] > 5) { + return false; + } + if ($this->container['upgradeLevel'] < 0) { + return false; + } + if ($this->container['numPins'] === null) { + return false; + } + if ($this->container['numPins'] < 1) { + return false; + } + if ($this->container['lastUpdate'] === null) { + return false; + } + if ($this->container['planetType'] === null) { + return false; + } + $allowedValues = $this->getPlanetTypeAllowableValues(); + if (!in_array($this->container['planetType'], $allowedValues)) { + return false; + } + return true; + } + + + /** + * Gets solarSystemId + * + * @return int + */ + public function getSolarSystemId() + { + return $this->container['solarSystemId']; + } + + /** + * Sets solarSystemId + * + * @param int $solarSystemId solar_system_id integer + * + * @return $this + */ + public function setSolarSystemId($solarSystemId) + { + $this->container['solarSystemId'] = $solarSystemId; + + return $this; + } + + /** + * Gets planetId + * + * @return int + */ + public function getPlanetId() + { + return $this->container['planetId']; + } + + /** + * Sets planetId + * + * @param int $planetId planet_id integer + * + * @return $this + */ + public function setPlanetId($planetId) + { + $this->container['planetId'] = $planetId; + + return $this; + } + + /** + * Gets ownerId + * + * @return int + */ + public function getOwnerId() + { + return $this->container['ownerId']; + } + + /** + * Sets ownerId + * + * @param int $ownerId owner_id integer + * + * @return $this + */ + public function setOwnerId($ownerId) + { + $this->container['ownerId'] = $ownerId; + + return $this; + } + + /** + * Gets upgradeLevel + * + * @return int + */ + public function getUpgradeLevel() + { + return $this->container['upgradeLevel']; + } + + /** + * Sets upgradeLevel + * + * @param int $upgradeLevel upgrade_level integer + * + * @return $this + */ + public function setUpgradeLevel($upgradeLevel) + { + + if (($upgradeLevel > 5)) { + throw new \InvalidArgumentException('invalid value for $upgradeLevel when calling GetCharactersCharacterIdPlanets200Ok., must be smaller than or equal to 5.'); + } + if (($upgradeLevel < 0)) { + throw new \InvalidArgumentException('invalid value for $upgradeLevel when calling GetCharactersCharacterIdPlanets200Ok., must be bigger than or equal to 0.'); + } + + $this->container['upgradeLevel'] = $upgradeLevel; + + return $this; + } + + /** + * Gets numPins + * + * @return int + */ + public function getNumPins() + { + return $this->container['numPins']; + } + + /** + * Sets numPins + * + * @param int $numPins num_pins integer + * + * @return $this + */ + public function setNumPins($numPins) + { + + if (($numPins < 1)) { + throw new \InvalidArgumentException('invalid value for $numPins when calling GetCharactersCharacterIdPlanets200Ok., must be bigger than or equal to 1.'); + } + + $this->container['numPins'] = $numPins; + + return $this; + } + + /** + * Gets lastUpdate + * + * @return \DateTime + */ + public function getLastUpdate() + { + return $this->container['lastUpdate']; + } + + /** + * Sets lastUpdate + * + * @param \DateTime $lastUpdate last_update string + * + * @return $this + */ + public function setLastUpdate($lastUpdate) + { + $this->container['lastUpdate'] = $lastUpdate; + + return $this; + } + + /** + * Gets planetType + * + * @return string + */ + public function getPlanetType() + { + return $this->container['planetType']; + } + + /** + * Sets planetType + * + * @param string $planetType planet_type string + * + * @return $this + */ + public function setPlanetType($planetType) + { + $allowedValues = $this->getPlanetTypeAllowableValues(); + if (!in_array($planetType, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'planetType', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['planetType'] = $planetType; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdPlanetsPlanetIdContent.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdPlanetsPlanetIdContent.php new file mode 100644 index 0000000..01c2f4b --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdPlanetsPlanetIdContent.php @@ -0,0 +1,345 @@ + 'int', + 'amount' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'typeId' => 'int32', + 'amount' => 'int64' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'typeId' => 'type_id', + 'amount' => 'amount' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'typeId' => 'setTypeId', + 'amount' => 'setAmount' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'typeId' => 'getTypeId', + 'amount' => 'getAmount' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['typeId'] = isset($data['typeId']) ? $data['typeId'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['typeId'] === null) { + $invalidProperties[] = "'typeId' can't be null"; + } + if ($this->container['amount'] === null) { + $invalidProperties[] = "'amount' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['typeId'] === null) { + return false; + } + if ($this->container['amount'] === null) { + return false; + } + return true; + } + + + /** + * Gets typeId + * + * @return int + */ + public function getTypeId() + { + return $this->container['typeId']; + } + + /** + * Sets typeId + * + * @param int $typeId type_id integer + * + * @return $this + */ + public function setTypeId($typeId) + { + $this->container['typeId'] = $typeId; + + return $this; + } + + /** + * Gets amount + * + * @return int + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param int $amount amount integer + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdPlanetsPlanetIdExtractorDetails.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdPlanetsPlanetIdExtractorDetails.php new file mode 100644 index 0000000..eeb0b43 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdPlanetsPlanetIdExtractorDetails.php @@ -0,0 +1,429 @@ + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdHead[]', + 'productTypeId' => 'int', + 'cycleTime' => 'int', + 'headRadius' => 'float', + 'qtyPerCycle' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'heads' => null, + 'productTypeId' => 'int32', + 'cycleTime' => 'int32', + 'headRadius' => 'float', + 'qtyPerCycle' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'heads' => 'heads', + 'productTypeId' => 'product_type_id', + 'cycleTime' => 'cycle_time', + 'headRadius' => 'head_radius', + 'qtyPerCycle' => 'qty_per_cycle' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'heads' => 'setHeads', + 'productTypeId' => 'setProductTypeId', + 'cycleTime' => 'setCycleTime', + 'headRadius' => 'setHeadRadius', + 'qtyPerCycle' => 'setQtyPerCycle' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'heads' => 'getHeads', + 'productTypeId' => 'getProductTypeId', + 'cycleTime' => 'getCycleTime', + 'headRadius' => 'getHeadRadius', + 'qtyPerCycle' => 'getQtyPerCycle' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['heads'] = isset($data['heads']) ? $data['heads'] : null; + $this->container['productTypeId'] = isset($data['productTypeId']) ? $data['productTypeId'] : null; + $this->container['cycleTime'] = isset($data['cycleTime']) ? $data['cycleTime'] : null; + $this->container['headRadius'] = isset($data['headRadius']) ? $data['headRadius'] : null; + $this->container['qtyPerCycle'] = isset($data['qtyPerCycle']) ? $data['qtyPerCycle'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['heads'] === null) { + $invalidProperties[] = "'heads' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['heads'] === null) { + return false; + } + return true; + } + + + /** + * Gets heads + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdHead[] + */ + public function getHeads() + { + return $this->container['heads']; + } + + /** + * Sets heads + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdHead[] $heads heads array + * + * @return $this + */ + public function setHeads($heads) + { + $this->container['heads'] = $heads; + + return $this; + } + + /** + * Gets productTypeId + * + * @return int + */ + public function getProductTypeId() + { + return $this->container['productTypeId']; + } + + /** + * Sets productTypeId + * + * @param int $productTypeId product_type_id integer + * + * @return $this + */ + public function setProductTypeId($productTypeId) + { + $this->container['productTypeId'] = $productTypeId; + + return $this; + } + + /** + * Gets cycleTime + * + * @return int + */ + public function getCycleTime() + { + return $this->container['cycleTime']; + } + + /** + * Sets cycleTime + * + * @param int $cycleTime in seconds + * + * @return $this + */ + public function setCycleTime($cycleTime) + { + $this->container['cycleTime'] = $cycleTime; + + return $this; + } + + /** + * Gets headRadius + * + * @return float + */ + public function getHeadRadius() + { + return $this->container['headRadius']; + } + + /** + * Sets headRadius + * + * @param float $headRadius head_radius number + * + * @return $this + */ + public function setHeadRadius($headRadius) + { + $this->container['headRadius'] = $headRadius; + + return $this; + } + + /** + * Gets qtyPerCycle + * + * @return int + */ + public function getQtyPerCycle() + { + return $this->container['qtyPerCycle']; + } + + /** + * Sets qtyPerCycle + * + * @param int $qtyPerCycle qty_per_cycle integer + * + * @return $this + */ + public function setQtyPerCycle($qtyPerCycle) + { + $this->container['qtyPerCycle'] = $qtyPerCycle; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdPlanetsPlanetIdFactoryDetails.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdPlanetsPlanetIdFactoryDetails.php new file mode 100644 index 0000000..4a20586 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdPlanetsPlanetIdFactoryDetails.php @@ -0,0 +1,309 @@ + 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'schematicId' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'schematicId' => 'schematic_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'schematicId' => 'setSchematicId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'schematicId' => 'getSchematicId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['schematicId'] = isset($data['schematicId']) ? $data['schematicId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['schematicId'] === null) { + $invalidProperties[] = "'schematicId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['schematicId'] === null) { + return false; + } + return true; + } + + + /** + * Gets schematicId + * + * @return int + */ + public function getSchematicId() + { + return $this->container['schematicId']; + } + + /** + * Sets schematicId + * + * @param int $schematicId schematic_id integer + * + * @return $this + */ + public function setSchematicId($schematicId) + { + $this->container['schematicId'] = $schematicId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdPlanetsPlanetIdHead.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdPlanetsPlanetIdHead.php new file mode 100644 index 0000000..29055d7 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdPlanetsPlanetIdHead.php @@ -0,0 +1,403 @@ + 'int', + 'latitude' => 'float', + 'longitude' => 'float' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'headId' => 'int32', + 'latitude' => 'float', + 'longitude' => 'float' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'headId' => 'head_id', + 'latitude' => 'latitude', + 'longitude' => 'longitude' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'headId' => 'setHeadId', + 'latitude' => 'setLatitude', + 'longitude' => 'setLongitude' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'headId' => 'getHeadId', + 'latitude' => 'getLatitude', + 'longitude' => 'getLongitude' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['headId'] = isset($data['headId']) ? $data['headId'] : null; + $this->container['latitude'] = isset($data['latitude']) ? $data['latitude'] : null; + $this->container['longitude'] = isset($data['longitude']) ? $data['longitude'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['headId'] === null) { + $invalidProperties[] = "'headId' can't be null"; + } + if (($this->container['headId'] > 9)) { + $invalidProperties[] = "invalid value for 'headId', must be smaller than or equal to 9."; + } + + if (($this->container['headId'] < 0)) { + $invalidProperties[] = "invalid value for 'headId', must be bigger than or equal to 0."; + } + + if ($this->container['latitude'] === null) { + $invalidProperties[] = "'latitude' can't be null"; + } + if ($this->container['longitude'] === null) { + $invalidProperties[] = "'longitude' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['headId'] === null) { + return false; + } + if ($this->container['headId'] > 9) { + return false; + } + if ($this->container['headId'] < 0) { + return false; + } + if ($this->container['latitude'] === null) { + return false; + } + if ($this->container['longitude'] === null) { + return false; + } + return true; + } + + + /** + * Gets headId + * + * @return int + */ + public function getHeadId() + { + return $this->container['headId']; + } + + /** + * Sets headId + * + * @param int $headId head_id integer + * + * @return $this + */ + public function setHeadId($headId) + { + + if (($headId > 9)) { + throw new \InvalidArgumentException('invalid value for $headId when calling GetCharactersCharacterIdPlanetsPlanetIdHead., must be smaller than or equal to 9.'); + } + if (($headId < 0)) { + throw new \InvalidArgumentException('invalid value for $headId when calling GetCharactersCharacterIdPlanetsPlanetIdHead., must be bigger than or equal to 0.'); + } + + $this->container['headId'] = $headId; + + return $this; + } + + /** + * Gets latitude + * + * @return float + */ + public function getLatitude() + { + return $this->container['latitude']; + } + + /** + * Sets latitude + * + * @param float $latitude latitude number + * + * @return $this + */ + public function setLatitude($latitude) + { + $this->container['latitude'] = $latitude; + + return $this; + } + + /** + * Gets longitude + * + * @return float + */ + public function getLongitude() + { + return $this->container['longitude']; + } + + /** + * Sets longitude + * + * @param float $longitude longitude number + * + * @return $this + */ + public function setLongitude($longitude) + { + $this->container['longitude'] = $longitude; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdPlanetsPlanetIdLink.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdPlanetsPlanetIdLink.php new file mode 100644 index 0000000..bf690aa --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdPlanetsPlanetIdLink.php @@ -0,0 +1,403 @@ + 'int', + 'destinationPinId' => 'int', + 'linkLevel' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'sourcePinId' => 'int64', + 'destinationPinId' => 'int64', + 'linkLevel' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'sourcePinId' => 'source_pin_id', + 'destinationPinId' => 'destination_pin_id', + 'linkLevel' => 'link_level' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'sourcePinId' => 'setSourcePinId', + 'destinationPinId' => 'setDestinationPinId', + 'linkLevel' => 'setLinkLevel' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'sourcePinId' => 'getSourcePinId', + 'destinationPinId' => 'getDestinationPinId', + 'linkLevel' => 'getLinkLevel' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['sourcePinId'] = isset($data['sourcePinId']) ? $data['sourcePinId'] : null; + $this->container['destinationPinId'] = isset($data['destinationPinId']) ? $data['destinationPinId'] : null; + $this->container['linkLevel'] = isset($data['linkLevel']) ? $data['linkLevel'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['sourcePinId'] === null) { + $invalidProperties[] = "'sourcePinId' can't be null"; + } + if ($this->container['destinationPinId'] === null) { + $invalidProperties[] = "'destinationPinId' can't be null"; + } + if ($this->container['linkLevel'] === null) { + $invalidProperties[] = "'linkLevel' can't be null"; + } + if (($this->container['linkLevel'] > 10)) { + $invalidProperties[] = "invalid value for 'linkLevel', must be smaller than or equal to 10."; + } + + if (($this->container['linkLevel'] < 0)) { + $invalidProperties[] = "invalid value for 'linkLevel', must be bigger than or equal to 0."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['sourcePinId'] === null) { + return false; + } + if ($this->container['destinationPinId'] === null) { + return false; + } + if ($this->container['linkLevel'] === null) { + return false; + } + if ($this->container['linkLevel'] > 10) { + return false; + } + if ($this->container['linkLevel'] < 0) { + return false; + } + return true; + } + + + /** + * Gets sourcePinId + * + * @return int + */ + public function getSourcePinId() + { + return $this->container['sourcePinId']; + } + + /** + * Sets sourcePinId + * + * @param int $sourcePinId source_pin_id integer + * + * @return $this + */ + public function setSourcePinId($sourcePinId) + { + $this->container['sourcePinId'] = $sourcePinId; + + return $this; + } + + /** + * Gets destinationPinId + * + * @return int + */ + public function getDestinationPinId() + { + return $this->container['destinationPinId']; + } + + /** + * Sets destinationPinId + * + * @param int $destinationPinId destination_pin_id integer + * + * @return $this + */ + public function setDestinationPinId($destinationPinId) + { + $this->container['destinationPinId'] = $destinationPinId; + + return $this; + } + + /** + * Gets linkLevel + * + * @return int + */ + public function getLinkLevel() + { + return $this->container['linkLevel']; + } + + /** + * Sets linkLevel + * + * @param int $linkLevel link_level integer + * + * @return $this + */ + public function setLinkLevel($linkLevel) + { + + if (($linkLevel > 10)) { + throw new \InvalidArgumentException('invalid value for $linkLevel when calling GetCharactersCharacterIdPlanetsPlanetIdLink., must be smaller than or equal to 10.'); + } + if (($linkLevel < 0)) { + throw new \InvalidArgumentException('invalid value for $linkLevel when calling GetCharactersCharacterIdPlanetsPlanetIdLink., must be bigger than or equal to 0.'); + } + + $this->container['linkLevel'] = $linkLevel; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdPlanetsPlanetIdNotFound.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdPlanetsPlanetIdNotFound.php new file mode 100644 index 0000000..c73daa4 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdPlanetsPlanetIdNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error error message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdPlanetsPlanetIdOk.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdPlanetsPlanetIdOk.php new file mode 100644 index 0000000..eededd7 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdPlanetsPlanetIdOk.php @@ -0,0 +1,381 @@ + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdLink[]', + 'pins' => '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdPin[]', + 'routes' => '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdRoute[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'links' => null, + 'pins' => null, + 'routes' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'links' => 'links', + 'pins' => 'pins', + 'routes' => 'routes' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'links' => 'setLinks', + 'pins' => 'setPins', + 'routes' => 'setRoutes' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'links' => 'getLinks', + 'pins' => 'getPins', + 'routes' => 'getRoutes' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['links'] = isset($data['links']) ? $data['links'] : null; + $this->container['pins'] = isset($data['pins']) ? $data['pins'] : null; + $this->container['routes'] = isset($data['routes']) ? $data['routes'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['links'] === null) { + $invalidProperties[] = "'links' can't be null"; + } + if ($this->container['pins'] === null) { + $invalidProperties[] = "'pins' can't be null"; + } + if ($this->container['routes'] === null) { + $invalidProperties[] = "'routes' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['links'] === null) { + return false; + } + if ($this->container['pins'] === null) { + return false; + } + if ($this->container['routes'] === null) { + return false; + } + return true; + } + + + /** + * Gets links + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdLink[] + */ + public function getLinks() + { + return $this->container['links']; + } + + /** + * Sets links + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdLink[] $links links array + * + * @return $this + */ + public function setLinks($links) + { + $this->container['links'] = $links; + + return $this; + } + + /** + * Gets pins + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdPin[] + */ + public function getPins() + { + return $this->container['pins']; + } + + /** + * Sets pins + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdPin[] $pins pins array + * + * @return $this + */ + public function setPins($pins) + { + $this->container['pins'] = $pins; + + return $this; + } + + /** + * Gets routes + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdRoute[] + */ + public function getRoutes() + { + return $this->container['routes']; + } + + /** + * Sets routes + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdRoute[] $routes routes array + * + * @return $this + */ + public function setRoutes($routes) + { + $this->container['routes'] = $routes; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdPlanetsPlanetIdPin.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdPlanetsPlanetIdPin.php new file mode 100644 index 0000000..33897ac --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdPlanetsPlanetIdPin.php @@ -0,0 +1,627 @@ + 'float', + 'longitude' => 'float', + 'pinId' => 'int', + 'typeId' => 'int', + 'schematicId' => 'int', + 'extractorDetails' => '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdExtractorDetails', + 'factoryDetails' => '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdFactoryDetails', + 'contents' => '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdContent[]', + 'installTime' => '\DateTime', + 'expiryTime' => '\DateTime', + 'lastCycleStart' => '\DateTime' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'latitude' => 'float', + 'longitude' => 'float', + 'pinId' => 'int64', + 'typeId' => 'int32', + 'schematicId' => 'int32', + 'extractorDetails' => null, + 'factoryDetails' => null, + 'contents' => null, + 'installTime' => 'date-time', + 'expiryTime' => 'date-time', + 'lastCycleStart' => 'date-time' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'latitude' => 'latitude', + 'longitude' => 'longitude', + 'pinId' => 'pin_id', + 'typeId' => 'type_id', + 'schematicId' => 'schematic_id', + 'extractorDetails' => 'extractor_details', + 'factoryDetails' => 'factory_details', + 'contents' => 'contents', + 'installTime' => 'install_time', + 'expiryTime' => 'expiry_time', + 'lastCycleStart' => 'last_cycle_start' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'latitude' => 'setLatitude', + 'longitude' => 'setLongitude', + 'pinId' => 'setPinId', + 'typeId' => 'setTypeId', + 'schematicId' => 'setSchematicId', + 'extractorDetails' => 'setExtractorDetails', + 'factoryDetails' => 'setFactoryDetails', + 'contents' => 'setContents', + 'installTime' => 'setInstallTime', + 'expiryTime' => 'setExpiryTime', + 'lastCycleStart' => 'setLastCycleStart' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'latitude' => 'getLatitude', + 'longitude' => 'getLongitude', + 'pinId' => 'getPinId', + 'typeId' => 'getTypeId', + 'schematicId' => 'getSchematicId', + 'extractorDetails' => 'getExtractorDetails', + 'factoryDetails' => 'getFactoryDetails', + 'contents' => 'getContents', + 'installTime' => 'getInstallTime', + 'expiryTime' => 'getExpiryTime', + 'lastCycleStart' => 'getLastCycleStart' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['latitude'] = isset($data['latitude']) ? $data['latitude'] : null; + $this->container['longitude'] = isset($data['longitude']) ? $data['longitude'] : null; + $this->container['pinId'] = isset($data['pinId']) ? $data['pinId'] : null; + $this->container['typeId'] = isset($data['typeId']) ? $data['typeId'] : null; + $this->container['schematicId'] = isset($data['schematicId']) ? $data['schematicId'] : null; + $this->container['extractorDetails'] = isset($data['extractorDetails']) ? $data['extractorDetails'] : null; + $this->container['factoryDetails'] = isset($data['factoryDetails']) ? $data['factoryDetails'] : null; + $this->container['contents'] = isset($data['contents']) ? $data['contents'] : null; + $this->container['installTime'] = isset($data['installTime']) ? $data['installTime'] : null; + $this->container['expiryTime'] = isset($data['expiryTime']) ? $data['expiryTime'] : null; + $this->container['lastCycleStart'] = isset($data['lastCycleStart']) ? $data['lastCycleStart'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['latitude'] === null) { + $invalidProperties[] = "'latitude' can't be null"; + } + if ($this->container['longitude'] === null) { + $invalidProperties[] = "'longitude' can't be null"; + } + if ($this->container['pinId'] === null) { + $invalidProperties[] = "'pinId' can't be null"; + } + if ($this->container['typeId'] === null) { + $invalidProperties[] = "'typeId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['latitude'] === null) { + return false; + } + if ($this->container['longitude'] === null) { + return false; + } + if ($this->container['pinId'] === null) { + return false; + } + if ($this->container['typeId'] === null) { + return false; + } + return true; + } + + + /** + * Gets latitude + * + * @return float + */ + public function getLatitude() + { + return $this->container['latitude']; + } + + /** + * Sets latitude + * + * @param float $latitude latitude number + * + * @return $this + */ + public function setLatitude($latitude) + { + $this->container['latitude'] = $latitude; + + return $this; + } + + /** + * Gets longitude + * + * @return float + */ + public function getLongitude() + { + return $this->container['longitude']; + } + + /** + * Sets longitude + * + * @param float $longitude longitude number + * + * @return $this + */ + public function setLongitude($longitude) + { + $this->container['longitude'] = $longitude; + + return $this; + } + + /** + * Gets pinId + * + * @return int + */ + public function getPinId() + { + return $this->container['pinId']; + } + + /** + * Sets pinId + * + * @param int $pinId pin_id integer + * + * @return $this + */ + public function setPinId($pinId) + { + $this->container['pinId'] = $pinId; + + return $this; + } + + /** + * Gets typeId + * + * @return int + */ + public function getTypeId() + { + return $this->container['typeId']; + } + + /** + * Sets typeId + * + * @param int $typeId type_id integer + * + * @return $this + */ + public function setTypeId($typeId) + { + $this->container['typeId'] = $typeId; + + return $this; + } + + /** + * Gets schematicId + * + * @return int + */ + public function getSchematicId() + { + return $this->container['schematicId']; + } + + /** + * Sets schematicId + * + * @param int $schematicId schematic_id integer + * + * @return $this + */ + public function setSchematicId($schematicId) + { + $this->container['schematicId'] = $schematicId; + + return $this; + } + + /** + * Gets extractorDetails + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdExtractorDetails + */ + public function getExtractorDetails() + { + return $this->container['extractorDetails']; + } + + /** + * Sets extractorDetails + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdExtractorDetails $extractorDetails extractorDetails + * + * @return $this + */ + public function setExtractorDetails($extractorDetails) + { + $this->container['extractorDetails'] = $extractorDetails; + + return $this; + } + + /** + * Gets factoryDetails + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdFactoryDetails + */ + public function getFactoryDetails() + { + return $this->container['factoryDetails']; + } + + /** + * Sets factoryDetails + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdFactoryDetails $factoryDetails factoryDetails + * + * @return $this + */ + public function setFactoryDetails($factoryDetails) + { + $this->container['factoryDetails'] = $factoryDetails; + + return $this; + } + + /** + * Gets contents + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdContent[] + */ + public function getContents() + { + return $this->container['contents']; + } + + /** + * Sets contents + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdPlanetsPlanetIdContent[] $contents contents array + * + * @return $this + */ + public function setContents($contents) + { + $this->container['contents'] = $contents; + + return $this; + } + + /** + * Gets installTime + * + * @return \DateTime + */ + public function getInstallTime() + { + return $this->container['installTime']; + } + + /** + * Sets installTime + * + * @param \DateTime $installTime install_time string + * + * @return $this + */ + public function setInstallTime($installTime) + { + $this->container['installTime'] = $installTime; + + return $this; + } + + /** + * Gets expiryTime + * + * @return \DateTime + */ + public function getExpiryTime() + { + return $this->container['expiryTime']; + } + + /** + * Sets expiryTime + * + * @param \DateTime $expiryTime expiry_time string + * + * @return $this + */ + public function setExpiryTime($expiryTime) + { + $this->container['expiryTime'] = $expiryTime; + + return $this; + } + + /** + * Gets lastCycleStart + * + * @return \DateTime + */ + public function getLastCycleStart() + { + return $this->container['lastCycleStart']; + } + + /** + * Sets lastCycleStart + * + * @param \DateTime $lastCycleStart last_cycle_start string + * + * @return $this + */ + public function setLastCycleStart($lastCycleStart) + { + $this->container['lastCycleStart'] = $lastCycleStart; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdPlanetsPlanetIdRoute.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdPlanetsPlanetIdRoute.php new file mode 100644 index 0000000..42535b4 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdPlanetsPlanetIdRoute.php @@ -0,0 +1,483 @@ + 'int', + 'sourcePinId' => 'int', + 'destinationPinId' => 'int', + 'contentTypeId' => 'int', + 'quantity' => 'float', + 'waypoints' => 'int[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'routeId' => 'int64', + 'sourcePinId' => 'int64', + 'destinationPinId' => 'int64', + 'contentTypeId' => 'int32', + 'quantity' => 'float', + 'waypoints' => 'int64' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'routeId' => 'route_id', + 'sourcePinId' => 'source_pin_id', + 'destinationPinId' => 'destination_pin_id', + 'contentTypeId' => 'content_type_id', + 'quantity' => 'quantity', + 'waypoints' => 'waypoints' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'routeId' => 'setRouteId', + 'sourcePinId' => 'setSourcePinId', + 'destinationPinId' => 'setDestinationPinId', + 'contentTypeId' => 'setContentTypeId', + 'quantity' => 'setQuantity', + 'waypoints' => 'setWaypoints' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'routeId' => 'getRouteId', + 'sourcePinId' => 'getSourcePinId', + 'destinationPinId' => 'getDestinationPinId', + 'contentTypeId' => 'getContentTypeId', + 'quantity' => 'getQuantity', + 'waypoints' => 'getWaypoints' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['routeId'] = isset($data['routeId']) ? $data['routeId'] : null; + $this->container['sourcePinId'] = isset($data['sourcePinId']) ? $data['sourcePinId'] : null; + $this->container['destinationPinId'] = isset($data['destinationPinId']) ? $data['destinationPinId'] : null; + $this->container['contentTypeId'] = isset($data['contentTypeId']) ? $data['contentTypeId'] : null; + $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null; + $this->container['waypoints'] = isset($data['waypoints']) ? $data['waypoints'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['routeId'] === null) { + $invalidProperties[] = "'routeId' can't be null"; + } + if ($this->container['sourcePinId'] === null) { + $invalidProperties[] = "'sourcePinId' can't be null"; + } + if ($this->container['destinationPinId'] === null) { + $invalidProperties[] = "'destinationPinId' can't be null"; + } + if ($this->container['contentTypeId'] === null) { + $invalidProperties[] = "'contentTypeId' can't be null"; + } + if ($this->container['quantity'] === null) { + $invalidProperties[] = "'quantity' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['routeId'] === null) { + return false; + } + if ($this->container['sourcePinId'] === null) { + return false; + } + if ($this->container['destinationPinId'] === null) { + return false; + } + if ($this->container['contentTypeId'] === null) { + return false; + } + if ($this->container['quantity'] === null) { + return false; + } + return true; + } + + + /** + * Gets routeId + * + * @return int + */ + public function getRouteId() + { + return $this->container['routeId']; + } + + /** + * Sets routeId + * + * @param int $routeId route_id integer + * + * @return $this + */ + public function setRouteId($routeId) + { + $this->container['routeId'] = $routeId; + + return $this; + } + + /** + * Gets sourcePinId + * + * @return int + */ + public function getSourcePinId() + { + return $this->container['sourcePinId']; + } + + /** + * Sets sourcePinId + * + * @param int $sourcePinId source_pin_id integer + * + * @return $this + */ + public function setSourcePinId($sourcePinId) + { + $this->container['sourcePinId'] = $sourcePinId; + + return $this; + } + + /** + * Gets destinationPinId + * + * @return int + */ + public function getDestinationPinId() + { + return $this->container['destinationPinId']; + } + + /** + * Sets destinationPinId + * + * @param int $destinationPinId destination_pin_id integer + * + * @return $this + */ + public function setDestinationPinId($destinationPinId) + { + $this->container['destinationPinId'] = $destinationPinId; + + return $this; + } + + /** + * Gets contentTypeId + * + * @return int + */ + public function getContentTypeId() + { + return $this->container['contentTypeId']; + } + + /** + * Sets contentTypeId + * + * @param int $contentTypeId content_type_id integer + * + * @return $this + */ + public function setContentTypeId($contentTypeId) + { + $this->container['contentTypeId'] = $contentTypeId; + + return $this; + } + + /** + * Gets quantity + * + * @return float + */ + public function getQuantity() + { + return $this->container['quantity']; + } + + /** + * Sets quantity + * + * @param float $quantity quantity number + * + * @return $this + */ + public function setQuantity($quantity) + { + $this->container['quantity'] = $quantity; + + return $this; + } + + /** + * Gets waypoints + * + * @return int[] + */ + public function getWaypoints() + { + return $this->container['waypoints']; + } + + /** + * Sets waypoints + * + * @param int[] $waypoints list of pin ID waypoints + * + * @return $this + */ + public function setWaypoints($waypoints) + { + $this->container['waypoints'] = $waypoints; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdPortraitNotFound.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdPortraitNotFound.php new file mode 100644 index 0000000..40eba0f --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdPortraitNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error error message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdPortraitOk.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdPortraitOk.php new file mode 100644 index 0000000..d2f98ed --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdPortraitOk.php @@ -0,0 +1,393 @@ + 'string', + 'px128x128' => 'string', + 'px256x256' => 'string', + 'px512x512' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'px64x64' => null, + 'px128x128' => null, + 'px256x256' => null, + 'px512x512' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'px64x64' => 'px64x64', + 'px128x128' => 'px128x128', + 'px256x256' => 'px256x256', + 'px512x512' => 'px512x512' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'px64x64' => 'setPx64x64', + 'px128x128' => 'setPx128x128', + 'px256x256' => 'setPx256x256', + 'px512x512' => 'setPx512x512' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'px64x64' => 'getPx64x64', + 'px128x128' => 'getPx128x128', + 'px256x256' => 'getPx256x256', + 'px512x512' => 'getPx512x512' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['px64x64'] = isset($data['px64x64']) ? $data['px64x64'] : null; + $this->container['px128x128'] = isset($data['px128x128']) ? $data['px128x128'] : null; + $this->container['px256x256'] = isset($data['px256x256']) ? $data['px256x256'] : null; + $this->container['px512x512'] = isset($data['px512x512']) ? $data['px512x512'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets px64x64 + * + * @return string + */ + public function getPx64x64() + { + return $this->container['px64x64']; + } + + /** + * Sets px64x64 + * + * @param string $px64x64 px64x64 string + * + * @return $this + */ + public function setPx64x64($px64x64) + { + $this->container['px64x64'] = $px64x64; + + return $this; + } + + /** + * Gets px128x128 + * + * @return string + */ + public function getPx128x128() + { + return $this->container['px128x128']; + } + + /** + * Sets px128x128 + * + * @param string $px128x128 px128x128 string + * + * @return $this + */ + public function setPx128x128($px128x128) + { + $this->container['px128x128'] = $px128x128; + + return $this; + } + + /** + * Gets px256x256 + * + * @return string + */ + public function getPx256x256() + { + return $this->container['px256x256']; + } + + /** + * Sets px256x256 + * + * @param string $px256x256 px256x256 string + * + * @return $this + */ + public function setPx256x256($px256x256) + { + $this->container['px256x256'] = $px256x256; + + return $this; + } + + /** + * Gets px512x512 + * + * @return string + */ + public function getPx512x512() + { + return $this->container['px512x512']; + } + + /** + * Sets px512x512 + * + * @param string $px512x512 px512x512 string + * + * @return $this + */ + public function setPx512x512($px512x512) + { + $this->container['px512x512'] = $px512x512; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdRolesOk.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdRolesOk.php new file mode 100644 index 0000000..3b08ee3 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdRolesOk.php @@ -0,0 +1,873 @@ + 'string[]', + 'rolesAtHq' => 'string[]', + 'rolesAtBase' => 'string[]', + 'rolesAtOther' => 'string[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'roles' => null, + 'rolesAtHq' => null, + 'rolesAtBase' => null, + 'rolesAtOther' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'roles' => 'roles', + 'rolesAtHq' => 'roles_at_hq', + 'rolesAtBase' => 'roles_at_base', + 'rolesAtOther' => 'roles_at_other' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'roles' => 'setRoles', + 'rolesAtHq' => 'setRolesAtHq', + 'rolesAtBase' => 'setRolesAtBase', + 'rolesAtOther' => 'setRolesAtOther' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'roles' => 'getRoles', + 'rolesAtHq' => 'getRolesAtHq', + 'rolesAtBase' => 'getRolesAtBase', + 'rolesAtOther' => 'getRolesAtOther' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const ROLES_ACCOUNT_TAKE_1 = 'Account_Take_1'; + const ROLES_ACCOUNT_TAKE_2 = 'Account_Take_2'; + const ROLES_ACCOUNT_TAKE_3 = 'Account_Take_3'; + const ROLES_ACCOUNT_TAKE_4 = 'Account_Take_4'; + const ROLES_ACCOUNT_TAKE_5 = 'Account_Take_5'; + const ROLES_ACCOUNT_TAKE_6 = 'Account_Take_6'; + const ROLES_ACCOUNT_TAKE_7 = 'Account_Take_7'; + const ROLES_ACCOUNTANT = 'Accountant'; + const ROLES_AUDITOR = 'Auditor'; + const ROLES_COMMUNICATIONS_OFFICER = 'Communications_Officer'; + const ROLES_CONFIG_EQUIPMENT = 'Config_Equipment'; + const ROLES_CONFIG_STARBASE_EQUIPMENT = 'Config_Starbase_Equipment'; + const ROLES_CONTAINER_TAKE_1 = 'Container_Take_1'; + const ROLES_CONTAINER_TAKE_2 = 'Container_Take_2'; + const ROLES_CONTAINER_TAKE_3 = 'Container_Take_3'; + const ROLES_CONTAINER_TAKE_4 = 'Container_Take_4'; + const ROLES_CONTAINER_TAKE_5 = 'Container_Take_5'; + const ROLES_CONTAINER_TAKE_6 = 'Container_Take_6'; + const ROLES_CONTAINER_TAKE_7 = 'Container_Take_7'; + const ROLES_CONTRACT_MANAGER = 'Contract_Manager'; + const ROLES_DIPLOMAT = 'Diplomat'; + const ROLES_DIRECTOR = 'Director'; + const ROLES_FACTORY_MANAGER = 'Factory_Manager'; + const ROLES_FITTING_MANAGER = 'Fitting_Manager'; + const ROLES_HANGAR_QUERY_1 = 'Hangar_Query_1'; + const ROLES_HANGAR_QUERY_2 = 'Hangar_Query_2'; + const ROLES_HANGAR_QUERY_3 = 'Hangar_Query_3'; + const ROLES_HANGAR_QUERY_4 = 'Hangar_Query_4'; + const ROLES_HANGAR_QUERY_5 = 'Hangar_Query_5'; + const ROLES_HANGAR_QUERY_6 = 'Hangar_Query_6'; + const ROLES_HANGAR_QUERY_7 = 'Hangar_Query_7'; + const ROLES_HANGAR_TAKE_1 = 'Hangar_Take_1'; + const ROLES_HANGAR_TAKE_2 = 'Hangar_Take_2'; + const ROLES_HANGAR_TAKE_3 = 'Hangar_Take_3'; + const ROLES_HANGAR_TAKE_4 = 'Hangar_Take_4'; + const ROLES_HANGAR_TAKE_5 = 'Hangar_Take_5'; + const ROLES_HANGAR_TAKE_6 = 'Hangar_Take_6'; + const ROLES_HANGAR_TAKE_7 = 'Hangar_Take_7'; + const ROLES_JUNIOR_ACCOUNTANT = 'Junior_Accountant'; + const ROLES_PERSONNEL_MANAGER = 'Personnel_Manager'; + const ROLES_RENT_FACTORY_FACILITY = 'Rent_Factory_Facility'; + const ROLES_RENT_OFFICE = 'Rent_Office'; + const ROLES_RENT_RESEARCH_FACILITY = 'Rent_Research_Facility'; + const ROLES_SECURITY_OFFICER = 'Security_Officer'; + const ROLES_STARBASE_DEFENSE_OPERATOR = 'Starbase_Defense_Operator'; + const ROLES_STARBASE_FUEL_TECHNICIAN = 'Starbase_Fuel_Technician'; + const ROLES_STATION_MANAGER = 'Station_Manager'; + const ROLES_TERRESTRIAL_COMBAT_OFFICER = 'Terrestrial_Combat_Officer'; + const ROLES_TERRESTRIAL_LOGISTICS_OFFICER = 'Terrestrial_Logistics_Officer'; + const ROLES_TRADER = 'Trader'; + const ROLES_AT_HQ_ACCOUNT_TAKE_1 = 'Account_Take_1'; + const ROLES_AT_HQ_ACCOUNT_TAKE_2 = 'Account_Take_2'; + const ROLES_AT_HQ_ACCOUNT_TAKE_3 = 'Account_Take_3'; + const ROLES_AT_HQ_ACCOUNT_TAKE_4 = 'Account_Take_4'; + const ROLES_AT_HQ_ACCOUNT_TAKE_5 = 'Account_Take_5'; + const ROLES_AT_HQ_ACCOUNT_TAKE_6 = 'Account_Take_6'; + const ROLES_AT_HQ_ACCOUNT_TAKE_7 = 'Account_Take_7'; + const ROLES_AT_HQ_ACCOUNTANT = 'Accountant'; + const ROLES_AT_HQ_AUDITOR = 'Auditor'; + const ROLES_AT_HQ_COMMUNICATIONS_OFFICER = 'Communications_Officer'; + const ROLES_AT_HQ_CONFIG_EQUIPMENT = 'Config_Equipment'; + const ROLES_AT_HQ_CONFIG_STARBASE_EQUIPMENT = 'Config_Starbase_Equipment'; + const ROLES_AT_HQ_CONTAINER_TAKE_1 = 'Container_Take_1'; + const ROLES_AT_HQ_CONTAINER_TAKE_2 = 'Container_Take_2'; + const ROLES_AT_HQ_CONTAINER_TAKE_3 = 'Container_Take_3'; + const ROLES_AT_HQ_CONTAINER_TAKE_4 = 'Container_Take_4'; + const ROLES_AT_HQ_CONTAINER_TAKE_5 = 'Container_Take_5'; + const ROLES_AT_HQ_CONTAINER_TAKE_6 = 'Container_Take_6'; + const ROLES_AT_HQ_CONTAINER_TAKE_7 = 'Container_Take_7'; + const ROLES_AT_HQ_CONTRACT_MANAGER = 'Contract_Manager'; + const ROLES_AT_HQ_DIPLOMAT = 'Diplomat'; + const ROLES_AT_HQ_DIRECTOR = 'Director'; + const ROLES_AT_HQ_FACTORY_MANAGER = 'Factory_Manager'; + const ROLES_AT_HQ_FITTING_MANAGER = 'Fitting_Manager'; + const ROLES_AT_HQ_HANGAR_QUERY_1 = 'Hangar_Query_1'; + const ROLES_AT_HQ_HANGAR_QUERY_2 = 'Hangar_Query_2'; + const ROLES_AT_HQ_HANGAR_QUERY_3 = 'Hangar_Query_3'; + const ROLES_AT_HQ_HANGAR_QUERY_4 = 'Hangar_Query_4'; + const ROLES_AT_HQ_HANGAR_QUERY_5 = 'Hangar_Query_5'; + const ROLES_AT_HQ_HANGAR_QUERY_6 = 'Hangar_Query_6'; + const ROLES_AT_HQ_HANGAR_QUERY_7 = 'Hangar_Query_7'; + const ROLES_AT_HQ_HANGAR_TAKE_1 = 'Hangar_Take_1'; + const ROLES_AT_HQ_HANGAR_TAKE_2 = 'Hangar_Take_2'; + const ROLES_AT_HQ_HANGAR_TAKE_3 = 'Hangar_Take_3'; + const ROLES_AT_HQ_HANGAR_TAKE_4 = 'Hangar_Take_4'; + const ROLES_AT_HQ_HANGAR_TAKE_5 = 'Hangar_Take_5'; + const ROLES_AT_HQ_HANGAR_TAKE_6 = 'Hangar_Take_6'; + const ROLES_AT_HQ_HANGAR_TAKE_7 = 'Hangar_Take_7'; + const ROLES_AT_HQ_JUNIOR_ACCOUNTANT = 'Junior_Accountant'; + const ROLES_AT_HQ_PERSONNEL_MANAGER = 'Personnel_Manager'; + const ROLES_AT_HQ_RENT_FACTORY_FACILITY = 'Rent_Factory_Facility'; + const ROLES_AT_HQ_RENT_OFFICE = 'Rent_Office'; + const ROLES_AT_HQ_RENT_RESEARCH_FACILITY = 'Rent_Research_Facility'; + const ROLES_AT_HQ_SECURITY_OFFICER = 'Security_Officer'; + const ROLES_AT_HQ_STARBASE_DEFENSE_OPERATOR = 'Starbase_Defense_Operator'; + const ROLES_AT_HQ_STARBASE_FUEL_TECHNICIAN = 'Starbase_Fuel_Technician'; + const ROLES_AT_HQ_STATION_MANAGER = 'Station_Manager'; + const ROLES_AT_HQ_TERRESTRIAL_COMBAT_OFFICER = 'Terrestrial_Combat_Officer'; + const ROLES_AT_HQ_TERRESTRIAL_LOGISTICS_OFFICER = 'Terrestrial_Logistics_Officer'; + const ROLES_AT_HQ_TRADER = 'Trader'; + const ROLES_AT_BASE_ACCOUNT_TAKE_1 = 'Account_Take_1'; + const ROLES_AT_BASE_ACCOUNT_TAKE_2 = 'Account_Take_2'; + const ROLES_AT_BASE_ACCOUNT_TAKE_3 = 'Account_Take_3'; + const ROLES_AT_BASE_ACCOUNT_TAKE_4 = 'Account_Take_4'; + const ROLES_AT_BASE_ACCOUNT_TAKE_5 = 'Account_Take_5'; + const ROLES_AT_BASE_ACCOUNT_TAKE_6 = 'Account_Take_6'; + const ROLES_AT_BASE_ACCOUNT_TAKE_7 = 'Account_Take_7'; + const ROLES_AT_BASE_ACCOUNTANT = 'Accountant'; + const ROLES_AT_BASE_AUDITOR = 'Auditor'; + const ROLES_AT_BASE_COMMUNICATIONS_OFFICER = 'Communications_Officer'; + const ROLES_AT_BASE_CONFIG_EQUIPMENT = 'Config_Equipment'; + const ROLES_AT_BASE_CONFIG_STARBASE_EQUIPMENT = 'Config_Starbase_Equipment'; + const ROLES_AT_BASE_CONTAINER_TAKE_1 = 'Container_Take_1'; + const ROLES_AT_BASE_CONTAINER_TAKE_2 = 'Container_Take_2'; + const ROLES_AT_BASE_CONTAINER_TAKE_3 = 'Container_Take_3'; + const ROLES_AT_BASE_CONTAINER_TAKE_4 = 'Container_Take_4'; + const ROLES_AT_BASE_CONTAINER_TAKE_5 = 'Container_Take_5'; + const ROLES_AT_BASE_CONTAINER_TAKE_6 = 'Container_Take_6'; + const ROLES_AT_BASE_CONTAINER_TAKE_7 = 'Container_Take_7'; + const ROLES_AT_BASE_CONTRACT_MANAGER = 'Contract_Manager'; + const ROLES_AT_BASE_DIPLOMAT = 'Diplomat'; + const ROLES_AT_BASE_DIRECTOR = 'Director'; + const ROLES_AT_BASE_FACTORY_MANAGER = 'Factory_Manager'; + const ROLES_AT_BASE_FITTING_MANAGER = 'Fitting_Manager'; + const ROLES_AT_BASE_HANGAR_QUERY_1 = 'Hangar_Query_1'; + const ROLES_AT_BASE_HANGAR_QUERY_2 = 'Hangar_Query_2'; + const ROLES_AT_BASE_HANGAR_QUERY_3 = 'Hangar_Query_3'; + const ROLES_AT_BASE_HANGAR_QUERY_4 = 'Hangar_Query_4'; + const ROLES_AT_BASE_HANGAR_QUERY_5 = 'Hangar_Query_5'; + const ROLES_AT_BASE_HANGAR_QUERY_6 = 'Hangar_Query_6'; + const ROLES_AT_BASE_HANGAR_QUERY_7 = 'Hangar_Query_7'; + const ROLES_AT_BASE_HANGAR_TAKE_1 = 'Hangar_Take_1'; + const ROLES_AT_BASE_HANGAR_TAKE_2 = 'Hangar_Take_2'; + const ROLES_AT_BASE_HANGAR_TAKE_3 = 'Hangar_Take_3'; + const ROLES_AT_BASE_HANGAR_TAKE_4 = 'Hangar_Take_4'; + const ROLES_AT_BASE_HANGAR_TAKE_5 = 'Hangar_Take_5'; + const ROLES_AT_BASE_HANGAR_TAKE_6 = 'Hangar_Take_6'; + const ROLES_AT_BASE_HANGAR_TAKE_7 = 'Hangar_Take_7'; + const ROLES_AT_BASE_JUNIOR_ACCOUNTANT = 'Junior_Accountant'; + const ROLES_AT_BASE_PERSONNEL_MANAGER = 'Personnel_Manager'; + const ROLES_AT_BASE_RENT_FACTORY_FACILITY = 'Rent_Factory_Facility'; + const ROLES_AT_BASE_RENT_OFFICE = 'Rent_Office'; + const ROLES_AT_BASE_RENT_RESEARCH_FACILITY = 'Rent_Research_Facility'; + const ROLES_AT_BASE_SECURITY_OFFICER = 'Security_Officer'; + const ROLES_AT_BASE_STARBASE_DEFENSE_OPERATOR = 'Starbase_Defense_Operator'; + const ROLES_AT_BASE_STARBASE_FUEL_TECHNICIAN = 'Starbase_Fuel_Technician'; + const ROLES_AT_BASE_STATION_MANAGER = 'Station_Manager'; + const ROLES_AT_BASE_TERRESTRIAL_COMBAT_OFFICER = 'Terrestrial_Combat_Officer'; + const ROLES_AT_BASE_TERRESTRIAL_LOGISTICS_OFFICER = 'Terrestrial_Logistics_Officer'; + const ROLES_AT_BASE_TRADER = 'Trader'; + const ROLES_AT_OTHER_ACCOUNT_TAKE_1 = 'Account_Take_1'; + const ROLES_AT_OTHER_ACCOUNT_TAKE_2 = 'Account_Take_2'; + const ROLES_AT_OTHER_ACCOUNT_TAKE_3 = 'Account_Take_3'; + const ROLES_AT_OTHER_ACCOUNT_TAKE_4 = 'Account_Take_4'; + const ROLES_AT_OTHER_ACCOUNT_TAKE_5 = 'Account_Take_5'; + const ROLES_AT_OTHER_ACCOUNT_TAKE_6 = 'Account_Take_6'; + const ROLES_AT_OTHER_ACCOUNT_TAKE_7 = 'Account_Take_7'; + const ROLES_AT_OTHER_ACCOUNTANT = 'Accountant'; + const ROLES_AT_OTHER_AUDITOR = 'Auditor'; + const ROLES_AT_OTHER_COMMUNICATIONS_OFFICER = 'Communications_Officer'; + const ROLES_AT_OTHER_CONFIG_EQUIPMENT = 'Config_Equipment'; + const ROLES_AT_OTHER_CONFIG_STARBASE_EQUIPMENT = 'Config_Starbase_Equipment'; + const ROLES_AT_OTHER_CONTAINER_TAKE_1 = 'Container_Take_1'; + const ROLES_AT_OTHER_CONTAINER_TAKE_2 = 'Container_Take_2'; + const ROLES_AT_OTHER_CONTAINER_TAKE_3 = 'Container_Take_3'; + const ROLES_AT_OTHER_CONTAINER_TAKE_4 = 'Container_Take_4'; + const ROLES_AT_OTHER_CONTAINER_TAKE_5 = 'Container_Take_5'; + const ROLES_AT_OTHER_CONTAINER_TAKE_6 = 'Container_Take_6'; + const ROLES_AT_OTHER_CONTAINER_TAKE_7 = 'Container_Take_7'; + const ROLES_AT_OTHER_CONTRACT_MANAGER = 'Contract_Manager'; + const ROLES_AT_OTHER_DIPLOMAT = 'Diplomat'; + const ROLES_AT_OTHER_DIRECTOR = 'Director'; + const ROLES_AT_OTHER_FACTORY_MANAGER = 'Factory_Manager'; + const ROLES_AT_OTHER_FITTING_MANAGER = 'Fitting_Manager'; + const ROLES_AT_OTHER_HANGAR_QUERY_1 = 'Hangar_Query_1'; + const ROLES_AT_OTHER_HANGAR_QUERY_2 = 'Hangar_Query_2'; + const ROLES_AT_OTHER_HANGAR_QUERY_3 = 'Hangar_Query_3'; + const ROLES_AT_OTHER_HANGAR_QUERY_4 = 'Hangar_Query_4'; + const ROLES_AT_OTHER_HANGAR_QUERY_5 = 'Hangar_Query_5'; + const ROLES_AT_OTHER_HANGAR_QUERY_6 = 'Hangar_Query_6'; + const ROLES_AT_OTHER_HANGAR_QUERY_7 = 'Hangar_Query_7'; + const ROLES_AT_OTHER_HANGAR_TAKE_1 = 'Hangar_Take_1'; + const ROLES_AT_OTHER_HANGAR_TAKE_2 = 'Hangar_Take_2'; + const ROLES_AT_OTHER_HANGAR_TAKE_3 = 'Hangar_Take_3'; + const ROLES_AT_OTHER_HANGAR_TAKE_4 = 'Hangar_Take_4'; + const ROLES_AT_OTHER_HANGAR_TAKE_5 = 'Hangar_Take_5'; + const ROLES_AT_OTHER_HANGAR_TAKE_6 = 'Hangar_Take_6'; + const ROLES_AT_OTHER_HANGAR_TAKE_7 = 'Hangar_Take_7'; + const ROLES_AT_OTHER_JUNIOR_ACCOUNTANT = 'Junior_Accountant'; + const ROLES_AT_OTHER_PERSONNEL_MANAGER = 'Personnel_Manager'; + const ROLES_AT_OTHER_RENT_FACTORY_FACILITY = 'Rent_Factory_Facility'; + const ROLES_AT_OTHER_RENT_OFFICE = 'Rent_Office'; + const ROLES_AT_OTHER_RENT_RESEARCH_FACILITY = 'Rent_Research_Facility'; + const ROLES_AT_OTHER_SECURITY_OFFICER = 'Security_Officer'; + const ROLES_AT_OTHER_STARBASE_DEFENSE_OPERATOR = 'Starbase_Defense_Operator'; + const ROLES_AT_OTHER_STARBASE_FUEL_TECHNICIAN = 'Starbase_Fuel_Technician'; + const ROLES_AT_OTHER_STATION_MANAGER = 'Station_Manager'; + const ROLES_AT_OTHER_TERRESTRIAL_COMBAT_OFFICER = 'Terrestrial_Combat_Officer'; + const ROLES_AT_OTHER_TERRESTRIAL_LOGISTICS_OFFICER = 'Terrestrial_Logistics_Officer'; + const ROLES_AT_OTHER_TRADER = 'Trader'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getRolesAllowableValues() + { + return [ + self::ROLES_ACCOUNT_TAKE_1, + self::ROLES_ACCOUNT_TAKE_2, + self::ROLES_ACCOUNT_TAKE_3, + self::ROLES_ACCOUNT_TAKE_4, + self::ROLES_ACCOUNT_TAKE_5, + self::ROLES_ACCOUNT_TAKE_6, + self::ROLES_ACCOUNT_TAKE_7, + self::ROLES_ACCOUNTANT, + self::ROLES_AUDITOR, + self::ROLES_COMMUNICATIONS_OFFICER, + self::ROLES_CONFIG_EQUIPMENT, + self::ROLES_CONFIG_STARBASE_EQUIPMENT, + self::ROLES_CONTAINER_TAKE_1, + self::ROLES_CONTAINER_TAKE_2, + self::ROLES_CONTAINER_TAKE_3, + self::ROLES_CONTAINER_TAKE_4, + self::ROLES_CONTAINER_TAKE_5, + self::ROLES_CONTAINER_TAKE_6, + self::ROLES_CONTAINER_TAKE_7, + self::ROLES_CONTRACT_MANAGER, + self::ROLES_DIPLOMAT, + self::ROLES_DIRECTOR, + self::ROLES_FACTORY_MANAGER, + self::ROLES_FITTING_MANAGER, + self::ROLES_HANGAR_QUERY_1, + self::ROLES_HANGAR_QUERY_2, + self::ROLES_HANGAR_QUERY_3, + self::ROLES_HANGAR_QUERY_4, + self::ROLES_HANGAR_QUERY_5, + self::ROLES_HANGAR_QUERY_6, + self::ROLES_HANGAR_QUERY_7, + self::ROLES_HANGAR_TAKE_1, + self::ROLES_HANGAR_TAKE_2, + self::ROLES_HANGAR_TAKE_3, + self::ROLES_HANGAR_TAKE_4, + self::ROLES_HANGAR_TAKE_5, + self::ROLES_HANGAR_TAKE_6, + self::ROLES_HANGAR_TAKE_7, + self::ROLES_JUNIOR_ACCOUNTANT, + self::ROLES_PERSONNEL_MANAGER, + self::ROLES_RENT_FACTORY_FACILITY, + self::ROLES_RENT_OFFICE, + self::ROLES_RENT_RESEARCH_FACILITY, + self::ROLES_SECURITY_OFFICER, + self::ROLES_STARBASE_DEFENSE_OPERATOR, + self::ROLES_STARBASE_FUEL_TECHNICIAN, + self::ROLES_STATION_MANAGER, + self::ROLES_TERRESTRIAL_COMBAT_OFFICER, + self::ROLES_TERRESTRIAL_LOGISTICS_OFFICER, + self::ROLES_TRADER, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getRolesAtHqAllowableValues() + { + return [ + self::ROLES_AT_HQ_ACCOUNT_TAKE_1, + self::ROLES_AT_HQ_ACCOUNT_TAKE_2, + self::ROLES_AT_HQ_ACCOUNT_TAKE_3, + self::ROLES_AT_HQ_ACCOUNT_TAKE_4, + self::ROLES_AT_HQ_ACCOUNT_TAKE_5, + self::ROLES_AT_HQ_ACCOUNT_TAKE_6, + self::ROLES_AT_HQ_ACCOUNT_TAKE_7, + self::ROLES_AT_HQ_ACCOUNTANT, + self::ROLES_AT_HQ_AUDITOR, + self::ROLES_AT_HQ_COMMUNICATIONS_OFFICER, + self::ROLES_AT_HQ_CONFIG_EQUIPMENT, + self::ROLES_AT_HQ_CONFIG_STARBASE_EQUIPMENT, + self::ROLES_AT_HQ_CONTAINER_TAKE_1, + self::ROLES_AT_HQ_CONTAINER_TAKE_2, + self::ROLES_AT_HQ_CONTAINER_TAKE_3, + self::ROLES_AT_HQ_CONTAINER_TAKE_4, + self::ROLES_AT_HQ_CONTAINER_TAKE_5, + self::ROLES_AT_HQ_CONTAINER_TAKE_6, + self::ROLES_AT_HQ_CONTAINER_TAKE_7, + self::ROLES_AT_HQ_CONTRACT_MANAGER, + self::ROLES_AT_HQ_DIPLOMAT, + self::ROLES_AT_HQ_DIRECTOR, + self::ROLES_AT_HQ_FACTORY_MANAGER, + self::ROLES_AT_HQ_FITTING_MANAGER, + self::ROLES_AT_HQ_HANGAR_QUERY_1, + self::ROLES_AT_HQ_HANGAR_QUERY_2, + self::ROLES_AT_HQ_HANGAR_QUERY_3, + self::ROLES_AT_HQ_HANGAR_QUERY_4, + self::ROLES_AT_HQ_HANGAR_QUERY_5, + self::ROLES_AT_HQ_HANGAR_QUERY_6, + self::ROLES_AT_HQ_HANGAR_QUERY_7, + self::ROLES_AT_HQ_HANGAR_TAKE_1, + self::ROLES_AT_HQ_HANGAR_TAKE_2, + self::ROLES_AT_HQ_HANGAR_TAKE_3, + self::ROLES_AT_HQ_HANGAR_TAKE_4, + self::ROLES_AT_HQ_HANGAR_TAKE_5, + self::ROLES_AT_HQ_HANGAR_TAKE_6, + self::ROLES_AT_HQ_HANGAR_TAKE_7, + self::ROLES_AT_HQ_JUNIOR_ACCOUNTANT, + self::ROLES_AT_HQ_PERSONNEL_MANAGER, + self::ROLES_AT_HQ_RENT_FACTORY_FACILITY, + self::ROLES_AT_HQ_RENT_OFFICE, + self::ROLES_AT_HQ_RENT_RESEARCH_FACILITY, + self::ROLES_AT_HQ_SECURITY_OFFICER, + self::ROLES_AT_HQ_STARBASE_DEFENSE_OPERATOR, + self::ROLES_AT_HQ_STARBASE_FUEL_TECHNICIAN, + self::ROLES_AT_HQ_STATION_MANAGER, + self::ROLES_AT_HQ_TERRESTRIAL_COMBAT_OFFICER, + self::ROLES_AT_HQ_TERRESTRIAL_LOGISTICS_OFFICER, + self::ROLES_AT_HQ_TRADER, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getRolesAtBaseAllowableValues() + { + return [ + self::ROLES_AT_BASE_ACCOUNT_TAKE_1, + self::ROLES_AT_BASE_ACCOUNT_TAKE_2, + self::ROLES_AT_BASE_ACCOUNT_TAKE_3, + self::ROLES_AT_BASE_ACCOUNT_TAKE_4, + self::ROLES_AT_BASE_ACCOUNT_TAKE_5, + self::ROLES_AT_BASE_ACCOUNT_TAKE_6, + self::ROLES_AT_BASE_ACCOUNT_TAKE_7, + self::ROLES_AT_BASE_ACCOUNTANT, + self::ROLES_AT_BASE_AUDITOR, + self::ROLES_AT_BASE_COMMUNICATIONS_OFFICER, + self::ROLES_AT_BASE_CONFIG_EQUIPMENT, + self::ROLES_AT_BASE_CONFIG_STARBASE_EQUIPMENT, + self::ROLES_AT_BASE_CONTAINER_TAKE_1, + self::ROLES_AT_BASE_CONTAINER_TAKE_2, + self::ROLES_AT_BASE_CONTAINER_TAKE_3, + self::ROLES_AT_BASE_CONTAINER_TAKE_4, + self::ROLES_AT_BASE_CONTAINER_TAKE_5, + self::ROLES_AT_BASE_CONTAINER_TAKE_6, + self::ROLES_AT_BASE_CONTAINER_TAKE_7, + self::ROLES_AT_BASE_CONTRACT_MANAGER, + self::ROLES_AT_BASE_DIPLOMAT, + self::ROLES_AT_BASE_DIRECTOR, + self::ROLES_AT_BASE_FACTORY_MANAGER, + self::ROLES_AT_BASE_FITTING_MANAGER, + self::ROLES_AT_BASE_HANGAR_QUERY_1, + self::ROLES_AT_BASE_HANGAR_QUERY_2, + self::ROLES_AT_BASE_HANGAR_QUERY_3, + self::ROLES_AT_BASE_HANGAR_QUERY_4, + self::ROLES_AT_BASE_HANGAR_QUERY_5, + self::ROLES_AT_BASE_HANGAR_QUERY_6, + self::ROLES_AT_BASE_HANGAR_QUERY_7, + self::ROLES_AT_BASE_HANGAR_TAKE_1, + self::ROLES_AT_BASE_HANGAR_TAKE_2, + self::ROLES_AT_BASE_HANGAR_TAKE_3, + self::ROLES_AT_BASE_HANGAR_TAKE_4, + self::ROLES_AT_BASE_HANGAR_TAKE_5, + self::ROLES_AT_BASE_HANGAR_TAKE_6, + self::ROLES_AT_BASE_HANGAR_TAKE_7, + self::ROLES_AT_BASE_JUNIOR_ACCOUNTANT, + self::ROLES_AT_BASE_PERSONNEL_MANAGER, + self::ROLES_AT_BASE_RENT_FACTORY_FACILITY, + self::ROLES_AT_BASE_RENT_OFFICE, + self::ROLES_AT_BASE_RENT_RESEARCH_FACILITY, + self::ROLES_AT_BASE_SECURITY_OFFICER, + self::ROLES_AT_BASE_STARBASE_DEFENSE_OPERATOR, + self::ROLES_AT_BASE_STARBASE_FUEL_TECHNICIAN, + self::ROLES_AT_BASE_STATION_MANAGER, + self::ROLES_AT_BASE_TERRESTRIAL_COMBAT_OFFICER, + self::ROLES_AT_BASE_TERRESTRIAL_LOGISTICS_OFFICER, + self::ROLES_AT_BASE_TRADER, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getRolesAtOtherAllowableValues() + { + return [ + self::ROLES_AT_OTHER_ACCOUNT_TAKE_1, + self::ROLES_AT_OTHER_ACCOUNT_TAKE_2, + self::ROLES_AT_OTHER_ACCOUNT_TAKE_3, + self::ROLES_AT_OTHER_ACCOUNT_TAKE_4, + self::ROLES_AT_OTHER_ACCOUNT_TAKE_5, + self::ROLES_AT_OTHER_ACCOUNT_TAKE_6, + self::ROLES_AT_OTHER_ACCOUNT_TAKE_7, + self::ROLES_AT_OTHER_ACCOUNTANT, + self::ROLES_AT_OTHER_AUDITOR, + self::ROLES_AT_OTHER_COMMUNICATIONS_OFFICER, + self::ROLES_AT_OTHER_CONFIG_EQUIPMENT, + self::ROLES_AT_OTHER_CONFIG_STARBASE_EQUIPMENT, + self::ROLES_AT_OTHER_CONTAINER_TAKE_1, + self::ROLES_AT_OTHER_CONTAINER_TAKE_2, + self::ROLES_AT_OTHER_CONTAINER_TAKE_3, + self::ROLES_AT_OTHER_CONTAINER_TAKE_4, + self::ROLES_AT_OTHER_CONTAINER_TAKE_5, + self::ROLES_AT_OTHER_CONTAINER_TAKE_6, + self::ROLES_AT_OTHER_CONTAINER_TAKE_7, + self::ROLES_AT_OTHER_CONTRACT_MANAGER, + self::ROLES_AT_OTHER_DIPLOMAT, + self::ROLES_AT_OTHER_DIRECTOR, + self::ROLES_AT_OTHER_FACTORY_MANAGER, + self::ROLES_AT_OTHER_FITTING_MANAGER, + self::ROLES_AT_OTHER_HANGAR_QUERY_1, + self::ROLES_AT_OTHER_HANGAR_QUERY_2, + self::ROLES_AT_OTHER_HANGAR_QUERY_3, + self::ROLES_AT_OTHER_HANGAR_QUERY_4, + self::ROLES_AT_OTHER_HANGAR_QUERY_5, + self::ROLES_AT_OTHER_HANGAR_QUERY_6, + self::ROLES_AT_OTHER_HANGAR_QUERY_7, + self::ROLES_AT_OTHER_HANGAR_TAKE_1, + self::ROLES_AT_OTHER_HANGAR_TAKE_2, + self::ROLES_AT_OTHER_HANGAR_TAKE_3, + self::ROLES_AT_OTHER_HANGAR_TAKE_4, + self::ROLES_AT_OTHER_HANGAR_TAKE_5, + self::ROLES_AT_OTHER_HANGAR_TAKE_6, + self::ROLES_AT_OTHER_HANGAR_TAKE_7, + self::ROLES_AT_OTHER_JUNIOR_ACCOUNTANT, + self::ROLES_AT_OTHER_PERSONNEL_MANAGER, + self::ROLES_AT_OTHER_RENT_FACTORY_FACILITY, + self::ROLES_AT_OTHER_RENT_OFFICE, + self::ROLES_AT_OTHER_RENT_RESEARCH_FACILITY, + self::ROLES_AT_OTHER_SECURITY_OFFICER, + self::ROLES_AT_OTHER_STARBASE_DEFENSE_OPERATOR, + self::ROLES_AT_OTHER_STARBASE_FUEL_TECHNICIAN, + self::ROLES_AT_OTHER_STATION_MANAGER, + self::ROLES_AT_OTHER_TERRESTRIAL_COMBAT_OFFICER, + self::ROLES_AT_OTHER_TERRESTRIAL_LOGISTICS_OFFICER, + self::ROLES_AT_OTHER_TRADER, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['roles'] = isset($data['roles']) ? $data['roles'] : null; + $this->container['rolesAtHq'] = isset($data['rolesAtHq']) ? $data['rolesAtHq'] : null; + $this->container['rolesAtBase'] = isset($data['rolesAtBase']) ? $data['rolesAtBase'] : null; + $this->container['rolesAtOther'] = isset($data['rolesAtOther']) ? $data['rolesAtOther'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets roles + * + * @return string[] + */ + public function getRoles() + { + return $this->container['roles']; + } + + /** + * Sets roles + * + * @param string[] $roles roles array + * + * @return $this + */ + public function setRoles($roles) + { + $allowedValues = $this->getRolesAllowableValues(); + if (!is_null($roles) && array_diff($roles, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'roles', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['roles'] = $roles; + + return $this; + } + + /** + * Gets rolesAtHq + * + * @return string[] + */ + public function getRolesAtHq() + { + return $this->container['rolesAtHq']; + } + + /** + * Sets rolesAtHq + * + * @param string[] $rolesAtHq roles_at_hq array + * + * @return $this + */ + public function setRolesAtHq($rolesAtHq) + { + $allowedValues = $this->getRolesAtHqAllowableValues(); + if (!is_null($rolesAtHq) && array_diff($rolesAtHq, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'rolesAtHq', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['rolesAtHq'] = $rolesAtHq; + + return $this; + } + + /** + * Gets rolesAtBase + * + * @return string[] + */ + public function getRolesAtBase() + { + return $this->container['rolesAtBase']; + } + + /** + * Sets rolesAtBase + * + * @param string[] $rolesAtBase roles_at_base array + * + * @return $this + */ + public function setRolesAtBase($rolesAtBase) + { + $allowedValues = $this->getRolesAtBaseAllowableValues(); + if (!is_null($rolesAtBase) && array_diff($rolesAtBase, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'rolesAtBase', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['rolesAtBase'] = $rolesAtBase; + + return $this; + } + + /** + * Gets rolesAtOther + * + * @return string[] + */ + public function getRolesAtOther() + { + return $this->container['rolesAtOther']; + } + + /** + * Sets rolesAtOther + * + * @param string[] $rolesAtOther roles_at_other array + * + * @return $this + */ + public function setRolesAtOther($rolesAtOther) + { + $allowedValues = $this->getRolesAtOtherAllowableValues(); + if (!is_null($rolesAtOther) && array_diff($rolesAtOther, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'rolesAtOther', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['rolesAtOther'] = $rolesAtOther; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdSearchOk.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdSearchOk.php new file mode 100644 index 0000000..efb8d0a --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdSearchOk.php @@ -0,0 +1,603 @@ + 'int[]', + 'alliance' => 'int[]', + 'character' => 'int[]', + 'constellation' => 'int[]', + 'corporation' => 'int[]', + 'faction' => 'int[]', + 'inventoryType' => 'int[]', + 'region' => 'int[]', + 'solarSystem' => 'int[]', + 'station' => 'int[]', + 'structure' => 'int[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'agent' => 'int32', + 'alliance' => 'int32', + 'character' => 'int32', + 'constellation' => 'int32', + 'corporation' => 'int32', + 'faction' => 'int32', + 'inventoryType' => 'int32', + 'region' => 'int32', + 'solarSystem' => 'int32', + 'station' => 'int32', + 'structure' => 'int64' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'agent' => 'agent', + 'alliance' => 'alliance', + 'character' => 'character', + 'constellation' => 'constellation', + 'corporation' => 'corporation', + 'faction' => 'faction', + 'inventoryType' => 'inventory_type', + 'region' => 'region', + 'solarSystem' => 'solar_system', + 'station' => 'station', + 'structure' => 'structure' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'agent' => 'setAgent', + 'alliance' => 'setAlliance', + 'character' => 'setCharacter', + 'constellation' => 'setConstellation', + 'corporation' => 'setCorporation', + 'faction' => 'setFaction', + 'inventoryType' => 'setInventoryType', + 'region' => 'setRegion', + 'solarSystem' => 'setSolarSystem', + 'station' => 'setStation', + 'structure' => 'setStructure' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'agent' => 'getAgent', + 'alliance' => 'getAlliance', + 'character' => 'getCharacter', + 'constellation' => 'getConstellation', + 'corporation' => 'getCorporation', + 'faction' => 'getFaction', + 'inventoryType' => 'getInventoryType', + 'region' => 'getRegion', + 'solarSystem' => 'getSolarSystem', + 'station' => 'getStation', + 'structure' => 'getStructure' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['agent'] = isset($data['agent']) ? $data['agent'] : null; + $this->container['alliance'] = isset($data['alliance']) ? $data['alliance'] : null; + $this->container['character'] = isset($data['character']) ? $data['character'] : null; + $this->container['constellation'] = isset($data['constellation']) ? $data['constellation'] : null; + $this->container['corporation'] = isset($data['corporation']) ? $data['corporation'] : null; + $this->container['faction'] = isset($data['faction']) ? $data['faction'] : null; + $this->container['inventoryType'] = isset($data['inventoryType']) ? $data['inventoryType'] : null; + $this->container['region'] = isset($data['region']) ? $data['region'] : null; + $this->container['solarSystem'] = isset($data['solarSystem']) ? $data['solarSystem'] : null; + $this->container['station'] = isset($data['station']) ? $data['station'] : null; + $this->container['structure'] = isset($data['structure']) ? $data['structure'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets agent + * + * @return int[] + */ + public function getAgent() + { + return $this->container['agent']; + } + + /** + * Sets agent + * + * @param int[] $agent agent array + * + * @return $this + */ + public function setAgent($agent) + { + $this->container['agent'] = $agent; + + return $this; + } + + /** + * Gets alliance + * + * @return int[] + */ + public function getAlliance() + { + return $this->container['alliance']; + } + + /** + * Sets alliance + * + * @param int[] $alliance alliance array + * + * @return $this + */ + public function setAlliance($alliance) + { + $this->container['alliance'] = $alliance; + + return $this; + } + + /** + * Gets character + * + * @return int[] + */ + public function getCharacter() + { + return $this->container['character']; + } + + /** + * Sets character + * + * @param int[] $character character array + * + * @return $this + */ + public function setCharacter($character) + { + $this->container['character'] = $character; + + return $this; + } + + /** + * Gets constellation + * + * @return int[] + */ + public function getConstellation() + { + return $this->container['constellation']; + } + + /** + * Sets constellation + * + * @param int[] $constellation constellation array + * + * @return $this + */ + public function setConstellation($constellation) + { + $this->container['constellation'] = $constellation; + + return $this; + } + + /** + * Gets corporation + * + * @return int[] + */ + public function getCorporation() + { + return $this->container['corporation']; + } + + /** + * Sets corporation + * + * @param int[] $corporation corporation array + * + * @return $this + */ + public function setCorporation($corporation) + { + $this->container['corporation'] = $corporation; + + return $this; + } + + /** + * Gets faction + * + * @return int[] + */ + public function getFaction() + { + return $this->container['faction']; + } + + /** + * Sets faction + * + * @param int[] $faction faction array + * + * @return $this + */ + public function setFaction($faction) + { + $this->container['faction'] = $faction; + + return $this; + } + + /** + * Gets inventoryType + * + * @return int[] + */ + public function getInventoryType() + { + return $this->container['inventoryType']; + } + + /** + * Sets inventoryType + * + * @param int[] $inventoryType inventory_type array + * + * @return $this + */ + public function setInventoryType($inventoryType) + { + $this->container['inventoryType'] = $inventoryType; + + return $this; + } + + /** + * Gets region + * + * @return int[] + */ + public function getRegion() + { + return $this->container['region']; + } + + /** + * Sets region + * + * @param int[] $region region array + * + * @return $this + */ + public function setRegion($region) + { + $this->container['region'] = $region; + + return $this; + } + + /** + * Gets solarSystem + * + * @return int[] + */ + public function getSolarSystem() + { + return $this->container['solarSystem']; + } + + /** + * Sets solarSystem + * + * @param int[] $solarSystem solar_system array + * + * @return $this + */ + public function setSolarSystem($solarSystem) + { + $this->container['solarSystem'] = $solarSystem; + + return $this; + } + + /** + * Gets station + * + * @return int[] + */ + public function getStation() + { + return $this->container['station']; + } + + /** + * Sets station + * + * @param int[] $station station array + * + * @return $this + */ + public function setStation($station) + { + $this->container['station'] = $station; + + return $this; + } + + /** + * Gets structure + * + * @return int[] + */ + public function getStructure() + { + return $this->container['structure']; + } + + /** + * Sets structure + * + * @param int[] $structure structure array + * + * @return $this + */ + public function setStructure($structure) + { + $this->container['structure'] = $structure; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdShipOk.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdShipOk.php new file mode 100644 index 0000000..d0ac15f --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdShipOk.php @@ -0,0 +1,381 @@ + 'int', + 'shipItemId' => 'int', + 'shipName' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'shipTypeId' => 'int32', + 'shipItemId' => 'int64', + 'shipName' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'shipTypeId' => 'ship_type_id', + 'shipItemId' => 'ship_item_id', + 'shipName' => 'ship_name' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'shipTypeId' => 'setShipTypeId', + 'shipItemId' => 'setShipItemId', + 'shipName' => 'setShipName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'shipTypeId' => 'getShipTypeId', + 'shipItemId' => 'getShipItemId', + 'shipName' => 'getShipName' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['shipTypeId'] = isset($data['shipTypeId']) ? $data['shipTypeId'] : null; + $this->container['shipItemId'] = isset($data['shipItemId']) ? $data['shipItemId'] : null; + $this->container['shipName'] = isset($data['shipName']) ? $data['shipName'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['shipTypeId'] === null) { + $invalidProperties[] = "'shipTypeId' can't be null"; + } + if ($this->container['shipItemId'] === null) { + $invalidProperties[] = "'shipItemId' can't be null"; + } + if ($this->container['shipName'] === null) { + $invalidProperties[] = "'shipName' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['shipTypeId'] === null) { + return false; + } + if ($this->container['shipItemId'] === null) { + return false; + } + if ($this->container['shipName'] === null) { + return false; + } + return true; + } + + + /** + * Gets shipTypeId + * + * @return int + */ + public function getShipTypeId() + { + return $this->container['shipTypeId']; + } + + /** + * Sets shipTypeId + * + * @param int $shipTypeId ship_type_id integer + * + * @return $this + */ + public function setShipTypeId($shipTypeId) + { + $this->container['shipTypeId'] = $shipTypeId; + + return $this; + } + + /** + * Gets shipItemId + * + * @return int + */ + public function getShipItemId() + { + return $this->container['shipItemId']; + } + + /** + * Sets shipItemId + * + * @param int $shipItemId Item id's are unique to a ship and persist until it is repackaged. This value can be used to track repeated uses of a ship, or detect when a pilot changes into a different instance of the same ship type. + * + * @return $this + */ + public function setShipItemId($shipItemId) + { + $this->container['shipItemId'] = $shipItemId; + + return $this; + } + + /** + * Gets shipName + * + * @return string + */ + public function getShipName() + { + return $this->container['shipName']; + } + + /** + * Sets shipName + * + * @param string $shipName ship_name string + * + * @return $this + */ + public function setShipName($shipName) + { + $this->container['shipName'] = $shipName; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdSkillqueue200Ok.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdSkillqueue200Ok.php new file mode 100644 index 0000000..cf176f7 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdSkillqueue200Ok.php @@ -0,0 +1,553 @@ + 'int', + 'finishDate' => '\DateTime', + 'startDate' => '\DateTime', + 'finishedLevel' => 'int', + 'queuePosition' => 'int', + 'trainingStartSp' => 'int', + 'levelEndSp' => 'int', + 'levelStartSp' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'skillId' => 'int32', + 'finishDate' => 'date-time', + 'startDate' => 'date-time', + 'finishedLevel' => 'int32', + 'queuePosition' => 'int32', + 'trainingStartSp' => 'int32', + 'levelEndSp' => 'int32', + 'levelStartSp' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'skillId' => 'skill_id', + 'finishDate' => 'finish_date', + 'startDate' => 'start_date', + 'finishedLevel' => 'finished_level', + 'queuePosition' => 'queue_position', + 'trainingStartSp' => 'training_start_sp', + 'levelEndSp' => 'level_end_sp', + 'levelStartSp' => 'level_start_sp' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'skillId' => 'setSkillId', + 'finishDate' => 'setFinishDate', + 'startDate' => 'setStartDate', + 'finishedLevel' => 'setFinishedLevel', + 'queuePosition' => 'setQueuePosition', + 'trainingStartSp' => 'setTrainingStartSp', + 'levelEndSp' => 'setLevelEndSp', + 'levelStartSp' => 'setLevelStartSp' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'skillId' => 'getSkillId', + 'finishDate' => 'getFinishDate', + 'startDate' => 'getStartDate', + 'finishedLevel' => 'getFinishedLevel', + 'queuePosition' => 'getQueuePosition', + 'trainingStartSp' => 'getTrainingStartSp', + 'levelEndSp' => 'getLevelEndSp', + 'levelStartSp' => 'getLevelStartSp' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['skillId'] = isset($data['skillId']) ? $data['skillId'] : null; + $this->container['finishDate'] = isset($data['finishDate']) ? $data['finishDate'] : null; + $this->container['startDate'] = isset($data['startDate']) ? $data['startDate'] : null; + $this->container['finishedLevel'] = isset($data['finishedLevel']) ? $data['finishedLevel'] : null; + $this->container['queuePosition'] = isset($data['queuePosition']) ? $data['queuePosition'] : null; + $this->container['trainingStartSp'] = isset($data['trainingStartSp']) ? $data['trainingStartSp'] : null; + $this->container['levelEndSp'] = isset($data['levelEndSp']) ? $data['levelEndSp'] : null; + $this->container['levelStartSp'] = isset($data['levelStartSp']) ? $data['levelStartSp'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['skillId'] === null) { + $invalidProperties[] = "'skillId' can't be null"; + } + if ($this->container['finishedLevel'] === null) { + $invalidProperties[] = "'finishedLevel' can't be null"; + } + if (($this->container['finishedLevel'] > 5)) { + $invalidProperties[] = "invalid value for 'finishedLevel', must be smaller than or equal to 5."; + } + + if (($this->container['finishedLevel'] < 0)) { + $invalidProperties[] = "invalid value for 'finishedLevel', must be bigger than or equal to 0."; + } + + if ($this->container['queuePosition'] === null) { + $invalidProperties[] = "'queuePosition' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['skillId'] === null) { + return false; + } + if ($this->container['finishedLevel'] === null) { + return false; + } + if ($this->container['finishedLevel'] > 5) { + return false; + } + if ($this->container['finishedLevel'] < 0) { + return false; + } + if ($this->container['queuePosition'] === null) { + return false; + } + return true; + } + + + /** + * Gets skillId + * + * @return int + */ + public function getSkillId() + { + return $this->container['skillId']; + } + + /** + * Sets skillId + * + * @param int $skillId skill_id integer + * + * @return $this + */ + public function setSkillId($skillId) + { + $this->container['skillId'] = $skillId; + + return $this; + } + + /** + * Gets finishDate + * + * @return \DateTime + */ + public function getFinishDate() + { + return $this->container['finishDate']; + } + + /** + * Sets finishDate + * + * @param \DateTime $finishDate finish_date string + * + * @return $this + */ + public function setFinishDate($finishDate) + { + $this->container['finishDate'] = $finishDate; + + return $this; + } + + /** + * Gets startDate + * + * @return \DateTime + */ + public function getStartDate() + { + return $this->container['startDate']; + } + + /** + * Sets startDate + * + * @param \DateTime $startDate start_date string + * + * @return $this + */ + public function setStartDate($startDate) + { + $this->container['startDate'] = $startDate; + + return $this; + } + + /** + * Gets finishedLevel + * + * @return int + */ + public function getFinishedLevel() + { + return $this->container['finishedLevel']; + } + + /** + * Sets finishedLevel + * + * @param int $finishedLevel finished_level integer + * + * @return $this + */ + public function setFinishedLevel($finishedLevel) + { + + if (($finishedLevel > 5)) { + throw new \InvalidArgumentException('invalid value for $finishedLevel when calling GetCharactersCharacterIdSkillqueue200Ok., must be smaller than or equal to 5.'); + } + if (($finishedLevel < 0)) { + throw new \InvalidArgumentException('invalid value for $finishedLevel when calling GetCharactersCharacterIdSkillqueue200Ok., must be bigger than or equal to 0.'); + } + + $this->container['finishedLevel'] = $finishedLevel; + + return $this; + } + + /** + * Gets queuePosition + * + * @return int + */ + public function getQueuePosition() + { + return $this->container['queuePosition']; + } + + /** + * Sets queuePosition + * + * @param int $queuePosition queue_position integer + * + * @return $this + */ + public function setQueuePosition($queuePosition) + { + $this->container['queuePosition'] = $queuePosition; + + return $this; + } + + /** + * Gets trainingStartSp + * + * @return int + */ + public function getTrainingStartSp() + { + return $this->container['trainingStartSp']; + } + + /** + * Sets trainingStartSp + * + * @param int $trainingStartSp training_start_sp integer + * + * @return $this + */ + public function setTrainingStartSp($trainingStartSp) + { + $this->container['trainingStartSp'] = $trainingStartSp; + + return $this; + } + + /** + * Gets levelEndSp + * + * @return int + */ + public function getLevelEndSp() + { + return $this->container['levelEndSp']; + } + + /** + * Sets levelEndSp + * + * @param int $levelEndSp level_end_sp integer + * + * @return $this + */ + public function setLevelEndSp($levelEndSp) + { + $this->container['levelEndSp'] = $levelEndSp; + + return $this; + } + + /** + * Gets levelStartSp + * + * @return int + */ + public function getLevelStartSp() + { + return $this->container['levelStartSp']; + } + + /** + * Sets levelStartSp + * + * @param int $levelStartSp Amount of SP that was in the skill when it started training it's current level. Used to calculate % of current level complete. + * + * @return $this + */ + public function setLevelStartSp($levelStartSp) + { + $this->container['levelStartSp'] = $levelStartSp; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdSkillsOk.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdSkillsOk.php new file mode 100644 index 0000000..d2e9d42 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdSkillsOk.php @@ -0,0 +1,375 @@ + '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdSkillsSkill[]', + 'totalSp' => 'int', + 'unallocatedSp' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'skills' => null, + 'totalSp' => 'int64', + 'unallocatedSp' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'skills' => 'skills', + 'totalSp' => 'total_sp', + 'unallocatedSp' => 'unallocated_sp' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'skills' => 'setSkills', + 'totalSp' => 'setTotalSp', + 'unallocatedSp' => 'setUnallocatedSp' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'skills' => 'getSkills', + 'totalSp' => 'getTotalSp', + 'unallocatedSp' => 'getUnallocatedSp' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['skills'] = isset($data['skills']) ? $data['skills'] : null; + $this->container['totalSp'] = isset($data['totalSp']) ? $data['totalSp'] : null; + $this->container['unallocatedSp'] = isset($data['unallocatedSp']) ? $data['unallocatedSp'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['skills'] === null) { + $invalidProperties[] = "'skills' can't be null"; + } + if ($this->container['totalSp'] === null) { + $invalidProperties[] = "'totalSp' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['skills'] === null) { + return false; + } + if ($this->container['totalSp'] === null) { + return false; + } + return true; + } + + + /** + * Gets skills + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdSkillsSkill[] + */ + public function getSkills() + { + return $this->container['skills']; + } + + /** + * Sets skills + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdSkillsSkill[] $skills skills array + * + * @return $this + */ + public function setSkills($skills) + { + $this->container['skills'] = $skills; + + return $this; + } + + /** + * Gets totalSp + * + * @return int + */ + public function getTotalSp() + { + return $this->container['totalSp']; + } + + /** + * Sets totalSp + * + * @param int $totalSp total_sp integer + * + * @return $this + */ + public function setTotalSp($totalSp) + { + $this->container['totalSp'] = $totalSp; + + return $this; + } + + /** + * Gets unallocatedSp + * + * @return int + */ + public function getUnallocatedSp() + { + return $this->container['unallocatedSp']; + } + + /** + * Sets unallocatedSp + * + * @param int $unallocatedSp Skill points available to be assigned + * + * @return $this + */ + public function setUnallocatedSp($unallocatedSp) + { + $this->container['unallocatedSp'] = $unallocatedSp; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdSkillsSkill.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdSkillsSkill.php new file mode 100644 index 0000000..c888644 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdSkillsSkill.php @@ -0,0 +1,417 @@ + 'int', + 'skillpointsInSkill' => 'int', + 'trainedSkillLevel' => 'int', + 'activeSkillLevel' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'skillId' => 'int32', + 'skillpointsInSkill' => 'int64', + 'trainedSkillLevel' => 'int32', + 'activeSkillLevel' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'skillId' => 'skill_id', + 'skillpointsInSkill' => 'skillpoints_in_skill', + 'trainedSkillLevel' => 'trained_skill_level', + 'activeSkillLevel' => 'active_skill_level' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'skillId' => 'setSkillId', + 'skillpointsInSkill' => 'setSkillpointsInSkill', + 'trainedSkillLevel' => 'setTrainedSkillLevel', + 'activeSkillLevel' => 'setActiveSkillLevel' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'skillId' => 'getSkillId', + 'skillpointsInSkill' => 'getSkillpointsInSkill', + 'trainedSkillLevel' => 'getTrainedSkillLevel', + 'activeSkillLevel' => 'getActiveSkillLevel' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['skillId'] = isset($data['skillId']) ? $data['skillId'] : null; + $this->container['skillpointsInSkill'] = isset($data['skillpointsInSkill']) ? $data['skillpointsInSkill'] : null; + $this->container['trainedSkillLevel'] = isset($data['trainedSkillLevel']) ? $data['trainedSkillLevel'] : null; + $this->container['activeSkillLevel'] = isset($data['activeSkillLevel']) ? $data['activeSkillLevel'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['skillId'] === null) { + $invalidProperties[] = "'skillId' can't be null"; + } + if ($this->container['skillpointsInSkill'] === null) { + $invalidProperties[] = "'skillpointsInSkill' can't be null"; + } + if ($this->container['trainedSkillLevel'] === null) { + $invalidProperties[] = "'trainedSkillLevel' can't be null"; + } + if ($this->container['activeSkillLevel'] === null) { + $invalidProperties[] = "'activeSkillLevel' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['skillId'] === null) { + return false; + } + if ($this->container['skillpointsInSkill'] === null) { + return false; + } + if ($this->container['trainedSkillLevel'] === null) { + return false; + } + if ($this->container['activeSkillLevel'] === null) { + return false; + } + return true; + } + + + /** + * Gets skillId + * + * @return int + */ + public function getSkillId() + { + return $this->container['skillId']; + } + + /** + * Sets skillId + * + * @param int $skillId skill_id integer + * + * @return $this + */ + public function setSkillId($skillId) + { + $this->container['skillId'] = $skillId; + + return $this; + } + + /** + * Gets skillpointsInSkill + * + * @return int + */ + public function getSkillpointsInSkill() + { + return $this->container['skillpointsInSkill']; + } + + /** + * Sets skillpointsInSkill + * + * @param int $skillpointsInSkill skillpoints_in_skill integer + * + * @return $this + */ + public function setSkillpointsInSkill($skillpointsInSkill) + { + $this->container['skillpointsInSkill'] = $skillpointsInSkill; + + return $this; + } + + /** + * Gets trainedSkillLevel + * + * @return int + */ + public function getTrainedSkillLevel() + { + return $this->container['trainedSkillLevel']; + } + + /** + * Sets trainedSkillLevel + * + * @param int $trainedSkillLevel trained_skill_level integer + * + * @return $this + */ + public function setTrainedSkillLevel($trainedSkillLevel) + { + $this->container['trainedSkillLevel'] = $trainedSkillLevel; + + return $this; + } + + /** + * Gets activeSkillLevel + * + * @return int + */ + public function getActiveSkillLevel() + { + return $this->container['activeSkillLevel']; + } + + /** + * Sets activeSkillLevel + * + * @param int $activeSkillLevel active_skill_level integer + * + * @return $this + */ + public function setActiveSkillLevel($activeSkillLevel) + { + $this->container['activeSkillLevel'] = $activeSkillLevel; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdStandings200Ok.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdStandings200Ok.php new file mode 100644 index 0000000..707afad --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdStandings200Ok.php @@ -0,0 +1,441 @@ + 'int', + 'fromType' => 'string', + 'standing' => 'float' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'fromId' => 'int32', + 'fromType' => null, + 'standing' => 'float' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'fromId' => 'from_id', + 'fromType' => 'from_type', + 'standing' => 'standing' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'fromId' => 'setFromId', + 'fromType' => 'setFromType', + 'standing' => 'setStanding' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'fromId' => 'getFromId', + 'fromType' => 'getFromType', + 'standing' => 'getStanding' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const FROM_TYPE_AGENT = 'agent'; + const FROM_TYPE_NPC_CORP = 'npc_corp'; + const FROM_TYPE_FACTION = 'faction'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getFromTypeAllowableValues() + { + return [ + self::FROM_TYPE_AGENT, + self::FROM_TYPE_NPC_CORP, + self::FROM_TYPE_FACTION, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['fromId'] = isset($data['fromId']) ? $data['fromId'] : null; + $this->container['fromType'] = isset($data['fromType']) ? $data['fromType'] : null; + $this->container['standing'] = isset($data['standing']) ? $data['standing'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['fromId'] === null) { + $invalidProperties[] = "'fromId' can't be null"; + } + if ($this->container['fromType'] === null) { + $invalidProperties[] = "'fromType' can't be null"; + } + $allowedValues = $this->getFromTypeAllowableValues(); + if (!in_array($this->container['fromType'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'fromType', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['standing'] === null) { + $invalidProperties[] = "'standing' can't be null"; + } + if (($this->container['standing'] > 10)) { + $invalidProperties[] = "invalid value for 'standing', must be smaller than or equal to 10."; + } + + if (($this->container['standing'] < -10)) { + $invalidProperties[] = "invalid value for 'standing', must be bigger than or equal to -10."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['fromId'] === null) { + return false; + } + if ($this->container['fromType'] === null) { + return false; + } + $allowedValues = $this->getFromTypeAllowableValues(); + if (!in_array($this->container['fromType'], $allowedValues)) { + return false; + } + if ($this->container['standing'] === null) { + return false; + } + if ($this->container['standing'] > 10) { + return false; + } + if ($this->container['standing'] < -10) { + return false; + } + return true; + } + + + /** + * Gets fromId + * + * @return int + */ + public function getFromId() + { + return $this->container['fromId']; + } + + /** + * Sets fromId + * + * @param int $fromId from_id integer + * + * @return $this + */ + public function setFromId($fromId) + { + $this->container['fromId'] = $fromId; + + return $this; + } + + /** + * Gets fromType + * + * @return string + */ + public function getFromType() + { + return $this->container['fromType']; + } + + /** + * Sets fromType + * + * @param string $fromType from_type string + * + * @return $this + */ + public function setFromType($fromType) + { + $allowedValues = $this->getFromTypeAllowableValues(); + if (!in_array($fromType, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'fromType', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['fromType'] = $fromType; + + return $this; + } + + /** + * Gets standing + * + * @return float + */ + public function getStanding() + { + return $this->container['standing']; + } + + /** + * Sets standing + * + * @param float $standing standing number + * + * @return $this + */ + public function setStanding($standing) + { + + if (($standing > 10)) { + throw new \InvalidArgumentException('invalid value for $standing when calling GetCharactersCharacterIdStandings200Ok., must be smaller than or equal to 10.'); + } + if (($standing < -10)) { + throw new \InvalidArgumentException('invalid value for $standing when calling GetCharactersCharacterIdStandings200Ok., must be bigger than or equal to -10.'); + } + + $this->container['standing'] = $standing; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdStats200Ok.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdStats200Ok.php new file mode 100644 index 0000000..a8cb2f4 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdStats200Ok.php @@ -0,0 +1,669 @@ + 'int', + 'character' => '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsCharacter', + 'combat' => '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsCombat', + 'industry' => '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsIndustry', + 'inventory' => '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsInventory', + 'isk' => '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsIsk', + 'market' => '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsMarket', + 'mining' => '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsMining', + 'module' => '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsModule', + 'orbital' => '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsOrbital', + 'pve' => '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsPve', + 'social' => '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsSocial', + 'travel' => '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsTravel' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'year' => 'int32', + 'character' => null, + 'combat' => null, + 'industry' => null, + 'inventory' => null, + 'isk' => null, + 'market' => null, + 'mining' => null, + 'module' => null, + 'orbital' => null, + 'pve' => null, + 'social' => null, + 'travel' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'year' => 'year', + 'character' => 'character', + 'combat' => 'combat', + 'industry' => 'industry', + 'inventory' => 'inventory', + 'isk' => 'isk', + 'market' => 'market', + 'mining' => 'mining', + 'module' => 'module', + 'orbital' => 'orbital', + 'pve' => 'pve', + 'social' => 'social', + 'travel' => 'travel' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'year' => 'setYear', + 'character' => 'setCharacter', + 'combat' => 'setCombat', + 'industry' => 'setIndustry', + 'inventory' => 'setInventory', + 'isk' => 'setIsk', + 'market' => 'setMarket', + 'mining' => 'setMining', + 'module' => 'setModule', + 'orbital' => 'setOrbital', + 'pve' => 'setPve', + 'social' => 'setSocial', + 'travel' => 'setTravel' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'year' => 'getYear', + 'character' => 'getCharacter', + 'combat' => 'getCombat', + 'industry' => 'getIndustry', + 'inventory' => 'getInventory', + 'isk' => 'getIsk', + 'market' => 'getMarket', + 'mining' => 'getMining', + 'module' => 'getModule', + 'orbital' => 'getOrbital', + 'pve' => 'getPve', + 'social' => 'getSocial', + 'travel' => 'getTravel' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['year'] = isset($data['year']) ? $data['year'] : null; + $this->container['character'] = isset($data['character']) ? $data['character'] : null; + $this->container['combat'] = isset($data['combat']) ? $data['combat'] : null; + $this->container['industry'] = isset($data['industry']) ? $data['industry'] : null; + $this->container['inventory'] = isset($data['inventory']) ? $data['inventory'] : null; + $this->container['isk'] = isset($data['isk']) ? $data['isk'] : null; + $this->container['market'] = isset($data['market']) ? $data['market'] : null; + $this->container['mining'] = isset($data['mining']) ? $data['mining'] : null; + $this->container['module'] = isset($data['module']) ? $data['module'] : null; + $this->container['orbital'] = isset($data['orbital']) ? $data['orbital'] : null; + $this->container['pve'] = isset($data['pve']) ? $data['pve'] : null; + $this->container['social'] = isset($data['social']) ? $data['social'] : null; + $this->container['travel'] = isset($data['travel']) ? $data['travel'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['year'] === null) { + $invalidProperties[] = "'year' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['year'] === null) { + return false; + } + return true; + } + + + /** + * Gets year + * + * @return int + */ + public function getYear() + { + return $this->container['year']; + } + + /** + * Sets year + * + * @param int $year Gregorian year for this set of aggregates + * + * @return $this + */ + public function setYear($year) + { + $this->container['year'] = $year; + + return $this; + } + + /** + * Gets character + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsCharacter + */ + public function getCharacter() + { + return $this->container['character']; + } + + /** + * Sets character + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsCharacter $character character + * + * @return $this + */ + public function setCharacter($character) + { + $this->container['character'] = $character; + + return $this; + } + + /** + * Gets combat + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsCombat + */ + public function getCombat() + { + return $this->container['combat']; + } + + /** + * Sets combat + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsCombat $combat combat + * + * @return $this + */ + public function setCombat($combat) + { + $this->container['combat'] = $combat; + + return $this; + } + + /** + * Gets industry + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsIndustry + */ + public function getIndustry() + { + return $this->container['industry']; + } + + /** + * Sets industry + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsIndustry $industry industry + * + * @return $this + */ + public function setIndustry($industry) + { + $this->container['industry'] = $industry; + + return $this; + } + + /** + * Gets inventory + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsInventory + */ + public function getInventory() + { + return $this->container['inventory']; + } + + /** + * Sets inventory + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsInventory $inventory inventory + * + * @return $this + */ + public function setInventory($inventory) + { + $this->container['inventory'] = $inventory; + + return $this; + } + + /** + * Gets isk + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsIsk + */ + public function getIsk() + { + return $this->container['isk']; + } + + /** + * Sets isk + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsIsk $isk isk + * + * @return $this + */ + public function setIsk($isk) + { + $this->container['isk'] = $isk; + + return $this; + } + + /** + * Gets market + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsMarket + */ + public function getMarket() + { + return $this->container['market']; + } + + /** + * Sets market + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsMarket $market market + * + * @return $this + */ + public function setMarket($market) + { + $this->container['market'] = $market; + + return $this; + } + + /** + * Gets mining + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsMining + */ + public function getMining() + { + return $this->container['mining']; + } + + /** + * Sets mining + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsMining $mining mining + * + * @return $this + */ + public function setMining($mining) + { + $this->container['mining'] = $mining; + + return $this; + } + + /** + * Gets module + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsModule + */ + public function getModule() + { + return $this->container['module']; + } + + /** + * Sets module + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsModule $module module + * + * @return $this + */ + public function setModule($module) + { + $this->container['module'] = $module; + + return $this; + } + + /** + * Gets orbital + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsOrbital + */ + public function getOrbital() + { + return $this->container['orbital']; + } + + /** + * Sets orbital + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsOrbital $orbital orbital + * + * @return $this + */ + public function setOrbital($orbital) + { + $this->container['orbital'] = $orbital; + + return $this; + } + + /** + * Gets pve + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsPve + */ + public function getPve() + { + return $this->container['pve']; + } + + /** + * Sets pve + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsPve $pve pve + * + * @return $this + */ + public function setPve($pve) + { + $this->container['pve'] = $pve; + + return $this; + } + + /** + * Gets social + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsSocial + */ + public function getSocial() + { + return $this->container['social']; + } + + /** + * Sets social + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsSocial $social social + * + * @return $this + */ + public function setSocial($social) + { + $this->container['social'] = $social; + + return $this; + } + + /** + * Gets travel + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsTravel + */ + public function getTravel() + { + return $this->container['travel']; + } + + /** + * Sets travel + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdStatsTravel $travel travel + * + * @return $this + */ + public function setTravel($travel) + { + $this->container['travel'] = $travel; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdStatsCharacter.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdStatsCharacter.php new file mode 100644 index 0000000..3c9a80d --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdStatsCharacter.php @@ -0,0 +1,363 @@ + 'int', + 'minutes' => 'int', + 'sessionsStarted' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'daysOfActivity' => 'int64', + 'minutes' => 'int64', + 'sessionsStarted' => 'int64' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'daysOfActivity' => 'days_of_activity', + 'minutes' => 'minutes', + 'sessionsStarted' => 'sessions_started' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'daysOfActivity' => 'setDaysOfActivity', + 'minutes' => 'setMinutes', + 'sessionsStarted' => 'setSessionsStarted' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'daysOfActivity' => 'getDaysOfActivity', + 'minutes' => 'getMinutes', + 'sessionsStarted' => 'getSessionsStarted' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['daysOfActivity'] = isset($data['daysOfActivity']) ? $data['daysOfActivity'] : null; + $this->container['minutes'] = isset($data['minutes']) ? $data['minutes'] : null; + $this->container['sessionsStarted'] = isset($data['sessionsStarted']) ? $data['sessionsStarted'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets daysOfActivity + * + * @return int + */ + public function getDaysOfActivity() + { + return $this->container['daysOfActivity']; + } + + /** + * Sets daysOfActivity + * + * @param int $daysOfActivity days_of_activity integer + * + * @return $this + */ + public function setDaysOfActivity($daysOfActivity) + { + $this->container['daysOfActivity'] = $daysOfActivity; + + return $this; + } + + /** + * Gets minutes + * + * @return int + */ + public function getMinutes() + { + return $this->container['minutes']; + } + + /** + * Sets minutes + * + * @param int $minutes minutes integer + * + * @return $this + */ + public function setMinutes($minutes) + { + $this->container['minutes'] = $minutes; + + return $this; + } + + /** + * Gets sessionsStarted + * + * @return int + */ + public function getSessionsStarted() + { + return $this->container['sessionsStarted']; + } + + /** + * Sets sessionsStarted + * + * @param int $sessionsStarted sessions_started integer + * + * @return $this + */ + public function setSessionsStarted($sessionsStarted) + { + $this->container['sessionsStarted'] = $sessionsStarted; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdStatsCombat.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdStatsCombat.php new file mode 100644 index 0000000..5b3950a --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdStatsCombat.php @@ -0,0 +1,3093 @@ + 'int', + 'capDrainedbyPc' => 'int', + 'capDrainingPc' => 'int', + 'criminalFlagSet' => 'int', + 'damageFromNpCsAmount' => 'int', + 'damageFromNpCsNumShots' => 'int', + 'damageFromPlayersBombAmount' => 'int', + 'damageFromPlayersBombNumShots' => 'int', + 'damageFromPlayersCombatDroneAmount' => 'int', + 'damageFromPlayersCombatDroneNumShots' => 'int', + 'damageFromPlayersEnergyAmount' => 'int', + 'damageFromPlayersEnergyNumShots' => 'int', + 'damageFromPlayersFighterBomberAmount' => 'int', + 'damageFromPlayersFighterBomberNumShots' => 'int', + 'damageFromPlayersFighterDroneAmount' => 'int', + 'damageFromPlayersFighterDroneNumShots' => 'int', + 'damageFromPlayersHybridAmount' => 'int', + 'damageFromPlayersHybridNumShots' => 'int', + 'damageFromPlayersMissileAmount' => 'int', + 'damageFromPlayersMissileNumShots' => 'int', + 'damageFromPlayersProjectileAmount' => 'int', + 'damageFromPlayersProjectileNumShots' => 'int', + 'damageFromPlayersSmartBombAmount' => 'int', + 'damageFromPlayersSmartBombNumShots' => 'int', + 'damageFromPlayersSuperAmount' => 'int', + 'damageFromPlayersSuperNumShots' => 'int', + 'damageFromStructuresTotalAmount' => 'int', + 'damageFromStructuresTotalNumShots' => 'int', + 'damageToPlayersBombAmount' => 'int', + 'damageToPlayersBombNumShots' => 'int', + 'damageToPlayersCombatDroneAmount' => 'int', + 'damageToPlayersCombatDroneNumShots' => 'int', + 'damageToPlayersEnergyAmount' => 'int', + 'damageToPlayersEnergyNumShots' => 'int', + 'damageToPlayersFighterBomberAmount' => 'int', + 'damageToPlayersFighterBomberNumShots' => 'int', + 'damageToPlayersFighterDroneAmount' => 'int', + 'damageToPlayersFighterDroneNumShots' => 'int', + 'damageToPlayersHybridAmount' => 'int', + 'damageToPlayersHybridNumShots' => 'int', + 'damageToPlayersMissileAmount' => 'int', + 'damageToPlayersMissileNumShots' => 'int', + 'damageToPlayersProjectileAmount' => 'int', + 'damageToPlayersProjectileNumShots' => 'int', + 'damageToPlayersSmartBombAmount' => 'int', + 'damageToPlayersSmartBombNumShots' => 'int', + 'damageToPlayersSuperAmount' => 'int', + 'damageToPlayersSuperNumShots' => 'int', + 'damageToStructuresTotalAmount' => 'int', + 'damageToStructuresTotalNumShots' => 'int', + 'deathsHighSec' => 'int', + 'deathsLowSec' => 'int', + 'deathsNullSec' => 'int', + 'deathsPodHighSec' => 'int', + 'deathsPodLowSec' => 'int', + 'deathsPodNullSec' => 'int', + 'deathsPodWormhole' => 'int', + 'deathsWormhole' => 'int', + 'droneEngage' => 'int', + 'dscans' => 'int', + 'duelRequested' => 'int', + 'engagementRegister' => 'int', + 'killsAssists' => 'int', + 'killsHighSec' => 'int', + 'killsLowSec' => 'int', + 'killsNullSec' => 'int', + 'killsPodHighSec' => 'int', + 'killsPodLowSec' => 'int', + 'killsPodNullSec' => 'int', + 'killsPodWormhole' => 'int', + 'killsWormhole' => 'int', + 'npcFlagSet' => 'int', + 'probeScans' => 'int', + 'pvpFlagSet' => 'int', + 'repairArmorByRemoteAmount' => 'int', + 'repairArmorRemoteAmount' => 'int', + 'repairArmorSelfAmount' => 'int', + 'repairCapacitorByRemoteAmount' => 'int', + 'repairCapacitorRemoteAmount' => 'int', + 'repairCapacitorSelfAmount' => 'int', + 'repairHullByRemoteAmount' => 'int', + 'repairHullRemoteAmount' => 'int', + 'repairHullSelfAmount' => 'int', + 'repairShieldByRemoteAmount' => 'int', + 'repairShieldRemoteAmount' => 'int', + 'repairShieldSelfAmount' => 'int', + 'selfDestructs' => 'int', + 'warpScramblePc' => 'int', + 'warpScrambledbyNpc' => 'int', + 'warpScrambledbyPc' => 'int', + 'weaponFlagSet' => 'int', + 'webifiedbyNpc' => 'int', + 'webifiedbyPc' => 'int', + 'webifyingPc' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'capDrainedbyNpc' => 'int64', + 'capDrainedbyPc' => 'int64', + 'capDrainingPc' => 'int64', + 'criminalFlagSet' => 'int64', + 'damageFromNpCsAmount' => 'int64', + 'damageFromNpCsNumShots' => 'int64', + 'damageFromPlayersBombAmount' => 'int64', + 'damageFromPlayersBombNumShots' => 'int64', + 'damageFromPlayersCombatDroneAmount' => 'int64', + 'damageFromPlayersCombatDroneNumShots' => 'int64', + 'damageFromPlayersEnergyAmount' => 'int64', + 'damageFromPlayersEnergyNumShots' => 'int64', + 'damageFromPlayersFighterBomberAmount' => 'int64', + 'damageFromPlayersFighterBomberNumShots' => 'int64', + 'damageFromPlayersFighterDroneAmount' => 'int64', + 'damageFromPlayersFighterDroneNumShots' => 'int64', + 'damageFromPlayersHybridAmount' => 'int64', + 'damageFromPlayersHybridNumShots' => 'int64', + 'damageFromPlayersMissileAmount' => 'int64', + 'damageFromPlayersMissileNumShots' => 'int64', + 'damageFromPlayersProjectileAmount' => 'int64', + 'damageFromPlayersProjectileNumShots' => 'int64', + 'damageFromPlayersSmartBombAmount' => 'int64', + 'damageFromPlayersSmartBombNumShots' => 'int64', + 'damageFromPlayersSuperAmount' => 'int64', + 'damageFromPlayersSuperNumShots' => 'int64', + 'damageFromStructuresTotalAmount' => 'int64', + 'damageFromStructuresTotalNumShots' => 'int64', + 'damageToPlayersBombAmount' => 'int64', + 'damageToPlayersBombNumShots' => 'int64', + 'damageToPlayersCombatDroneAmount' => 'int64', + 'damageToPlayersCombatDroneNumShots' => 'int64', + 'damageToPlayersEnergyAmount' => 'int64', + 'damageToPlayersEnergyNumShots' => 'int64', + 'damageToPlayersFighterBomberAmount' => 'int64', + 'damageToPlayersFighterBomberNumShots' => 'int64', + 'damageToPlayersFighterDroneAmount' => 'int64', + 'damageToPlayersFighterDroneNumShots' => 'int64', + 'damageToPlayersHybridAmount' => 'int64', + 'damageToPlayersHybridNumShots' => 'int64', + 'damageToPlayersMissileAmount' => 'int64', + 'damageToPlayersMissileNumShots' => 'int64', + 'damageToPlayersProjectileAmount' => 'int64', + 'damageToPlayersProjectileNumShots' => 'int64', + 'damageToPlayersSmartBombAmount' => 'int64', + 'damageToPlayersSmartBombNumShots' => 'int64', + 'damageToPlayersSuperAmount' => 'int64', + 'damageToPlayersSuperNumShots' => 'int64', + 'damageToStructuresTotalAmount' => 'int64', + 'damageToStructuresTotalNumShots' => 'int64', + 'deathsHighSec' => 'int64', + 'deathsLowSec' => 'int64', + 'deathsNullSec' => 'int64', + 'deathsPodHighSec' => 'int64', + 'deathsPodLowSec' => 'int64', + 'deathsPodNullSec' => 'int64', + 'deathsPodWormhole' => 'int64', + 'deathsWormhole' => 'int64', + 'droneEngage' => 'int64', + 'dscans' => 'int64', + 'duelRequested' => 'int64', + 'engagementRegister' => 'int64', + 'killsAssists' => 'int64', + 'killsHighSec' => 'int64', + 'killsLowSec' => 'int64', + 'killsNullSec' => 'int64', + 'killsPodHighSec' => 'int64', + 'killsPodLowSec' => 'int64', + 'killsPodNullSec' => 'int64', + 'killsPodWormhole' => 'int64', + 'killsWormhole' => 'int64', + 'npcFlagSet' => 'int64', + 'probeScans' => 'int64', + 'pvpFlagSet' => 'int64', + 'repairArmorByRemoteAmount' => 'int64', + 'repairArmorRemoteAmount' => 'int64', + 'repairArmorSelfAmount' => 'int64', + 'repairCapacitorByRemoteAmount' => 'int64', + 'repairCapacitorRemoteAmount' => 'int64', + 'repairCapacitorSelfAmount' => 'int64', + 'repairHullByRemoteAmount' => 'int64', + 'repairHullRemoteAmount' => 'int64', + 'repairHullSelfAmount' => 'int64', + 'repairShieldByRemoteAmount' => 'int64', + 'repairShieldRemoteAmount' => 'int64', + 'repairShieldSelfAmount' => 'int64', + 'selfDestructs' => 'int64', + 'warpScramblePc' => 'int64', + 'warpScrambledbyNpc' => 'int64', + 'warpScrambledbyPc' => 'int64', + 'weaponFlagSet' => 'int64', + 'webifiedbyNpc' => 'int64', + 'webifiedbyPc' => 'int64', + 'webifyingPc' => 'int64' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'capDrainedbyNpc' => 'cap_drainedby_npc', + 'capDrainedbyPc' => 'cap_drainedby_pc', + 'capDrainingPc' => 'cap_draining_pc', + 'criminalFlagSet' => 'criminal_flag_set', + 'damageFromNpCsAmount' => 'damage_from_np_cs_amount', + 'damageFromNpCsNumShots' => 'damage_from_np_cs_num_shots', + 'damageFromPlayersBombAmount' => 'damage_from_players_bomb_amount', + 'damageFromPlayersBombNumShots' => 'damage_from_players_bomb_num_shots', + 'damageFromPlayersCombatDroneAmount' => 'damage_from_players_combat_drone_amount', + 'damageFromPlayersCombatDroneNumShots' => 'damage_from_players_combat_drone_num_shots', + 'damageFromPlayersEnergyAmount' => 'damage_from_players_energy_amount', + 'damageFromPlayersEnergyNumShots' => 'damage_from_players_energy_num_shots', + 'damageFromPlayersFighterBomberAmount' => 'damage_from_players_fighter_bomber_amount', + 'damageFromPlayersFighterBomberNumShots' => 'damage_from_players_fighter_bomber_num_shots', + 'damageFromPlayersFighterDroneAmount' => 'damage_from_players_fighter_drone_amount', + 'damageFromPlayersFighterDroneNumShots' => 'damage_from_players_fighter_drone_num_shots', + 'damageFromPlayersHybridAmount' => 'damage_from_players_hybrid_amount', + 'damageFromPlayersHybridNumShots' => 'damage_from_players_hybrid_num_shots', + 'damageFromPlayersMissileAmount' => 'damage_from_players_missile_amount', + 'damageFromPlayersMissileNumShots' => 'damage_from_players_missile_num_shots', + 'damageFromPlayersProjectileAmount' => 'damage_from_players_projectile_amount', + 'damageFromPlayersProjectileNumShots' => 'damage_from_players_projectile_num_shots', + 'damageFromPlayersSmartBombAmount' => 'damage_from_players_smart_bomb_amount', + 'damageFromPlayersSmartBombNumShots' => 'damage_from_players_smart_bomb_num_shots', + 'damageFromPlayersSuperAmount' => 'damage_from_players_super_amount', + 'damageFromPlayersSuperNumShots' => 'damage_from_players_super_num_shots', + 'damageFromStructuresTotalAmount' => 'damage_from_structures_total_amount', + 'damageFromStructuresTotalNumShots' => 'damage_from_structures_total_num_shots', + 'damageToPlayersBombAmount' => 'damage_to_players_bomb_amount', + 'damageToPlayersBombNumShots' => 'damage_to_players_bomb_num_shots', + 'damageToPlayersCombatDroneAmount' => 'damage_to_players_combat_drone_amount', + 'damageToPlayersCombatDroneNumShots' => 'damage_to_players_combat_drone_num_shots', + 'damageToPlayersEnergyAmount' => 'damage_to_players_energy_amount', + 'damageToPlayersEnergyNumShots' => 'damage_to_players_energy_num_shots', + 'damageToPlayersFighterBomberAmount' => 'damage_to_players_fighter_bomber_amount', + 'damageToPlayersFighterBomberNumShots' => 'damage_to_players_fighter_bomber_num_shots', + 'damageToPlayersFighterDroneAmount' => 'damage_to_players_fighter_drone_amount', + 'damageToPlayersFighterDroneNumShots' => 'damage_to_players_fighter_drone_num_shots', + 'damageToPlayersHybridAmount' => 'damage_to_players_hybrid_amount', + 'damageToPlayersHybridNumShots' => 'damage_to_players_hybrid_num_shots', + 'damageToPlayersMissileAmount' => 'damage_to_players_missile_amount', + 'damageToPlayersMissileNumShots' => 'damage_to_players_missile_num_shots', + 'damageToPlayersProjectileAmount' => 'damage_to_players_projectile_amount', + 'damageToPlayersProjectileNumShots' => 'damage_to_players_projectile_num_shots', + 'damageToPlayersSmartBombAmount' => 'damage_to_players_smart_bomb_amount', + 'damageToPlayersSmartBombNumShots' => 'damage_to_players_smart_bomb_num_shots', + 'damageToPlayersSuperAmount' => 'damage_to_players_super_amount', + 'damageToPlayersSuperNumShots' => 'damage_to_players_super_num_shots', + 'damageToStructuresTotalAmount' => 'damage_to_structures_total_amount', + 'damageToStructuresTotalNumShots' => 'damage_to_structures_total_num_shots', + 'deathsHighSec' => 'deaths_high_sec', + 'deathsLowSec' => 'deaths_low_sec', + 'deathsNullSec' => 'deaths_null_sec', + 'deathsPodHighSec' => 'deaths_pod_high_sec', + 'deathsPodLowSec' => 'deaths_pod_low_sec', + 'deathsPodNullSec' => 'deaths_pod_null_sec', + 'deathsPodWormhole' => 'deaths_pod_wormhole', + 'deathsWormhole' => 'deaths_wormhole', + 'droneEngage' => 'drone_engage', + 'dscans' => 'dscans', + 'duelRequested' => 'duel_requested', + 'engagementRegister' => 'engagement_register', + 'killsAssists' => 'kills_assists', + 'killsHighSec' => 'kills_high_sec', + 'killsLowSec' => 'kills_low_sec', + 'killsNullSec' => 'kills_null_sec', + 'killsPodHighSec' => 'kills_pod_high_sec', + 'killsPodLowSec' => 'kills_pod_low_sec', + 'killsPodNullSec' => 'kills_pod_null_sec', + 'killsPodWormhole' => 'kills_pod_wormhole', + 'killsWormhole' => 'kills_wormhole', + 'npcFlagSet' => 'npc_flag_set', + 'probeScans' => 'probe_scans', + 'pvpFlagSet' => 'pvp_flag_set', + 'repairArmorByRemoteAmount' => 'repair_armor_by_remote_amount', + 'repairArmorRemoteAmount' => 'repair_armor_remote_amount', + 'repairArmorSelfAmount' => 'repair_armor_self_amount', + 'repairCapacitorByRemoteAmount' => 'repair_capacitor_by_remote_amount', + 'repairCapacitorRemoteAmount' => 'repair_capacitor_remote_amount', + 'repairCapacitorSelfAmount' => 'repair_capacitor_self_amount', + 'repairHullByRemoteAmount' => 'repair_hull_by_remote_amount', + 'repairHullRemoteAmount' => 'repair_hull_remote_amount', + 'repairHullSelfAmount' => 'repair_hull_self_amount', + 'repairShieldByRemoteAmount' => 'repair_shield_by_remote_amount', + 'repairShieldRemoteAmount' => 'repair_shield_remote_amount', + 'repairShieldSelfAmount' => 'repair_shield_self_amount', + 'selfDestructs' => 'self_destructs', + 'warpScramblePc' => 'warp_scramble_pc', + 'warpScrambledbyNpc' => 'warp_scrambledby_npc', + 'warpScrambledbyPc' => 'warp_scrambledby_pc', + 'weaponFlagSet' => 'weapon_flag_set', + 'webifiedbyNpc' => 'webifiedby_npc', + 'webifiedbyPc' => 'webifiedby_pc', + 'webifyingPc' => 'webifying_pc' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'capDrainedbyNpc' => 'setCapDrainedbyNpc', + 'capDrainedbyPc' => 'setCapDrainedbyPc', + 'capDrainingPc' => 'setCapDrainingPc', + 'criminalFlagSet' => 'setCriminalFlagSet', + 'damageFromNpCsAmount' => 'setDamageFromNpCsAmount', + 'damageFromNpCsNumShots' => 'setDamageFromNpCsNumShots', + 'damageFromPlayersBombAmount' => 'setDamageFromPlayersBombAmount', + 'damageFromPlayersBombNumShots' => 'setDamageFromPlayersBombNumShots', + 'damageFromPlayersCombatDroneAmount' => 'setDamageFromPlayersCombatDroneAmount', + 'damageFromPlayersCombatDroneNumShots' => 'setDamageFromPlayersCombatDroneNumShots', + 'damageFromPlayersEnergyAmount' => 'setDamageFromPlayersEnergyAmount', + 'damageFromPlayersEnergyNumShots' => 'setDamageFromPlayersEnergyNumShots', + 'damageFromPlayersFighterBomberAmount' => 'setDamageFromPlayersFighterBomberAmount', + 'damageFromPlayersFighterBomberNumShots' => 'setDamageFromPlayersFighterBomberNumShots', + 'damageFromPlayersFighterDroneAmount' => 'setDamageFromPlayersFighterDroneAmount', + 'damageFromPlayersFighterDroneNumShots' => 'setDamageFromPlayersFighterDroneNumShots', + 'damageFromPlayersHybridAmount' => 'setDamageFromPlayersHybridAmount', + 'damageFromPlayersHybridNumShots' => 'setDamageFromPlayersHybridNumShots', + 'damageFromPlayersMissileAmount' => 'setDamageFromPlayersMissileAmount', + 'damageFromPlayersMissileNumShots' => 'setDamageFromPlayersMissileNumShots', + 'damageFromPlayersProjectileAmount' => 'setDamageFromPlayersProjectileAmount', + 'damageFromPlayersProjectileNumShots' => 'setDamageFromPlayersProjectileNumShots', + 'damageFromPlayersSmartBombAmount' => 'setDamageFromPlayersSmartBombAmount', + 'damageFromPlayersSmartBombNumShots' => 'setDamageFromPlayersSmartBombNumShots', + 'damageFromPlayersSuperAmount' => 'setDamageFromPlayersSuperAmount', + 'damageFromPlayersSuperNumShots' => 'setDamageFromPlayersSuperNumShots', + 'damageFromStructuresTotalAmount' => 'setDamageFromStructuresTotalAmount', + 'damageFromStructuresTotalNumShots' => 'setDamageFromStructuresTotalNumShots', + 'damageToPlayersBombAmount' => 'setDamageToPlayersBombAmount', + 'damageToPlayersBombNumShots' => 'setDamageToPlayersBombNumShots', + 'damageToPlayersCombatDroneAmount' => 'setDamageToPlayersCombatDroneAmount', + 'damageToPlayersCombatDroneNumShots' => 'setDamageToPlayersCombatDroneNumShots', + 'damageToPlayersEnergyAmount' => 'setDamageToPlayersEnergyAmount', + 'damageToPlayersEnergyNumShots' => 'setDamageToPlayersEnergyNumShots', + 'damageToPlayersFighterBomberAmount' => 'setDamageToPlayersFighterBomberAmount', + 'damageToPlayersFighterBomberNumShots' => 'setDamageToPlayersFighterBomberNumShots', + 'damageToPlayersFighterDroneAmount' => 'setDamageToPlayersFighterDroneAmount', + 'damageToPlayersFighterDroneNumShots' => 'setDamageToPlayersFighterDroneNumShots', + 'damageToPlayersHybridAmount' => 'setDamageToPlayersHybridAmount', + 'damageToPlayersHybridNumShots' => 'setDamageToPlayersHybridNumShots', + 'damageToPlayersMissileAmount' => 'setDamageToPlayersMissileAmount', + 'damageToPlayersMissileNumShots' => 'setDamageToPlayersMissileNumShots', + 'damageToPlayersProjectileAmount' => 'setDamageToPlayersProjectileAmount', + 'damageToPlayersProjectileNumShots' => 'setDamageToPlayersProjectileNumShots', + 'damageToPlayersSmartBombAmount' => 'setDamageToPlayersSmartBombAmount', + 'damageToPlayersSmartBombNumShots' => 'setDamageToPlayersSmartBombNumShots', + 'damageToPlayersSuperAmount' => 'setDamageToPlayersSuperAmount', + 'damageToPlayersSuperNumShots' => 'setDamageToPlayersSuperNumShots', + 'damageToStructuresTotalAmount' => 'setDamageToStructuresTotalAmount', + 'damageToStructuresTotalNumShots' => 'setDamageToStructuresTotalNumShots', + 'deathsHighSec' => 'setDeathsHighSec', + 'deathsLowSec' => 'setDeathsLowSec', + 'deathsNullSec' => 'setDeathsNullSec', + 'deathsPodHighSec' => 'setDeathsPodHighSec', + 'deathsPodLowSec' => 'setDeathsPodLowSec', + 'deathsPodNullSec' => 'setDeathsPodNullSec', + 'deathsPodWormhole' => 'setDeathsPodWormhole', + 'deathsWormhole' => 'setDeathsWormhole', + 'droneEngage' => 'setDroneEngage', + 'dscans' => 'setDscans', + 'duelRequested' => 'setDuelRequested', + 'engagementRegister' => 'setEngagementRegister', + 'killsAssists' => 'setKillsAssists', + 'killsHighSec' => 'setKillsHighSec', + 'killsLowSec' => 'setKillsLowSec', + 'killsNullSec' => 'setKillsNullSec', + 'killsPodHighSec' => 'setKillsPodHighSec', + 'killsPodLowSec' => 'setKillsPodLowSec', + 'killsPodNullSec' => 'setKillsPodNullSec', + 'killsPodWormhole' => 'setKillsPodWormhole', + 'killsWormhole' => 'setKillsWormhole', + 'npcFlagSet' => 'setNpcFlagSet', + 'probeScans' => 'setProbeScans', + 'pvpFlagSet' => 'setPvpFlagSet', + 'repairArmorByRemoteAmount' => 'setRepairArmorByRemoteAmount', + 'repairArmorRemoteAmount' => 'setRepairArmorRemoteAmount', + 'repairArmorSelfAmount' => 'setRepairArmorSelfAmount', + 'repairCapacitorByRemoteAmount' => 'setRepairCapacitorByRemoteAmount', + 'repairCapacitorRemoteAmount' => 'setRepairCapacitorRemoteAmount', + 'repairCapacitorSelfAmount' => 'setRepairCapacitorSelfAmount', + 'repairHullByRemoteAmount' => 'setRepairHullByRemoteAmount', + 'repairHullRemoteAmount' => 'setRepairHullRemoteAmount', + 'repairHullSelfAmount' => 'setRepairHullSelfAmount', + 'repairShieldByRemoteAmount' => 'setRepairShieldByRemoteAmount', + 'repairShieldRemoteAmount' => 'setRepairShieldRemoteAmount', + 'repairShieldSelfAmount' => 'setRepairShieldSelfAmount', + 'selfDestructs' => 'setSelfDestructs', + 'warpScramblePc' => 'setWarpScramblePc', + 'warpScrambledbyNpc' => 'setWarpScrambledbyNpc', + 'warpScrambledbyPc' => 'setWarpScrambledbyPc', + 'weaponFlagSet' => 'setWeaponFlagSet', + 'webifiedbyNpc' => 'setWebifiedbyNpc', + 'webifiedbyPc' => 'setWebifiedbyPc', + 'webifyingPc' => 'setWebifyingPc' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'capDrainedbyNpc' => 'getCapDrainedbyNpc', + 'capDrainedbyPc' => 'getCapDrainedbyPc', + 'capDrainingPc' => 'getCapDrainingPc', + 'criminalFlagSet' => 'getCriminalFlagSet', + 'damageFromNpCsAmount' => 'getDamageFromNpCsAmount', + 'damageFromNpCsNumShots' => 'getDamageFromNpCsNumShots', + 'damageFromPlayersBombAmount' => 'getDamageFromPlayersBombAmount', + 'damageFromPlayersBombNumShots' => 'getDamageFromPlayersBombNumShots', + 'damageFromPlayersCombatDroneAmount' => 'getDamageFromPlayersCombatDroneAmount', + 'damageFromPlayersCombatDroneNumShots' => 'getDamageFromPlayersCombatDroneNumShots', + 'damageFromPlayersEnergyAmount' => 'getDamageFromPlayersEnergyAmount', + 'damageFromPlayersEnergyNumShots' => 'getDamageFromPlayersEnergyNumShots', + 'damageFromPlayersFighterBomberAmount' => 'getDamageFromPlayersFighterBomberAmount', + 'damageFromPlayersFighterBomberNumShots' => 'getDamageFromPlayersFighterBomberNumShots', + 'damageFromPlayersFighterDroneAmount' => 'getDamageFromPlayersFighterDroneAmount', + 'damageFromPlayersFighterDroneNumShots' => 'getDamageFromPlayersFighterDroneNumShots', + 'damageFromPlayersHybridAmount' => 'getDamageFromPlayersHybridAmount', + 'damageFromPlayersHybridNumShots' => 'getDamageFromPlayersHybridNumShots', + 'damageFromPlayersMissileAmount' => 'getDamageFromPlayersMissileAmount', + 'damageFromPlayersMissileNumShots' => 'getDamageFromPlayersMissileNumShots', + 'damageFromPlayersProjectileAmount' => 'getDamageFromPlayersProjectileAmount', + 'damageFromPlayersProjectileNumShots' => 'getDamageFromPlayersProjectileNumShots', + 'damageFromPlayersSmartBombAmount' => 'getDamageFromPlayersSmartBombAmount', + 'damageFromPlayersSmartBombNumShots' => 'getDamageFromPlayersSmartBombNumShots', + 'damageFromPlayersSuperAmount' => 'getDamageFromPlayersSuperAmount', + 'damageFromPlayersSuperNumShots' => 'getDamageFromPlayersSuperNumShots', + 'damageFromStructuresTotalAmount' => 'getDamageFromStructuresTotalAmount', + 'damageFromStructuresTotalNumShots' => 'getDamageFromStructuresTotalNumShots', + 'damageToPlayersBombAmount' => 'getDamageToPlayersBombAmount', + 'damageToPlayersBombNumShots' => 'getDamageToPlayersBombNumShots', + 'damageToPlayersCombatDroneAmount' => 'getDamageToPlayersCombatDroneAmount', + 'damageToPlayersCombatDroneNumShots' => 'getDamageToPlayersCombatDroneNumShots', + 'damageToPlayersEnergyAmount' => 'getDamageToPlayersEnergyAmount', + 'damageToPlayersEnergyNumShots' => 'getDamageToPlayersEnergyNumShots', + 'damageToPlayersFighterBomberAmount' => 'getDamageToPlayersFighterBomberAmount', + 'damageToPlayersFighterBomberNumShots' => 'getDamageToPlayersFighterBomberNumShots', + 'damageToPlayersFighterDroneAmount' => 'getDamageToPlayersFighterDroneAmount', + 'damageToPlayersFighterDroneNumShots' => 'getDamageToPlayersFighterDroneNumShots', + 'damageToPlayersHybridAmount' => 'getDamageToPlayersHybridAmount', + 'damageToPlayersHybridNumShots' => 'getDamageToPlayersHybridNumShots', + 'damageToPlayersMissileAmount' => 'getDamageToPlayersMissileAmount', + 'damageToPlayersMissileNumShots' => 'getDamageToPlayersMissileNumShots', + 'damageToPlayersProjectileAmount' => 'getDamageToPlayersProjectileAmount', + 'damageToPlayersProjectileNumShots' => 'getDamageToPlayersProjectileNumShots', + 'damageToPlayersSmartBombAmount' => 'getDamageToPlayersSmartBombAmount', + 'damageToPlayersSmartBombNumShots' => 'getDamageToPlayersSmartBombNumShots', + 'damageToPlayersSuperAmount' => 'getDamageToPlayersSuperAmount', + 'damageToPlayersSuperNumShots' => 'getDamageToPlayersSuperNumShots', + 'damageToStructuresTotalAmount' => 'getDamageToStructuresTotalAmount', + 'damageToStructuresTotalNumShots' => 'getDamageToStructuresTotalNumShots', + 'deathsHighSec' => 'getDeathsHighSec', + 'deathsLowSec' => 'getDeathsLowSec', + 'deathsNullSec' => 'getDeathsNullSec', + 'deathsPodHighSec' => 'getDeathsPodHighSec', + 'deathsPodLowSec' => 'getDeathsPodLowSec', + 'deathsPodNullSec' => 'getDeathsPodNullSec', + 'deathsPodWormhole' => 'getDeathsPodWormhole', + 'deathsWormhole' => 'getDeathsWormhole', + 'droneEngage' => 'getDroneEngage', + 'dscans' => 'getDscans', + 'duelRequested' => 'getDuelRequested', + 'engagementRegister' => 'getEngagementRegister', + 'killsAssists' => 'getKillsAssists', + 'killsHighSec' => 'getKillsHighSec', + 'killsLowSec' => 'getKillsLowSec', + 'killsNullSec' => 'getKillsNullSec', + 'killsPodHighSec' => 'getKillsPodHighSec', + 'killsPodLowSec' => 'getKillsPodLowSec', + 'killsPodNullSec' => 'getKillsPodNullSec', + 'killsPodWormhole' => 'getKillsPodWormhole', + 'killsWormhole' => 'getKillsWormhole', + 'npcFlagSet' => 'getNpcFlagSet', + 'probeScans' => 'getProbeScans', + 'pvpFlagSet' => 'getPvpFlagSet', + 'repairArmorByRemoteAmount' => 'getRepairArmorByRemoteAmount', + 'repairArmorRemoteAmount' => 'getRepairArmorRemoteAmount', + 'repairArmorSelfAmount' => 'getRepairArmorSelfAmount', + 'repairCapacitorByRemoteAmount' => 'getRepairCapacitorByRemoteAmount', + 'repairCapacitorRemoteAmount' => 'getRepairCapacitorRemoteAmount', + 'repairCapacitorSelfAmount' => 'getRepairCapacitorSelfAmount', + 'repairHullByRemoteAmount' => 'getRepairHullByRemoteAmount', + 'repairHullRemoteAmount' => 'getRepairHullRemoteAmount', + 'repairHullSelfAmount' => 'getRepairHullSelfAmount', + 'repairShieldByRemoteAmount' => 'getRepairShieldByRemoteAmount', + 'repairShieldRemoteAmount' => 'getRepairShieldRemoteAmount', + 'repairShieldSelfAmount' => 'getRepairShieldSelfAmount', + 'selfDestructs' => 'getSelfDestructs', + 'warpScramblePc' => 'getWarpScramblePc', + 'warpScrambledbyNpc' => 'getWarpScrambledbyNpc', + 'warpScrambledbyPc' => 'getWarpScrambledbyPc', + 'weaponFlagSet' => 'getWeaponFlagSet', + 'webifiedbyNpc' => 'getWebifiedbyNpc', + 'webifiedbyPc' => 'getWebifiedbyPc', + 'webifyingPc' => 'getWebifyingPc' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['capDrainedbyNpc'] = isset($data['capDrainedbyNpc']) ? $data['capDrainedbyNpc'] : null; + $this->container['capDrainedbyPc'] = isset($data['capDrainedbyPc']) ? $data['capDrainedbyPc'] : null; + $this->container['capDrainingPc'] = isset($data['capDrainingPc']) ? $data['capDrainingPc'] : null; + $this->container['criminalFlagSet'] = isset($data['criminalFlagSet']) ? $data['criminalFlagSet'] : null; + $this->container['damageFromNpCsAmount'] = isset($data['damageFromNpCsAmount']) ? $data['damageFromNpCsAmount'] : null; + $this->container['damageFromNpCsNumShots'] = isset($data['damageFromNpCsNumShots']) ? $data['damageFromNpCsNumShots'] : null; + $this->container['damageFromPlayersBombAmount'] = isset($data['damageFromPlayersBombAmount']) ? $data['damageFromPlayersBombAmount'] : null; + $this->container['damageFromPlayersBombNumShots'] = isset($data['damageFromPlayersBombNumShots']) ? $data['damageFromPlayersBombNumShots'] : null; + $this->container['damageFromPlayersCombatDroneAmount'] = isset($data['damageFromPlayersCombatDroneAmount']) ? $data['damageFromPlayersCombatDroneAmount'] : null; + $this->container['damageFromPlayersCombatDroneNumShots'] = isset($data['damageFromPlayersCombatDroneNumShots']) ? $data['damageFromPlayersCombatDroneNumShots'] : null; + $this->container['damageFromPlayersEnergyAmount'] = isset($data['damageFromPlayersEnergyAmount']) ? $data['damageFromPlayersEnergyAmount'] : null; + $this->container['damageFromPlayersEnergyNumShots'] = isset($data['damageFromPlayersEnergyNumShots']) ? $data['damageFromPlayersEnergyNumShots'] : null; + $this->container['damageFromPlayersFighterBomberAmount'] = isset($data['damageFromPlayersFighterBomberAmount']) ? $data['damageFromPlayersFighterBomberAmount'] : null; + $this->container['damageFromPlayersFighterBomberNumShots'] = isset($data['damageFromPlayersFighterBomberNumShots']) ? $data['damageFromPlayersFighterBomberNumShots'] : null; + $this->container['damageFromPlayersFighterDroneAmount'] = isset($data['damageFromPlayersFighterDroneAmount']) ? $data['damageFromPlayersFighterDroneAmount'] : null; + $this->container['damageFromPlayersFighterDroneNumShots'] = isset($data['damageFromPlayersFighterDroneNumShots']) ? $data['damageFromPlayersFighterDroneNumShots'] : null; + $this->container['damageFromPlayersHybridAmount'] = isset($data['damageFromPlayersHybridAmount']) ? $data['damageFromPlayersHybridAmount'] : null; + $this->container['damageFromPlayersHybridNumShots'] = isset($data['damageFromPlayersHybridNumShots']) ? $data['damageFromPlayersHybridNumShots'] : null; + $this->container['damageFromPlayersMissileAmount'] = isset($data['damageFromPlayersMissileAmount']) ? $data['damageFromPlayersMissileAmount'] : null; + $this->container['damageFromPlayersMissileNumShots'] = isset($data['damageFromPlayersMissileNumShots']) ? $data['damageFromPlayersMissileNumShots'] : null; + $this->container['damageFromPlayersProjectileAmount'] = isset($data['damageFromPlayersProjectileAmount']) ? $data['damageFromPlayersProjectileAmount'] : null; + $this->container['damageFromPlayersProjectileNumShots'] = isset($data['damageFromPlayersProjectileNumShots']) ? $data['damageFromPlayersProjectileNumShots'] : null; + $this->container['damageFromPlayersSmartBombAmount'] = isset($data['damageFromPlayersSmartBombAmount']) ? $data['damageFromPlayersSmartBombAmount'] : null; + $this->container['damageFromPlayersSmartBombNumShots'] = isset($data['damageFromPlayersSmartBombNumShots']) ? $data['damageFromPlayersSmartBombNumShots'] : null; + $this->container['damageFromPlayersSuperAmount'] = isset($data['damageFromPlayersSuperAmount']) ? $data['damageFromPlayersSuperAmount'] : null; + $this->container['damageFromPlayersSuperNumShots'] = isset($data['damageFromPlayersSuperNumShots']) ? $data['damageFromPlayersSuperNumShots'] : null; + $this->container['damageFromStructuresTotalAmount'] = isset($data['damageFromStructuresTotalAmount']) ? $data['damageFromStructuresTotalAmount'] : null; + $this->container['damageFromStructuresTotalNumShots'] = isset($data['damageFromStructuresTotalNumShots']) ? $data['damageFromStructuresTotalNumShots'] : null; + $this->container['damageToPlayersBombAmount'] = isset($data['damageToPlayersBombAmount']) ? $data['damageToPlayersBombAmount'] : null; + $this->container['damageToPlayersBombNumShots'] = isset($data['damageToPlayersBombNumShots']) ? $data['damageToPlayersBombNumShots'] : null; + $this->container['damageToPlayersCombatDroneAmount'] = isset($data['damageToPlayersCombatDroneAmount']) ? $data['damageToPlayersCombatDroneAmount'] : null; + $this->container['damageToPlayersCombatDroneNumShots'] = isset($data['damageToPlayersCombatDroneNumShots']) ? $data['damageToPlayersCombatDroneNumShots'] : null; + $this->container['damageToPlayersEnergyAmount'] = isset($data['damageToPlayersEnergyAmount']) ? $data['damageToPlayersEnergyAmount'] : null; + $this->container['damageToPlayersEnergyNumShots'] = isset($data['damageToPlayersEnergyNumShots']) ? $data['damageToPlayersEnergyNumShots'] : null; + $this->container['damageToPlayersFighterBomberAmount'] = isset($data['damageToPlayersFighterBomberAmount']) ? $data['damageToPlayersFighterBomberAmount'] : null; + $this->container['damageToPlayersFighterBomberNumShots'] = isset($data['damageToPlayersFighterBomberNumShots']) ? $data['damageToPlayersFighterBomberNumShots'] : null; + $this->container['damageToPlayersFighterDroneAmount'] = isset($data['damageToPlayersFighterDroneAmount']) ? $data['damageToPlayersFighterDroneAmount'] : null; + $this->container['damageToPlayersFighterDroneNumShots'] = isset($data['damageToPlayersFighterDroneNumShots']) ? $data['damageToPlayersFighterDroneNumShots'] : null; + $this->container['damageToPlayersHybridAmount'] = isset($data['damageToPlayersHybridAmount']) ? $data['damageToPlayersHybridAmount'] : null; + $this->container['damageToPlayersHybridNumShots'] = isset($data['damageToPlayersHybridNumShots']) ? $data['damageToPlayersHybridNumShots'] : null; + $this->container['damageToPlayersMissileAmount'] = isset($data['damageToPlayersMissileAmount']) ? $data['damageToPlayersMissileAmount'] : null; + $this->container['damageToPlayersMissileNumShots'] = isset($data['damageToPlayersMissileNumShots']) ? $data['damageToPlayersMissileNumShots'] : null; + $this->container['damageToPlayersProjectileAmount'] = isset($data['damageToPlayersProjectileAmount']) ? $data['damageToPlayersProjectileAmount'] : null; + $this->container['damageToPlayersProjectileNumShots'] = isset($data['damageToPlayersProjectileNumShots']) ? $data['damageToPlayersProjectileNumShots'] : null; + $this->container['damageToPlayersSmartBombAmount'] = isset($data['damageToPlayersSmartBombAmount']) ? $data['damageToPlayersSmartBombAmount'] : null; + $this->container['damageToPlayersSmartBombNumShots'] = isset($data['damageToPlayersSmartBombNumShots']) ? $data['damageToPlayersSmartBombNumShots'] : null; + $this->container['damageToPlayersSuperAmount'] = isset($data['damageToPlayersSuperAmount']) ? $data['damageToPlayersSuperAmount'] : null; + $this->container['damageToPlayersSuperNumShots'] = isset($data['damageToPlayersSuperNumShots']) ? $data['damageToPlayersSuperNumShots'] : null; + $this->container['damageToStructuresTotalAmount'] = isset($data['damageToStructuresTotalAmount']) ? $data['damageToStructuresTotalAmount'] : null; + $this->container['damageToStructuresTotalNumShots'] = isset($data['damageToStructuresTotalNumShots']) ? $data['damageToStructuresTotalNumShots'] : null; + $this->container['deathsHighSec'] = isset($data['deathsHighSec']) ? $data['deathsHighSec'] : null; + $this->container['deathsLowSec'] = isset($data['deathsLowSec']) ? $data['deathsLowSec'] : null; + $this->container['deathsNullSec'] = isset($data['deathsNullSec']) ? $data['deathsNullSec'] : null; + $this->container['deathsPodHighSec'] = isset($data['deathsPodHighSec']) ? $data['deathsPodHighSec'] : null; + $this->container['deathsPodLowSec'] = isset($data['deathsPodLowSec']) ? $data['deathsPodLowSec'] : null; + $this->container['deathsPodNullSec'] = isset($data['deathsPodNullSec']) ? $data['deathsPodNullSec'] : null; + $this->container['deathsPodWormhole'] = isset($data['deathsPodWormhole']) ? $data['deathsPodWormhole'] : null; + $this->container['deathsWormhole'] = isset($data['deathsWormhole']) ? $data['deathsWormhole'] : null; + $this->container['droneEngage'] = isset($data['droneEngage']) ? $data['droneEngage'] : null; + $this->container['dscans'] = isset($data['dscans']) ? $data['dscans'] : null; + $this->container['duelRequested'] = isset($data['duelRequested']) ? $data['duelRequested'] : null; + $this->container['engagementRegister'] = isset($data['engagementRegister']) ? $data['engagementRegister'] : null; + $this->container['killsAssists'] = isset($data['killsAssists']) ? $data['killsAssists'] : null; + $this->container['killsHighSec'] = isset($data['killsHighSec']) ? $data['killsHighSec'] : null; + $this->container['killsLowSec'] = isset($data['killsLowSec']) ? $data['killsLowSec'] : null; + $this->container['killsNullSec'] = isset($data['killsNullSec']) ? $data['killsNullSec'] : null; + $this->container['killsPodHighSec'] = isset($data['killsPodHighSec']) ? $data['killsPodHighSec'] : null; + $this->container['killsPodLowSec'] = isset($data['killsPodLowSec']) ? $data['killsPodLowSec'] : null; + $this->container['killsPodNullSec'] = isset($data['killsPodNullSec']) ? $data['killsPodNullSec'] : null; + $this->container['killsPodWormhole'] = isset($data['killsPodWormhole']) ? $data['killsPodWormhole'] : null; + $this->container['killsWormhole'] = isset($data['killsWormhole']) ? $data['killsWormhole'] : null; + $this->container['npcFlagSet'] = isset($data['npcFlagSet']) ? $data['npcFlagSet'] : null; + $this->container['probeScans'] = isset($data['probeScans']) ? $data['probeScans'] : null; + $this->container['pvpFlagSet'] = isset($data['pvpFlagSet']) ? $data['pvpFlagSet'] : null; + $this->container['repairArmorByRemoteAmount'] = isset($data['repairArmorByRemoteAmount']) ? $data['repairArmorByRemoteAmount'] : null; + $this->container['repairArmorRemoteAmount'] = isset($data['repairArmorRemoteAmount']) ? $data['repairArmorRemoteAmount'] : null; + $this->container['repairArmorSelfAmount'] = isset($data['repairArmorSelfAmount']) ? $data['repairArmorSelfAmount'] : null; + $this->container['repairCapacitorByRemoteAmount'] = isset($data['repairCapacitorByRemoteAmount']) ? $data['repairCapacitorByRemoteAmount'] : null; + $this->container['repairCapacitorRemoteAmount'] = isset($data['repairCapacitorRemoteAmount']) ? $data['repairCapacitorRemoteAmount'] : null; + $this->container['repairCapacitorSelfAmount'] = isset($data['repairCapacitorSelfAmount']) ? $data['repairCapacitorSelfAmount'] : null; + $this->container['repairHullByRemoteAmount'] = isset($data['repairHullByRemoteAmount']) ? $data['repairHullByRemoteAmount'] : null; + $this->container['repairHullRemoteAmount'] = isset($data['repairHullRemoteAmount']) ? $data['repairHullRemoteAmount'] : null; + $this->container['repairHullSelfAmount'] = isset($data['repairHullSelfAmount']) ? $data['repairHullSelfAmount'] : null; + $this->container['repairShieldByRemoteAmount'] = isset($data['repairShieldByRemoteAmount']) ? $data['repairShieldByRemoteAmount'] : null; + $this->container['repairShieldRemoteAmount'] = isset($data['repairShieldRemoteAmount']) ? $data['repairShieldRemoteAmount'] : null; + $this->container['repairShieldSelfAmount'] = isset($data['repairShieldSelfAmount']) ? $data['repairShieldSelfAmount'] : null; + $this->container['selfDestructs'] = isset($data['selfDestructs']) ? $data['selfDestructs'] : null; + $this->container['warpScramblePc'] = isset($data['warpScramblePc']) ? $data['warpScramblePc'] : null; + $this->container['warpScrambledbyNpc'] = isset($data['warpScrambledbyNpc']) ? $data['warpScrambledbyNpc'] : null; + $this->container['warpScrambledbyPc'] = isset($data['warpScrambledbyPc']) ? $data['warpScrambledbyPc'] : null; + $this->container['weaponFlagSet'] = isset($data['weaponFlagSet']) ? $data['weaponFlagSet'] : null; + $this->container['webifiedbyNpc'] = isset($data['webifiedbyNpc']) ? $data['webifiedbyNpc'] : null; + $this->container['webifiedbyPc'] = isset($data['webifiedbyPc']) ? $data['webifiedbyPc'] : null; + $this->container['webifyingPc'] = isset($data['webifyingPc']) ? $data['webifyingPc'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets capDrainedbyNpc + * + * @return int + */ + public function getCapDrainedbyNpc() + { + return $this->container['capDrainedbyNpc']; + } + + /** + * Sets capDrainedbyNpc + * + * @param int $capDrainedbyNpc cap_drainedby_npc integer + * + * @return $this + */ + public function setCapDrainedbyNpc($capDrainedbyNpc) + { + $this->container['capDrainedbyNpc'] = $capDrainedbyNpc; + + return $this; + } + + /** + * Gets capDrainedbyPc + * + * @return int + */ + public function getCapDrainedbyPc() + { + return $this->container['capDrainedbyPc']; + } + + /** + * Sets capDrainedbyPc + * + * @param int $capDrainedbyPc cap_drainedby_pc integer + * + * @return $this + */ + public function setCapDrainedbyPc($capDrainedbyPc) + { + $this->container['capDrainedbyPc'] = $capDrainedbyPc; + + return $this; + } + + /** + * Gets capDrainingPc + * + * @return int + */ + public function getCapDrainingPc() + { + return $this->container['capDrainingPc']; + } + + /** + * Sets capDrainingPc + * + * @param int $capDrainingPc cap_draining_pc integer + * + * @return $this + */ + public function setCapDrainingPc($capDrainingPc) + { + $this->container['capDrainingPc'] = $capDrainingPc; + + return $this; + } + + /** + * Gets criminalFlagSet + * + * @return int + */ + public function getCriminalFlagSet() + { + return $this->container['criminalFlagSet']; + } + + /** + * Sets criminalFlagSet + * + * @param int $criminalFlagSet criminal_flag_set integer + * + * @return $this + */ + public function setCriminalFlagSet($criminalFlagSet) + { + $this->container['criminalFlagSet'] = $criminalFlagSet; + + return $this; + } + + /** + * Gets damageFromNpCsAmount + * + * @return int + */ + public function getDamageFromNpCsAmount() + { + return $this->container['damageFromNpCsAmount']; + } + + /** + * Sets damageFromNpCsAmount + * + * @param int $damageFromNpCsAmount damage_from_np_cs_amount integer + * + * @return $this + */ + public function setDamageFromNpCsAmount($damageFromNpCsAmount) + { + $this->container['damageFromNpCsAmount'] = $damageFromNpCsAmount; + + return $this; + } + + /** + * Gets damageFromNpCsNumShots + * + * @return int + */ + public function getDamageFromNpCsNumShots() + { + return $this->container['damageFromNpCsNumShots']; + } + + /** + * Sets damageFromNpCsNumShots + * + * @param int $damageFromNpCsNumShots damage_from_np_cs_num_shots integer + * + * @return $this + */ + public function setDamageFromNpCsNumShots($damageFromNpCsNumShots) + { + $this->container['damageFromNpCsNumShots'] = $damageFromNpCsNumShots; + + return $this; + } + + /** + * Gets damageFromPlayersBombAmount + * + * @return int + */ + public function getDamageFromPlayersBombAmount() + { + return $this->container['damageFromPlayersBombAmount']; + } + + /** + * Sets damageFromPlayersBombAmount + * + * @param int $damageFromPlayersBombAmount damage_from_players_bomb_amount integer + * + * @return $this + */ + public function setDamageFromPlayersBombAmount($damageFromPlayersBombAmount) + { + $this->container['damageFromPlayersBombAmount'] = $damageFromPlayersBombAmount; + + return $this; + } + + /** + * Gets damageFromPlayersBombNumShots + * + * @return int + */ + public function getDamageFromPlayersBombNumShots() + { + return $this->container['damageFromPlayersBombNumShots']; + } + + /** + * Sets damageFromPlayersBombNumShots + * + * @param int $damageFromPlayersBombNumShots damage_from_players_bomb_num_shots integer + * + * @return $this + */ + public function setDamageFromPlayersBombNumShots($damageFromPlayersBombNumShots) + { + $this->container['damageFromPlayersBombNumShots'] = $damageFromPlayersBombNumShots; + + return $this; + } + + /** + * Gets damageFromPlayersCombatDroneAmount + * + * @return int + */ + public function getDamageFromPlayersCombatDroneAmount() + { + return $this->container['damageFromPlayersCombatDroneAmount']; + } + + /** + * Sets damageFromPlayersCombatDroneAmount + * + * @param int $damageFromPlayersCombatDroneAmount damage_from_players_combat_drone_amount integer + * + * @return $this + */ + public function setDamageFromPlayersCombatDroneAmount($damageFromPlayersCombatDroneAmount) + { + $this->container['damageFromPlayersCombatDroneAmount'] = $damageFromPlayersCombatDroneAmount; + + return $this; + } + + /** + * Gets damageFromPlayersCombatDroneNumShots + * + * @return int + */ + public function getDamageFromPlayersCombatDroneNumShots() + { + return $this->container['damageFromPlayersCombatDroneNumShots']; + } + + /** + * Sets damageFromPlayersCombatDroneNumShots + * + * @param int $damageFromPlayersCombatDroneNumShots damage_from_players_combat_drone_num_shots integer + * + * @return $this + */ + public function setDamageFromPlayersCombatDroneNumShots($damageFromPlayersCombatDroneNumShots) + { + $this->container['damageFromPlayersCombatDroneNumShots'] = $damageFromPlayersCombatDroneNumShots; + + return $this; + } + + /** + * Gets damageFromPlayersEnergyAmount + * + * @return int + */ + public function getDamageFromPlayersEnergyAmount() + { + return $this->container['damageFromPlayersEnergyAmount']; + } + + /** + * Sets damageFromPlayersEnergyAmount + * + * @param int $damageFromPlayersEnergyAmount damage_from_players_energy_amount integer + * + * @return $this + */ + public function setDamageFromPlayersEnergyAmount($damageFromPlayersEnergyAmount) + { + $this->container['damageFromPlayersEnergyAmount'] = $damageFromPlayersEnergyAmount; + + return $this; + } + + /** + * Gets damageFromPlayersEnergyNumShots + * + * @return int + */ + public function getDamageFromPlayersEnergyNumShots() + { + return $this->container['damageFromPlayersEnergyNumShots']; + } + + /** + * Sets damageFromPlayersEnergyNumShots + * + * @param int $damageFromPlayersEnergyNumShots damage_from_players_energy_num_shots integer + * + * @return $this + */ + public function setDamageFromPlayersEnergyNumShots($damageFromPlayersEnergyNumShots) + { + $this->container['damageFromPlayersEnergyNumShots'] = $damageFromPlayersEnergyNumShots; + + return $this; + } + + /** + * Gets damageFromPlayersFighterBomberAmount + * + * @return int + */ + public function getDamageFromPlayersFighterBomberAmount() + { + return $this->container['damageFromPlayersFighterBomberAmount']; + } + + /** + * Sets damageFromPlayersFighterBomberAmount + * + * @param int $damageFromPlayersFighterBomberAmount damage_from_players_fighter_bomber_amount integer + * + * @return $this + */ + public function setDamageFromPlayersFighterBomberAmount($damageFromPlayersFighterBomberAmount) + { + $this->container['damageFromPlayersFighterBomberAmount'] = $damageFromPlayersFighterBomberAmount; + + return $this; + } + + /** + * Gets damageFromPlayersFighterBomberNumShots + * + * @return int + */ + public function getDamageFromPlayersFighterBomberNumShots() + { + return $this->container['damageFromPlayersFighterBomberNumShots']; + } + + /** + * Sets damageFromPlayersFighterBomberNumShots + * + * @param int $damageFromPlayersFighterBomberNumShots damage_from_players_fighter_bomber_num_shots integer + * + * @return $this + */ + public function setDamageFromPlayersFighterBomberNumShots($damageFromPlayersFighterBomberNumShots) + { + $this->container['damageFromPlayersFighterBomberNumShots'] = $damageFromPlayersFighterBomberNumShots; + + return $this; + } + + /** + * Gets damageFromPlayersFighterDroneAmount + * + * @return int + */ + public function getDamageFromPlayersFighterDroneAmount() + { + return $this->container['damageFromPlayersFighterDroneAmount']; + } + + /** + * Sets damageFromPlayersFighterDroneAmount + * + * @param int $damageFromPlayersFighterDroneAmount damage_from_players_fighter_drone_amount integer + * + * @return $this + */ + public function setDamageFromPlayersFighterDroneAmount($damageFromPlayersFighterDroneAmount) + { + $this->container['damageFromPlayersFighterDroneAmount'] = $damageFromPlayersFighterDroneAmount; + + return $this; + } + + /** + * Gets damageFromPlayersFighterDroneNumShots + * + * @return int + */ + public function getDamageFromPlayersFighterDroneNumShots() + { + return $this->container['damageFromPlayersFighterDroneNumShots']; + } + + /** + * Sets damageFromPlayersFighterDroneNumShots + * + * @param int $damageFromPlayersFighterDroneNumShots damage_from_players_fighter_drone_num_shots integer + * + * @return $this + */ + public function setDamageFromPlayersFighterDroneNumShots($damageFromPlayersFighterDroneNumShots) + { + $this->container['damageFromPlayersFighterDroneNumShots'] = $damageFromPlayersFighterDroneNumShots; + + return $this; + } + + /** + * Gets damageFromPlayersHybridAmount + * + * @return int + */ + public function getDamageFromPlayersHybridAmount() + { + return $this->container['damageFromPlayersHybridAmount']; + } + + /** + * Sets damageFromPlayersHybridAmount + * + * @param int $damageFromPlayersHybridAmount damage_from_players_hybrid_amount integer + * + * @return $this + */ + public function setDamageFromPlayersHybridAmount($damageFromPlayersHybridAmount) + { + $this->container['damageFromPlayersHybridAmount'] = $damageFromPlayersHybridAmount; + + return $this; + } + + /** + * Gets damageFromPlayersHybridNumShots + * + * @return int + */ + public function getDamageFromPlayersHybridNumShots() + { + return $this->container['damageFromPlayersHybridNumShots']; + } + + /** + * Sets damageFromPlayersHybridNumShots + * + * @param int $damageFromPlayersHybridNumShots damage_from_players_hybrid_num_shots integer + * + * @return $this + */ + public function setDamageFromPlayersHybridNumShots($damageFromPlayersHybridNumShots) + { + $this->container['damageFromPlayersHybridNumShots'] = $damageFromPlayersHybridNumShots; + + return $this; + } + + /** + * Gets damageFromPlayersMissileAmount + * + * @return int + */ + public function getDamageFromPlayersMissileAmount() + { + return $this->container['damageFromPlayersMissileAmount']; + } + + /** + * Sets damageFromPlayersMissileAmount + * + * @param int $damageFromPlayersMissileAmount damage_from_players_missile_amount integer + * + * @return $this + */ + public function setDamageFromPlayersMissileAmount($damageFromPlayersMissileAmount) + { + $this->container['damageFromPlayersMissileAmount'] = $damageFromPlayersMissileAmount; + + return $this; + } + + /** + * Gets damageFromPlayersMissileNumShots + * + * @return int + */ + public function getDamageFromPlayersMissileNumShots() + { + return $this->container['damageFromPlayersMissileNumShots']; + } + + /** + * Sets damageFromPlayersMissileNumShots + * + * @param int $damageFromPlayersMissileNumShots damage_from_players_missile_num_shots integer + * + * @return $this + */ + public function setDamageFromPlayersMissileNumShots($damageFromPlayersMissileNumShots) + { + $this->container['damageFromPlayersMissileNumShots'] = $damageFromPlayersMissileNumShots; + + return $this; + } + + /** + * Gets damageFromPlayersProjectileAmount + * + * @return int + */ + public function getDamageFromPlayersProjectileAmount() + { + return $this->container['damageFromPlayersProjectileAmount']; + } + + /** + * Sets damageFromPlayersProjectileAmount + * + * @param int $damageFromPlayersProjectileAmount damage_from_players_projectile_amount integer + * + * @return $this + */ + public function setDamageFromPlayersProjectileAmount($damageFromPlayersProjectileAmount) + { + $this->container['damageFromPlayersProjectileAmount'] = $damageFromPlayersProjectileAmount; + + return $this; + } + + /** + * Gets damageFromPlayersProjectileNumShots + * + * @return int + */ + public function getDamageFromPlayersProjectileNumShots() + { + return $this->container['damageFromPlayersProjectileNumShots']; + } + + /** + * Sets damageFromPlayersProjectileNumShots + * + * @param int $damageFromPlayersProjectileNumShots damage_from_players_projectile_num_shots integer + * + * @return $this + */ + public function setDamageFromPlayersProjectileNumShots($damageFromPlayersProjectileNumShots) + { + $this->container['damageFromPlayersProjectileNumShots'] = $damageFromPlayersProjectileNumShots; + + return $this; + } + + /** + * Gets damageFromPlayersSmartBombAmount + * + * @return int + */ + public function getDamageFromPlayersSmartBombAmount() + { + return $this->container['damageFromPlayersSmartBombAmount']; + } + + /** + * Sets damageFromPlayersSmartBombAmount + * + * @param int $damageFromPlayersSmartBombAmount damage_from_players_smart_bomb_amount integer + * + * @return $this + */ + public function setDamageFromPlayersSmartBombAmount($damageFromPlayersSmartBombAmount) + { + $this->container['damageFromPlayersSmartBombAmount'] = $damageFromPlayersSmartBombAmount; + + return $this; + } + + /** + * Gets damageFromPlayersSmartBombNumShots + * + * @return int + */ + public function getDamageFromPlayersSmartBombNumShots() + { + return $this->container['damageFromPlayersSmartBombNumShots']; + } + + /** + * Sets damageFromPlayersSmartBombNumShots + * + * @param int $damageFromPlayersSmartBombNumShots damage_from_players_smart_bomb_num_shots integer + * + * @return $this + */ + public function setDamageFromPlayersSmartBombNumShots($damageFromPlayersSmartBombNumShots) + { + $this->container['damageFromPlayersSmartBombNumShots'] = $damageFromPlayersSmartBombNumShots; + + return $this; + } + + /** + * Gets damageFromPlayersSuperAmount + * + * @return int + */ + public function getDamageFromPlayersSuperAmount() + { + return $this->container['damageFromPlayersSuperAmount']; + } + + /** + * Sets damageFromPlayersSuperAmount + * + * @param int $damageFromPlayersSuperAmount damage_from_players_super_amount integer + * + * @return $this + */ + public function setDamageFromPlayersSuperAmount($damageFromPlayersSuperAmount) + { + $this->container['damageFromPlayersSuperAmount'] = $damageFromPlayersSuperAmount; + + return $this; + } + + /** + * Gets damageFromPlayersSuperNumShots + * + * @return int + */ + public function getDamageFromPlayersSuperNumShots() + { + return $this->container['damageFromPlayersSuperNumShots']; + } + + /** + * Sets damageFromPlayersSuperNumShots + * + * @param int $damageFromPlayersSuperNumShots damage_from_players_super_num_shots integer + * + * @return $this + */ + public function setDamageFromPlayersSuperNumShots($damageFromPlayersSuperNumShots) + { + $this->container['damageFromPlayersSuperNumShots'] = $damageFromPlayersSuperNumShots; + + return $this; + } + + /** + * Gets damageFromStructuresTotalAmount + * + * @return int + */ + public function getDamageFromStructuresTotalAmount() + { + return $this->container['damageFromStructuresTotalAmount']; + } + + /** + * Sets damageFromStructuresTotalAmount + * + * @param int $damageFromStructuresTotalAmount damage_from_structures_total_amount integer + * + * @return $this + */ + public function setDamageFromStructuresTotalAmount($damageFromStructuresTotalAmount) + { + $this->container['damageFromStructuresTotalAmount'] = $damageFromStructuresTotalAmount; + + return $this; + } + + /** + * Gets damageFromStructuresTotalNumShots + * + * @return int + */ + public function getDamageFromStructuresTotalNumShots() + { + return $this->container['damageFromStructuresTotalNumShots']; + } + + /** + * Sets damageFromStructuresTotalNumShots + * + * @param int $damageFromStructuresTotalNumShots damage_from_structures_total_num_shots integer + * + * @return $this + */ + public function setDamageFromStructuresTotalNumShots($damageFromStructuresTotalNumShots) + { + $this->container['damageFromStructuresTotalNumShots'] = $damageFromStructuresTotalNumShots; + + return $this; + } + + /** + * Gets damageToPlayersBombAmount + * + * @return int + */ + public function getDamageToPlayersBombAmount() + { + return $this->container['damageToPlayersBombAmount']; + } + + /** + * Sets damageToPlayersBombAmount + * + * @param int $damageToPlayersBombAmount damage_to_players_bomb_amount integer + * + * @return $this + */ + public function setDamageToPlayersBombAmount($damageToPlayersBombAmount) + { + $this->container['damageToPlayersBombAmount'] = $damageToPlayersBombAmount; + + return $this; + } + + /** + * Gets damageToPlayersBombNumShots + * + * @return int + */ + public function getDamageToPlayersBombNumShots() + { + return $this->container['damageToPlayersBombNumShots']; + } + + /** + * Sets damageToPlayersBombNumShots + * + * @param int $damageToPlayersBombNumShots damage_to_players_bomb_num_shots integer + * + * @return $this + */ + public function setDamageToPlayersBombNumShots($damageToPlayersBombNumShots) + { + $this->container['damageToPlayersBombNumShots'] = $damageToPlayersBombNumShots; + + return $this; + } + + /** + * Gets damageToPlayersCombatDroneAmount + * + * @return int + */ + public function getDamageToPlayersCombatDroneAmount() + { + return $this->container['damageToPlayersCombatDroneAmount']; + } + + /** + * Sets damageToPlayersCombatDroneAmount + * + * @param int $damageToPlayersCombatDroneAmount damage_to_players_combat_drone_amount integer + * + * @return $this + */ + public function setDamageToPlayersCombatDroneAmount($damageToPlayersCombatDroneAmount) + { + $this->container['damageToPlayersCombatDroneAmount'] = $damageToPlayersCombatDroneAmount; + + return $this; + } + + /** + * Gets damageToPlayersCombatDroneNumShots + * + * @return int + */ + public function getDamageToPlayersCombatDroneNumShots() + { + return $this->container['damageToPlayersCombatDroneNumShots']; + } + + /** + * Sets damageToPlayersCombatDroneNumShots + * + * @param int $damageToPlayersCombatDroneNumShots damage_to_players_combat_drone_num_shots integer + * + * @return $this + */ + public function setDamageToPlayersCombatDroneNumShots($damageToPlayersCombatDroneNumShots) + { + $this->container['damageToPlayersCombatDroneNumShots'] = $damageToPlayersCombatDroneNumShots; + + return $this; + } + + /** + * Gets damageToPlayersEnergyAmount + * + * @return int + */ + public function getDamageToPlayersEnergyAmount() + { + return $this->container['damageToPlayersEnergyAmount']; + } + + /** + * Sets damageToPlayersEnergyAmount + * + * @param int $damageToPlayersEnergyAmount damage_to_players_energy_amount integer + * + * @return $this + */ + public function setDamageToPlayersEnergyAmount($damageToPlayersEnergyAmount) + { + $this->container['damageToPlayersEnergyAmount'] = $damageToPlayersEnergyAmount; + + return $this; + } + + /** + * Gets damageToPlayersEnergyNumShots + * + * @return int + */ + public function getDamageToPlayersEnergyNumShots() + { + return $this->container['damageToPlayersEnergyNumShots']; + } + + /** + * Sets damageToPlayersEnergyNumShots + * + * @param int $damageToPlayersEnergyNumShots damage_to_players_energy_num_shots integer + * + * @return $this + */ + public function setDamageToPlayersEnergyNumShots($damageToPlayersEnergyNumShots) + { + $this->container['damageToPlayersEnergyNumShots'] = $damageToPlayersEnergyNumShots; + + return $this; + } + + /** + * Gets damageToPlayersFighterBomberAmount + * + * @return int + */ + public function getDamageToPlayersFighterBomberAmount() + { + return $this->container['damageToPlayersFighterBomberAmount']; + } + + /** + * Sets damageToPlayersFighterBomberAmount + * + * @param int $damageToPlayersFighterBomberAmount damage_to_players_fighter_bomber_amount integer + * + * @return $this + */ + public function setDamageToPlayersFighterBomberAmount($damageToPlayersFighterBomberAmount) + { + $this->container['damageToPlayersFighterBomberAmount'] = $damageToPlayersFighterBomberAmount; + + return $this; + } + + /** + * Gets damageToPlayersFighterBomberNumShots + * + * @return int + */ + public function getDamageToPlayersFighterBomberNumShots() + { + return $this->container['damageToPlayersFighterBomberNumShots']; + } + + /** + * Sets damageToPlayersFighterBomberNumShots + * + * @param int $damageToPlayersFighterBomberNumShots damage_to_players_fighter_bomber_num_shots integer + * + * @return $this + */ + public function setDamageToPlayersFighterBomberNumShots($damageToPlayersFighterBomberNumShots) + { + $this->container['damageToPlayersFighterBomberNumShots'] = $damageToPlayersFighterBomberNumShots; + + return $this; + } + + /** + * Gets damageToPlayersFighterDroneAmount + * + * @return int + */ + public function getDamageToPlayersFighterDroneAmount() + { + return $this->container['damageToPlayersFighterDroneAmount']; + } + + /** + * Sets damageToPlayersFighterDroneAmount + * + * @param int $damageToPlayersFighterDroneAmount damage_to_players_fighter_drone_amount integer + * + * @return $this + */ + public function setDamageToPlayersFighterDroneAmount($damageToPlayersFighterDroneAmount) + { + $this->container['damageToPlayersFighterDroneAmount'] = $damageToPlayersFighterDroneAmount; + + return $this; + } + + /** + * Gets damageToPlayersFighterDroneNumShots + * + * @return int + */ + public function getDamageToPlayersFighterDroneNumShots() + { + return $this->container['damageToPlayersFighterDroneNumShots']; + } + + /** + * Sets damageToPlayersFighterDroneNumShots + * + * @param int $damageToPlayersFighterDroneNumShots damage_to_players_fighter_drone_num_shots integer + * + * @return $this + */ + public function setDamageToPlayersFighterDroneNumShots($damageToPlayersFighterDroneNumShots) + { + $this->container['damageToPlayersFighterDroneNumShots'] = $damageToPlayersFighterDroneNumShots; + + return $this; + } + + /** + * Gets damageToPlayersHybridAmount + * + * @return int + */ + public function getDamageToPlayersHybridAmount() + { + return $this->container['damageToPlayersHybridAmount']; + } + + /** + * Sets damageToPlayersHybridAmount + * + * @param int $damageToPlayersHybridAmount damage_to_players_hybrid_amount integer + * + * @return $this + */ + public function setDamageToPlayersHybridAmount($damageToPlayersHybridAmount) + { + $this->container['damageToPlayersHybridAmount'] = $damageToPlayersHybridAmount; + + return $this; + } + + /** + * Gets damageToPlayersHybridNumShots + * + * @return int + */ + public function getDamageToPlayersHybridNumShots() + { + return $this->container['damageToPlayersHybridNumShots']; + } + + /** + * Sets damageToPlayersHybridNumShots + * + * @param int $damageToPlayersHybridNumShots damage_to_players_hybrid_num_shots integer + * + * @return $this + */ + public function setDamageToPlayersHybridNumShots($damageToPlayersHybridNumShots) + { + $this->container['damageToPlayersHybridNumShots'] = $damageToPlayersHybridNumShots; + + return $this; + } + + /** + * Gets damageToPlayersMissileAmount + * + * @return int + */ + public function getDamageToPlayersMissileAmount() + { + return $this->container['damageToPlayersMissileAmount']; + } + + /** + * Sets damageToPlayersMissileAmount + * + * @param int $damageToPlayersMissileAmount damage_to_players_missile_amount integer + * + * @return $this + */ + public function setDamageToPlayersMissileAmount($damageToPlayersMissileAmount) + { + $this->container['damageToPlayersMissileAmount'] = $damageToPlayersMissileAmount; + + return $this; + } + + /** + * Gets damageToPlayersMissileNumShots + * + * @return int + */ + public function getDamageToPlayersMissileNumShots() + { + return $this->container['damageToPlayersMissileNumShots']; + } + + /** + * Sets damageToPlayersMissileNumShots + * + * @param int $damageToPlayersMissileNumShots damage_to_players_missile_num_shots integer + * + * @return $this + */ + public function setDamageToPlayersMissileNumShots($damageToPlayersMissileNumShots) + { + $this->container['damageToPlayersMissileNumShots'] = $damageToPlayersMissileNumShots; + + return $this; + } + + /** + * Gets damageToPlayersProjectileAmount + * + * @return int + */ + public function getDamageToPlayersProjectileAmount() + { + return $this->container['damageToPlayersProjectileAmount']; + } + + /** + * Sets damageToPlayersProjectileAmount + * + * @param int $damageToPlayersProjectileAmount damage_to_players_projectile_amount integer + * + * @return $this + */ + public function setDamageToPlayersProjectileAmount($damageToPlayersProjectileAmount) + { + $this->container['damageToPlayersProjectileAmount'] = $damageToPlayersProjectileAmount; + + return $this; + } + + /** + * Gets damageToPlayersProjectileNumShots + * + * @return int + */ + public function getDamageToPlayersProjectileNumShots() + { + return $this->container['damageToPlayersProjectileNumShots']; + } + + /** + * Sets damageToPlayersProjectileNumShots + * + * @param int $damageToPlayersProjectileNumShots damage_to_players_projectile_num_shots integer + * + * @return $this + */ + public function setDamageToPlayersProjectileNumShots($damageToPlayersProjectileNumShots) + { + $this->container['damageToPlayersProjectileNumShots'] = $damageToPlayersProjectileNumShots; + + return $this; + } + + /** + * Gets damageToPlayersSmartBombAmount + * + * @return int + */ + public function getDamageToPlayersSmartBombAmount() + { + return $this->container['damageToPlayersSmartBombAmount']; + } + + /** + * Sets damageToPlayersSmartBombAmount + * + * @param int $damageToPlayersSmartBombAmount damage_to_players_smart_bomb_amount integer + * + * @return $this + */ + public function setDamageToPlayersSmartBombAmount($damageToPlayersSmartBombAmount) + { + $this->container['damageToPlayersSmartBombAmount'] = $damageToPlayersSmartBombAmount; + + return $this; + } + + /** + * Gets damageToPlayersSmartBombNumShots + * + * @return int + */ + public function getDamageToPlayersSmartBombNumShots() + { + return $this->container['damageToPlayersSmartBombNumShots']; + } + + /** + * Sets damageToPlayersSmartBombNumShots + * + * @param int $damageToPlayersSmartBombNumShots damage_to_players_smart_bomb_num_shots integer + * + * @return $this + */ + public function setDamageToPlayersSmartBombNumShots($damageToPlayersSmartBombNumShots) + { + $this->container['damageToPlayersSmartBombNumShots'] = $damageToPlayersSmartBombNumShots; + + return $this; + } + + /** + * Gets damageToPlayersSuperAmount + * + * @return int + */ + public function getDamageToPlayersSuperAmount() + { + return $this->container['damageToPlayersSuperAmount']; + } + + /** + * Sets damageToPlayersSuperAmount + * + * @param int $damageToPlayersSuperAmount damage_to_players_super_amount integer + * + * @return $this + */ + public function setDamageToPlayersSuperAmount($damageToPlayersSuperAmount) + { + $this->container['damageToPlayersSuperAmount'] = $damageToPlayersSuperAmount; + + return $this; + } + + /** + * Gets damageToPlayersSuperNumShots + * + * @return int + */ + public function getDamageToPlayersSuperNumShots() + { + return $this->container['damageToPlayersSuperNumShots']; + } + + /** + * Sets damageToPlayersSuperNumShots + * + * @param int $damageToPlayersSuperNumShots damage_to_players_super_num_shots integer + * + * @return $this + */ + public function setDamageToPlayersSuperNumShots($damageToPlayersSuperNumShots) + { + $this->container['damageToPlayersSuperNumShots'] = $damageToPlayersSuperNumShots; + + return $this; + } + + /** + * Gets damageToStructuresTotalAmount + * + * @return int + */ + public function getDamageToStructuresTotalAmount() + { + return $this->container['damageToStructuresTotalAmount']; + } + + /** + * Sets damageToStructuresTotalAmount + * + * @param int $damageToStructuresTotalAmount damage_to_structures_total_amount integer + * + * @return $this + */ + public function setDamageToStructuresTotalAmount($damageToStructuresTotalAmount) + { + $this->container['damageToStructuresTotalAmount'] = $damageToStructuresTotalAmount; + + return $this; + } + + /** + * Gets damageToStructuresTotalNumShots + * + * @return int + */ + public function getDamageToStructuresTotalNumShots() + { + return $this->container['damageToStructuresTotalNumShots']; + } + + /** + * Sets damageToStructuresTotalNumShots + * + * @param int $damageToStructuresTotalNumShots damage_to_structures_total_num_shots integer + * + * @return $this + */ + public function setDamageToStructuresTotalNumShots($damageToStructuresTotalNumShots) + { + $this->container['damageToStructuresTotalNumShots'] = $damageToStructuresTotalNumShots; + + return $this; + } + + /** + * Gets deathsHighSec + * + * @return int + */ + public function getDeathsHighSec() + { + return $this->container['deathsHighSec']; + } + + /** + * Sets deathsHighSec + * + * @param int $deathsHighSec deaths_high_sec integer + * + * @return $this + */ + public function setDeathsHighSec($deathsHighSec) + { + $this->container['deathsHighSec'] = $deathsHighSec; + + return $this; + } + + /** + * Gets deathsLowSec + * + * @return int + */ + public function getDeathsLowSec() + { + return $this->container['deathsLowSec']; + } + + /** + * Sets deathsLowSec + * + * @param int $deathsLowSec deaths_low_sec integer + * + * @return $this + */ + public function setDeathsLowSec($deathsLowSec) + { + $this->container['deathsLowSec'] = $deathsLowSec; + + return $this; + } + + /** + * Gets deathsNullSec + * + * @return int + */ + public function getDeathsNullSec() + { + return $this->container['deathsNullSec']; + } + + /** + * Sets deathsNullSec + * + * @param int $deathsNullSec deaths_null_sec integer + * + * @return $this + */ + public function setDeathsNullSec($deathsNullSec) + { + $this->container['deathsNullSec'] = $deathsNullSec; + + return $this; + } + + /** + * Gets deathsPodHighSec + * + * @return int + */ + public function getDeathsPodHighSec() + { + return $this->container['deathsPodHighSec']; + } + + /** + * Sets deathsPodHighSec + * + * @param int $deathsPodHighSec deaths_pod_high_sec integer + * + * @return $this + */ + public function setDeathsPodHighSec($deathsPodHighSec) + { + $this->container['deathsPodHighSec'] = $deathsPodHighSec; + + return $this; + } + + /** + * Gets deathsPodLowSec + * + * @return int + */ + public function getDeathsPodLowSec() + { + return $this->container['deathsPodLowSec']; + } + + /** + * Sets deathsPodLowSec + * + * @param int $deathsPodLowSec deaths_pod_low_sec integer + * + * @return $this + */ + public function setDeathsPodLowSec($deathsPodLowSec) + { + $this->container['deathsPodLowSec'] = $deathsPodLowSec; + + return $this; + } + + /** + * Gets deathsPodNullSec + * + * @return int + */ + public function getDeathsPodNullSec() + { + return $this->container['deathsPodNullSec']; + } + + /** + * Sets deathsPodNullSec + * + * @param int $deathsPodNullSec deaths_pod_null_sec integer + * + * @return $this + */ + public function setDeathsPodNullSec($deathsPodNullSec) + { + $this->container['deathsPodNullSec'] = $deathsPodNullSec; + + return $this; + } + + /** + * Gets deathsPodWormhole + * + * @return int + */ + public function getDeathsPodWormhole() + { + return $this->container['deathsPodWormhole']; + } + + /** + * Sets deathsPodWormhole + * + * @param int $deathsPodWormhole deaths_pod_wormhole integer + * + * @return $this + */ + public function setDeathsPodWormhole($deathsPodWormhole) + { + $this->container['deathsPodWormhole'] = $deathsPodWormhole; + + return $this; + } + + /** + * Gets deathsWormhole + * + * @return int + */ + public function getDeathsWormhole() + { + return $this->container['deathsWormhole']; + } + + /** + * Sets deathsWormhole + * + * @param int $deathsWormhole deaths_wormhole integer + * + * @return $this + */ + public function setDeathsWormhole($deathsWormhole) + { + $this->container['deathsWormhole'] = $deathsWormhole; + + return $this; + } + + /** + * Gets droneEngage + * + * @return int + */ + public function getDroneEngage() + { + return $this->container['droneEngage']; + } + + /** + * Sets droneEngage + * + * @param int $droneEngage drone_engage integer + * + * @return $this + */ + public function setDroneEngage($droneEngage) + { + $this->container['droneEngage'] = $droneEngage; + + return $this; + } + + /** + * Gets dscans + * + * @return int + */ + public function getDscans() + { + return $this->container['dscans']; + } + + /** + * Sets dscans + * + * @param int $dscans dscans integer + * + * @return $this + */ + public function setDscans($dscans) + { + $this->container['dscans'] = $dscans; + + return $this; + } + + /** + * Gets duelRequested + * + * @return int + */ + public function getDuelRequested() + { + return $this->container['duelRequested']; + } + + /** + * Sets duelRequested + * + * @param int $duelRequested duel_requested integer + * + * @return $this + */ + public function setDuelRequested($duelRequested) + { + $this->container['duelRequested'] = $duelRequested; + + return $this; + } + + /** + * Gets engagementRegister + * + * @return int + */ + public function getEngagementRegister() + { + return $this->container['engagementRegister']; + } + + /** + * Sets engagementRegister + * + * @param int $engagementRegister engagement_register integer + * + * @return $this + */ + public function setEngagementRegister($engagementRegister) + { + $this->container['engagementRegister'] = $engagementRegister; + + return $this; + } + + /** + * Gets killsAssists + * + * @return int + */ + public function getKillsAssists() + { + return $this->container['killsAssists']; + } + + /** + * Sets killsAssists + * + * @param int $killsAssists kills_assists integer + * + * @return $this + */ + public function setKillsAssists($killsAssists) + { + $this->container['killsAssists'] = $killsAssists; + + return $this; + } + + /** + * Gets killsHighSec + * + * @return int + */ + public function getKillsHighSec() + { + return $this->container['killsHighSec']; + } + + /** + * Sets killsHighSec + * + * @param int $killsHighSec kills_high_sec integer + * + * @return $this + */ + public function setKillsHighSec($killsHighSec) + { + $this->container['killsHighSec'] = $killsHighSec; + + return $this; + } + + /** + * Gets killsLowSec + * + * @return int + */ + public function getKillsLowSec() + { + return $this->container['killsLowSec']; + } + + /** + * Sets killsLowSec + * + * @param int $killsLowSec kills_low_sec integer + * + * @return $this + */ + public function setKillsLowSec($killsLowSec) + { + $this->container['killsLowSec'] = $killsLowSec; + + return $this; + } + + /** + * Gets killsNullSec + * + * @return int + */ + public function getKillsNullSec() + { + return $this->container['killsNullSec']; + } + + /** + * Sets killsNullSec + * + * @param int $killsNullSec kills_null_sec integer + * + * @return $this + */ + public function setKillsNullSec($killsNullSec) + { + $this->container['killsNullSec'] = $killsNullSec; + + return $this; + } + + /** + * Gets killsPodHighSec + * + * @return int + */ + public function getKillsPodHighSec() + { + return $this->container['killsPodHighSec']; + } + + /** + * Sets killsPodHighSec + * + * @param int $killsPodHighSec kills_pod_high_sec integer + * + * @return $this + */ + public function setKillsPodHighSec($killsPodHighSec) + { + $this->container['killsPodHighSec'] = $killsPodHighSec; + + return $this; + } + + /** + * Gets killsPodLowSec + * + * @return int + */ + public function getKillsPodLowSec() + { + return $this->container['killsPodLowSec']; + } + + /** + * Sets killsPodLowSec + * + * @param int $killsPodLowSec kills_pod_low_sec integer + * + * @return $this + */ + public function setKillsPodLowSec($killsPodLowSec) + { + $this->container['killsPodLowSec'] = $killsPodLowSec; + + return $this; + } + + /** + * Gets killsPodNullSec + * + * @return int + */ + public function getKillsPodNullSec() + { + return $this->container['killsPodNullSec']; + } + + /** + * Sets killsPodNullSec + * + * @param int $killsPodNullSec kills_pod_null_sec integer + * + * @return $this + */ + public function setKillsPodNullSec($killsPodNullSec) + { + $this->container['killsPodNullSec'] = $killsPodNullSec; + + return $this; + } + + /** + * Gets killsPodWormhole + * + * @return int + */ + public function getKillsPodWormhole() + { + return $this->container['killsPodWormhole']; + } + + /** + * Sets killsPodWormhole + * + * @param int $killsPodWormhole kills_pod_wormhole integer + * + * @return $this + */ + public function setKillsPodWormhole($killsPodWormhole) + { + $this->container['killsPodWormhole'] = $killsPodWormhole; + + return $this; + } + + /** + * Gets killsWormhole + * + * @return int + */ + public function getKillsWormhole() + { + return $this->container['killsWormhole']; + } + + /** + * Sets killsWormhole + * + * @param int $killsWormhole kills_wormhole integer + * + * @return $this + */ + public function setKillsWormhole($killsWormhole) + { + $this->container['killsWormhole'] = $killsWormhole; + + return $this; + } + + /** + * Gets npcFlagSet + * + * @return int + */ + public function getNpcFlagSet() + { + return $this->container['npcFlagSet']; + } + + /** + * Sets npcFlagSet + * + * @param int $npcFlagSet npc_flag_set integer + * + * @return $this + */ + public function setNpcFlagSet($npcFlagSet) + { + $this->container['npcFlagSet'] = $npcFlagSet; + + return $this; + } + + /** + * Gets probeScans + * + * @return int + */ + public function getProbeScans() + { + return $this->container['probeScans']; + } + + /** + * Sets probeScans + * + * @param int $probeScans probe_scans integer + * + * @return $this + */ + public function setProbeScans($probeScans) + { + $this->container['probeScans'] = $probeScans; + + return $this; + } + + /** + * Gets pvpFlagSet + * + * @return int + */ + public function getPvpFlagSet() + { + return $this->container['pvpFlagSet']; + } + + /** + * Sets pvpFlagSet + * + * @param int $pvpFlagSet pvp_flag_set integer + * + * @return $this + */ + public function setPvpFlagSet($pvpFlagSet) + { + $this->container['pvpFlagSet'] = $pvpFlagSet; + + return $this; + } + + /** + * Gets repairArmorByRemoteAmount + * + * @return int + */ + public function getRepairArmorByRemoteAmount() + { + return $this->container['repairArmorByRemoteAmount']; + } + + /** + * Sets repairArmorByRemoteAmount + * + * @param int $repairArmorByRemoteAmount repair_armor_by_remote_amount integer + * + * @return $this + */ + public function setRepairArmorByRemoteAmount($repairArmorByRemoteAmount) + { + $this->container['repairArmorByRemoteAmount'] = $repairArmorByRemoteAmount; + + return $this; + } + + /** + * Gets repairArmorRemoteAmount + * + * @return int + */ + public function getRepairArmorRemoteAmount() + { + return $this->container['repairArmorRemoteAmount']; + } + + /** + * Sets repairArmorRemoteAmount + * + * @param int $repairArmorRemoteAmount repair_armor_remote_amount integer + * + * @return $this + */ + public function setRepairArmorRemoteAmount($repairArmorRemoteAmount) + { + $this->container['repairArmorRemoteAmount'] = $repairArmorRemoteAmount; + + return $this; + } + + /** + * Gets repairArmorSelfAmount + * + * @return int + */ + public function getRepairArmorSelfAmount() + { + return $this->container['repairArmorSelfAmount']; + } + + /** + * Sets repairArmorSelfAmount + * + * @param int $repairArmorSelfAmount repair_armor_self_amount integer + * + * @return $this + */ + public function setRepairArmorSelfAmount($repairArmorSelfAmount) + { + $this->container['repairArmorSelfAmount'] = $repairArmorSelfAmount; + + return $this; + } + + /** + * Gets repairCapacitorByRemoteAmount + * + * @return int + */ + public function getRepairCapacitorByRemoteAmount() + { + return $this->container['repairCapacitorByRemoteAmount']; + } + + /** + * Sets repairCapacitorByRemoteAmount + * + * @param int $repairCapacitorByRemoteAmount repair_capacitor_by_remote_amount integer + * + * @return $this + */ + public function setRepairCapacitorByRemoteAmount($repairCapacitorByRemoteAmount) + { + $this->container['repairCapacitorByRemoteAmount'] = $repairCapacitorByRemoteAmount; + + return $this; + } + + /** + * Gets repairCapacitorRemoteAmount + * + * @return int + */ + public function getRepairCapacitorRemoteAmount() + { + return $this->container['repairCapacitorRemoteAmount']; + } + + /** + * Sets repairCapacitorRemoteAmount + * + * @param int $repairCapacitorRemoteAmount repair_capacitor_remote_amount integer + * + * @return $this + */ + public function setRepairCapacitorRemoteAmount($repairCapacitorRemoteAmount) + { + $this->container['repairCapacitorRemoteAmount'] = $repairCapacitorRemoteAmount; + + return $this; + } + + /** + * Gets repairCapacitorSelfAmount + * + * @return int + */ + public function getRepairCapacitorSelfAmount() + { + return $this->container['repairCapacitorSelfAmount']; + } + + /** + * Sets repairCapacitorSelfAmount + * + * @param int $repairCapacitorSelfAmount repair_capacitor_self_amount integer + * + * @return $this + */ + public function setRepairCapacitorSelfAmount($repairCapacitorSelfAmount) + { + $this->container['repairCapacitorSelfAmount'] = $repairCapacitorSelfAmount; + + return $this; + } + + /** + * Gets repairHullByRemoteAmount + * + * @return int + */ + public function getRepairHullByRemoteAmount() + { + return $this->container['repairHullByRemoteAmount']; + } + + /** + * Sets repairHullByRemoteAmount + * + * @param int $repairHullByRemoteAmount repair_hull_by_remote_amount integer + * + * @return $this + */ + public function setRepairHullByRemoteAmount($repairHullByRemoteAmount) + { + $this->container['repairHullByRemoteAmount'] = $repairHullByRemoteAmount; + + return $this; + } + + /** + * Gets repairHullRemoteAmount + * + * @return int + */ + public function getRepairHullRemoteAmount() + { + return $this->container['repairHullRemoteAmount']; + } + + /** + * Sets repairHullRemoteAmount + * + * @param int $repairHullRemoteAmount repair_hull_remote_amount integer + * + * @return $this + */ + public function setRepairHullRemoteAmount($repairHullRemoteAmount) + { + $this->container['repairHullRemoteAmount'] = $repairHullRemoteAmount; + + return $this; + } + + /** + * Gets repairHullSelfAmount + * + * @return int + */ + public function getRepairHullSelfAmount() + { + return $this->container['repairHullSelfAmount']; + } + + /** + * Sets repairHullSelfAmount + * + * @param int $repairHullSelfAmount repair_hull_self_amount integer + * + * @return $this + */ + public function setRepairHullSelfAmount($repairHullSelfAmount) + { + $this->container['repairHullSelfAmount'] = $repairHullSelfAmount; + + return $this; + } + + /** + * Gets repairShieldByRemoteAmount + * + * @return int + */ + public function getRepairShieldByRemoteAmount() + { + return $this->container['repairShieldByRemoteAmount']; + } + + /** + * Sets repairShieldByRemoteAmount + * + * @param int $repairShieldByRemoteAmount repair_shield_by_remote_amount integer + * + * @return $this + */ + public function setRepairShieldByRemoteAmount($repairShieldByRemoteAmount) + { + $this->container['repairShieldByRemoteAmount'] = $repairShieldByRemoteAmount; + + return $this; + } + + /** + * Gets repairShieldRemoteAmount + * + * @return int + */ + public function getRepairShieldRemoteAmount() + { + return $this->container['repairShieldRemoteAmount']; + } + + /** + * Sets repairShieldRemoteAmount + * + * @param int $repairShieldRemoteAmount repair_shield_remote_amount integer + * + * @return $this + */ + public function setRepairShieldRemoteAmount($repairShieldRemoteAmount) + { + $this->container['repairShieldRemoteAmount'] = $repairShieldRemoteAmount; + + return $this; + } + + /** + * Gets repairShieldSelfAmount + * + * @return int + */ + public function getRepairShieldSelfAmount() + { + return $this->container['repairShieldSelfAmount']; + } + + /** + * Sets repairShieldSelfAmount + * + * @param int $repairShieldSelfAmount repair_shield_self_amount integer + * + * @return $this + */ + public function setRepairShieldSelfAmount($repairShieldSelfAmount) + { + $this->container['repairShieldSelfAmount'] = $repairShieldSelfAmount; + + return $this; + } + + /** + * Gets selfDestructs + * + * @return int + */ + public function getSelfDestructs() + { + return $this->container['selfDestructs']; + } + + /** + * Sets selfDestructs + * + * @param int $selfDestructs self_destructs integer + * + * @return $this + */ + public function setSelfDestructs($selfDestructs) + { + $this->container['selfDestructs'] = $selfDestructs; + + return $this; + } + + /** + * Gets warpScramblePc + * + * @return int + */ + public function getWarpScramblePc() + { + return $this->container['warpScramblePc']; + } + + /** + * Sets warpScramblePc + * + * @param int $warpScramblePc warp_scramble_pc integer + * + * @return $this + */ + public function setWarpScramblePc($warpScramblePc) + { + $this->container['warpScramblePc'] = $warpScramblePc; + + return $this; + } + + /** + * Gets warpScrambledbyNpc + * + * @return int + */ + public function getWarpScrambledbyNpc() + { + return $this->container['warpScrambledbyNpc']; + } + + /** + * Sets warpScrambledbyNpc + * + * @param int $warpScrambledbyNpc warp_scrambledby_npc integer + * + * @return $this + */ + public function setWarpScrambledbyNpc($warpScrambledbyNpc) + { + $this->container['warpScrambledbyNpc'] = $warpScrambledbyNpc; + + return $this; + } + + /** + * Gets warpScrambledbyPc + * + * @return int + */ + public function getWarpScrambledbyPc() + { + return $this->container['warpScrambledbyPc']; + } + + /** + * Sets warpScrambledbyPc + * + * @param int $warpScrambledbyPc warp_scrambledby_pc integer + * + * @return $this + */ + public function setWarpScrambledbyPc($warpScrambledbyPc) + { + $this->container['warpScrambledbyPc'] = $warpScrambledbyPc; + + return $this; + } + + /** + * Gets weaponFlagSet + * + * @return int + */ + public function getWeaponFlagSet() + { + return $this->container['weaponFlagSet']; + } + + /** + * Sets weaponFlagSet + * + * @param int $weaponFlagSet weapon_flag_set integer + * + * @return $this + */ + public function setWeaponFlagSet($weaponFlagSet) + { + $this->container['weaponFlagSet'] = $weaponFlagSet; + + return $this; + } + + /** + * Gets webifiedbyNpc + * + * @return int + */ + public function getWebifiedbyNpc() + { + return $this->container['webifiedbyNpc']; + } + + /** + * Sets webifiedbyNpc + * + * @param int $webifiedbyNpc webifiedby_npc integer + * + * @return $this + */ + public function setWebifiedbyNpc($webifiedbyNpc) + { + $this->container['webifiedbyNpc'] = $webifiedbyNpc; + + return $this; + } + + /** + * Gets webifiedbyPc + * + * @return int + */ + public function getWebifiedbyPc() + { + return $this->container['webifiedbyPc']; + } + + /** + * Sets webifiedbyPc + * + * @param int $webifiedbyPc webifiedby_pc integer + * + * @return $this + */ + public function setWebifiedbyPc($webifiedbyPc) + { + $this->container['webifiedbyPc'] = $webifiedbyPc; + + return $this; + } + + /** + * Gets webifyingPc + * + * @return int + */ + public function getWebifyingPc() + { + return $this->container['webifyingPc']; + } + + /** + * Sets webifyingPc + * + * @param int $webifyingPc webifying_pc integer + * + * @return $this + */ + public function setWebifyingPc($webifyingPc) + { + $this->container['webifyingPc'] = $webifyingPc; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdStatsIndustry.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdStatsIndustry.php new file mode 100644 index 0000000..dbf06c5 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdStatsIndustry.php @@ -0,0 +1,1353 @@ + 'int', + 'jobsCancelled' => 'int', + 'jobsCompletedCopyBlueprint' => 'int', + 'jobsCompletedInvention' => 'int', + 'jobsCompletedManufacture' => 'int', + 'jobsCompletedManufactureAsteroid' => 'int', + 'jobsCompletedManufactureAsteroidQuantity' => 'int', + 'jobsCompletedManufactureCharge' => 'int', + 'jobsCompletedManufactureChargeQuantity' => 'int', + 'jobsCompletedManufactureCommodity' => 'int', + 'jobsCompletedManufactureCommodityQuantity' => 'int', + 'jobsCompletedManufactureDeployable' => 'int', + 'jobsCompletedManufactureDeployableQuantity' => 'int', + 'jobsCompletedManufactureDrone' => 'int', + 'jobsCompletedManufactureDroneQuantity' => 'int', + 'jobsCompletedManufactureImplant' => 'int', + 'jobsCompletedManufactureImplantQuantity' => 'int', + 'jobsCompletedManufactureModule' => 'int', + 'jobsCompletedManufactureModuleQuantity' => 'int', + 'jobsCompletedManufactureOther' => 'int', + 'jobsCompletedManufactureOtherQuantity' => 'int', + 'jobsCompletedManufactureShip' => 'int', + 'jobsCompletedManufactureShipQuantity' => 'int', + 'jobsCompletedManufactureStructure' => 'int', + 'jobsCompletedManufactureStructureQuantity' => 'int', + 'jobsCompletedManufactureSubsystem' => 'int', + 'jobsCompletedManufactureSubsystemQuantity' => 'int', + 'jobsCompletedMaterialProductivity' => 'int', + 'jobsCompletedTimeProductivity' => 'int', + 'jobsStartedCopyBlueprint' => 'int', + 'jobsStartedInvention' => 'int', + 'jobsStartedManufacture' => 'int', + 'jobsStartedMaterialProductivity' => 'int', + 'jobsStartedTimeProductivity' => 'int', + 'reprocessItem' => 'int', + 'reprocessItemQuantity' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'hackingSuccesses' => 'int64', + 'jobsCancelled' => 'int64', + 'jobsCompletedCopyBlueprint' => 'int64', + 'jobsCompletedInvention' => 'int64', + 'jobsCompletedManufacture' => 'int64', + 'jobsCompletedManufactureAsteroid' => 'int64', + 'jobsCompletedManufactureAsteroidQuantity' => 'int64', + 'jobsCompletedManufactureCharge' => 'int64', + 'jobsCompletedManufactureChargeQuantity' => 'int64', + 'jobsCompletedManufactureCommodity' => 'int64', + 'jobsCompletedManufactureCommodityQuantity' => 'int64', + 'jobsCompletedManufactureDeployable' => 'int64', + 'jobsCompletedManufactureDeployableQuantity' => 'int64', + 'jobsCompletedManufactureDrone' => 'int64', + 'jobsCompletedManufactureDroneQuantity' => 'int64', + 'jobsCompletedManufactureImplant' => 'int64', + 'jobsCompletedManufactureImplantQuantity' => 'int64', + 'jobsCompletedManufactureModule' => 'int64', + 'jobsCompletedManufactureModuleQuantity' => 'int64', + 'jobsCompletedManufactureOther' => 'int64', + 'jobsCompletedManufactureOtherQuantity' => 'int64', + 'jobsCompletedManufactureShip' => 'int64', + 'jobsCompletedManufactureShipQuantity' => 'int64', + 'jobsCompletedManufactureStructure' => 'int64', + 'jobsCompletedManufactureStructureQuantity' => 'int64', + 'jobsCompletedManufactureSubsystem' => 'int64', + 'jobsCompletedManufactureSubsystemQuantity' => 'int64', + 'jobsCompletedMaterialProductivity' => 'int64', + 'jobsCompletedTimeProductivity' => 'int64', + 'jobsStartedCopyBlueprint' => 'int64', + 'jobsStartedInvention' => 'int64', + 'jobsStartedManufacture' => 'int64', + 'jobsStartedMaterialProductivity' => 'int64', + 'jobsStartedTimeProductivity' => 'int64', + 'reprocessItem' => 'int64', + 'reprocessItemQuantity' => 'int64' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'hackingSuccesses' => 'hacking_successes', + 'jobsCancelled' => 'jobs_cancelled', + 'jobsCompletedCopyBlueprint' => 'jobs_completed_copy_blueprint', + 'jobsCompletedInvention' => 'jobs_completed_invention', + 'jobsCompletedManufacture' => 'jobs_completed_manufacture', + 'jobsCompletedManufactureAsteroid' => 'jobs_completed_manufacture_asteroid', + 'jobsCompletedManufactureAsteroidQuantity' => 'jobs_completed_manufacture_asteroid_quantity', + 'jobsCompletedManufactureCharge' => 'jobs_completed_manufacture_charge', + 'jobsCompletedManufactureChargeQuantity' => 'jobs_completed_manufacture_charge_quantity', + 'jobsCompletedManufactureCommodity' => 'jobs_completed_manufacture_commodity', + 'jobsCompletedManufactureCommodityQuantity' => 'jobs_completed_manufacture_commodity_quantity', + 'jobsCompletedManufactureDeployable' => 'jobs_completed_manufacture_deployable', + 'jobsCompletedManufactureDeployableQuantity' => 'jobs_completed_manufacture_deployable_quantity', + 'jobsCompletedManufactureDrone' => 'jobs_completed_manufacture_drone', + 'jobsCompletedManufactureDroneQuantity' => 'jobs_completed_manufacture_drone_quantity', + 'jobsCompletedManufactureImplant' => 'jobs_completed_manufacture_implant', + 'jobsCompletedManufactureImplantQuantity' => 'jobs_completed_manufacture_implant_quantity', + 'jobsCompletedManufactureModule' => 'jobs_completed_manufacture_module', + 'jobsCompletedManufactureModuleQuantity' => 'jobs_completed_manufacture_module_quantity', + 'jobsCompletedManufactureOther' => 'jobs_completed_manufacture_other', + 'jobsCompletedManufactureOtherQuantity' => 'jobs_completed_manufacture_other_quantity', + 'jobsCompletedManufactureShip' => 'jobs_completed_manufacture_ship', + 'jobsCompletedManufactureShipQuantity' => 'jobs_completed_manufacture_ship_quantity', + 'jobsCompletedManufactureStructure' => 'jobs_completed_manufacture_structure', + 'jobsCompletedManufactureStructureQuantity' => 'jobs_completed_manufacture_structure_quantity', + 'jobsCompletedManufactureSubsystem' => 'jobs_completed_manufacture_subsystem', + 'jobsCompletedManufactureSubsystemQuantity' => 'jobs_completed_manufacture_subsystem_quantity', + 'jobsCompletedMaterialProductivity' => 'jobs_completed_material_productivity', + 'jobsCompletedTimeProductivity' => 'jobs_completed_time_productivity', + 'jobsStartedCopyBlueprint' => 'jobs_started_copy_blueprint', + 'jobsStartedInvention' => 'jobs_started_invention', + 'jobsStartedManufacture' => 'jobs_started_manufacture', + 'jobsStartedMaterialProductivity' => 'jobs_started_material_productivity', + 'jobsStartedTimeProductivity' => 'jobs_started_time_productivity', + 'reprocessItem' => 'reprocess_item', + 'reprocessItemQuantity' => 'reprocess_item_quantity' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'hackingSuccesses' => 'setHackingSuccesses', + 'jobsCancelled' => 'setJobsCancelled', + 'jobsCompletedCopyBlueprint' => 'setJobsCompletedCopyBlueprint', + 'jobsCompletedInvention' => 'setJobsCompletedInvention', + 'jobsCompletedManufacture' => 'setJobsCompletedManufacture', + 'jobsCompletedManufactureAsteroid' => 'setJobsCompletedManufactureAsteroid', + 'jobsCompletedManufactureAsteroidQuantity' => 'setJobsCompletedManufactureAsteroidQuantity', + 'jobsCompletedManufactureCharge' => 'setJobsCompletedManufactureCharge', + 'jobsCompletedManufactureChargeQuantity' => 'setJobsCompletedManufactureChargeQuantity', + 'jobsCompletedManufactureCommodity' => 'setJobsCompletedManufactureCommodity', + 'jobsCompletedManufactureCommodityQuantity' => 'setJobsCompletedManufactureCommodityQuantity', + 'jobsCompletedManufactureDeployable' => 'setJobsCompletedManufactureDeployable', + 'jobsCompletedManufactureDeployableQuantity' => 'setJobsCompletedManufactureDeployableQuantity', + 'jobsCompletedManufactureDrone' => 'setJobsCompletedManufactureDrone', + 'jobsCompletedManufactureDroneQuantity' => 'setJobsCompletedManufactureDroneQuantity', + 'jobsCompletedManufactureImplant' => 'setJobsCompletedManufactureImplant', + 'jobsCompletedManufactureImplantQuantity' => 'setJobsCompletedManufactureImplantQuantity', + 'jobsCompletedManufactureModule' => 'setJobsCompletedManufactureModule', + 'jobsCompletedManufactureModuleQuantity' => 'setJobsCompletedManufactureModuleQuantity', + 'jobsCompletedManufactureOther' => 'setJobsCompletedManufactureOther', + 'jobsCompletedManufactureOtherQuantity' => 'setJobsCompletedManufactureOtherQuantity', + 'jobsCompletedManufactureShip' => 'setJobsCompletedManufactureShip', + 'jobsCompletedManufactureShipQuantity' => 'setJobsCompletedManufactureShipQuantity', + 'jobsCompletedManufactureStructure' => 'setJobsCompletedManufactureStructure', + 'jobsCompletedManufactureStructureQuantity' => 'setJobsCompletedManufactureStructureQuantity', + 'jobsCompletedManufactureSubsystem' => 'setJobsCompletedManufactureSubsystem', + 'jobsCompletedManufactureSubsystemQuantity' => 'setJobsCompletedManufactureSubsystemQuantity', + 'jobsCompletedMaterialProductivity' => 'setJobsCompletedMaterialProductivity', + 'jobsCompletedTimeProductivity' => 'setJobsCompletedTimeProductivity', + 'jobsStartedCopyBlueprint' => 'setJobsStartedCopyBlueprint', + 'jobsStartedInvention' => 'setJobsStartedInvention', + 'jobsStartedManufacture' => 'setJobsStartedManufacture', + 'jobsStartedMaterialProductivity' => 'setJobsStartedMaterialProductivity', + 'jobsStartedTimeProductivity' => 'setJobsStartedTimeProductivity', + 'reprocessItem' => 'setReprocessItem', + 'reprocessItemQuantity' => 'setReprocessItemQuantity' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'hackingSuccesses' => 'getHackingSuccesses', + 'jobsCancelled' => 'getJobsCancelled', + 'jobsCompletedCopyBlueprint' => 'getJobsCompletedCopyBlueprint', + 'jobsCompletedInvention' => 'getJobsCompletedInvention', + 'jobsCompletedManufacture' => 'getJobsCompletedManufacture', + 'jobsCompletedManufactureAsteroid' => 'getJobsCompletedManufactureAsteroid', + 'jobsCompletedManufactureAsteroidQuantity' => 'getJobsCompletedManufactureAsteroidQuantity', + 'jobsCompletedManufactureCharge' => 'getJobsCompletedManufactureCharge', + 'jobsCompletedManufactureChargeQuantity' => 'getJobsCompletedManufactureChargeQuantity', + 'jobsCompletedManufactureCommodity' => 'getJobsCompletedManufactureCommodity', + 'jobsCompletedManufactureCommodityQuantity' => 'getJobsCompletedManufactureCommodityQuantity', + 'jobsCompletedManufactureDeployable' => 'getJobsCompletedManufactureDeployable', + 'jobsCompletedManufactureDeployableQuantity' => 'getJobsCompletedManufactureDeployableQuantity', + 'jobsCompletedManufactureDrone' => 'getJobsCompletedManufactureDrone', + 'jobsCompletedManufactureDroneQuantity' => 'getJobsCompletedManufactureDroneQuantity', + 'jobsCompletedManufactureImplant' => 'getJobsCompletedManufactureImplant', + 'jobsCompletedManufactureImplantQuantity' => 'getJobsCompletedManufactureImplantQuantity', + 'jobsCompletedManufactureModule' => 'getJobsCompletedManufactureModule', + 'jobsCompletedManufactureModuleQuantity' => 'getJobsCompletedManufactureModuleQuantity', + 'jobsCompletedManufactureOther' => 'getJobsCompletedManufactureOther', + 'jobsCompletedManufactureOtherQuantity' => 'getJobsCompletedManufactureOtherQuantity', + 'jobsCompletedManufactureShip' => 'getJobsCompletedManufactureShip', + 'jobsCompletedManufactureShipQuantity' => 'getJobsCompletedManufactureShipQuantity', + 'jobsCompletedManufactureStructure' => 'getJobsCompletedManufactureStructure', + 'jobsCompletedManufactureStructureQuantity' => 'getJobsCompletedManufactureStructureQuantity', + 'jobsCompletedManufactureSubsystem' => 'getJobsCompletedManufactureSubsystem', + 'jobsCompletedManufactureSubsystemQuantity' => 'getJobsCompletedManufactureSubsystemQuantity', + 'jobsCompletedMaterialProductivity' => 'getJobsCompletedMaterialProductivity', + 'jobsCompletedTimeProductivity' => 'getJobsCompletedTimeProductivity', + 'jobsStartedCopyBlueprint' => 'getJobsStartedCopyBlueprint', + 'jobsStartedInvention' => 'getJobsStartedInvention', + 'jobsStartedManufacture' => 'getJobsStartedManufacture', + 'jobsStartedMaterialProductivity' => 'getJobsStartedMaterialProductivity', + 'jobsStartedTimeProductivity' => 'getJobsStartedTimeProductivity', + 'reprocessItem' => 'getReprocessItem', + 'reprocessItemQuantity' => 'getReprocessItemQuantity' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['hackingSuccesses'] = isset($data['hackingSuccesses']) ? $data['hackingSuccesses'] : null; + $this->container['jobsCancelled'] = isset($data['jobsCancelled']) ? $data['jobsCancelled'] : null; + $this->container['jobsCompletedCopyBlueprint'] = isset($data['jobsCompletedCopyBlueprint']) ? $data['jobsCompletedCopyBlueprint'] : null; + $this->container['jobsCompletedInvention'] = isset($data['jobsCompletedInvention']) ? $data['jobsCompletedInvention'] : null; + $this->container['jobsCompletedManufacture'] = isset($data['jobsCompletedManufacture']) ? $data['jobsCompletedManufacture'] : null; + $this->container['jobsCompletedManufactureAsteroid'] = isset($data['jobsCompletedManufactureAsteroid']) ? $data['jobsCompletedManufactureAsteroid'] : null; + $this->container['jobsCompletedManufactureAsteroidQuantity'] = isset($data['jobsCompletedManufactureAsteroidQuantity']) ? $data['jobsCompletedManufactureAsteroidQuantity'] : null; + $this->container['jobsCompletedManufactureCharge'] = isset($data['jobsCompletedManufactureCharge']) ? $data['jobsCompletedManufactureCharge'] : null; + $this->container['jobsCompletedManufactureChargeQuantity'] = isset($data['jobsCompletedManufactureChargeQuantity']) ? $data['jobsCompletedManufactureChargeQuantity'] : null; + $this->container['jobsCompletedManufactureCommodity'] = isset($data['jobsCompletedManufactureCommodity']) ? $data['jobsCompletedManufactureCommodity'] : null; + $this->container['jobsCompletedManufactureCommodityQuantity'] = isset($data['jobsCompletedManufactureCommodityQuantity']) ? $data['jobsCompletedManufactureCommodityQuantity'] : null; + $this->container['jobsCompletedManufactureDeployable'] = isset($data['jobsCompletedManufactureDeployable']) ? $data['jobsCompletedManufactureDeployable'] : null; + $this->container['jobsCompletedManufactureDeployableQuantity'] = isset($data['jobsCompletedManufactureDeployableQuantity']) ? $data['jobsCompletedManufactureDeployableQuantity'] : null; + $this->container['jobsCompletedManufactureDrone'] = isset($data['jobsCompletedManufactureDrone']) ? $data['jobsCompletedManufactureDrone'] : null; + $this->container['jobsCompletedManufactureDroneQuantity'] = isset($data['jobsCompletedManufactureDroneQuantity']) ? $data['jobsCompletedManufactureDroneQuantity'] : null; + $this->container['jobsCompletedManufactureImplant'] = isset($data['jobsCompletedManufactureImplant']) ? $data['jobsCompletedManufactureImplant'] : null; + $this->container['jobsCompletedManufactureImplantQuantity'] = isset($data['jobsCompletedManufactureImplantQuantity']) ? $data['jobsCompletedManufactureImplantQuantity'] : null; + $this->container['jobsCompletedManufactureModule'] = isset($data['jobsCompletedManufactureModule']) ? $data['jobsCompletedManufactureModule'] : null; + $this->container['jobsCompletedManufactureModuleQuantity'] = isset($data['jobsCompletedManufactureModuleQuantity']) ? $data['jobsCompletedManufactureModuleQuantity'] : null; + $this->container['jobsCompletedManufactureOther'] = isset($data['jobsCompletedManufactureOther']) ? $data['jobsCompletedManufactureOther'] : null; + $this->container['jobsCompletedManufactureOtherQuantity'] = isset($data['jobsCompletedManufactureOtherQuantity']) ? $data['jobsCompletedManufactureOtherQuantity'] : null; + $this->container['jobsCompletedManufactureShip'] = isset($data['jobsCompletedManufactureShip']) ? $data['jobsCompletedManufactureShip'] : null; + $this->container['jobsCompletedManufactureShipQuantity'] = isset($data['jobsCompletedManufactureShipQuantity']) ? $data['jobsCompletedManufactureShipQuantity'] : null; + $this->container['jobsCompletedManufactureStructure'] = isset($data['jobsCompletedManufactureStructure']) ? $data['jobsCompletedManufactureStructure'] : null; + $this->container['jobsCompletedManufactureStructureQuantity'] = isset($data['jobsCompletedManufactureStructureQuantity']) ? $data['jobsCompletedManufactureStructureQuantity'] : null; + $this->container['jobsCompletedManufactureSubsystem'] = isset($data['jobsCompletedManufactureSubsystem']) ? $data['jobsCompletedManufactureSubsystem'] : null; + $this->container['jobsCompletedManufactureSubsystemQuantity'] = isset($data['jobsCompletedManufactureSubsystemQuantity']) ? $data['jobsCompletedManufactureSubsystemQuantity'] : null; + $this->container['jobsCompletedMaterialProductivity'] = isset($data['jobsCompletedMaterialProductivity']) ? $data['jobsCompletedMaterialProductivity'] : null; + $this->container['jobsCompletedTimeProductivity'] = isset($data['jobsCompletedTimeProductivity']) ? $data['jobsCompletedTimeProductivity'] : null; + $this->container['jobsStartedCopyBlueprint'] = isset($data['jobsStartedCopyBlueprint']) ? $data['jobsStartedCopyBlueprint'] : null; + $this->container['jobsStartedInvention'] = isset($data['jobsStartedInvention']) ? $data['jobsStartedInvention'] : null; + $this->container['jobsStartedManufacture'] = isset($data['jobsStartedManufacture']) ? $data['jobsStartedManufacture'] : null; + $this->container['jobsStartedMaterialProductivity'] = isset($data['jobsStartedMaterialProductivity']) ? $data['jobsStartedMaterialProductivity'] : null; + $this->container['jobsStartedTimeProductivity'] = isset($data['jobsStartedTimeProductivity']) ? $data['jobsStartedTimeProductivity'] : null; + $this->container['reprocessItem'] = isset($data['reprocessItem']) ? $data['reprocessItem'] : null; + $this->container['reprocessItemQuantity'] = isset($data['reprocessItemQuantity']) ? $data['reprocessItemQuantity'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets hackingSuccesses + * + * @return int + */ + public function getHackingSuccesses() + { + return $this->container['hackingSuccesses']; + } + + /** + * Sets hackingSuccesses + * + * @param int $hackingSuccesses hacking_successes integer + * + * @return $this + */ + public function setHackingSuccesses($hackingSuccesses) + { + $this->container['hackingSuccesses'] = $hackingSuccesses; + + return $this; + } + + /** + * Gets jobsCancelled + * + * @return int + */ + public function getJobsCancelled() + { + return $this->container['jobsCancelled']; + } + + /** + * Sets jobsCancelled + * + * @param int $jobsCancelled jobs_cancelled integer + * + * @return $this + */ + public function setJobsCancelled($jobsCancelled) + { + $this->container['jobsCancelled'] = $jobsCancelled; + + return $this; + } + + /** + * Gets jobsCompletedCopyBlueprint + * + * @return int + */ + public function getJobsCompletedCopyBlueprint() + { + return $this->container['jobsCompletedCopyBlueprint']; + } + + /** + * Sets jobsCompletedCopyBlueprint + * + * @param int $jobsCompletedCopyBlueprint jobs_completed_copy_blueprint integer + * + * @return $this + */ + public function setJobsCompletedCopyBlueprint($jobsCompletedCopyBlueprint) + { + $this->container['jobsCompletedCopyBlueprint'] = $jobsCompletedCopyBlueprint; + + return $this; + } + + /** + * Gets jobsCompletedInvention + * + * @return int + */ + public function getJobsCompletedInvention() + { + return $this->container['jobsCompletedInvention']; + } + + /** + * Sets jobsCompletedInvention + * + * @param int $jobsCompletedInvention jobs_completed_invention integer + * + * @return $this + */ + public function setJobsCompletedInvention($jobsCompletedInvention) + { + $this->container['jobsCompletedInvention'] = $jobsCompletedInvention; + + return $this; + } + + /** + * Gets jobsCompletedManufacture + * + * @return int + */ + public function getJobsCompletedManufacture() + { + return $this->container['jobsCompletedManufacture']; + } + + /** + * Sets jobsCompletedManufacture + * + * @param int $jobsCompletedManufacture jobs_completed_manufacture integer + * + * @return $this + */ + public function setJobsCompletedManufacture($jobsCompletedManufacture) + { + $this->container['jobsCompletedManufacture'] = $jobsCompletedManufacture; + + return $this; + } + + /** + * Gets jobsCompletedManufactureAsteroid + * + * @return int + */ + public function getJobsCompletedManufactureAsteroid() + { + return $this->container['jobsCompletedManufactureAsteroid']; + } + + /** + * Sets jobsCompletedManufactureAsteroid + * + * @param int $jobsCompletedManufactureAsteroid jobs_completed_manufacture_asteroid integer + * + * @return $this + */ + public function setJobsCompletedManufactureAsteroid($jobsCompletedManufactureAsteroid) + { + $this->container['jobsCompletedManufactureAsteroid'] = $jobsCompletedManufactureAsteroid; + + return $this; + } + + /** + * Gets jobsCompletedManufactureAsteroidQuantity + * + * @return int + */ + public function getJobsCompletedManufactureAsteroidQuantity() + { + return $this->container['jobsCompletedManufactureAsteroidQuantity']; + } + + /** + * Sets jobsCompletedManufactureAsteroidQuantity + * + * @param int $jobsCompletedManufactureAsteroidQuantity jobs_completed_manufacture_asteroid_quantity integer + * + * @return $this + */ + public function setJobsCompletedManufactureAsteroidQuantity($jobsCompletedManufactureAsteroidQuantity) + { + $this->container['jobsCompletedManufactureAsteroidQuantity'] = $jobsCompletedManufactureAsteroidQuantity; + + return $this; + } + + /** + * Gets jobsCompletedManufactureCharge + * + * @return int + */ + public function getJobsCompletedManufactureCharge() + { + return $this->container['jobsCompletedManufactureCharge']; + } + + /** + * Sets jobsCompletedManufactureCharge + * + * @param int $jobsCompletedManufactureCharge jobs_completed_manufacture_charge integer + * + * @return $this + */ + public function setJobsCompletedManufactureCharge($jobsCompletedManufactureCharge) + { + $this->container['jobsCompletedManufactureCharge'] = $jobsCompletedManufactureCharge; + + return $this; + } + + /** + * Gets jobsCompletedManufactureChargeQuantity + * + * @return int + */ + public function getJobsCompletedManufactureChargeQuantity() + { + return $this->container['jobsCompletedManufactureChargeQuantity']; + } + + /** + * Sets jobsCompletedManufactureChargeQuantity + * + * @param int $jobsCompletedManufactureChargeQuantity jobs_completed_manufacture_charge_quantity integer + * + * @return $this + */ + public function setJobsCompletedManufactureChargeQuantity($jobsCompletedManufactureChargeQuantity) + { + $this->container['jobsCompletedManufactureChargeQuantity'] = $jobsCompletedManufactureChargeQuantity; + + return $this; + } + + /** + * Gets jobsCompletedManufactureCommodity + * + * @return int + */ + public function getJobsCompletedManufactureCommodity() + { + return $this->container['jobsCompletedManufactureCommodity']; + } + + /** + * Sets jobsCompletedManufactureCommodity + * + * @param int $jobsCompletedManufactureCommodity jobs_completed_manufacture_commodity integer + * + * @return $this + */ + public function setJobsCompletedManufactureCommodity($jobsCompletedManufactureCommodity) + { + $this->container['jobsCompletedManufactureCommodity'] = $jobsCompletedManufactureCommodity; + + return $this; + } + + /** + * Gets jobsCompletedManufactureCommodityQuantity + * + * @return int + */ + public function getJobsCompletedManufactureCommodityQuantity() + { + return $this->container['jobsCompletedManufactureCommodityQuantity']; + } + + /** + * Sets jobsCompletedManufactureCommodityQuantity + * + * @param int $jobsCompletedManufactureCommodityQuantity jobs_completed_manufacture_commodity_quantity integer + * + * @return $this + */ + public function setJobsCompletedManufactureCommodityQuantity($jobsCompletedManufactureCommodityQuantity) + { + $this->container['jobsCompletedManufactureCommodityQuantity'] = $jobsCompletedManufactureCommodityQuantity; + + return $this; + } + + /** + * Gets jobsCompletedManufactureDeployable + * + * @return int + */ + public function getJobsCompletedManufactureDeployable() + { + return $this->container['jobsCompletedManufactureDeployable']; + } + + /** + * Sets jobsCompletedManufactureDeployable + * + * @param int $jobsCompletedManufactureDeployable jobs_completed_manufacture_deployable integer + * + * @return $this + */ + public function setJobsCompletedManufactureDeployable($jobsCompletedManufactureDeployable) + { + $this->container['jobsCompletedManufactureDeployable'] = $jobsCompletedManufactureDeployable; + + return $this; + } + + /** + * Gets jobsCompletedManufactureDeployableQuantity + * + * @return int + */ + public function getJobsCompletedManufactureDeployableQuantity() + { + return $this->container['jobsCompletedManufactureDeployableQuantity']; + } + + /** + * Sets jobsCompletedManufactureDeployableQuantity + * + * @param int $jobsCompletedManufactureDeployableQuantity jobs_completed_manufacture_deployable_quantity integer + * + * @return $this + */ + public function setJobsCompletedManufactureDeployableQuantity($jobsCompletedManufactureDeployableQuantity) + { + $this->container['jobsCompletedManufactureDeployableQuantity'] = $jobsCompletedManufactureDeployableQuantity; + + return $this; + } + + /** + * Gets jobsCompletedManufactureDrone + * + * @return int + */ + public function getJobsCompletedManufactureDrone() + { + return $this->container['jobsCompletedManufactureDrone']; + } + + /** + * Sets jobsCompletedManufactureDrone + * + * @param int $jobsCompletedManufactureDrone jobs_completed_manufacture_drone integer + * + * @return $this + */ + public function setJobsCompletedManufactureDrone($jobsCompletedManufactureDrone) + { + $this->container['jobsCompletedManufactureDrone'] = $jobsCompletedManufactureDrone; + + return $this; + } + + /** + * Gets jobsCompletedManufactureDroneQuantity + * + * @return int + */ + public function getJobsCompletedManufactureDroneQuantity() + { + return $this->container['jobsCompletedManufactureDroneQuantity']; + } + + /** + * Sets jobsCompletedManufactureDroneQuantity + * + * @param int $jobsCompletedManufactureDroneQuantity jobs_completed_manufacture_drone_quantity integer + * + * @return $this + */ + public function setJobsCompletedManufactureDroneQuantity($jobsCompletedManufactureDroneQuantity) + { + $this->container['jobsCompletedManufactureDroneQuantity'] = $jobsCompletedManufactureDroneQuantity; + + return $this; + } + + /** + * Gets jobsCompletedManufactureImplant + * + * @return int + */ + public function getJobsCompletedManufactureImplant() + { + return $this->container['jobsCompletedManufactureImplant']; + } + + /** + * Sets jobsCompletedManufactureImplant + * + * @param int $jobsCompletedManufactureImplant jobs_completed_manufacture_implant integer + * + * @return $this + */ + public function setJobsCompletedManufactureImplant($jobsCompletedManufactureImplant) + { + $this->container['jobsCompletedManufactureImplant'] = $jobsCompletedManufactureImplant; + + return $this; + } + + /** + * Gets jobsCompletedManufactureImplantQuantity + * + * @return int + */ + public function getJobsCompletedManufactureImplantQuantity() + { + return $this->container['jobsCompletedManufactureImplantQuantity']; + } + + /** + * Sets jobsCompletedManufactureImplantQuantity + * + * @param int $jobsCompletedManufactureImplantQuantity jobs_completed_manufacture_implant_quantity integer + * + * @return $this + */ + public function setJobsCompletedManufactureImplantQuantity($jobsCompletedManufactureImplantQuantity) + { + $this->container['jobsCompletedManufactureImplantQuantity'] = $jobsCompletedManufactureImplantQuantity; + + return $this; + } + + /** + * Gets jobsCompletedManufactureModule + * + * @return int + */ + public function getJobsCompletedManufactureModule() + { + return $this->container['jobsCompletedManufactureModule']; + } + + /** + * Sets jobsCompletedManufactureModule + * + * @param int $jobsCompletedManufactureModule jobs_completed_manufacture_module integer + * + * @return $this + */ + public function setJobsCompletedManufactureModule($jobsCompletedManufactureModule) + { + $this->container['jobsCompletedManufactureModule'] = $jobsCompletedManufactureModule; + + return $this; + } + + /** + * Gets jobsCompletedManufactureModuleQuantity + * + * @return int + */ + public function getJobsCompletedManufactureModuleQuantity() + { + return $this->container['jobsCompletedManufactureModuleQuantity']; + } + + /** + * Sets jobsCompletedManufactureModuleQuantity + * + * @param int $jobsCompletedManufactureModuleQuantity jobs_completed_manufacture_module_quantity integer + * + * @return $this + */ + public function setJobsCompletedManufactureModuleQuantity($jobsCompletedManufactureModuleQuantity) + { + $this->container['jobsCompletedManufactureModuleQuantity'] = $jobsCompletedManufactureModuleQuantity; + + return $this; + } + + /** + * Gets jobsCompletedManufactureOther + * + * @return int + */ + public function getJobsCompletedManufactureOther() + { + return $this->container['jobsCompletedManufactureOther']; + } + + /** + * Sets jobsCompletedManufactureOther + * + * @param int $jobsCompletedManufactureOther jobs_completed_manufacture_other integer + * + * @return $this + */ + public function setJobsCompletedManufactureOther($jobsCompletedManufactureOther) + { + $this->container['jobsCompletedManufactureOther'] = $jobsCompletedManufactureOther; + + return $this; + } + + /** + * Gets jobsCompletedManufactureOtherQuantity + * + * @return int + */ + public function getJobsCompletedManufactureOtherQuantity() + { + return $this->container['jobsCompletedManufactureOtherQuantity']; + } + + /** + * Sets jobsCompletedManufactureOtherQuantity + * + * @param int $jobsCompletedManufactureOtherQuantity jobs_completed_manufacture_other_quantity integer + * + * @return $this + */ + public function setJobsCompletedManufactureOtherQuantity($jobsCompletedManufactureOtherQuantity) + { + $this->container['jobsCompletedManufactureOtherQuantity'] = $jobsCompletedManufactureOtherQuantity; + + return $this; + } + + /** + * Gets jobsCompletedManufactureShip + * + * @return int + */ + public function getJobsCompletedManufactureShip() + { + return $this->container['jobsCompletedManufactureShip']; + } + + /** + * Sets jobsCompletedManufactureShip + * + * @param int $jobsCompletedManufactureShip jobs_completed_manufacture_ship integer + * + * @return $this + */ + public function setJobsCompletedManufactureShip($jobsCompletedManufactureShip) + { + $this->container['jobsCompletedManufactureShip'] = $jobsCompletedManufactureShip; + + return $this; + } + + /** + * Gets jobsCompletedManufactureShipQuantity + * + * @return int + */ + public function getJobsCompletedManufactureShipQuantity() + { + return $this->container['jobsCompletedManufactureShipQuantity']; + } + + /** + * Sets jobsCompletedManufactureShipQuantity + * + * @param int $jobsCompletedManufactureShipQuantity jobs_completed_manufacture_ship_quantity integer + * + * @return $this + */ + public function setJobsCompletedManufactureShipQuantity($jobsCompletedManufactureShipQuantity) + { + $this->container['jobsCompletedManufactureShipQuantity'] = $jobsCompletedManufactureShipQuantity; + + return $this; + } + + /** + * Gets jobsCompletedManufactureStructure + * + * @return int + */ + public function getJobsCompletedManufactureStructure() + { + return $this->container['jobsCompletedManufactureStructure']; + } + + /** + * Sets jobsCompletedManufactureStructure + * + * @param int $jobsCompletedManufactureStructure jobs_completed_manufacture_structure integer + * + * @return $this + */ + public function setJobsCompletedManufactureStructure($jobsCompletedManufactureStructure) + { + $this->container['jobsCompletedManufactureStructure'] = $jobsCompletedManufactureStructure; + + return $this; + } + + /** + * Gets jobsCompletedManufactureStructureQuantity + * + * @return int + */ + public function getJobsCompletedManufactureStructureQuantity() + { + return $this->container['jobsCompletedManufactureStructureQuantity']; + } + + /** + * Sets jobsCompletedManufactureStructureQuantity + * + * @param int $jobsCompletedManufactureStructureQuantity jobs_completed_manufacture_structure_quantity integer + * + * @return $this + */ + public function setJobsCompletedManufactureStructureQuantity($jobsCompletedManufactureStructureQuantity) + { + $this->container['jobsCompletedManufactureStructureQuantity'] = $jobsCompletedManufactureStructureQuantity; + + return $this; + } + + /** + * Gets jobsCompletedManufactureSubsystem + * + * @return int + */ + public function getJobsCompletedManufactureSubsystem() + { + return $this->container['jobsCompletedManufactureSubsystem']; + } + + /** + * Sets jobsCompletedManufactureSubsystem + * + * @param int $jobsCompletedManufactureSubsystem jobs_completed_manufacture_subsystem integer + * + * @return $this + */ + public function setJobsCompletedManufactureSubsystem($jobsCompletedManufactureSubsystem) + { + $this->container['jobsCompletedManufactureSubsystem'] = $jobsCompletedManufactureSubsystem; + + return $this; + } + + /** + * Gets jobsCompletedManufactureSubsystemQuantity + * + * @return int + */ + public function getJobsCompletedManufactureSubsystemQuantity() + { + return $this->container['jobsCompletedManufactureSubsystemQuantity']; + } + + /** + * Sets jobsCompletedManufactureSubsystemQuantity + * + * @param int $jobsCompletedManufactureSubsystemQuantity jobs_completed_manufacture_subsystem_quantity integer + * + * @return $this + */ + public function setJobsCompletedManufactureSubsystemQuantity($jobsCompletedManufactureSubsystemQuantity) + { + $this->container['jobsCompletedManufactureSubsystemQuantity'] = $jobsCompletedManufactureSubsystemQuantity; + + return $this; + } + + /** + * Gets jobsCompletedMaterialProductivity + * + * @return int + */ + public function getJobsCompletedMaterialProductivity() + { + return $this->container['jobsCompletedMaterialProductivity']; + } + + /** + * Sets jobsCompletedMaterialProductivity + * + * @param int $jobsCompletedMaterialProductivity jobs_completed_material_productivity integer + * + * @return $this + */ + public function setJobsCompletedMaterialProductivity($jobsCompletedMaterialProductivity) + { + $this->container['jobsCompletedMaterialProductivity'] = $jobsCompletedMaterialProductivity; + + return $this; + } + + /** + * Gets jobsCompletedTimeProductivity + * + * @return int + */ + public function getJobsCompletedTimeProductivity() + { + return $this->container['jobsCompletedTimeProductivity']; + } + + /** + * Sets jobsCompletedTimeProductivity + * + * @param int $jobsCompletedTimeProductivity jobs_completed_time_productivity integer + * + * @return $this + */ + public function setJobsCompletedTimeProductivity($jobsCompletedTimeProductivity) + { + $this->container['jobsCompletedTimeProductivity'] = $jobsCompletedTimeProductivity; + + return $this; + } + + /** + * Gets jobsStartedCopyBlueprint + * + * @return int + */ + public function getJobsStartedCopyBlueprint() + { + return $this->container['jobsStartedCopyBlueprint']; + } + + /** + * Sets jobsStartedCopyBlueprint + * + * @param int $jobsStartedCopyBlueprint jobs_started_copy_blueprint integer + * + * @return $this + */ + public function setJobsStartedCopyBlueprint($jobsStartedCopyBlueprint) + { + $this->container['jobsStartedCopyBlueprint'] = $jobsStartedCopyBlueprint; + + return $this; + } + + /** + * Gets jobsStartedInvention + * + * @return int + */ + public function getJobsStartedInvention() + { + return $this->container['jobsStartedInvention']; + } + + /** + * Sets jobsStartedInvention + * + * @param int $jobsStartedInvention jobs_started_invention integer + * + * @return $this + */ + public function setJobsStartedInvention($jobsStartedInvention) + { + $this->container['jobsStartedInvention'] = $jobsStartedInvention; + + return $this; + } + + /** + * Gets jobsStartedManufacture + * + * @return int + */ + public function getJobsStartedManufacture() + { + return $this->container['jobsStartedManufacture']; + } + + /** + * Sets jobsStartedManufacture + * + * @param int $jobsStartedManufacture jobs_started_manufacture integer + * + * @return $this + */ + public function setJobsStartedManufacture($jobsStartedManufacture) + { + $this->container['jobsStartedManufacture'] = $jobsStartedManufacture; + + return $this; + } + + /** + * Gets jobsStartedMaterialProductivity + * + * @return int + */ + public function getJobsStartedMaterialProductivity() + { + return $this->container['jobsStartedMaterialProductivity']; + } + + /** + * Sets jobsStartedMaterialProductivity + * + * @param int $jobsStartedMaterialProductivity jobs_started_material_productivity integer + * + * @return $this + */ + public function setJobsStartedMaterialProductivity($jobsStartedMaterialProductivity) + { + $this->container['jobsStartedMaterialProductivity'] = $jobsStartedMaterialProductivity; + + return $this; + } + + /** + * Gets jobsStartedTimeProductivity + * + * @return int + */ + public function getJobsStartedTimeProductivity() + { + return $this->container['jobsStartedTimeProductivity']; + } + + /** + * Sets jobsStartedTimeProductivity + * + * @param int $jobsStartedTimeProductivity jobs_started_time_productivity integer + * + * @return $this + */ + public function setJobsStartedTimeProductivity($jobsStartedTimeProductivity) + { + $this->container['jobsStartedTimeProductivity'] = $jobsStartedTimeProductivity; + + return $this; + } + + /** + * Gets reprocessItem + * + * @return int + */ + public function getReprocessItem() + { + return $this->container['reprocessItem']; + } + + /** + * Sets reprocessItem + * + * @param int $reprocessItem reprocess_item integer + * + * @return $this + */ + public function setReprocessItem($reprocessItem) + { + $this->container['reprocessItem'] = $reprocessItem; + + return $this; + } + + /** + * Gets reprocessItemQuantity + * + * @return int + */ + public function getReprocessItemQuantity() + { + return $this->container['reprocessItemQuantity']; + } + + /** + * Sets reprocessItemQuantity + * + * @param int $reprocessItemQuantity reprocess_item_quantity integer + * + * @return $this + */ + public function setReprocessItemQuantity($reprocessItemQuantity) + { + $this->container['reprocessItemQuantity'] = $reprocessItemQuantity; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdStatsInventory.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdStatsInventory.php new file mode 100644 index 0000000..dd73e37 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdStatsInventory.php @@ -0,0 +1,333 @@ + 'int', + 'trashItemQuantity' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'abandonLootQuantity' => 'int64', + 'trashItemQuantity' => 'int64' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'abandonLootQuantity' => 'abandon_loot_quantity', + 'trashItemQuantity' => 'trash_item_quantity' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'abandonLootQuantity' => 'setAbandonLootQuantity', + 'trashItemQuantity' => 'setTrashItemQuantity' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'abandonLootQuantity' => 'getAbandonLootQuantity', + 'trashItemQuantity' => 'getTrashItemQuantity' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['abandonLootQuantity'] = isset($data['abandonLootQuantity']) ? $data['abandonLootQuantity'] : null; + $this->container['trashItemQuantity'] = isset($data['trashItemQuantity']) ? $data['trashItemQuantity'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets abandonLootQuantity + * + * @return int + */ + public function getAbandonLootQuantity() + { + return $this->container['abandonLootQuantity']; + } + + /** + * Sets abandonLootQuantity + * + * @param int $abandonLootQuantity abandon_loot_quantity integer + * + * @return $this + */ + public function setAbandonLootQuantity($abandonLootQuantity) + { + $this->container['abandonLootQuantity'] = $abandonLootQuantity; + + return $this; + } + + /** + * Gets trashItemQuantity + * + * @return int + */ + public function getTrashItemQuantity() + { + return $this->container['trashItemQuantity']; + } + + /** + * Sets trashItemQuantity + * + * @param int $trashItemQuantity trash_item_quantity integer + * + * @return $this + */ + public function setTrashItemQuantity($trashItemQuantity) + { + $this->container['trashItemQuantity'] = $trashItemQuantity; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdStatsIsk.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdStatsIsk.php new file mode 100644 index 0000000..e4332b6 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdStatsIsk.php @@ -0,0 +1,333 @@ + 'int', + 'out' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'in' => 'int64', + 'out' => 'int64' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'in' => 'in', + 'out' => 'out' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'in' => 'setIn', + 'out' => 'setOut' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'in' => 'getIn', + 'out' => 'getOut' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['in'] = isset($data['in']) ? $data['in'] : null; + $this->container['out'] = isset($data['out']) ? $data['out'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets in + * + * @return int + */ + public function getIn() + { + return $this->container['in']; + } + + /** + * Sets in + * + * @param int $in in integer + * + * @return $this + */ + public function setIn($in) + { + $this->container['in'] = $in; + + return $this; + } + + /** + * Gets out + * + * @return int + */ + public function getOut() + { + return $this->container['out']; + } + + /** + * Sets out + * + * @param int $out out integer + * + * @return $this + */ + public function setOut($out) + { + $this->container['out'] = $out; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdStatsMarket.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdStatsMarket.php new file mode 100644 index 0000000..d9cb853 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdStatsMarket.php @@ -0,0 +1,663 @@ + 'int', + 'acceptContractsItemExchange' => 'int', + 'buyOrdersPlaced' => 'int', + 'cancelMarketOrder' => 'int', + 'createContractsAuction' => 'int', + 'createContractsCourier' => 'int', + 'createContractsItemExchange' => 'int', + 'deliverCourierContract' => 'int', + 'iskGained' => 'int', + 'iskSpent' => 'int', + 'modifyMarketOrder' => 'int', + 'searchContracts' => 'int', + 'sellOrdersPlaced' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'acceptContractsCourier' => 'int64', + 'acceptContractsItemExchange' => 'int64', + 'buyOrdersPlaced' => 'int64', + 'cancelMarketOrder' => 'int64', + 'createContractsAuction' => 'int64', + 'createContractsCourier' => 'int64', + 'createContractsItemExchange' => 'int64', + 'deliverCourierContract' => 'int64', + 'iskGained' => 'int64', + 'iskSpent' => 'int64', + 'modifyMarketOrder' => 'int64', + 'searchContracts' => 'int64', + 'sellOrdersPlaced' => 'int64' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'acceptContractsCourier' => 'accept_contracts_courier', + 'acceptContractsItemExchange' => 'accept_contracts_item_exchange', + 'buyOrdersPlaced' => 'buy_orders_placed', + 'cancelMarketOrder' => 'cancel_market_order', + 'createContractsAuction' => 'create_contracts_auction', + 'createContractsCourier' => 'create_contracts_courier', + 'createContractsItemExchange' => 'create_contracts_item_exchange', + 'deliverCourierContract' => 'deliver_courier_contract', + 'iskGained' => 'isk_gained', + 'iskSpent' => 'isk_spent', + 'modifyMarketOrder' => 'modify_market_order', + 'searchContracts' => 'search_contracts', + 'sellOrdersPlaced' => 'sell_orders_placed' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'acceptContractsCourier' => 'setAcceptContractsCourier', + 'acceptContractsItemExchange' => 'setAcceptContractsItemExchange', + 'buyOrdersPlaced' => 'setBuyOrdersPlaced', + 'cancelMarketOrder' => 'setCancelMarketOrder', + 'createContractsAuction' => 'setCreateContractsAuction', + 'createContractsCourier' => 'setCreateContractsCourier', + 'createContractsItemExchange' => 'setCreateContractsItemExchange', + 'deliverCourierContract' => 'setDeliverCourierContract', + 'iskGained' => 'setIskGained', + 'iskSpent' => 'setIskSpent', + 'modifyMarketOrder' => 'setModifyMarketOrder', + 'searchContracts' => 'setSearchContracts', + 'sellOrdersPlaced' => 'setSellOrdersPlaced' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'acceptContractsCourier' => 'getAcceptContractsCourier', + 'acceptContractsItemExchange' => 'getAcceptContractsItemExchange', + 'buyOrdersPlaced' => 'getBuyOrdersPlaced', + 'cancelMarketOrder' => 'getCancelMarketOrder', + 'createContractsAuction' => 'getCreateContractsAuction', + 'createContractsCourier' => 'getCreateContractsCourier', + 'createContractsItemExchange' => 'getCreateContractsItemExchange', + 'deliverCourierContract' => 'getDeliverCourierContract', + 'iskGained' => 'getIskGained', + 'iskSpent' => 'getIskSpent', + 'modifyMarketOrder' => 'getModifyMarketOrder', + 'searchContracts' => 'getSearchContracts', + 'sellOrdersPlaced' => 'getSellOrdersPlaced' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['acceptContractsCourier'] = isset($data['acceptContractsCourier']) ? $data['acceptContractsCourier'] : null; + $this->container['acceptContractsItemExchange'] = isset($data['acceptContractsItemExchange']) ? $data['acceptContractsItemExchange'] : null; + $this->container['buyOrdersPlaced'] = isset($data['buyOrdersPlaced']) ? $data['buyOrdersPlaced'] : null; + $this->container['cancelMarketOrder'] = isset($data['cancelMarketOrder']) ? $data['cancelMarketOrder'] : null; + $this->container['createContractsAuction'] = isset($data['createContractsAuction']) ? $data['createContractsAuction'] : null; + $this->container['createContractsCourier'] = isset($data['createContractsCourier']) ? $data['createContractsCourier'] : null; + $this->container['createContractsItemExchange'] = isset($data['createContractsItemExchange']) ? $data['createContractsItemExchange'] : null; + $this->container['deliverCourierContract'] = isset($data['deliverCourierContract']) ? $data['deliverCourierContract'] : null; + $this->container['iskGained'] = isset($data['iskGained']) ? $data['iskGained'] : null; + $this->container['iskSpent'] = isset($data['iskSpent']) ? $data['iskSpent'] : null; + $this->container['modifyMarketOrder'] = isset($data['modifyMarketOrder']) ? $data['modifyMarketOrder'] : null; + $this->container['searchContracts'] = isset($data['searchContracts']) ? $data['searchContracts'] : null; + $this->container['sellOrdersPlaced'] = isset($data['sellOrdersPlaced']) ? $data['sellOrdersPlaced'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets acceptContractsCourier + * + * @return int + */ + public function getAcceptContractsCourier() + { + return $this->container['acceptContractsCourier']; + } + + /** + * Sets acceptContractsCourier + * + * @param int $acceptContractsCourier accept_contracts_courier integer + * + * @return $this + */ + public function setAcceptContractsCourier($acceptContractsCourier) + { + $this->container['acceptContractsCourier'] = $acceptContractsCourier; + + return $this; + } + + /** + * Gets acceptContractsItemExchange + * + * @return int + */ + public function getAcceptContractsItemExchange() + { + return $this->container['acceptContractsItemExchange']; + } + + /** + * Sets acceptContractsItemExchange + * + * @param int $acceptContractsItemExchange accept_contracts_item_exchange integer + * + * @return $this + */ + public function setAcceptContractsItemExchange($acceptContractsItemExchange) + { + $this->container['acceptContractsItemExchange'] = $acceptContractsItemExchange; + + return $this; + } + + /** + * Gets buyOrdersPlaced + * + * @return int + */ + public function getBuyOrdersPlaced() + { + return $this->container['buyOrdersPlaced']; + } + + /** + * Sets buyOrdersPlaced + * + * @param int $buyOrdersPlaced buy_orders_placed integer + * + * @return $this + */ + public function setBuyOrdersPlaced($buyOrdersPlaced) + { + $this->container['buyOrdersPlaced'] = $buyOrdersPlaced; + + return $this; + } + + /** + * Gets cancelMarketOrder + * + * @return int + */ + public function getCancelMarketOrder() + { + return $this->container['cancelMarketOrder']; + } + + /** + * Sets cancelMarketOrder + * + * @param int $cancelMarketOrder cancel_market_order integer + * + * @return $this + */ + public function setCancelMarketOrder($cancelMarketOrder) + { + $this->container['cancelMarketOrder'] = $cancelMarketOrder; + + return $this; + } + + /** + * Gets createContractsAuction + * + * @return int + */ + public function getCreateContractsAuction() + { + return $this->container['createContractsAuction']; + } + + /** + * Sets createContractsAuction + * + * @param int $createContractsAuction create_contracts_auction integer + * + * @return $this + */ + public function setCreateContractsAuction($createContractsAuction) + { + $this->container['createContractsAuction'] = $createContractsAuction; + + return $this; + } + + /** + * Gets createContractsCourier + * + * @return int + */ + public function getCreateContractsCourier() + { + return $this->container['createContractsCourier']; + } + + /** + * Sets createContractsCourier + * + * @param int $createContractsCourier create_contracts_courier integer + * + * @return $this + */ + public function setCreateContractsCourier($createContractsCourier) + { + $this->container['createContractsCourier'] = $createContractsCourier; + + return $this; + } + + /** + * Gets createContractsItemExchange + * + * @return int + */ + public function getCreateContractsItemExchange() + { + return $this->container['createContractsItemExchange']; + } + + /** + * Sets createContractsItemExchange + * + * @param int $createContractsItemExchange create_contracts_item_exchange integer + * + * @return $this + */ + public function setCreateContractsItemExchange($createContractsItemExchange) + { + $this->container['createContractsItemExchange'] = $createContractsItemExchange; + + return $this; + } + + /** + * Gets deliverCourierContract + * + * @return int + */ + public function getDeliverCourierContract() + { + return $this->container['deliverCourierContract']; + } + + /** + * Sets deliverCourierContract + * + * @param int $deliverCourierContract deliver_courier_contract integer + * + * @return $this + */ + public function setDeliverCourierContract($deliverCourierContract) + { + $this->container['deliverCourierContract'] = $deliverCourierContract; + + return $this; + } + + /** + * Gets iskGained + * + * @return int + */ + public function getIskGained() + { + return $this->container['iskGained']; + } + + /** + * Sets iskGained + * + * @param int $iskGained isk_gained integer + * + * @return $this + */ + public function setIskGained($iskGained) + { + $this->container['iskGained'] = $iskGained; + + return $this; + } + + /** + * Gets iskSpent + * + * @return int + */ + public function getIskSpent() + { + return $this->container['iskSpent']; + } + + /** + * Sets iskSpent + * + * @param int $iskSpent isk_spent integer + * + * @return $this + */ + public function setIskSpent($iskSpent) + { + $this->container['iskSpent'] = $iskSpent; + + return $this; + } + + /** + * Gets modifyMarketOrder + * + * @return int + */ + public function getModifyMarketOrder() + { + return $this->container['modifyMarketOrder']; + } + + /** + * Sets modifyMarketOrder + * + * @param int $modifyMarketOrder modify_market_order integer + * + * @return $this + */ + public function setModifyMarketOrder($modifyMarketOrder) + { + $this->container['modifyMarketOrder'] = $modifyMarketOrder; + + return $this; + } + + /** + * Gets searchContracts + * + * @return int + */ + public function getSearchContracts() + { + return $this->container['searchContracts']; + } + + /** + * Sets searchContracts + * + * @param int $searchContracts search_contracts integer + * + * @return $this + */ + public function setSearchContracts($searchContracts) + { + $this->container['searchContracts'] = $searchContracts; + + return $this; + } + + /** + * Gets sellOrdersPlaced + * + * @return int + */ + public function getSellOrdersPlaced() + { + return $this->container['sellOrdersPlaced']; + } + + /** + * Sets sellOrdersPlaced + * + * @param int $sellOrdersPlaced sell_orders_placed integer + * + * @return $this + */ + public function setSellOrdersPlaced($sellOrdersPlaced) + { + $this->container['sellOrdersPlaced'] = $sellOrdersPlaced; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdStatsMining.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdStatsMining.php new file mode 100644 index 0000000..681c3a9 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdStatsMining.php @@ -0,0 +1,843 @@ + 'int', + 'oreArkonor' => 'int', + 'oreBistot' => 'int', + 'oreCrokite' => 'int', + 'oreDarkOchre' => 'int', + 'oreGneiss' => 'int', + 'oreHarvestableCloud' => 'int', + 'oreHedbergite' => 'int', + 'oreHemorphite' => 'int', + 'oreIce' => 'int', + 'oreJaspet' => 'int', + 'oreKernite' => 'int', + 'oreMercoxit' => 'int', + 'oreOmber' => 'int', + 'orePlagioclase' => 'int', + 'orePyroxeres' => 'int', + 'oreScordite' => 'int', + 'oreSpodumain' => 'int', + 'oreVeldspar' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'droneMine' => 'int64', + 'oreArkonor' => 'int64', + 'oreBistot' => 'int64', + 'oreCrokite' => 'int64', + 'oreDarkOchre' => 'int64', + 'oreGneiss' => 'int64', + 'oreHarvestableCloud' => 'int64', + 'oreHedbergite' => 'int64', + 'oreHemorphite' => 'int64', + 'oreIce' => 'int64', + 'oreJaspet' => 'int64', + 'oreKernite' => 'int64', + 'oreMercoxit' => 'int64', + 'oreOmber' => 'int64', + 'orePlagioclase' => 'int64', + 'orePyroxeres' => 'int64', + 'oreScordite' => 'int64', + 'oreSpodumain' => 'int64', + 'oreVeldspar' => 'int64' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'droneMine' => 'drone_mine', + 'oreArkonor' => 'ore_arkonor', + 'oreBistot' => 'ore_bistot', + 'oreCrokite' => 'ore_crokite', + 'oreDarkOchre' => 'ore_dark_ochre', + 'oreGneiss' => 'ore_gneiss', + 'oreHarvestableCloud' => 'ore_harvestable_cloud', + 'oreHedbergite' => 'ore_hedbergite', + 'oreHemorphite' => 'ore_hemorphite', + 'oreIce' => 'ore_ice', + 'oreJaspet' => 'ore_jaspet', + 'oreKernite' => 'ore_kernite', + 'oreMercoxit' => 'ore_mercoxit', + 'oreOmber' => 'ore_omber', + 'orePlagioclase' => 'ore_plagioclase', + 'orePyroxeres' => 'ore_pyroxeres', + 'oreScordite' => 'ore_scordite', + 'oreSpodumain' => 'ore_spodumain', + 'oreVeldspar' => 'ore_veldspar' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'droneMine' => 'setDroneMine', + 'oreArkonor' => 'setOreArkonor', + 'oreBistot' => 'setOreBistot', + 'oreCrokite' => 'setOreCrokite', + 'oreDarkOchre' => 'setOreDarkOchre', + 'oreGneiss' => 'setOreGneiss', + 'oreHarvestableCloud' => 'setOreHarvestableCloud', + 'oreHedbergite' => 'setOreHedbergite', + 'oreHemorphite' => 'setOreHemorphite', + 'oreIce' => 'setOreIce', + 'oreJaspet' => 'setOreJaspet', + 'oreKernite' => 'setOreKernite', + 'oreMercoxit' => 'setOreMercoxit', + 'oreOmber' => 'setOreOmber', + 'orePlagioclase' => 'setOrePlagioclase', + 'orePyroxeres' => 'setOrePyroxeres', + 'oreScordite' => 'setOreScordite', + 'oreSpodumain' => 'setOreSpodumain', + 'oreVeldspar' => 'setOreVeldspar' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'droneMine' => 'getDroneMine', + 'oreArkonor' => 'getOreArkonor', + 'oreBistot' => 'getOreBistot', + 'oreCrokite' => 'getOreCrokite', + 'oreDarkOchre' => 'getOreDarkOchre', + 'oreGneiss' => 'getOreGneiss', + 'oreHarvestableCloud' => 'getOreHarvestableCloud', + 'oreHedbergite' => 'getOreHedbergite', + 'oreHemorphite' => 'getOreHemorphite', + 'oreIce' => 'getOreIce', + 'oreJaspet' => 'getOreJaspet', + 'oreKernite' => 'getOreKernite', + 'oreMercoxit' => 'getOreMercoxit', + 'oreOmber' => 'getOreOmber', + 'orePlagioclase' => 'getOrePlagioclase', + 'orePyroxeres' => 'getOrePyroxeres', + 'oreScordite' => 'getOreScordite', + 'oreSpodumain' => 'getOreSpodumain', + 'oreVeldspar' => 'getOreVeldspar' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['droneMine'] = isset($data['droneMine']) ? $data['droneMine'] : null; + $this->container['oreArkonor'] = isset($data['oreArkonor']) ? $data['oreArkonor'] : null; + $this->container['oreBistot'] = isset($data['oreBistot']) ? $data['oreBistot'] : null; + $this->container['oreCrokite'] = isset($data['oreCrokite']) ? $data['oreCrokite'] : null; + $this->container['oreDarkOchre'] = isset($data['oreDarkOchre']) ? $data['oreDarkOchre'] : null; + $this->container['oreGneiss'] = isset($data['oreGneiss']) ? $data['oreGneiss'] : null; + $this->container['oreHarvestableCloud'] = isset($data['oreHarvestableCloud']) ? $data['oreHarvestableCloud'] : null; + $this->container['oreHedbergite'] = isset($data['oreHedbergite']) ? $data['oreHedbergite'] : null; + $this->container['oreHemorphite'] = isset($data['oreHemorphite']) ? $data['oreHemorphite'] : null; + $this->container['oreIce'] = isset($data['oreIce']) ? $data['oreIce'] : null; + $this->container['oreJaspet'] = isset($data['oreJaspet']) ? $data['oreJaspet'] : null; + $this->container['oreKernite'] = isset($data['oreKernite']) ? $data['oreKernite'] : null; + $this->container['oreMercoxit'] = isset($data['oreMercoxit']) ? $data['oreMercoxit'] : null; + $this->container['oreOmber'] = isset($data['oreOmber']) ? $data['oreOmber'] : null; + $this->container['orePlagioclase'] = isset($data['orePlagioclase']) ? $data['orePlagioclase'] : null; + $this->container['orePyroxeres'] = isset($data['orePyroxeres']) ? $data['orePyroxeres'] : null; + $this->container['oreScordite'] = isset($data['oreScordite']) ? $data['oreScordite'] : null; + $this->container['oreSpodumain'] = isset($data['oreSpodumain']) ? $data['oreSpodumain'] : null; + $this->container['oreVeldspar'] = isset($data['oreVeldspar']) ? $data['oreVeldspar'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets droneMine + * + * @return int + */ + public function getDroneMine() + { + return $this->container['droneMine']; + } + + /** + * Sets droneMine + * + * @param int $droneMine drone_mine integer + * + * @return $this + */ + public function setDroneMine($droneMine) + { + $this->container['droneMine'] = $droneMine; + + return $this; + } + + /** + * Gets oreArkonor + * + * @return int + */ + public function getOreArkonor() + { + return $this->container['oreArkonor']; + } + + /** + * Sets oreArkonor + * + * @param int $oreArkonor ore_arkonor integer + * + * @return $this + */ + public function setOreArkonor($oreArkonor) + { + $this->container['oreArkonor'] = $oreArkonor; + + return $this; + } + + /** + * Gets oreBistot + * + * @return int + */ + public function getOreBistot() + { + return $this->container['oreBistot']; + } + + /** + * Sets oreBistot + * + * @param int $oreBistot ore_bistot integer + * + * @return $this + */ + public function setOreBistot($oreBistot) + { + $this->container['oreBistot'] = $oreBistot; + + return $this; + } + + /** + * Gets oreCrokite + * + * @return int + */ + public function getOreCrokite() + { + return $this->container['oreCrokite']; + } + + /** + * Sets oreCrokite + * + * @param int $oreCrokite ore_crokite integer + * + * @return $this + */ + public function setOreCrokite($oreCrokite) + { + $this->container['oreCrokite'] = $oreCrokite; + + return $this; + } + + /** + * Gets oreDarkOchre + * + * @return int + */ + public function getOreDarkOchre() + { + return $this->container['oreDarkOchre']; + } + + /** + * Sets oreDarkOchre + * + * @param int $oreDarkOchre ore_dark_ochre integer + * + * @return $this + */ + public function setOreDarkOchre($oreDarkOchre) + { + $this->container['oreDarkOchre'] = $oreDarkOchre; + + return $this; + } + + /** + * Gets oreGneiss + * + * @return int + */ + public function getOreGneiss() + { + return $this->container['oreGneiss']; + } + + /** + * Sets oreGneiss + * + * @param int $oreGneiss ore_gneiss integer + * + * @return $this + */ + public function setOreGneiss($oreGneiss) + { + $this->container['oreGneiss'] = $oreGneiss; + + return $this; + } + + /** + * Gets oreHarvestableCloud + * + * @return int + */ + public function getOreHarvestableCloud() + { + return $this->container['oreHarvestableCloud']; + } + + /** + * Sets oreHarvestableCloud + * + * @param int $oreHarvestableCloud ore_harvestable_cloud integer + * + * @return $this + */ + public function setOreHarvestableCloud($oreHarvestableCloud) + { + $this->container['oreHarvestableCloud'] = $oreHarvestableCloud; + + return $this; + } + + /** + * Gets oreHedbergite + * + * @return int + */ + public function getOreHedbergite() + { + return $this->container['oreHedbergite']; + } + + /** + * Sets oreHedbergite + * + * @param int $oreHedbergite ore_hedbergite integer + * + * @return $this + */ + public function setOreHedbergite($oreHedbergite) + { + $this->container['oreHedbergite'] = $oreHedbergite; + + return $this; + } + + /** + * Gets oreHemorphite + * + * @return int + */ + public function getOreHemorphite() + { + return $this->container['oreHemorphite']; + } + + /** + * Sets oreHemorphite + * + * @param int $oreHemorphite ore_hemorphite integer + * + * @return $this + */ + public function setOreHemorphite($oreHemorphite) + { + $this->container['oreHemorphite'] = $oreHemorphite; + + return $this; + } + + /** + * Gets oreIce + * + * @return int + */ + public function getOreIce() + { + return $this->container['oreIce']; + } + + /** + * Sets oreIce + * + * @param int $oreIce ore_ice integer + * + * @return $this + */ + public function setOreIce($oreIce) + { + $this->container['oreIce'] = $oreIce; + + return $this; + } + + /** + * Gets oreJaspet + * + * @return int + */ + public function getOreJaspet() + { + return $this->container['oreJaspet']; + } + + /** + * Sets oreJaspet + * + * @param int $oreJaspet ore_jaspet integer + * + * @return $this + */ + public function setOreJaspet($oreJaspet) + { + $this->container['oreJaspet'] = $oreJaspet; + + return $this; + } + + /** + * Gets oreKernite + * + * @return int + */ + public function getOreKernite() + { + return $this->container['oreKernite']; + } + + /** + * Sets oreKernite + * + * @param int $oreKernite ore_kernite integer + * + * @return $this + */ + public function setOreKernite($oreKernite) + { + $this->container['oreKernite'] = $oreKernite; + + return $this; + } + + /** + * Gets oreMercoxit + * + * @return int + */ + public function getOreMercoxit() + { + return $this->container['oreMercoxit']; + } + + /** + * Sets oreMercoxit + * + * @param int $oreMercoxit ore_mercoxit integer + * + * @return $this + */ + public function setOreMercoxit($oreMercoxit) + { + $this->container['oreMercoxit'] = $oreMercoxit; + + return $this; + } + + /** + * Gets oreOmber + * + * @return int + */ + public function getOreOmber() + { + return $this->container['oreOmber']; + } + + /** + * Sets oreOmber + * + * @param int $oreOmber ore_omber integer + * + * @return $this + */ + public function setOreOmber($oreOmber) + { + $this->container['oreOmber'] = $oreOmber; + + return $this; + } + + /** + * Gets orePlagioclase + * + * @return int + */ + public function getOrePlagioclase() + { + return $this->container['orePlagioclase']; + } + + /** + * Sets orePlagioclase + * + * @param int $orePlagioclase ore_plagioclase integer + * + * @return $this + */ + public function setOrePlagioclase($orePlagioclase) + { + $this->container['orePlagioclase'] = $orePlagioclase; + + return $this; + } + + /** + * Gets orePyroxeres + * + * @return int + */ + public function getOrePyroxeres() + { + return $this->container['orePyroxeres']; + } + + /** + * Sets orePyroxeres + * + * @param int $orePyroxeres ore_pyroxeres integer + * + * @return $this + */ + public function setOrePyroxeres($orePyroxeres) + { + $this->container['orePyroxeres'] = $orePyroxeres; + + return $this; + } + + /** + * Gets oreScordite + * + * @return int + */ + public function getOreScordite() + { + return $this->container['oreScordite']; + } + + /** + * Sets oreScordite + * + * @param int $oreScordite ore_scordite integer + * + * @return $this + */ + public function setOreScordite($oreScordite) + { + $this->container['oreScordite'] = $oreScordite; + + return $this; + } + + /** + * Gets oreSpodumain + * + * @return int + */ + public function getOreSpodumain() + { + return $this->container['oreSpodumain']; + } + + /** + * Sets oreSpodumain + * + * @param int $oreSpodumain ore_spodumain integer + * + * @return $this + */ + public function setOreSpodumain($oreSpodumain) + { + $this->container['oreSpodumain'] = $oreSpodumain; + + return $this; + } + + /** + * Gets oreVeldspar + * + * @return int + */ + public function getOreVeldspar() + { + return $this->container['oreVeldspar']; + } + + /** + * Sets oreVeldspar + * + * @param int $oreVeldspar ore_veldspar integer + * + * @return $this + */ + public function setOreVeldspar($oreVeldspar) + { + $this->container['oreVeldspar'] = $oreVeldspar; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdStatsModule.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdStatsModule.php new file mode 100644 index 0000000..1c08697 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdStatsModule.php @@ -0,0 +1,2343 @@ + 'int', + 'activationsArmorRepairUnit' => 'int', + 'activationsArmorResistanceShiftHardener' => 'int', + 'activationsAutomatedTargetingSystem' => 'int', + 'activationsBastion' => 'int', + 'activationsBombLauncher' => 'int', + 'activationsCapacitorBooster' => 'int', + 'activationsCargoScanner' => 'int', + 'activationsCloakingDevice' => 'int', + 'activationsCloneVatBay' => 'int', + 'activationsCynosuralField' => 'int', + 'activationsDamageControl' => 'int', + 'activationsDataMiners' => 'int', + 'activationsDroneControlUnit' => 'int', + 'activationsDroneTrackingModules' => 'int', + 'activationsEccm' => 'int', + 'activationsEcm' => 'int', + 'activationsEcmBurst' => 'int', + 'activationsEnergyDestabilizer' => 'int', + 'activationsEnergyVampire' => 'int', + 'activationsEnergyWeapon' => 'int', + 'activationsFestivalLauncher' => 'int', + 'activationsFrequencyMiningLaser' => 'int', + 'activationsFueledArmorRepairer' => 'int', + 'activationsFueledShieldBooster' => 'int', + 'activationsGangCoordinator' => 'int', + 'activationsGasCloudHarvester' => 'int', + 'activationsHullRepairUnit' => 'int', + 'activationsHybridWeapon' => 'int', + 'activationsIndustrialCore' => 'int', + 'activationsInterdictionSphereLauncher' => 'int', + 'activationsMicroJumpDrive' => 'int', + 'activationsMiningLaser' => 'int', + 'activationsMissileLauncher' => 'int', + 'activationsPassiveTargetingSystem' => 'int', + 'activationsProbeLauncher' => 'int', + 'activationsProjectedEccm' => 'int', + 'activationsProjectileWeapon' => 'int', + 'activationsPropulsionModule' => 'int', + 'activationsRemoteArmorRepairer' => 'int', + 'activationsRemoteCapacitorTransmitter' => 'int', + 'activationsRemoteEcmBurst' => 'int', + 'activationsRemoteHullRepairer' => 'int', + 'activationsRemoteSensorBooster' => 'int', + 'activationsRemoteSensorDamper' => 'int', + 'activationsRemoteShieldBooster' => 'int', + 'activationsRemoteTrackingComputer' => 'int', + 'activationsSalvager' => 'int', + 'activationsSensorBooster' => 'int', + 'activationsShieldBooster' => 'int', + 'activationsShieldHardener' => 'int', + 'activationsShipScanner' => 'int', + 'activationsSiege' => 'int', + 'activationsSmartBomb' => 'int', + 'activationsStasisWeb' => 'int', + 'activationsStripMiner' => 'int', + 'activationsSuperWeapon' => 'int', + 'activationsSurveyScanner' => 'int', + 'activationsTargetBreaker' => 'int', + 'activationsTargetPainter' => 'int', + 'activationsTrackingComputer' => 'int', + 'activationsTrackingDisruptor' => 'int', + 'activationsTractorBeam' => 'int', + 'activationsTriage' => 'int', + 'activationsWarpDisruptFieldGenerator' => 'int', + 'activationsWarpScrambler' => 'int', + 'linkWeapons' => 'int', + 'overload' => 'int', + 'repairs' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'activationsArmorHardener' => 'int64', + 'activationsArmorRepairUnit' => 'int64', + 'activationsArmorResistanceShiftHardener' => 'int64', + 'activationsAutomatedTargetingSystem' => 'int64', + 'activationsBastion' => 'int64', + 'activationsBombLauncher' => 'int64', + 'activationsCapacitorBooster' => 'int64', + 'activationsCargoScanner' => 'int64', + 'activationsCloakingDevice' => 'int64', + 'activationsCloneVatBay' => 'int64', + 'activationsCynosuralField' => 'int64', + 'activationsDamageControl' => 'int64', + 'activationsDataMiners' => 'int64', + 'activationsDroneControlUnit' => 'int64', + 'activationsDroneTrackingModules' => 'int64', + 'activationsEccm' => 'int64', + 'activationsEcm' => 'int64', + 'activationsEcmBurst' => 'int64', + 'activationsEnergyDestabilizer' => 'int64', + 'activationsEnergyVampire' => 'int64', + 'activationsEnergyWeapon' => 'int64', + 'activationsFestivalLauncher' => 'int64', + 'activationsFrequencyMiningLaser' => 'int64', + 'activationsFueledArmorRepairer' => 'int64', + 'activationsFueledShieldBooster' => 'int64', + 'activationsGangCoordinator' => 'int64', + 'activationsGasCloudHarvester' => 'int64', + 'activationsHullRepairUnit' => 'int64', + 'activationsHybridWeapon' => 'int64', + 'activationsIndustrialCore' => 'int64', + 'activationsInterdictionSphereLauncher' => 'int64', + 'activationsMicroJumpDrive' => 'int64', + 'activationsMiningLaser' => 'int64', + 'activationsMissileLauncher' => 'int64', + 'activationsPassiveTargetingSystem' => 'int64', + 'activationsProbeLauncher' => 'int64', + 'activationsProjectedEccm' => 'int64', + 'activationsProjectileWeapon' => 'int64', + 'activationsPropulsionModule' => 'int64', + 'activationsRemoteArmorRepairer' => 'int64', + 'activationsRemoteCapacitorTransmitter' => 'int64', + 'activationsRemoteEcmBurst' => 'int64', + 'activationsRemoteHullRepairer' => 'int64', + 'activationsRemoteSensorBooster' => 'int64', + 'activationsRemoteSensorDamper' => 'int64', + 'activationsRemoteShieldBooster' => 'int64', + 'activationsRemoteTrackingComputer' => 'int64', + 'activationsSalvager' => 'int64', + 'activationsSensorBooster' => 'int64', + 'activationsShieldBooster' => 'int64', + 'activationsShieldHardener' => 'int64', + 'activationsShipScanner' => 'int64', + 'activationsSiege' => 'int64', + 'activationsSmartBomb' => 'int64', + 'activationsStasisWeb' => 'int64', + 'activationsStripMiner' => 'int64', + 'activationsSuperWeapon' => 'int64', + 'activationsSurveyScanner' => 'int64', + 'activationsTargetBreaker' => 'int64', + 'activationsTargetPainter' => 'int64', + 'activationsTrackingComputer' => 'int64', + 'activationsTrackingDisruptor' => 'int64', + 'activationsTractorBeam' => 'int64', + 'activationsTriage' => 'int64', + 'activationsWarpDisruptFieldGenerator' => 'int64', + 'activationsWarpScrambler' => 'int64', + 'linkWeapons' => 'int64', + 'overload' => 'int64', + 'repairs' => 'int64' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'activationsArmorHardener' => 'activations_armor_hardener', + 'activationsArmorRepairUnit' => 'activations_armor_repair_unit', + 'activationsArmorResistanceShiftHardener' => 'activations_armor_resistance_shift_hardener', + 'activationsAutomatedTargetingSystem' => 'activations_automated_targeting_system', + 'activationsBastion' => 'activations_bastion', + 'activationsBombLauncher' => 'activations_bomb_launcher', + 'activationsCapacitorBooster' => 'activations_capacitor_booster', + 'activationsCargoScanner' => 'activations_cargo_scanner', + 'activationsCloakingDevice' => 'activations_cloaking_device', + 'activationsCloneVatBay' => 'activations_clone_vat_bay', + 'activationsCynosuralField' => 'activations_cynosural_field', + 'activationsDamageControl' => 'activations_damage_control', + 'activationsDataMiners' => 'activations_data_miners', + 'activationsDroneControlUnit' => 'activations_drone_control_unit', + 'activationsDroneTrackingModules' => 'activations_drone_tracking_modules', + 'activationsEccm' => 'activations_eccm', + 'activationsEcm' => 'activations_ecm', + 'activationsEcmBurst' => 'activations_ecm_burst', + 'activationsEnergyDestabilizer' => 'activations_energy_destabilizer', + 'activationsEnergyVampire' => 'activations_energy_vampire', + 'activationsEnergyWeapon' => 'activations_energy_weapon', + 'activationsFestivalLauncher' => 'activations_festival_launcher', + 'activationsFrequencyMiningLaser' => 'activations_frequency_mining_laser', + 'activationsFueledArmorRepairer' => 'activations_fueled_armor_repairer', + 'activationsFueledShieldBooster' => 'activations_fueled_shield_booster', + 'activationsGangCoordinator' => 'activations_gang_coordinator', + 'activationsGasCloudHarvester' => 'activations_gas_cloud_harvester', + 'activationsHullRepairUnit' => 'activations_hull_repair_unit', + 'activationsHybridWeapon' => 'activations_hybrid_weapon', + 'activationsIndustrialCore' => 'activations_industrial_core', + 'activationsInterdictionSphereLauncher' => 'activations_interdiction_sphere_launcher', + 'activationsMicroJumpDrive' => 'activations_micro_jump_drive', + 'activationsMiningLaser' => 'activations_mining_laser', + 'activationsMissileLauncher' => 'activations_missile_launcher', + 'activationsPassiveTargetingSystem' => 'activations_passive_targeting_system', + 'activationsProbeLauncher' => 'activations_probe_launcher', + 'activationsProjectedEccm' => 'activations_projected_eccm', + 'activationsProjectileWeapon' => 'activations_projectile_weapon', + 'activationsPropulsionModule' => 'activations_propulsion_module', + 'activationsRemoteArmorRepairer' => 'activations_remote_armor_repairer', + 'activationsRemoteCapacitorTransmitter' => 'activations_remote_capacitor_transmitter', + 'activationsRemoteEcmBurst' => 'activations_remote_ecm_burst', + 'activationsRemoteHullRepairer' => 'activations_remote_hull_repairer', + 'activationsRemoteSensorBooster' => 'activations_remote_sensor_booster', + 'activationsRemoteSensorDamper' => 'activations_remote_sensor_damper', + 'activationsRemoteShieldBooster' => 'activations_remote_shield_booster', + 'activationsRemoteTrackingComputer' => 'activations_remote_tracking_computer', + 'activationsSalvager' => 'activations_salvager', + 'activationsSensorBooster' => 'activations_sensor_booster', + 'activationsShieldBooster' => 'activations_shield_booster', + 'activationsShieldHardener' => 'activations_shield_hardener', + 'activationsShipScanner' => 'activations_ship_scanner', + 'activationsSiege' => 'activations_siege', + 'activationsSmartBomb' => 'activations_smart_bomb', + 'activationsStasisWeb' => 'activations_stasis_web', + 'activationsStripMiner' => 'activations_strip_miner', + 'activationsSuperWeapon' => 'activations_super_weapon', + 'activationsSurveyScanner' => 'activations_survey_scanner', + 'activationsTargetBreaker' => 'activations_target_breaker', + 'activationsTargetPainter' => 'activations_target_painter', + 'activationsTrackingComputer' => 'activations_tracking_computer', + 'activationsTrackingDisruptor' => 'activations_tracking_disruptor', + 'activationsTractorBeam' => 'activations_tractor_beam', + 'activationsTriage' => 'activations_triage', + 'activationsWarpDisruptFieldGenerator' => 'activations_warp_disrupt_field_generator', + 'activationsWarpScrambler' => 'activations_warp_scrambler', + 'linkWeapons' => 'link_weapons', + 'overload' => 'overload', + 'repairs' => 'repairs' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'activationsArmorHardener' => 'setActivationsArmorHardener', + 'activationsArmorRepairUnit' => 'setActivationsArmorRepairUnit', + 'activationsArmorResistanceShiftHardener' => 'setActivationsArmorResistanceShiftHardener', + 'activationsAutomatedTargetingSystem' => 'setActivationsAutomatedTargetingSystem', + 'activationsBastion' => 'setActivationsBastion', + 'activationsBombLauncher' => 'setActivationsBombLauncher', + 'activationsCapacitorBooster' => 'setActivationsCapacitorBooster', + 'activationsCargoScanner' => 'setActivationsCargoScanner', + 'activationsCloakingDevice' => 'setActivationsCloakingDevice', + 'activationsCloneVatBay' => 'setActivationsCloneVatBay', + 'activationsCynosuralField' => 'setActivationsCynosuralField', + 'activationsDamageControl' => 'setActivationsDamageControl', + 'activationsDataMiners' => 'setActivationsDataMiners', + 'activationsDroneControlUnit' => 'setActivationsDroneControlUnit', + 'activationsDroneTrackingModules' => 'setActivationsDroneTrackingModules', + 'activationsEccm' => 'setActivationsEccm', + 'activationsEcm' => 'setActivationsEcm', + 'activationsEcmBurst' => 'setActivationsEcmBurst', + 'activationsEnergyDestabilizer' => 'setActivationsEnergyDestabilizer', + 'activationsEnergyVampire' => 'setActivationsEnergyVampire', + 'activationsEnergyWeapon' => 'setActivationsEnergyWeapon', + 'activationsFestivalLauncher' => 'setActivationsFestivalLauncher', + 'activationsFrequencyMiningLaser' => 'setActivationsFrequencyMiningLaser', + 'activationsFueledArmorRepairer' => 'setActivationsFueledArmorRepairer', + 'activationsFueledShieldBooster' => 'setActivationsFueledShieldBooster', + 'activationsGangCoordinator' => 'setActivationsGangCoordinator', + 'activationsGasCloudHarvester' => 'setActivationsGasCloudHarvester', + 'activationsHullRepairUnit' => 'setActivationsHullRepairUnit', + 'activationsHybridWeapon' => 'setActivationsHybridWeapon', + 'activationsIndustrialCore' => 'setActivationsIndustrialCore', + 'activationsInterdictionSphereLauncher' => 'setActivationsInterdictionSphereLauncher', + 'activationsMicroJumpDrive' => 'setActivationsMicroJumpDrive', + 'activationsMiningLaser' => 'setActivationsMiningLaser', + 'activationsMissileLauncher' => 'setActivationsMissileLauncher', + 'activationsPassiveTargetingSystem' => 'setActivationsPassiveTargetingSystem', + 'activationsProbeLauncher' => 'setActivationsProbeLauncher', + 'activationsProjectedEccm' => 'setActivationsProjectedEccm', + 'activationsProjectileWeapon' => 'setActivationsProjectileWeapon', + 'activationsPropulsionModule' => 'setActivationsPropulsionModule', + 'activationsRemoteArmorRepairer' => 'setActivationsRemoteArmorRepairer', + 'activationsRemoteCapacitorTransmitter' => 'setActivationsRemoteCapacitorTransmitter', + 'activationsRemoteEcmBurst' => 'setActivationsRemoteEcmBurst', + 'activationsRemoteHullRepairer' => 'setActivationsRemoteHullRepairer', + 'activationsRemoteSensorBooster' => 'setActivationsRemoteSensorBooster', + 'activationsRemoteSensorDamper' => 'setActivationsRemoteSensorDamper', + 'activationsRemoteShieldBooster' => 'setActivationsRemoteShieldBooster', + 'activationsRemoteTrackingComputer' => 'setActivationsRemoteTrackingComputer', + 'activationsSalvager' => 'setActivationsSalvager', + 'activationsSensorBooster' => 'setActivationsSensorBooster', + 'activationsShieldBooster' => 'setActivationsShieldBooster', + 'activationsShieldHardener' => 'setActivationsShieldHardener', + 'activationsShipScanner' => 'setActivationsShipScanner', + 'activationsSiege' => 'setActivationsSiege', + 'activationsSmartBomb' => 'setActivationsSmartBomb', + 'activationsStasisWeb' => 'setActivationsStasisWeb', + 'activationsStripMiner' => 'setActivationsStripMiner', + 'activationsSuperWeapon' => 'setActivationsSuperWeapon', + 'activationsSurveyScanner' => 'setActivationsSurveyScanner', + 'activationsTargetBreaker' => 'setActivationsTargetBreaker', + 'activationsTargetPainter' => 'setActivationsTargetPainter', + 'activationsTrackingComputer' => 'setActivationsTrackingComputer', + 'activationsTrackingDisruptor' => 'setActivationsTrackingDisruptor', + 'activationsTractorBeam' => 'setActivationsTractorBeam', + 'activationsTriage' => 'setActivationsTriage', + 'activationsWarpDisruptFieldGenerator' => 'setActivationsWarpDisruptFieldGenerator', + 'activationsWarpScrambler' => 'setActivationsWarpScrambler', + 'linkWeapons' => 'setLinkWeapons', + 'overload' => 'setOverload', + 'repairs' => 'setRepairs' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'activationsArmorHardener' => 'getActivationsArmorHardener', + 'activationsArmorRepairUnit' => 'getActivationsArmorRepairUnit', + 'activationsArmorResistanceShiftHardener' => 'getActivationsArmorResistanceShiftHardener', + 'activationsAutomatedTargetingSystem' => 'getActivationsAutomatedTargetingSystem', + 'activationsBastion' => 'getActivationsBastion', + 'activationsBombLauncher' => 'getActivationsBombLauncher', + 'activationsCapacitorBooster' => 'getActivationsCapacitorBooster', + 'activationsCargoScanner' => 'getActivationsCargoScanner', + 'activationsCloakingDevice' => 'getActivationsCloakingDevice', + 'activationsCloneVatBay' => 'getActivationsCloneVatBay', + 'activationsCynosuralField' => 'getActivationsCynosuralField', + 'activationsDamageControl' => 'getActivationsDamageControl', + 'activationsDataMiners' => 'getActivationsDataMiners', + 'activationsDroneControlUnit' => 'getActivationsDroneControlUnit', + 'activationsDroneTrackingModules' => 'getActivationsDroneTrackingModules', + 'activationsEccm' => 'getActivationsEccm', + 'activationsEcm' => 'getActivationsEcm', + 'activationsEcmBurst' => 'getActivationsEcmBurst', + 'activationsEnergyDestabilizer' => 'getActivationsEnergyDestabilizer', + 'activationsEnergyVampire' => 'getActivationsEnergyVampire', + 'activationsEnergyWeapon' => 'getActivationsEnergyWeapon', + 'activationsFestivalLauncher' => 'getActivationsFestivalLauncher', + 'activationsFrequencyMiningLaser' => 'getActivationsFrequencyMiningLaser', + 'activationsFueledArmorRepairer' => 'getActivationsFueledArmorRepairer', + 'activationsFueledShieldBooster' => 'getActivationsFueledShieldBooster', + 'activationsGangCoordinator' => 'getActivationsGangCoordinator', + 'activationsGasCloudHarvester' => 'getActivationsGasCloudHarvester', + 'activationsHullRepairUnit' => 'getActivationsHullRepairUnit', + 'activationsHybridWeapon' => 'getActivationsHybridWeapon', + 'activationsIndustrialCore' => 'getActivationsIndustrialCore', + 'activationsInterdictionSphereLauncher' => 'getActivationsInterdictionSphereLauncher', + 'activationsMicroJumpDrive' => 'getActivationsMicroJumpDrive', + 'activationsMiningLaser' => 'getActivationsMiningLaser', + 'activationsMissileLauncher' => 'getActivationsMissileLauncher', + 'activationsPassiveTargetingSystem' => 'getActivationsPassiveTargetingSystem', + 'activationsProbeLauncher' => 'getActivationsProbeLauncher', + 'activationsProjectedEccm' => 'getActivationsProjectedEccm', + 'activationsProjectileWeapon' => 'getActivationsProjectileWeapon', + 'activationsPropulsionModule' => 'getActivationsPropulsionModule', + 'activationsRemoteArmorRepairer' => 'getActivationsRemoteArmorRepairer', + 'activationsRemoteCapacitorTransmitter' => 'getActivationsRemoteCapacitorTransmitter', + 'activationsRemoteEcmBurst' => 'getActivationsRemoteEcmBurst', + 'activationsRemoteHullRepairer' => 'getActivationsRemoteHullRepairer', + 'activationsRemoteSensorBooster' => 'getActivationsRemoteSensorBooster', + 'activationsRemoteSensorDamper' => 'getActivationsRemoteSensorDamper', + 'activationsRemoteShieldBooster' => 'getActivationsRemoteShieldBooster', + 'activationsRemoteTrackingComputer' => 'getActivationsRemoteTrackingComputer', + 'activationsSalvager' => 'getActivationsSalvager', + 'activationsSensorBooster' => 'getActivationsSensorBooster', + 'activationsShieldBooster' => 'getActivationsShieldBooster', + 'activationsShieldHardener' => 'getActivationsShieldHardener', + 'activationsShipScanner' => 'getActivationsShipScanner', + 'activationsSiege' => 'getActivationsSiege', + 'activationsSmartBomb' => 'getActivationsSmartBomb', + 'activationsStasisWeb' => 'getActivationsStasisWeb', + 'activationsStripMiner' => 'getActivationsStripMiner', + 'activationsSuperWeapon' => 'getActivationsSuperWeapon', + 'activationsSurveyScanner' => 'getActivationsSurveyScanner', + 'activationsTargetBreaker' => 'getActivationsTargetBreaker', + 'activationsTargetPainter' => 'getActivationsTargetPainter', + 'activationsTrackingComputer' => 'getActivationsTrackingComputer', + 'activationsTrackingDisruptor' => 'getActivationsTrackingDisruptor', + 'activationsTractorBeam' => 'getActivationsTractorBeam', + 'activationsTriage' => 'getActivationsTriage', + 'activationsWarpDisruptFieldGenerator' => 'getActivationsWarpDisruptFieldGenerator', + 'activationsWarpScrambler' => 'getActivationsWarpScrambler', + 'linkWeapons' => 'getLinkWeapons', + 'overload' => 'getOverload', + 'repairs' => 'getRepairs' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['activationsArmorHardener'] = isset($data['activationsArmorHardener']) ? $data['activationsArmorHardener'] : null; + $this->container['activationsArmorRepairUnit'] = isset($data['activationsArmorRepairUnit']) ? $data['activationsArmorRepairUnit'] : null; + $this->container['activationsArmorResistanceShiftHardener'] = isset($data['activationsArmorResistanceShiftHardener']) ? $data['activationsArmorResistanceShiftHardener'] : null; + $this->container['activationsAutomatedTargetingSystem'] = isset($data['activationsAutomatedTargetingSystem']) ? $data['activationsAutomatedTargetingSystem'] : null; + $this->container['activationsBastion'] = isset($data['activationsBastion']) ? $data['activationsBastion'] : null; + $this->container['activationsBombLauncher'] = isset($data['activationsBombLauncher']) ? $data['activationsBombLauncher'] : null; + $this->container['activationsCapacitorBooster'] = isset($data['activationsCapacitorBooster']) ? $data['activationsCapacitorBooster'] : null; + $this->container['activationsCargoScanner'] = isset($data['activationsCargoScanner']) ? $data['activationsCargoScanner'] : null; + $this->container['activationsCloakingDevice'] = isset($data['activationsCloakingDevice']) ? $data['activationsCloakingDevice'] : null; + $this->container['activationsCloneVatBay'] = isset($data['activationsCloneVatBay']) ? $data['activationsCloneVatBay'] : null; + $this->container['activationsCynosuralField'] = isset($data['activationsCynosuralField']) ? $data['activationsCynosuralField'] : null; + $this->container['activationsDamageControl'] = isset($data['activationsDamageControl']) ? $data['activationsDamageControl'] : null; + $this->container['activationsDataMiners'] = isset($data['activationsDataMiners']) ? $data['activationsDataMiners'] : null; + $this->container['activationsDroneControlUnit'] = isset($data['activationsDroneControlUnit']) ? $data['activationsDroneControlUnit'] : null; + $this->container['activationsDroneTrackingModules'] = isset($data['activationsDroneTrackingModules']) ? $data['activationsDroneTrackingModules'] : null; + $this->container['activationsEccm'] = isset($data['activationsEccm']) ? $data['activationsEccm'] : null; + $this->container['activationsEcm'] = isset($data['activationsEcm']) ? $data['activationsEcm'] : null; + $this->container['activationsEcmBurst'] = isset($data['activationsEcmBurst']) ? $data['activationsEcmBurst'] : null; + $this->container['activationsEnergyDestabilizer'] = isset($data['activationsEnergyDestabilizer']) ? $data['activationsEnergyDestabilizer'] : null; + $this->container['activationsEnergyVampire'] = isset($data['activationsEnergyVampire']) ? $data['activationsEnergyVampire'] : null; + $this->container['activationsEnergyWeapon'] = isset($data['activationsEnergyWeapon']) ? $data['activationsEnergyWeapon'] : null; + $this->container['activationsFestivalLauncher'] = isset($data['activationsFestivalLauncher']) ? $data['activationsFestivalLauncher'] : null; + $this->container['activationsFrequencyMiningLaser'] = isset($data['activationsFrequencyMiningLaser']) ? $data['activationsFrequencyMiningLaser'] : null; + $this->container['activationsFueledArmorRepairer'] = isset($data['activationsFueledArmorRepairer']) ? $data['activationsFueledArmorRepairer'] : null; + $this->container['activationsFueledShieldBooster'] = isset($data['activationsFueledShieldBooster']) ? $data['activationsFueledShieldBooster'] : null; + $this->container['activationsGangCoordinator'] = isset($data['activationsGangCoordinator']) ? $data['activationsGangCoordinator'] : null; + $this->container['activationsGasCloudHarvester'] = isset($data['activationsGasCloudHarvester']) ? $data['activationsGasCloudHarvester'] : null; + $this->container['activationsHullRepairUnit'] = isset($data['activationsHullRepairUnit']) ? $data['activationsHullRepairUnit'] : null; + $this->container['activationsHybridWeapon'] = isset($data['activationsHybridWeapon']) ? $data['activationsHybridWeapon'] : null; + $this->container['activationsIndustrialCore'] = isset($data['activationsIndustrialCore']) ? $data['activationsIndustrialCore'] : null; + $this->container['activationsInterdictionSphereLauncher'] = isset($data['activationsInterdictionSphereLauncher']) ? $data['activationsInterdictionSphereLauncher'] : null; + $this->container['activationsMicroJumpDrive'] = isset($data['activationsMicroJumpDrive']) ? $data['activationsMicroJumpDrive'] : null; + $this->container['activationsMiningLaser'] = isset($data['activationsMiningLaser']) ? $data['activationsMiningLaser'] : null; + $this->container['activationsMissileLauncher'] = isset($data['activationsMissileLauncher']) ? $data['activationsMissileLauncher'] : null; + $this->container['activationsPassiveTargetingSystem'] = isset($data['activationsPassiveTargetingSystem']) ? $data['activationsPassiveTargetingSystem'] : null; + $this->container['activationsProbeLauncher'] = isset($data['activationsProbeLauncher']) ? $data['activationsProbeLauncher'] : null; + $this->container['activationsProjectedEccm'] = isset($data['activationsProjectedEccm']) ? $data['activationsProjectedEccm'] : null; + $this->container['activationsProjectileWeapon'] = isset($data['activationsProjectileWeapon']) ? $data['activationsProjectileWeapon'] : null; + $this->container['activationsPropulsionModule'] = isset($data['activationsPropulsionModule']) ? $data['activationsPropulsionModule'] : null; + $this->container['activationsRemoteArmorRepairer'] = isset($data['activationsRemoteArmorRepairer']) ? $data['activationsRemoteArmorRepairer'] : null; + $this->container['activationsRemoteCapacitorTransmitter'] = isset($data['activationsRemoteCapacitorTransmitter']) ? $data['activationsRemoteCapacitorTransmitter'] : null; + $this->container['activationsRemoteEcmBurst'] = isset($data['activationsRemoteEcmBurst']) ? $data['activationsRemoteEcmBurst'] : null; + $this->container['activationsRemoteHullRepairer'] = isset($data['activationsRemoteHullRepairer']) ? $data['activationsRemoteHullRepairer'] : null; + $this->container['activationsRemoteSensorBooster'] = isset($data['activationsRemoteSensorBooster']) ? $data['activationsRemoteSensorBooster'] : null; + $this->container['activationsRemoteSensorDamper'] = isset($data['activationsRemoteSensorDamper']) ? $data['activationsRemoteSensorDamper'] : null; + $this->container['activationsRemoteShieldBooster'] = isset($data['activationsRemoteShieldBooster']) ? $data['activationsRemoteShieldBooster'] : null; + $this->container['activationsRemoteTrackingComputer'] = isset($data['activationsRemoteTrackingComputer']) ? $data['activationsRemoteTrackingComputer'] : null; + $this->container['activationsSalvager'] = isset($data['activationsSalvager']) ? $data['activationsSalvager'] : null; + $this->container['activationsSensorBooster'] = isset($data['activationsSensorBooster']) ? $data['activationsSensorBooster'] : null; + $this->container['activationsShieldBooster'] = isset($data['activationsShieldBooster']) ? $data['activationsShieldBooster'] : null; + $this->container['activationsShieldHardener'] = isset($data['activationsShieldHardener']) ? $data['activationsShieldHardener'] : null; + $this->container['activationsShipScanner'] = isset($data['activationsShipScanner']) ? $data['activationsShipScanner'] : null; + $this->container['activationsSiege'] = isset($data['activationsSiege']) ? $data['activationsSiege'] : null; + $this->container['activationsSmartBomb'] = isset($data['activationsSmartBomb']) ? $data['activationsSmartBomb'] : null; + $this->container['activationsStasisWeb'] = isset($data['activationsStasisWeb']) ? $data['activationsStasisWeb'] : null; + $this->container['activationsStripMiner'] = isset($data['activationsStripMiner']) ? $data['activationsStripMiner'] : null; + $this->container['activationsSuperWeapon'] = isset($data['activationsSuperWeapon']) ? $data['activationsSuperWeapon'] : null; + $this->container['activationsSurveyScanner'] = isset($data['activationsSurveyScanner']) ? $data['activationsSurveyScanner'] : null; + $this->container['activationsTargetBreaker'] = isset($data['activationsTargetBreaker']) ? $data['activationsTargetBreaker'] : null; + $this->container['activationsTargetPainter'] = isset($data['activationsTargetPainter']) ? $data['activationsTargetPainter'] : null; + $this->container['activationsTrackingComputer'] = isset($data['activationsTrackingComputer']) ? $data['activationsTrackingComputer'] : null; + $this->container['activationsTrackingDisruptor'] = isset($data['activationsTrackingDisruptor']) ? $data['activationsTrackingDisruptor'] : null; + $this->container['activationsTractorBeam'] = isset($data['activationsTractorBeam']) ? $data['activationsTractorBeam'] : null; + $this->container['activationsTriage'] = isset($data['activationsTriage']) ? $data['activationsTriage'] : null; + $this->container['activationsWarpDisruptFieldGenerator'] = isset($data['activationsWarpDisruptFieldGenerator']) ? $data['activationsWarpDisruptFieldGenerator'] : null; + $this->container['activationsWarpScrambler'] = isset($data['activationsWarpScrambler']) ? $data['activationsWarpScrambler'] : null; + $this->container['linkWeapons'] = isset($data['linkWeapons']) ? $data['linkWeapons'] : null; + $this->container['overload'] = isset($data['overload']) ? $data['overload'] : null; + $this->container['repairs'] = isset($data['repairs']) ? $data['repairs'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets activationsArmorHardener + * + * @return int + */ + public function getActivationsArmorHardener() + { + return $this->container['activationsArmorHardener']; + } + + /** + * Sets activationsArmorHardener + * + * @param int $activationsArmorHardener activations_armor_hardener integer + * + * @return $this + */ + public function setActivationsArmorHardener($activationsArmorHardener) + { + $this->container['activationsArmorHardener'] = $activationsArmorHardener; + + return $this; + } + + /** + * Gets activationsArmorRepairUnit + * + * @return int + */ + public function getActivationsArmorRepairUnit() + { + return $this->container['activationsArmorRepairUnit']; + } + + /** + * Sets activationsArmorRepairUnit + * + * @param int $activationsArmorRepairUnit activations_armor_repair_unit integer + * + * @return $this + */ + public function setActivationsArmorRepairUnit($activationsArmorRepairUnit) + { + $this->container['activationsArmorRepairUnit'] = $activationsArmorRepairUnit; + + return $this; + } + + /** + * Gets activationsArmorResistanceShiftHardener + * + * @return int + */ + public function getActivationsArmorResistanceShiftHardener() + { + return $this->container['activationsArmorResistanceShiftHardener']; + } + + /** + * Sets activationsArmorResistanceShiftHardener + * + * @param int $activationsArmorResistanceShiftHardener activations_armor_resistance_shift_hardener integer + * + * @return $this + */ + public function setActivationsArmorResistanceShiftHardener($activationsArmorResistanceShiftHardener) + { + $this->container['activationsArmorResistanceShiftHardener'] = $activationsArmorResistanceShiftHardener; + + return $this; + } + + /** + * Gets activationsAutomatedTargetingSystem + * + * @return int + */ + public function getActivationsAutomatedTargetingSystem() + { + return $this->container['activationsAutomatedTargetingSystem']; + } + + /** + * Sets activationsAutomatedTargetingSystem + * + * @param int $activationsAutomatedTargetingSystem activations_automated_targeting_system integer + * + * @return $this + */ + public function setActivationsAutomatedTargetingSystem($activationsAutomatedTargetingSystem) + { + $this->container['activationsAutomatedTargetingSystem'] = $activationsAutomatedTargetingSystem; + + return $this; + } + + /** + * Gets activationsBastion + * + * @return int + */ + public function getActivationsBastion() + { + return $this->container['activationsBastion']; + } + + /** + * Sets activationsBastion + * + * @param int $activationsBastion activations_bastion integer + * + * @return $this + */ + public function setActivationsBastion($activationsBastion) + { + $this->container['activationsBastion'] = $activationsBastion; + + return $this; + } + + /** + * Gets activationsBombLauncher + * + * @return int + */ + public function getActivationsBombLauncher() + { + return $this->container['activationsBombLauncher']; + } + + /** + * Sets activationsBombLauncher + * + * @param int $activationsBombLauncher activations_bomb_launcher integer + * + * @return $this + */ + public function setActivationsBombLauncher($activationsBombLauncher) + { + $this->container['activationsBombLauncher'] = $activationsBombLauncher; + + return $this; + } + + /** + * Gets activationsCapacitorBooster + * + * @return int + */ + public function getActivationsCapacitorBooster() + { + return $this->container['activationsCapacitorBooster']; + } + + /** + * Sets activationsCapacitorBooster + * + * @param int $activationsCapacitorBooster activations_capacitor_booster integer + * + * @return $this + */ + public function setActivationsCapacitorBooster($activationsCapacitorBooster) + { + $this->container['activationsCapacitorBooster'] = $activationsCapacitorBooster; + + return $this; + } + + /** + * Gets activationsCargoScanner + * + * @return int + */ + public function getActivationsCargoScanner() + { + return $this->container['activationsCargoScanner']; + } + + /** + * Sets activationsCargoScanner + * + * @param int $activationsCargoScanner activations_cargo_scanner integer + * + * @return $this + */ + public function setActivationsCargoScanner($activationsCargoScanner) + { + $this->container['activationsCargoScanner'] = $activationsCargoScanner; + + return $this; + } + + /** + * Gets activationsCloakingDevice + * + * @return int + */ + public function getActivationsCloakingDevice() + { + return $this->container['activationsCloakingDevice']; + } + + /** + * Sets activationsCloakingDevice + * + * @param int $activationsCloakingDevice activations_cloaking_device integer + * + * @return $this + */ + public function setActivationsCloakingDevice($activationsCloakingDevice) + { + $this->container['activationsCloakingDevice'] = $activationsCloakingDevice; + + return $this; + } + + /** + * Gets activationsCloneVatBay + * + * @return int + */ + public function getActivationsCloneVatBay() + { + return $this->container['activationsCloneVatBay']; + } + + /** + * Sets activationsCloneVatBay + * + * @param int $activationsCloneVatBay activations_clone_vat_bay integer + * + * @return $this + */ + public function setActivationsCloneVatBay($activationsCloneVatBay) + { + $this->container['activationsCloneVatBay'] = $activationsCloneVatBay; + + return $this; + } + + /** + * Gets activationsCynosuralField + * + * @return int + */ + public function getActivationsCynosuralField() + { + return $this->container['activationsCynosuralField']; + } + + /** + * Sets activationsCynosuralField + * + * @param int $activationsCynosuralField activations_cynosural_field integer + * + * @return $this + */ + public function setActivationsCynosuralField($activationsCynosuralField) + { + $this->container['activationsCynosuralField'] = $activationsCynosuralField; + + return $this; + } + + /** + * Gets activationsDamageControl + * + * @return int + */ + public function getActivationsDamageControl() + { + return $this->container['activationsDamageControl']; + } + + /** + * Sets activationsDamageControl + * + * @param int $activationsDamageControl activations_damage_control integer + * + * @return $this + */ + public function setActivationsDamageControl($activationsDamageControl) + { + $this->container['activationsDamageControl'] = $activationsDamageControl; + + return $this; + } + + /** + * Gets activationsDataMiners + * + * @return int + */ + public function getActivationsDataMiners() + { + return $this->container['activationsDataMiners']; + } + + /** + * Sets activationsDataMiners + * + * @param int $activationsDataMiners activations_data_miners integer + * + * @return $this + */ + public function setActivationsDataMiners($activationsDataMiners) + { + $this->container['activationsDataMiners'] = $activationsDataMiners; + + return $this; + } + + /** + * Gets activationsDroneControlUnit + * + * @return int + */ + public function getActivationsDroneControlUnit() + { + return $this->container['activationsDroneControlUnit']; + } + + /** + * Sets activationsDroneControlUnit + * + * @param int $activationsDroneControlUnit activations_drone_control_unit integer + * + * @return $this + */ + public function setActivationsDroneControlUnit($activationsDroneControlUnit) + { + $this->container['activationsDroneControlUnit'] = $activationsDroneControlUnit; + + return $this; + } + + /** + * Gets activationsDroneTrackingModules + * + * @return int + */ + public function getActivationsDroneTrackingModules() + { + return $this->container['activationsDroneTrackingModules']; + } + + /** + * Sets activationsDroneTrackingModules + * + * @param int $activationsDroneTrackingModules activations_drone_tracking_modules integer + * + * @return $this + */ + public function setActivationsDroneTrackingModules($activationsDroneTrackingModules) + { + $this->container['activationsDroneTrackingModules'] = $activationsDroneTrackingModules; + + return $this; + } + + /** + * Gets activationsEccm + * + * @return int + */ + public function getActivationsEccm() + { + return $this->container['activationsEccm']; + } + + /** + * Sets activationsEccm + * + * @param int $activationsEccm activations_eccm integer + * + * @return $this + */ + public function setActivationsEccm($activationsEccm) + { + $this->container['activationsEccm'] = $activationsEccm; + + return $this; + } + + /** + * Gets activationsEcm + * + * @return int + */ + public function getActivationsEcm() + { + return $this->container['activationsEcm']; + } + + /** + * Sets activationsEcm + * + * @param int $activationsEcm activations_ecm integer + * + * @return $this + */ + public function setActivationsEcm($activationsEcm) + { + $this->container['activationsEcm'] = $activationsEcm; + + return $this; + } + + /** + * Gets activationsEcmBurst + * + * @return int + */ + public function getActivationsEcmBurst() + { + return $this->container['activationsEcmBurst']; + } + + /** + * Sets activationsEcmBurst + * + * @param int $activationsEcmBurst activations_ecm_burst integer + * + * @return $this + */ + public function setActivationsEcmBurst($activationsEcmBurst) + { + $this->container['activationsEcmBurst'] = $activationsEcmBurst; + + return $this; + } + + /** + * Gets activationsEnergyDestabilizer + * + * @return int + */ + public function getActivationsEnergyDestabilizer() + { + return $this->container['activationsEnergyDestabilizer']; + } + + /** + * Sets activationsEnergyDestabilizer + * + * @param int $activationsEnergyDestabilizer activations_energy_destabilizer integer + * + * @return $this + */ + public function setActivationsEnergyDestabilizer($activationsEnergyDestabilizer) + { + $this->container['activationsEnergyDestabilizer'] = $activationsEnergyDestabilizer; + + return $this; + } + + /** + * Gets activationsEnergyVampire + * + * @return int + */ + public function getActivationsEnergyVampire() + { + return $this->container['activationsEnergyVampire']; + } + + /** + * Sets activationsEnergyVampire + * + * @param int $activationsEnergyVampire activations_energy_vampire integer + * + * @return $this + */ + public function setActivationsEnergyVampire($activationsEnergyVampire) + { + $this->container['activationsEnergyVampire'] = $activationsEnergyVampire; + + return $this; + } + + /** + * Gets activationsEnergyWeapon + * + * @return int + */ + public function getActivationsEnergyWeapon() + { + return $this->container['activationsEnergyWeapon']; + } + + /** + * Sets activationsEnergyWeapon + * + * @param int $activationsEnergyWeapon activations_energy_weapon integer + * + * @return $this + */ + public function setActivationsEnergyWeapon($activationsEnergyWeapon) + { + $this->container['activationsEnergyWeapon'] = $activationsEnergyWeapon; + + return $this; + } + + /** + * Gets activationsFestivalLauncher + * + * @return int + */ + public function getActivationsFestivalLauncher() + { + return $this->container['activationsFestivalLauncher']; + } + + /** + * Sets activationsFestivalLauncher + * + * @param int $activationsFestivalLauncher activations_festival_launcher integer + * + * @return $this + */ + public function setActivationsFestivalLauncher($activationsFestivalLauncher) + { + $this->container['activationsFestivalLauncher'] = $activationsFestivalLauncher; + + return $this; + } + + /** + * Gets activationsFrequencyMiningLaser + * + * @return int + */ + public function getActivationsFrequencyMiningLaser() + { + return $this->container['activationsFrequencyMiningLaser']; + } + + /** + * Sets activationsFrequencyMiningLaser + * + * @param int $activationsFrequencyMiningLaser activations_frequency_mining_laser integer + * + * @return $this + */ + public function setActivationsFrequencyMiningLaser($activationsFrequencyMiningLaser) + { + $this->container['activationsFrequencyMiningLaser'] = $activationsFrequencyMiningLaser; + + return $this; + } + + /** + * Gets activationsFueledArmorRepairer + * + * @return int + */ + public function getActivationsFueledArmorRepairer() + { + return $this->container['activationsFueledArmorRepairer']; + } + + /** + * Sets activationsFueledArmorRepairer + * + * @param int $activationsFueledArmorRepairer activations_fueled_armor_repairer integer + * + * @return $this + */ + public function setActivationsFueledArmorRepairer($activationsFueledArmorRepairer) + { + $this->container['activationsFueledArmorRepairer'] = $activationsFueledArmorRepairer; + + return $this; + } + + /** + * Gets activationsFueledShieldBooster + * + * @return int + */ + public function getActivationsFueledShieldBooster() + { + return $this->container['activationsFueledShieldBooster']; + } + + /** + * Sets activationsFueledShieldBooster + * + * @param int $activationsFueledShieldBooster activations_fueled_shield_booster integer + * + * @return $this + */ + public function setActivationsFueledShieldBooster($activationsFueledShieldBooster) + { + $this->container['activationsFueledShieldBooster'] = $activationsFueledShieldBooster; + + return $this; + } + + /** + * Gets activationsGangCoordinator + * + * @return int + */ + public function getActivationsGangCoordinator() + { + return $this->container['activationsGangCoordinator']; + } + + /** + * Sets activationsGangCoordinator + * + * @param int $activationsGangCoordinator activations_gang_coordinator integer + * + * @return $this + */ + public function setActivationsGangCoordinator($activationsGangCoordinator) + { + $this->container['activationsGangCoordinator'] = $activationsGangCoordinator; + + return $this; + } + + /** + * Gets activationsGasCloudHarvester + * + * @return int + */ + public function getActivationsGasCloudHarvester() + { + return $this->container['activationsGasCloudHarvester']; + } + + /** + * Sets activationsGasCloudHarvester + * + * @param int $activationsGasCloudHarvester activations_gas_cloud_harvester integer + * + * @return $this + */ + public function setActivationsGasCloudHarvester($activationsGasCloudHarvester) + { + $this->container['activationsGasCloudHarvester'] = $activationsGasCloudHarvester; + + return $this; + } + + /** + * Gets activationsHullRepairUnit + * + * @return int + */ + public function getActivationsHullRepairUnit() + { + return $this->container['activationsHullRepairUnit']; + } + + /** + * Sets activationsHullRepairUnit + * + * @param int $activationsHullRepairUnit activations_hull_repair_unit integer + * + * @return $this + */ + public function setActivationsHullRepairUnit($activationsHullRepairUnit) + { + $this->container['activationsHullRepairUnit'] = $activationsHullRepairUnit; + + return $this; + } + + /** + * Gets activationsHybridWeapon + * + * @return int + */ + public function getActivationsHybridWeapon() + { + return $this->container['activationsHybridWeapon']; + } + + /** + * Sets activationsHybridWeapon + * + * @param int $activationsHybridWeapon activations_hybrid_weapon integer + * + * @return $this + */ + public function setActivationsHybridWeapon($activationsHybridWeapon) + { + $this->container['activationsHybridWeapon'] = $activationsHybridWeapon; + + return $this; + } + + /** + * Gets activationsIndustrialCore + * + * @return int + */ + public function getActivationsIndustrialCore() + { + return $this->container['activationsIndustrialCore']; + } + + /** + * Sets activationsIndustrialCore + * + * @param int $activationsIndustrialCore activations_industrial_core integer + * + * @return $this + */ + public function setActivationsIndustrialCore($activationsIndustrialCore) + { + $this->container['activationsIndustrialCore'] = $activationsIndustrialCore; + + return $this; + } + + /** + * Gets activationsInterdictionSphereLauncher + * + * @return int + */ + public function getActivationsInterdictionSphereLauncher() + { + return $this->container['activationsInterdictionSphereLauncher']; + } + + /** + * Sets activationsInterdictionSphereLauncher + * + * @param int $activationsInterdictionSphereLauncher activations_interdiction_sphere_launcher integer + * + * @return $this + */ + public function setActivationsInterdictionSphereLauncher($activationsInterdictionSphereLauncher) + { + $this->container['activationsInterdictionSphereLauncher'] = $activationsInterdictionSphereLauncher; + + return $this; + } + + /** + * Gets activationsMicroJumpDrive + * + * @return int + */ + public function getActivationsMicroJumpDrive() + { + return $this->container['activationsMicroJumpDrive']; + } + + /** + * Sets activationsMicroJumpDrive + * + * @param int $activationsMicroJumpDrive activations_micro_jump_drive integer + * + * @return $this + */ + public function setActivationsMicroJumpDrive($activationsMicroJumpDrive) + { + $this->container['activationsMicroJumpDrive'] = $activationsMicroJumpDrive; + + return $this; + } + + /** + * Gets activationsMiningLaser + * + * @return int + */ + public function getActivationsMiningLaser() + { + return $this->container['activationsMiningLaser']; + } + + /** + * Sets activationsMiningLaser + * + * @param int $activationsMiningLaser activations_mining_laser integer + * + * @return $this + */ + public function setActivationsMiningLaser($activationsMiningLaser) + { + $this->container['activationsMiningLaser'] = $activationsMiningLaser; + + return $this; + } + + /** + * Gets activationsMissileLauncher + * + * @return int + */ + public function getActivationsMissileLauncher() + { + return $this->container['activationsMissileLauncher']; + } + + /** + * Sets activationsMissileLauncher + * + * @param int $activationsMissileLauncher activations_missile_launcher integer + * + * @return $this + */ + public function setActivationsMissileLauncher($activationsMissileLauncher) + { + $this->container['activationsMissileLauncher'] = $activationsMissileLauncher; + + return $this; + } + + /** + * Gets activationsPassiveTargetingSystem + * + * @return int + */ + public function getActivationsPassiveTargetingSystem() + { + return $this->container['activationsPassiveTargetingSystem']; + } + + /** + * Sets activationsPassiveTargetingSystem + * + * @param int $activationsPassiveTargetingSystem activations_passive_targeting_system integer + * + * @return $this + */ + public function setActivationsPassiveTargetingSystem($activationsPassiveTargetingSystem) + { + $this->container['activationsPassiveTargetingSystem'] = $activationsPassiveTargetingSystem; + + return $this; + } + + /** + * Gets activationsProbeLauncher + * + * @return int + */ + public function getActivationsProbeLauncher() + { + return $this->container['activationsProbeLauncher']; + } + + /** + * Sets activationsProbeLauncher + * + * @param int $activationsProbeLauncher activations_probe_launcher integer + * + * @return $this + */ + public function setActivationsProbeLauncher($activationsProbeLauncher) + { + $this->container['activationsProbeLauncher'] = $activationsProbeLauncher; + + return $this; + } + + /** + * Gets activationsProjectedEccm + * + * @return int + */ + public function getActivationsProjectedEccm() + { + return $this->container['activationsProjectedEccm']; + } + + /** + * Sets activationsProjectedEccm + * + * @param int $activationsProjectedEccm activations_projected_eccm integer + * + * @return $this + */ + public function setActivationsProjectedEccm($activationsProjectedEccm) + { + $this->container['activationsProjectedEccm'] = $activationsProjectedEccm; + + return $this; + } + + /** + * Gets activationsProjectileWeapon + * + * @return int + */ + public function getActivationsProjectileWeapon() + { + return $this->container['activationsProjectileWeapon']; + } + + /** + * Sets activationsProjectileWeapon + * + * @param int $activationsProjectileWeapon activations_projectile_weapon integer + * + * @return $this + */ + public function setActivationsProjectileWeapon($activationsProjectileWeapon) + { + $this->container['activationsProjectileWeapon'] = $activationsProjectileWeapon; + + return $this; + } + + /** + * Gets activationsPropulsionModule + * + * @return int + */ + public function getActivationsPropulsionModule() + { + return $this->container['activationsPropulsionModule']; + } + + /** + * Sets activationsPropulsionModule + * + * @param int $activationsPropulsionModule activations_propulsion_module integer + * + * @return $this + */ + public function setActivationsPropulsionModule($activationsPropulsionModule) + { + $this->container['activationsPropulsionModule'] = $activationsPropulsionModule; + + return $this; + } + + /** + * Gets activationsRemoteArmorRepairer + * + * @return int + */ + public function getActivationsRemoteArmorRepairer() + { + return $this->container['activationsRemoteArmorRepairer']; + } + + /** + * Sets activationsRemoteArmorRepairer + * + * @param int $activationsRemoteArmorRepairer activations_remote_armor_repairer integer + * + * @return $this + */ + public function setActivationsRemoteArmorRepairer($activationsRemoteArmorRepairer) + { + $this->container['activationsRemoteArmorRepairer'] = $activationsRemoteArmorRepairer; + + return $this; + } + + /** + * Gets activationsRemoteCapacitorTransmitter + * + * @return int + */ + public function getActivationsRemoteCapacitorTransmitter() + { + return $this->container['activationsRemoteCapacitorTransmitter']; + } + + /** + * Sets activationsRemoteCapacitorTransmitter + * + * @param int $activationsRemoteCapacitorTransmitter activations_remote_capacitor_transmitter integer + * + * @return $this + */ + public function setActivationsRemoteCapacitorTransmitter($activationsRemoteCapacitorTransmitter) + { + $this->container['activationsRemoteCapacitorTransmitter'] = $activationsRemoteCapacitorTransmitter; + + return $this; + } + + /** + * Gets activationsRemoteEcmBurst + * + * @return int + */ + public function getActivationsRemoteEcmBurst() + { + return $this->container['activationsRemoteEcmBurst']; + } + + /** + * Sets activationsRemoteEcmBurst + * + * @param int $activationsRemoteEcmBurst activations_remote_ecm_burst integer + * + * @return $this + */ + public function setActivationsRemoteEcmBurst($activationsRemoteEcmBurst) + { + $this->container['activationsRemoteEcmBurst'] = $activationsRemoteEcmBurst; + + return $this; + } + + /** + * Gets activationsRemoteHullRepairer + * + * @return int + */ + public function getActivationsRemoteHullRepairer() + { + return $this->container['activationsRemoteHullRepairer']; + } + + /** + * Sets activationsRemoteHullRepairer + * + * @param int $activationsRemoteHullRepairer activations_remote_hull_repairer integer + * + * @return $this + */ + public function setActivationsRemoteHullRepairer($activationsRemoteHullRepairer) + { + $this->container['activationsRemoteHullRepairer'] = $activationsRemoteHullRepairer; + + return $this; + } + + /** + * Gets activationsRemoteSensorBooster + * + * @return int + */ + public function getActivationsRemoteSensorBooster() + { + return $this->container['activationsRemoteSensorBooster']; + } + + /** + * Sets activationsRemoteSensorBooster + * + * @param int $activationsRemoteSensorBooster activations_remote_sensor_booster integer + * + * @return $this + */ + public function setActivationsRemoteSensorBooster($activationsRemoteSensorBooster) + { + $this->container['activationsRemoteSensorBooster'] = $activationsRemoteSensorBooster; + + return $this; + } + + /** + * Gets activationsRemoteSensorDamper + * + * @return int + */ + public function getActivationsRemoteSensorDamper() + { + return $this->container['activationsRemoteSensorDamper']; + } + + /** + * Sets activationsRemoteSensorDamper + * + * @param int $activationsRemoteSensorDamper activations_remote_sensor_damper integer + * + * @return $this + */ + public function setActivationsRemoteSensorDamper($activationsRemoteSensorDamper) + { + $this->container['activationsRemoteSensorDamper'] = $activationsRemoteSensorDamper; + + return $this; + } + + /** + * Gets activationsRemoteShieldBooster + * + * @return int + */ + public function getActivationsRemoteShieldBooster() + { + return $this->container['activationsRemoteShieldBooster']; + } + + /** + * Sets activationsRemoteShieldBooster + * + * @param int $activationsRemoteShieldBooster activations_remote_shield_booster integer + * + * @return $this + */ + public function setActivationsRemoteShieldBooster($activationsRemoteShieldBooster) + { + $this->container['activationsRemoteShieldBooster'] = $activationsRemoteShieldBooster; + + return $this; + } + + /** + * Gets activationsRemoteTrackingComputer + * + * @return int + */ + public function getActivationsRemoteTrackingComputer() + { + return $this->container['activationsRemoteTrackingComputer']; + } + + /** + * Sets activationsRemoteTrackingComputer + * + * @param int $activationsRemoteTrackingComputer activations_remote_tracking_computer integer + * + * @return $this + */ + public function setActivationsRemoteTrackingComputer($activationsRemoteTrackingComputer) + { + $this->container['activationsRemoteTrackingComputer'] = $activationsRemoteTrackingComputer; + + return $this; + } + + /** + * Gets activationsSalvager + * + * @return int + */ + public function getActivationsSalvager() + { + return $this->container['activationsSalvager']; + } + + /** + * Sets activationsSalvager + * + * @param int $activationsSalvager activations_salvager integer + * + * @return $this + */ + public function setActivationsSalvager($activationsSalvager) + { + $this->container['activationsSalvager'] = $activationsSalvager; + + return $this; + } + + /** + * Gets activationsSensorBooster + * + * @return int + */ + public function getActivationsSensorBooster() + { + return $this->container['activationsSensorBooster']; + } + + /** + * Sets activationsSensorBooster + * + * @param int $activationsSensorBooster activations_sensor_booster integer + * + * @return $this + */ + public function setActivationsSensorBooster($activationsSensorBooster) + { + $this->container['activationsSensorBooster'] = $activationsSensorBooster; + + return $this; + } + + /** + * Gets activationsShieldBooster + * + * @return int + */ + public function getActivationsShieldBooster() + { + return $this->container['activationsShieldBooster']; + } + + /** + * Sets activationsShieldBooster + * + * @param int $activationsShieldBooster activations_shield_booster integer + * + * @return $this + */ + public function setActivationsShieldBooster($activationsShieldBooster) + { + $this->container['activationsShieldBooster'] = $activationsShieldBooster; + + return $this; + } + + /** + * Gets activationsShieldHardener + * + * @return int + */ + public function getActivationsShieldHardener() + { + return $this->container['activationsShieldHardener']; + } + + /** + * Sets activationsShieldHardener + * + * @param int $activationsShieldHardener activations_shield_hardener integer + * + * @return $this + */ + public function setActivationsShieldHardener($activationsShieldHardener) + { + $this->container['activationsShieldHardener'] = $activationsShieldHardener; + + return $this; + } + + /** + * Gets activationsShipScanner + * + * @return int + */ + public function getActivationsShipScanner() + { + return $this->container['activationsShipScanner']; + } + + /** + * Sets activationsShipScanner + * + * @param int $activationsShipScanner activations_ship_scanner integer + * + * @return $this + */ + public function setActivationsShipScanner($activationsShipScanner) + { + $this->container['activationsShipScanner'] = $activationsShipScanner; + + return $this; + } + + /** + * Gets activationsSiege + * + * @return int + */ + public function getActivationsSiege() + { + return $this->container['activationsSiege']; + } + + /** + * Sets activationsSiege + * + * @param int $activationsSiege activations_siege integer + * + * @return $this + */ + public function setActivationsSiege($activationsSiege) + { + $this->container['activationsSiege'] = $activationsSiege; + + return $this; + } + + /** + * Gets activationsSmartBomb + * + * @return int + */ + public function getActivationsSmartBomb() + { + return $this->container['activationsSmartBomb']; + } + + /** + * Sets activationsSmartBomb + * + * @param int $activationsSmartBomb activations_smart_bomb integer + * + * @return $this + */ + public function setActivationsSmartBomb($activationsSmartBomb) + { + $this->container['activationsSmartBomb'] = $activationsSmartBomb; + + return $this; + } + + /** + * Gets activationsStasisWeb + * + * @return int + */ + public function getActivationsStasisWeb() + { + return $this->container['activationsStasisWeb']; + } + + /** + * Sets activationsStasisWeb + * + * @param int $activationsStasisWeb activations_stasis_web integer + * + * @return $this + */ + public function setActivationsStasisWeb($activationsStasisWeb) + { + $this->container['activationsStasisWeb'] = $activationsStasisWeb; + + return $this; + } + + /** + * Gets activationsStripMiner + * + * @return int + */ + public function getActivationsStripMiner() + { + return $this->container['activationsStripMiner']; + } + + /** + * Sets activationsStripMiner + * + * @param int $activationsStripMiner activations_strip_miner integer + * + * @return $this + */ + public function setActivationsStripMiner($activationsStripMiner) + { + $this->container['activationsStripMiner'] = $activationsStripMiner; + + return $this; + } + + /** + * Gets activationsSuperWeapon + * + * @return int + */ + public function getActivationsSuperWeapon() + { + return $this->container['activationsSuperWeapon']; + } + + /** + * Sets activationsSuperWeapon + * + * @param int $activationsSuperWeapon activations_super_weapon integer + * + * @return $this + */ + public function setActivationsSuperWeapon($activationsSuperWeapon) + { + $this->container['activationsSuperWeapon'] = $activationsSuperWeapon; + + return $this; + } + + /** + * Gets activationsSurveyScanner + * + * @return int + */ + public function getActivationsSurveyScanner() + { + return $this->container['activationsSurveyScanner']; + } + + /** + * Sets activationsSurveyScanner + * + * @param int $activationsSurveyScanner activations_survey_scanner integer + * + * @return $this + */ + public function setActivationsSurveyScanner($activationsSurveyScanner) + { + $this->container['activationsSurveyScanner'] = $activationsSurveyScanner; + + return $this; + } + + /** + * Gets activationsTargetBreaker + * + * @return int + */ + public function getActivationsTargetBreaker() + { + return $this->container['activationsTargetBreaker']; + } + + /** + * Sets activationsTargetBreaker + * + * @param int $activationsTargetBreaker activations_target_breaker integer + * + * @return $this + */ + public function setActivationsTargetBreaker($activationsTargetBreaker) + { + $this->container['activationsTargetBreaker'] = $activationsTargetBreaker; + + return $this; + } + + /** + * Gets activationsTargetPainter + * + * @return int + */ + public function getActivationsTargetPainter() + { + return $this->container['activationsTargetPainter']; + } + + /** + * Sets activationsTargetPainter + * + * @param int $activationsTargetPainter activations_target_painter integer + * + * @return $this + */ + public function setActivationsTargetPainter($activationsTargetPainter) + { + $this->container['activationsTargetPainter'] = $activationsTargetPainter; + + return $this; + } + + /** + * Gets activationsTrackingComputer + * + * @return int + */ + public function getActivationsTrackingComputer() + { + return $this->container['activationsTrackingComputer']; + } + + /** + * Sets activationsTrackingComputer + * + * @param int $activationsTrackingComputer activations_tracking_computer integer + * + * @return $this + */ + public function setActivationsTrackingComputer($activationsTrackingComputer) + { + $this->container['activationsTrackingComputer'] = $activationsTrackingComputer; + + return $this; + } + + /** + * Gets activationsTrackingDisruptor + * + * @return int + */ + public function getActivationsTrackingDisruptor() + { + return $this->container['activationsTrackingDisruptor']; + } + + /** + * Sets activationsTrackingDisruptor + * + * @param int $activationsTrackingDisruptor activations_tracking_disruptor integer + * + * @return $this + */ + public function setActivationsTrackingDisruptor($activationsTrackingDisruptor) + { + $this->container['activationsTrackingDisruptor'] = $activationsTrackingDisruptor; + + return $this; + } + + /** + * Gets activationsTractorBeam + * + * @return int + */ + public function getActivationsTractorBeam() + { + return $this->container['activationsTractorBeam']; + } + + /** + * Sets activationsTractorBeam + * + * @param int $activationsTractorBeam activations_tractor_beam integer + * + * @return $this + */ + public function setActivationsTractorBeam($activationsTractorBeam) + { + $this->container['activationsTractorBeam'] = $activationsTractorBeam; + + return $this; + } + + /** + * Gets activationsTriage + * + * @return int + */ + public function getActivationsTriage() + { + return $this->container['activationsTriage']; + } + + /** + * Sets activationsTriage + * + * @param int $activationsTriage activations_triage integer + * + * @return $this + */ + public function setActivationsTriage($activationsTriage) + { + $this->container['activationsTriage'] = $activationsTriage; + + return $this; + } + + /** + * Gets activationsWarpDisruptFieldGenerator + * + * @return int + */ + public function getActivationsWarpDisruptFieldGenerator() + { + return $this->container['activationsWarpDisruptFieldGenerator']; + } + + /** + * Sets activationsWarpDisruptFieldGenerator + * + * @param int $activationsWarpDisruptFieldGenerator activations_warp_disrupt_field_generator integer + * + * @return $this + */ + public function setActivationsWarpDisruptFieldGenerator($activationsWarpDisruptFieldGenerator) + { + $this->container['activationsWarpDisruptFieldGenerator'] = $activationsWarpDisruptFieldGenerator; + + return $this; + } + + /** + * Gets activationsWarpScrambler + * + * @return int + */ + public function getActivationsWarpScrambler() + { + return $this->container['activationsWarpScrambler']; + } + + /** + * Sets activationsWarpScrambler + * + * @param int $activationsWarpScrambler activations_warp_scrambler integer + * + * @return $this + */ + public function setActivationsWarpScrambler($activationsWarpScrambler) + { + $this->container['activationsWarpScrambler'] = $activationsWarpScrambler; + + return $this; + } + + /** + * Gets linkWeapons + * + * @return int + */ + public function getLinkWeapons() + { + return $this->container['linkWeapons']; + } + + /** + * Sets linkWeapons + * + * @param int $linkWeapons link_weapons integer + * + * @return $this + */ + public function setLinkWeapons($linkWeapons) + { + $this->container['linkWeapons'] = $linkWeapons; + + return $this; + } + + /** + * Gets overload + * + * @return int + */ + public function getOverload() + { + return $this->container['overload']; + } + + /** + * Sets overload + * + * @param int $overload overload integer + * + * @return $this + */ + public function setOverload($overload) + { + $this->container['overload'] = $overload; + + return $this; + } + + /** + * Gets repairs + * + * @return int + */ + public function getRepairs() + { + return $this->container['repairs']; + } + + /** + * Sets repairs + * + * @param int $repairs repairs integer + * + * @return $this + */ + public function setRepairs($repairs) + { + $this->container['repairs'] = $repairs; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdStatsOrbital.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdStatsOrbital.php new file mode 100644 index 0000000..3f4ca2b --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdStatsOrbital.php @@ -0,0 +1,363 @@ + 'int', + 'strikeDamageToPlayersArmorAmount' => 'int', + 'strikeDamageToPlayersShieldAmount' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'strikeCharactersKilled' => 'int64', + 'strikeDamageToPlayersArmorAmount' => 'int64', + 'strikeDamageToPlayersShieldAmount' => 'int64' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'strikeCharactersKilled' => 'strike_characters_killed', + 'strikeDamageToPlayersArmorAmount' => 'strike_damage_to_players_armor_amount', + 'strikeDamageToPlayersShieldAmount' => 'strike_damage_to_players_shield_amount' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'strikeCharactersKilled' => 'setStrikeCharactersKilled', + 'strikeDamageToPlayersArmorAmount' => 'setStrikeDamageToPlayersArmorAmount', + 'strikeDamageToPlayersShieldAmount' => 'setStrikeDamageToPlayersShieldAmount' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'strikeCharactersKilled' => 'getStrikeCharactersKilled', + 'strikeDamageToPlayersArmorAmount' => 'getStrikeDamageToPlayersArmorAmount', + 'strikeDamageToPlayersShieldAmount' => 'getStrikeDamageToPlayersShieldAmount' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['strikeCharactersKilled'] = isset($data['strikeCharactersKilled']) ? $data['strikeCharactersKilled'] : null; + $this->container['strikeDamageToPlayersArmorAmount'] = isset($data['strikeDamageToPlayersArmorAmount']) ? $data['strikeDamageToPlayersArmorAmount'] : null; + $this->container['strikeDamageToPlayersShieldAmount'] = isset($data['strikeDamageToPlayersShieldAmount']) ? $data['strikeDamageToPlayersShieldAmount'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets strikeCharactersKilled + * + * @return int + */ + public function getStrikeCharactersKilled() + { + return $this->container['strikeCharactersKilled']; + } + + /** + * Sets strikeCharactersKilled + * + * @param int $strikeCharactersKilled strike_characters_killed integer + * + * @return $this + */ + public function setStrikeCharactersKilled($strikeCharactersKilled) + { + $this->container['strikeCharactersKilled'] = $strikeCharactersKilled; + + return $this; + } + + /** + * Gets strikeDamageToPlayersArmorAmount + * + * @return int + */ + public function getStrikeDamageToPlayersArmorAmount() + { + return $this->container['strikeDamageToPlayersArmorAmount']; + } + + /** + * Sets strikeDamageToPlayersArmorAmount + * + * @param int $strikeDamageToPlayersArmorAmount strike_damage_to_players_armor_amount integer + * + * @return $this + */ + public function setStrikeDamageToPlayersArmorAmount($strikeDamageToPlayersArmorAmount) + { + $this->container['strikeDamageToPlayersArmorAmount'] = $strikeDamageToPlayersArmorAmount; + + return $this; + } + + /** + * Gets strikeDamageToPlayersShieldAmount + * + * @return int + */ + public function getStrikeDamageToPlayersShieldAmount() + { + return $this->container['strikeDamageToPlayersShieldAmount']; + } + + /** + * Sets strikeDamageToPlayersShieldAmount + * + * @param int $strikeDamageToPlayersShieldAmount strike_damage_to_players_shield_amount integer + * + * @return $this + */ + public function setStrikeDamageToPlayersShieldAmount($strikeDamageToPlayersShieldAmount) + { + $this->container['strikeDamageToPlayersShieldAmount'] = $strikeDamageToPlayersShieldAmount; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdStatsPve.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdStatsPve.php new file mode 100644 index 0000000..fb0ddc7 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdStatsPve.php @@ -0,0 +1,393 @@ + 'int', + 'dungeonsCompletedDistribution' => 'int', + 'missionsSucceeded' => 'int', + 'missionsSucceededEpicArc' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'dungeonsCompletedAgent' => 'int64', + 'dungeonsCompletedDistribution' => 'int64', + 'missionsSucceeded' => 'int64', + 'missionsSucceededEpicArc' => 'int64' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'dungeonsCompletedAgent' => 'dungeons_completed_agent', + 'dungeonsCompletedDistribution' => 'dungeons_completed_distribution', + 'missionsSucceeded' => 'missions_succeeded', + 'missionsSucceededEpicArc' => 'missions_succeeded_epic_arc' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'dungeonsCompletedAgent' => 'setDungeonsCompletedAgent', + 'dungeonsCompletedDistribution' => 'setDungeonsCompletedDistribution', + 'missionsSucceeded' => 'setMissionsSucceeded', + 'missionsSucceededEpicArc' => 'setMissionsSucceededEpicArc' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'dungeonsCompletedAgent' => 'getDungeonsCompletedAgent', + 'dungeonsCompletedDistribution' => 'getDungeonsCompletedDistribution', + 'missionsSucceeded' => 'getMissionsSucceeded', + 'missionsSucceededEpicArc' => 'getMissionsSucceededEpicArc' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['dungeonsCompletedAgent'] = isset($data['dungeonsCompletedAgent']) ? $data['dungeonsCompletedAgent'] : null; + $this->container['dungeonsCompletedDistribution'] = isset($data['dungeonsCompletedDistribution']) ? $data['dungeonsCompletedDistribution'] : null; + $this->container['missionsSucceeded'] = isset($data['missionsSucceeded']) ? $data['missionsSucceeded'] : null; + $this->container['missionsSucceededEpicArc'] = isset($data['missionsSucceededEpicArc']) ? $data['missionsSucceededEpicArc'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets dungeonsCompletedAgent + * + * @return int + */ + public function getDungeonsCompletedAgent() + { + return $this->container['dungeonsCompletedAgent']; + } + + /** + * Sets dungeonsCompletedAgent + * + * @param int $dungeonsCompletedAgent dungeons_completed_agent integer + * + * @return $this + */ + public function setDungeonsCompletedAgent($dungeonsCompletedAgent) + { + $this->container['dungeonsCompletedAgent'] = $dungeonsCompletedAgent; + + return $this; + } + + /** + * Gets dungeonsCompletedDistribution + * + * @return int + */ + public function getDungeonsCompletedDistribution() + { + return $this->container['dungeonsCompletedDistribution']; + } + + /** + * Sets dungeonsCompletedDistribution + * + * @param int $dungeonsCompletedDistribution dungeons_completed_distribution integer + * + * @return $this + */ + public function setDungeonsCompletedDistribution($dungeonsCompletedDistribution) + { + $this->container['dungeonsCompletedDistribution'] = $dungeonsCompletedDistribution; + + return $this; + } + + /** + * Gets missionsSucceeded + * + * @return int + */ + public function getMissionsSucceeded() + { + return $this->container['missionsSucceeded']; + } + + /** + * Sets missionsSucceeded + * + * @param int $missionsSucceeded missions_succeeded integer + * + * @return $this + */ + public function setMissionsSucceeded($missionsSucceeded) + { + $this->container['missionsSucceeded'] = $missionsSucceeded; + + return $this; + } + + /** + * Gets missionsSucceededEpicArc + * + * @return int + */ + public function getMissionsSucceededEpicArc() + { + return $this->container['missionsSucceededEpicArc']; + } + + /** + * Sets missionsSucceededEpicArc + * + * @param int $missionsSucceededEpicArc missions_succeeded_epic_arc integer + * + * @return $this + */ + public function setMissionsSucceededEpicArc($missionsSucceededEpicArc) + { + $this->container['missionsSucceededEpicArc'] = $missionsSucceededEpicArc; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdStatsSocial.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdStatsSocial.php new file mode 100644 index 0000000..7de151d --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdStatsSocial.php @@ -0,0 +1,1023 @@ + 'int', + 'addContactGood' => 'int', + 'addContactHigh' => 'int', + 'addContactHorrible' => 'int', + 'addContactNeutral' => 'int', + 'addNote' => 'int', + 'addedAsContactBad' => 'int', + 'addedAsContactGood' => 'int', + 'addedAsContactHigh' => 'int', + 'addedAsContactHorrible' => 'int', + 'addedAsContactNeutral' => 'int', + 'calendarEventCreated' => 'int', + 'chatMessagesAlliance' => 'int', + 'chatMessagesConstellation' => 'int', + 'chatMessagesCorporation' => 'int', + 'chatMessagesFleet' => 'int', + 'chatMessagesRegion' => 'int', + 'chatMessagesSolarsystem' => 'int', + 'chatMessagesWarfaction' => 'int', + 'chatTotalMessageLength' => 'int', + 'directTrades' => 'int', + 'fleetBroadcasts' => 'int', + 'fleetJoins' => 'int', + 'mailsReceived' => 'int', + 'mailsSent' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'addContactBad' => 'int64', + 'addContactGood' => 'int64', + 'addContactHigh' => 'int64', + 'addContactHorrible' => 'int64', + 'addContactNeutral' => 'int64', + 'addNote' => 'int64', + 'addedAsContactBad' => 'int64', + 'addedAsContactGood' => 'int64', + 'addedAsContactHigh' => 'int64', + 'addedAsContactHorrible' => 'int64', + 'addedAsContactNeutral' => 'int64', + 'calendarEventCreated' => 'int64', + 'chatMessagesAlliance' => 'int64', + 'chatMessagesConstellation' => 'int64', + 'chatMessagesCorporation' => 'int64', + 'chatMessagesFleet' => 'int64', + 'chatMessagesRegion' => 'int64', + 'chatMessagesSolarsystem' => 'int64', + 'chatMessagesWarfaction' => 'int64', + 'chatTotalMessageLength' => 'int64', + 'directTrades' => 'int64', + 'fleetBroadcasts' => 'int64', + 'fleetJoins' => 'int64', + 'mailsReceived' => 'int64', + 'mailsSent' => 'int64' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'addContactBad' => 'add_contact_bad', + 'addContactGood' => 'add_contact_good', + 'addContactHigh' => 'add_contact_high', + 'addContactHorrible' => 'add_contact_horrible', + 'addContactNeutral' => 'add_contact_neutral', + 'addNote' => 'add_note', + 'addedAsContactBad' => 'added_as_contact_bad', + 'addedAsContactGood' => 'added_as_contact_good', + 'addedAsContactHigh' => 'added_as_contact_high', + 'addedAsContactHorrible' => 'added_as_contact_horrible', + 'addedAsContactNeutral' => 'added_as_contact_neutral', + 'calendarEventCreated' => 'calendar_event_created', + 'chatMessagesAlliance' => 'chat_messages_alliance', + 'chatMessagesConstellation' => 'chat_messages_constellation', + 'chatMessagesCorporation' => 'chat_messages_corporation', + 'chatMessagesFleet' => 'chat_messages_fleet', + 'chatMessagesRegion' => 'chat_messages_region', + 'chatMessagesSolarsystem' => 'chat_messages_solarsystem', + 'chatMessagesWarfaction' => 'chat_messages_warfaction', + 'chatTotalMessageLength' => 'chat_total_message_length', + 'directTrades' => 'direct_trades', + 'fleetBroadcasts' => 'fleet_broadcasts', + 'fleetJoins' => 'fleet_joins', + 'mailsReceived' => 'mails_received', + 'mailsSent' => 'mails_sent' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'addContactBad' => 'setAddContactBad', + 'addContactGood' => 'setAddContactGood', + 'addContactHigh' => 'setAddContactHigh', + 'addContactHorrible' => 'setAddContactHorrible', + 'addContactNeutral' => 'setAddContactNeutral', + 'addNote' => 'setAddNote', + 'addedAsContactBad' => 'setAddedAsContactBad', + 'addedAsContactGood' => 'setAddedAsContactGood', + 'addedAsContactHigh' => 'setAddedAsContactHigh', + 'addedAsContactHorrible' => 'setAddedAsContactHorrible', + 'addedAsContactNeutral' => 'setAddedAsContactNeutral', + 'calendarEventCreated' => 'setCalendarEventCreated', + 'chatMessagesAlliance' => 'setChatMessagesAlliance', + 'chatMessagesConstellation' => 'setChatMessagesConstellation', + 'chatMessagesCorporation' => 'setChatMessagesCorporation', + 'chatMessagesFleet' => 'setChatMessagesFleet', + 'chatMessagesRegion' => 'setChatMessagesRegion', + 'chatMessagesSolarsystem' => 'setChatMessagesSolarsystem', + 'chatMessagesWarfaction' => 'setChatMessagesWarfaction', + 'chatTotalMessageLength' => 'setChatTotalMessageLength', + 'directTrades' => 'setDirectTrades', + 'fleetBroadcasts' => 'setFleetBroadcasts', + 'fleetJoins' => 'setFleetJoins', + 'mailsReceived' => 'setMailsReceived', + 'mailsSent' => 'setMailsSent' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'addContactBad' => 'getAddContactBad', + 'addContactGood' => 'getAddContactGood', + 'addContactHigh' => 'getAddContactHigh', + 'addContactHorrible' => 'getAddContactHorrible', + 'addContactNeutral' => 'getAddContactNeutral', + 'addNote' => 'getAddNote', + 'addedAsContactBad' => 'getAddedAsContactBad', + 'addedAsContactGood' => 'getAddedAsContactGood', + 'addedAsContactHigh' => 'getAddedAsContactHigh', + 'addedAsContactHorrible' => 'getAddedAsContactHorrible', + 'addedAsContactNeutral' => 'getAddedAsContactNeutral', + 'calendarEventCreated' => 'getCalendarEventCreated', + 'chatMessagesAlliance' => 'getChatMessagesAlliance', + 'chatMessagesConstellation' => 'getChatMessagesConstellation', + 'chatMessagesCorporation' => 'getChatMessagesCorporation', + 'chatMessagesFleet' => 'getChatMessagesFleet', + 'chatMessagesRegion' => 'getChatMessagesRegion', + 'chatMessagesSolarsystem' => 'getChatMessagesSolarsystem', + 'chatMessagesWarfaction' => 'getChatMessagesWarfaction', + 'chatTotalMessageLength' => 'getChatTotalMessageLength', + 'directTrades' => 'getDirectTrades', + 'fleetBroadcasts' => 'getFleetBroadcasts', + 'fleetJoins' => 'getFleetJoins', + 'mailsReceived' => 'getMailsReceived', + 'mailsSent' => 'getMailsSent' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['addContactBad'] = isset($data['addContactBad']) ? $data['addContactBad'] : null; + $this->container['addContactGood'] = isset($data['addContactGood']) ? $data['addContactGood'] : null; + $this->container['addContactHigh'] = isset($data['addContactHigh']) ? $data['addContactHigh'] : null; + $this->container['addContactHorrible'] = isset($data['addContactHorrible']) ? $data['addContactHorrible'] : null; + $this->container['addContactNeutral'] = isset($data['addContactNeutral']) ? $data['addContactNeutral'] : null; + $this->container['addNote'] = isset($data['addNote']) ? $data['addNote'] : null; + $this->container['addedAsContactBad'] = isset($data['addedAsContactBad']) ? $data['addedAsContactBad'] : null; + $this->container['addedAsContactGood'] = isset($data['addedAsContactGood']) ? $data['addedAsContactGood'] : null; + $this->container['addedAsContactHigh'] = isset($data['addedAsContactHigh']) ? $data['addedAsContactHigh'] : null; + $this->container['addedAsContactHorrible'] = isset($data['addedAsContactHorrible']) ? $data['addedAsContactHorrible'] : null; + $this->container['addedAsContactNeutral'] = isset($data['addedAsContactNeutral']) ? $data['addedAsContactNeutral'] : null; + $this->container['calendarEventCreated'] = isset($data['calendarEventCreated']) ? $data['calendarEventCreated'] : null; + $this->container['chatMessagesAlliance'] = isset($data['chatMessagesAlliance']) ? $data['chatMessagesAlliance'] : null; + $this->container['chatMessagesConstellation'] = isset($data['chatMessagesConstellation']) ? $data['chatMessagesConstellation'] : null; + $this->container['chatMessagesCorporation'] = isset($data['chatMessagesCorporation']) ? $data['chatMessagesCorporation'] : null; + $this->container['chatMessagesFleet'] = isset($data['chatMessagesFleet']) ? $data['chatMessagesFleet'] : null; + $this->container['chatMessagesRegion'] = isset($data['chatMessagesRegion']) ? $data['chatMessagesRegion'] : null; + $this->container['chatMessagesSolarsystem'] = isset($data['chatMessagesSolarsystem']) ? $data['chatMessagesSolarsystem'] : null; + $this->container['chatMessagesWarfaction'] = isset($data['chatMessagesWarfaction']) ? $data['chatMessagesWarfaction'] : null; + $this->container['chatTotalMessageLength'] = isset($data['chatTotalMessageLength']) ? $data['chatTotalMessageLength'] : null; + $this->container['directTrades'] = isset($data['directTrades']) ? $data['directTrades'] : null; + $this->container['fleetBroadcasts'] = isset($data['fleetBroadcasts']) ? $data['fleetBroadcasts'] : null; + $this->container['fleetJoins'] = isset($data['fleetJoins']) ? $data['fleetJoins'] : null; + $this->container['mailsReceived'] = isset($data['mailsReceived']) ? $data['mailsReceived'] : null; + $this->container['mailsSent'] = isset($data['mailsSent']) ? $data['mailsSent'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets addContactBad + * + * @return int + */ + public function getAddContactBad() + { + return $this->container['addContactBad']; + } + + /** + * Sets addContactBad + * + * @param int $addContactBad add_contact_bad integer + * + * @return $this + */ + public function setAddContactBad($addContactBad) + { + $this->container['addContactBad'] = $addContactBad; + + return $this; + } + + /** + * Gets addContactGood + * + * @return int + */ + public function getAddContactGood() + { + return $this->container['addContactGood']; + } + + /** + * Sets addContactGood + * + * @param int $addContactGood add_contact_good integer + * + * @return $this + */ + public function setAddContactGood($addContactGood) + { + $this->container['addContactGood'] = $addContactGood; + + return $this; + } + + /** + * Gets addContactHigh + * + * @return int + */ + public function getAddContactHigh() + { + return $this->container['addContactHigh']; + } + + /** + * Sets addContactHigh + * + * @param int $addContactHigh add_contact_high integer + * + * @return $this + */ + public function setAddContactHigh($addContactHigh) + { + $this->container['addContactHigh'] = $addContactHigh; + + return $this; + } + + /** + * Gets addContactHorrible + * + * @return int + */ + public function getAddContactHorrible() + { + return $this->container['addContactHorrible']; + } + + /** + * Sets addContactHorrible + * + * @param int $addContactHorrible add_contact_horrible integer + * + * @return $this + */ + public function setAddContactHorrible($addContactHorrible) + { + $this->container['addContactHorrible'] = $addContactHorrible; + + return $this; + } + + /** + * Gets addContactNeutral + * + * @return int + */ + public function getAddContactNeutral() + { + return $this->container['addContactNeutral']; + } + + /** + * Sets addContactNeutral + * + * @param int $addContactNeutral add_contact_neutral integer + * + * @return $this + */ + public function setAddContactNeutral($addContactNeutral) + { + $this->container['addContactNeutral'] = $addContactNeutral; + + return $this; + } + + /** + * Gets addNote + * + * @return int + */ + public function getAddNote() + { + return $this->container['addNote']; + } + + /** + * Sets addNote + * + * @param int $addNote add_note integer + * + * @return $this + */ + public function setAddNote($addNote) + { + $this->container['addNote'] = $addNote; + + return $this; + } + + /** + * Gets addedAsContactBad + * + * @return int + */ + public function getAddedAsContactBad() + { + return $this->container['addedAsContactBad']; + } + + /** + * Sets addedAsContactBad + * + * @param int $addedAsContactBad added_as_contact_bad integer + * + * @return $this + */ + public function setAddedAsContactBad($addedAsContactBad) + { + $this->container['addedAsContactBad'] = $addedAsContactBad; + + return $this; + } + + /** + * Gets addedAsContactGood + * + * @return int + */ + public function getAddedAsContactGood() + { + return $this->container['addedAsContactGood']; + } + + /** + * Sets addedAsContactGood + * + * @param int $addedAsContactGood added_as_contact_good integer + * + * @return $this + */ + public function setAddedAsContactGood($addedAsContactGood) + { + $this->container['addedAsContactGood'] = $addedAsContactGood; + + return $this; + } + + /** + * Gets addedAsContactHigh + * + * @return int + */ + public function getAddedAsContactHigh() + { + return $this->container['addedAsContactHigh']; + } + + /** + * Sets addedAsContactHigh + * + * @param int $addedAsContactHigh added_as_contact_high integer + * + * @return $this + */ + public function setAddedAsContactHigh($addedAsContactHigh) + { + $this->container['addedAsContactHigh'] = $addedAsContactHigh; + + return $this; + } + + /** + * Gets addedAsContactHorrible + * + * @return int + */ + public function getAddedAsContactHorrible() + { + return $this->container['addedAsContactHorrible']; + } + + /** + * Sets addedAsContactHorrible + * + * @param int $addedAsContactHorrible added_as_contact_horrible integer + * + * @return $this + */ + public function setAddedAsContactHorrible($addedAsContactHorrible) + { + $this->container['addedAsContactHorrible'] = $addedAsContactHorrible; + + return $this; + } + + /** + * Gets addedAsContactNeutral + * + * @return int + */ + public function getAddedAsContactNeutral() + { + return $this->container['addedAsContactNeutral']; + } + + /** + * Sets addedAsContactNeutral + * + * @param int $addedAsContactNeutral added_as_contact_neutral integer + * + * @return $this + */ + public function setAddedAsContactNeutral($addedAsContactNeutral) + { + $this->container['addedAsContactNeutral'] = $addedAsContactNeutral; + + return $this; + } + + /** + * Gets calendarEventCreated + * + * @return int + */ + public function getCalendarEventCreated() + { + return $this->container['calendarEventCreated']; + } + + /** + * Sets calendarEventCreated + * + * @param int $calendarEventCreated calendar_event_created integer + * + * @return $this + */ + public function setCalendarEventCreated($calendarEventCreated) + { + $this->container['calendarEventCreated'] = $calendarEventCreated; + + return $this; + } + + /** + * Gets chatMessagesAlliance + * + * @return int + */ + public function getChatMessagesAlliance() + { + return $this->container['chatMessagesAlliance']; + } + + /** + * Sets chatMessagesAlliance + * + * @param int $chatMessagesAlliance chat_messages_alliance integer + * + * @return $this + */ + public function setChatMessagesAlliance($chatMessagesAlliance) + { + $this->container['chatMessagesAlliance'] = $chatMessagesAlliance; + + return $this; + } + + /** + * Gets chatMessagesConstellation + * + * @return int + */ + public function getChatMessagesConstellation() + { + return $this->container['chatMessagesConstellation']; + } + + /** + * Sets chatMessagesConstellation + * + * @param int $chatMessagesConstellation chat_messages_constellation integer + * + * @return $this + */ + public function setChatMessagesConstellation($chatMessagesConstellation) + { + $this->container['chatMessagesConstellation'] = $chatMessagesConstellation; + + return $this; + } + + /** + * Gets chatMessagesCorporation + * + * @return int + */ + public function getChatMessagesCorporation() + { + return $this->container['chatMessagesCorporation']; + } + + /** + * Sets chatMessagesCorporation + * + * @param int $chatMessagesCorporation chat_messages_corporation integer + * + * @return $this + */ + public function setChatMessagesCorporation($chatMessagesCorporation) + { + $this->container['chatMessagesCorporation'] = $chatMessagesCorporation; + + return $this; + } + + /** + * Gets chatMessagesFleet + * + * @return int + */ + public function getChatMessagesFleet() + { + return $this->container['chatMessagesFleet']; + } + + /** + * Sets chatMessagesFleet + * + * @param int $chatMessagesFleet chat_messages_fleet integer + * + * @return $this + */ + public function setChatMessagesFleet($chatMessagesFleet) + { + $this->container['chatMessagesFleet'] = $chatMessagesFleet; + + return $this; + } + + /** + * Gets chatMessagesRegion + * + * @return int + */ + public function getChatMessagesRegion() + { + return $this->container['chatMessagesRegion']; + } + + /** + * Sets chatMessagesRegion + * + * @param int $chatMessagesRegion chat_messages_region integer + * + * @return $this + */ + public function setChatMessagesRegion($chatMessagesRegion) + { + $this->container['chatMessagesRegion'] = $chatMessagesRegion; + + return $this; + } + + /** + * Gets chatMessagesSolarsystem + * + * @return int + */ + public function getChatMessagesSolarsystem() + { + return $this->container['chatMessagesSolarsystem']; + } + + /** + * Sets chatMessagesSolarsystem + * + * @param int $chatMessagesSolarsystem chat_messages_solarsystem integer + * + * @return $this + */ + public function setChatMessagesSolarsystem($chatMessagesSolarsystem) + { + $this->container['chatMessagesSolarsystem'] = $chatMessagesSolarsystem; + + return $this; + } + + /** + * Gets chatMessagesWarfaction + * + * @return int + */ + public function getChatMessagesWarfaction() + { + return $this->container['chatMessagesWarfaction']; + } + + /** + * Sets chatMessagesWarfaction + * + * @param int $chatMessagesWarfaction chat_messages_warfaction integer + * + * @return $this + */ + public function setChatMessagesWarfaction($chatMessagesWarfaction) + { + $this->container['chatMessagesWarfaction'] = $chatMessagesWarfaction; + + return $this; + } + + /** + * Gets chatTotalMessageLength + * + * @return int + */ + public function getChatTotalMessageLength() + { + return $this->container['chatTotalMessageLength']; + } + + /** + * Sets chatTotalMessageLength + * + * @param int $chatTotalMessageLength chat_total_message_length integer + * + * @return $this + */ + public function setChatTotalMessageLength($chatTotalMessageLength) + { + $this->container['chatTotalMessageLength'] = $chatTotalMessageLength; + + return $this; + } + + /** + * Gets directTrades + * + * @return int + */ + public function getDirectTrades() + { + return $this->container['directTrades']; + } + + /** + * Sets directTrades + * + * @param int $directTrades direct_trades integer + * + * @return $this + */ + public function setDirectTrades($directTrades) + { + $this->container['directTrades'] = $directTrades; + + return $this; + } + + /** + * Gets fleetBroadcasts + * + * @return int + */ + public function getFleetBroadcasts() + { + return $this->container['fleetBroadcasts']; + } + + /** + * Sets fleetBroadcasts + * + * @param int $fleetBroadcasts fleet_broadcasts integer + * + * @return $this + */ + public function setFleetBroadcasts($fleetBroadcasts) + { + $this->container['fleetBroadcasts'] = $fleetBroadcasts; + + return $this; + } + + /** + * Gets fleetJoins + * + * @return int + */ + public function getFleetJoins() + { + return $this->container['fleetJoins']; + } + + /** + * Sets fleetJoins + * + * @param int $fleetJoins fleet_joins integer + * + * @return $this + */ + public function setFleetJoins($fleetJoins) + { + $this->container['fleetJoins'] = $fleetJoins; + + return $this; + } + + /** + * Gets mailsReceived + * + * @return int + */ + public function getMailsReceived() + { + return $this->container['mailsReceived']; + } + + /** + * Sets mailsReceived + * + * @param int $mailsReceived mails_received integer + * + * @return $this + */ + public function setMailsReceived($mailsReceived) + { + $this->container['mailsReceived'] = $mailsReceived; + + return $this; + } + + /** + * Gets mailsSent + * + * @return int + */ + public function getMailsSent() + { + return $this->container['mailsSent']; + } + + /** + * Sets mailsSent + * + * @param int $mailsSent mails_sent integer + * + * @return $this + */ + public function setMailsSent($mailsSent) + { + $this->container['mailsSent'] = $mailsSent; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdStatsTravel.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdStatsTravel.php new file mode 100644 index 0000000..3dfaa9c --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdStatsTravel.php @@ -0,0 +1,903 @@ + 'int', + 'alignTo' => 'int', + 'distanceWarpedHighSec' => 'int', + 'distanceWarpedLowSec' => 'int', + 'distanceWarpedNullSec' => 'int', + 'distanceWarpedWormhole' => 'int', + 'docksHighSec' => 'int', + 'docksLowSec' => 'int', + 'docksNullSec' => 'int', + 'jumpsStargateHighSec' => 'int', + 'jumpsStargateLowSec' => 'int', + 'jumpsStargateNullSec' => 'int', + 'jumpsWormhole' => 'int', + 'warpsHighSec' => 'int', + 'warpsLowSec' => 'int', + 'warpsNullSec' => 'int', + 'warpsToBookmark' => 'int', + 'warpsToCelestial' => 'int', + 'warpsToFleetMember' => 'int', + 'warpsToScanResult' => 'int', + 'warpsWormhole' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'accelerationGateActivations' => 'int64', + 'alignTo' => 'int64', + 'distanceWarpedHighSec' => 'int64', + 'distanceWarpedLowSec' => 'int64', + 'distanceWarpedNullSec' => 'int64', + 'distanceWarpedWormhole' => 'int64', + 'docksHighSec' => 'int64', + 'docksLowSec' => 'int64', + 'docksNullSec' => 'int64', + 'jumpsStargateHighSec' => 'int64', + 'jumpsStargateLowSec' => 'int64', + 'jumpsStargateNullSec' => 'int64', + 'jumpsWormhole' => 'int64', + 'warpsHighSec' => 'int64', + 'warpsLowSec' => 'int64', + 'warpsNullSec' => 'int64', + 'warpsToBookmark' => 'int64', + 'warpsToCelestial' => 'int64', + 'warpsToFleetMember' => 'int64', + 'warpsToScanResult' => 'int64', + 'warpsWormhole' => 'int64' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'accelerationGateActivations' => 'acceleration_gate_activations', + 'alignTo' => 'align_to', + 'distanceWarpedHighSec' => 'distance_warped_high_sec', + 'distanceWarpedLowSec' => 'distance_warped_low_sec', + 'distanceWarpedNullSec' => 'distance_warped_null_sec', + 'distanceWarpedWormhole' => 'distance_warped_wormhole', + 'docksHighSec' => 'docks_high_sec', + 'docksLowSec' => 'docks_low_sec', + 'docksNullSec' => 'docks_null_sec', + 'jumpsStargateHighSec' => 'jumps_stargate_high_sec', + 'jumpsStargateLowSec' => 'jumps_stargate_low_sec', + 'jumpsStargateNullSec' => 'jumps_stargate_null_sec', + 'jumpsWormhole' => 'jumps_wormhole', + 'warpsHighSec' => 'warps_high_sec', + 'warpsLowSec' => 'warps_low_sec', + 'warpsNullSec' => 'warps_null_sec', + 'warpsToBookmark' => 'warps_to_bookmark', + 'warpsToCelestial' => 'warps_to_celestial', + 'warpsToFleetMember' => 'warps_to_fleet_member', + 'warpsToScanResult' => 'warps_to_scan_result', + 'warpsWormhole' => 'warps_wormhole' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'accelerationGateActivations' => 'setAccelerationGateActivations', + 'alignTo' => 'setAlignTo', + 'distanceWarpedHighSec' => 'setDistanceWarpedHighSec', + 'distanceWarpedLowSec' => 'setDistanceWarpedLowSec', + 'distanceWarpedNullSec' => 'setDistanceWarpedNullSec', + 'distanceWarpedWormhole' => 'setDistanceWarpedWormhole', + 'docksHighSec' => 'setDocksHighSec', + 'docksLowSec' => 'setDocksLowSec', + 'docksNullSec' => 'setDocksNullSec', + 'jumpsStargateHighSec' => 'setJumpsStargateHighSec', + 'jumpsStargateLowSec' => 'setJumpsStargateLowSec', + 'jumpsStargateNullSec' => 'setJumpsStargateNullSec', + 'jumpsWormhole' => 'setJumpsWormhole', + 'warpsHighSec' => 'setWarpsHighSec', + 'warpsLowSec' => 'setWarpsLowSec', + 'warpsNullSec' => 'setWarpsNullSec', + 'warpsToBookmark' => 'setWarpsToBookmark', + 'warpsToCelestial' => 'setWarpsToCelestial', + 'warpsToFleetMember' => 'setWarpsToFleetMember', + 'warpsToScanResult' => 'setWarpsToScanResult', + 'warpsWormhole' => 'setWarpsWormhole' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'accelerationGateActivations' => 'getAccelerationGateActivations', + 'alignTo' => 'getAlignTo', + 'distanceWarpedHighSec' => 'getDistanceWarpedHighSec', + 'distanceWarpedLowSec' => 'getDistanceWarpedLowSec', + 'distanceWarpedNullSec' => 'getDistanceWarpedNullSec', + 'distanceWarpedWormhole' => 'getDistanceWarpedWormhole', + 'docksHighSec' => 'getDocksHighSec', + 'docksLowSec' => 'getDocksLowSec', + 'docksNullSec' => 'getDocksNullSec', + 'jumpsStargateHighSec' => 'getJumpsStargateHighSec', + 'jumpsStargateLowSec' => 'getJumpsStargateLowSec', + 'jumpsStargateNullSec' => 'getJumpsStargateNullSec', + 'jumpsWormhole' => 'getJumpsWormhole', + 'warpsHighSec' => 'getWarpsHighSec', + 'warpsLowSec' => 'getWarpsLowSec', + 'warpsNullSec' => 'getWarpsNullSec', + 'warpsToBookmark' => 'getWarpsToBookmark', + 'warpsToCelestial' => 'getWarpsToCelestial', + 'warpsToFleetMember' => 'getWarpsToFleetMember', + 'warpsToScanResult' => 'getWarpsToScanResult', + 'warpsWormhole' => 'getWarpsWormhole' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['accelerationGateActivations'] = isset($data['accelerationGateActivations']) ? $data['accelerationGateActivations'] : null; + $this->container['alignTo'] = isset($data['alignTo']) ? $data['alignTo'] : null; + $this->container['distanceWarpedHighSec'] = isset($data['distanceWarpedHighSec']) ? $data['distanceWarpedHighSec'] : null; + $this->container['distanceWarpedLowSec'] = isset($data['distanceWarpedLowSec']) ? $data['distanceWarpedLowSec'] : null; + $this->container['distanceWarpedNullSec'] = isset($data['distanceWarpedNullSec']) ? $data['distanceWarpedNullSec'] : null; + $this->container['distanceWarpedWormhole'] = isset($data['distanceWarpedWormhole']) ? $data['distanceWarpedWormhole'] : null; + $this->container['docksHighSec'] = isset($data['docksHighSec']) ? $data['docksHighSec'] : null; + $this->container['docksLowSec'] = isset($data['docksLowSec']) ? $data['docksLowSec'] : null; + $this->container['docksNullSec'] = isset($data['docksNullSec']) ? $data['docksNullSec'] : null; + $this->container['jumpsStargateHighSec'] = isset($data['jumpsStargateHighSec']) ? $data['jumpsStargateHighSec'] : null; + $this->container['jumpsStargateLowSec'] = isset($data['jumpsStargateLowSec']) ? $data['jumpsStargateLowSec'] : null; + $this->container['jumpsStargateNullSec'] = isset($data['jumpsStargateNullSec']) ? $data['jumpsStargateNullSec'] : null; + $this->container['jumpsWormhole'] = isset($data['jumpsWormhole']) ? $data['jumpsWormhole'] : null; + $this->container['warpsHighSec'] = isset($data['warpsHighSec']) ? $data['warpsHighSec'] : null; + $this->container['warpsLowSec'] = isset($data['warpsLowSec']) ? $data['warpsLowSec'] : null; + $this->container['warpsNullSec'] = isset($data['warpsNullSec']) ? $data['warpsNullSec'] : null; + $this->container['warpsToBookmark'] = isset($data['warpsToBookmark']) ? $data['warpsToBookmark'] : null; + $this->container['warpsToCelestial'] = isset($data['warpsToCelestial']) ? $data['warpsToCelestial'] : null; + $this->container['warpsToFleetMember'] = isset($data['warpsToFleetMember']) ? $data['warpsToFleetMember'] : null; + $this->container['warpsToScanResult'] = isset($data['warpsToScanResult']) ? $data['warpsToScanResult'] : null; + $this->container['warpsWormhole'] = isset($data['warpsWormhole']) ? $data['warpsWormhole'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets accelerationGateActivations + * + * @return int + */ + public function getAccelerationGateActivations() + { + return $this->container['accelerationGateActivations']; + } + + /** + * Sets accelerationGateActivations + * + * @param int $accelerationGateActivations acceleration_gate_activations integer + * + * @return $this + */ + public function setAccelerationGateActivations($accelerationGateActivations) + { + $this->container['accelerationGateActivations'] = $accelerationGateActivations; + + return $this; + } + + /** + * Gets alignTo + * + * @return int + */ + public function getAlignTo() + { + return $this->container['alignTo']; + } + + /** + * Sets alignTo + * + * @param int $alignTo align_to integer + * + * @return $this + */ + public function setAlignTo($alignTo) + { + $this->container['alignTo'] = $alignTo; + + return $this; + } + + /** + * Gets distanceWarpedHighSec + * + * @return int + */ + public function getDistanceWarpedHighSec() + { + return $this->container['distanceWarpedHighSec']; + } + + /** + * Sets distanceWarpedHighSec + * + * @param int $distanceWarpedHighSec distance_warped_high_sec integer + * + * @return $this + */ + public function setDistanceWarpedHighSec($distanceWarpedHighSec) + { + $this->container['distanceWarpedHighSec'] = $distanceWarpedHighSec; + + return $this; + } + + /** + * Gets distanceWarpedLowSec + * + * @return int + */ + public function getDistanceWarpedLowSec() + { + return $this->container['distanceWarpedLowSec']; + } + + /** + * Sets distanceWarpedLowSec + * + * @param int $distanceWarpedLowSec distance_warped_low_sec integer + * + * @return $this + */ + public function setDistanceWarpedLowSec($distanceWarpedLowSec) + { + $this->container['distanceWarpedLowSec'] = $distanceWarpedLowSec; + + return $this; + } + + /** + * Gets distanceWarpedNullSec + * + * @return int + */ + public function getDistanceWarpedNullSec() + { + return $this->container['distanceWarpedNullSec']; + } + + /** + * Sets distanceWarpedNullSec + * + * @param int $distanceWarpedNullSec distance_warped_null_sec integer + * + * @return $this + */ + public function setDistanceWarpedNullSec($distanceWarpedNullSec) + { + $this->container['distanceWarpedNullSec'] = $distanceWarpedNullSec; + + return $this; + } + + /** + * Gets distanceWarpedWormhole + * + * @return int + */ + public function getDistanceWarpedWormhole() + { + return $this->container['distanceWarpedWormhole']; + } + + /** + * Sets distanceWarpedWormhole + * + * @param int $distanceWarpedWormhole distance_warped_wormhole integer + * + * @return $this + */ + public function setDistanceWarpedWormhole($distanceWarpedWormhole) + { + $this->container['distanceWarpedWormhole'] = $distanceWarpedWormhole; + + return $this; + } + + /** + * Gets docksHighSec + * + * @return int + */ + public function getDocksHighSec() + { + return $this->container['docksHighSec']; + } + + /** + * Sets docksHighSec + * + * @param int $docksHighSec docks_high_sec integer + * + * @return $this + */ + public function setDocksHighSec($docksHighSec) + { + $this->container['docksHighSec'] = $docksHighSec; + + return $this; + } + + /** + * Gets docksLowSec + * + * @return int + */ + public function getDocksLowSec() + { + return $this->container['docksLowSec']; + } + + /** + * Sets docksLowSec + * + * @param int $docksLowSec docks_low_sec integer + * + * @return $this + */ + public function setDocksLowSec($docksLowSec) + { + $this->container['docksLowSec'] = $docksLowSec; + + return $this; + } + + /** + * Gets docksNullSec + * + * @return int + */ + public function getDocksNullSec() + { + return $this->container['docksNullSec']; + } + + /** + * Sets docksNullSec + * + * @param int $docksNullSec docks_null_sec integer + * + * @return $this + */ + public function setDocksNullSec($docksNullSec) + { + $this->container['docksNullSec'] = $docksNullSec; + + return $this; + } + + /** + * Gets jumpsStargateHighSec + * + * @return int + */ + public function getJumpsStargateHighSec() + { + return $this->container['jumpsStargateHighSec']; + } + + /** + * Sets jumpsStargateHighSec + * + * @param int $jumpsStargateHighSec jumps_stargate_high_sec integer + * + * @return $this + */ + public function setJumpsStargateHighSec($jumpsStargateHighSec) + { + $this->container['jumpsStargateHighSec'] = $jumpsStargateHighSec; + + return $this; + } + + /** + * Gets jumpsStargateLowSec + * + * @return int + */ + public function getJumpsStargateLowSec() + { + return $this->container['jumpsStargateLowSec']; + } + + /** + * Sets jumpsStargateLowSec + * + * @param int $jumpsStargateLowSec jumps_stargate_low_sec integer + * + * @return $this + */ + public function setJumpsStargateLowSec($jumpsStargateLowSec) + { + $this->container['jumpsStargateLowSec'] = $jumpsStargateLowSec; + + return $this; + } + + /** + * Gets jumpsStargateNullSec + * + * @return int + */ + public function getJumpsStargateNullSec() + { + return $this->container['jumpsStargateNullSec']; + } + + /** + * Sets jumpsStargateNullSec + * + * @param int $jumpsStargateNullSec jumps_stargate_null_sec integer + * + * @return $this + */ + public function setJumpsStargateNullSec($jumpsStargateNullSec) + { + $this->container['jumpsStargateNullSec'] = $jumpsStargateNullSec; + + return $this; + } + + /** + * Gets jumpsWormhole + * + * @return int + */ + public function getJumpsWormhole() + { + return $this->container['jumpsWormhole']; + } + + /** + * Sets jumpsWormhole + * + * @param int $jumpsWormhole jumps_wormhole integer + * + * @return $this + */ + public function setJumpsWormhole($jumpsWormhole) + { + $this->container['jumpsWormhole'] = $jumpsWormhole; + + return $this; + } + + /** + * Gets warpsHighSec + * + * @return int + */ + public function getWarpsHighSec() + { + return $this->container['warpsHighSec']; + } + + /** + * Sets warpsHighSec + * + * @param int $warpsHighSec warps_high_sec integer + * + * @return $this + */ + public function setWarpsHighSec($warpsHighSec) + { + $this->container['warpsHighSec'] = $warpsHighSec; + + return $this; + } + + /** + * Gets warpsLowSec + * + * @return int + */ + public function getWarpsLowSec() + { + return $this->container['warpsLowSec']; + } + + /** + * Sets warpsLowSec + * + * @param int $warpsLowSec warps_low_sec integer + * + * @return $this + */ + public function setWarpsLowSec($warpsLowSec) + { + $this->container['warpsLowSec'] = $warpsLowSec; + + return $this; + } + + /** + * Gets warpsNullSec + * + * @return int + */ + public function getWarpsNullSec() + { + return $this->container['warpsNullSec']; + } + + /** + * Sets warpsNullSec + * + * @param int $warpsNullSec warps_null_sec integer + * + * @return $this + */ + public function setWarpsNullSec($warpsNullSec) + { + $this->container['warpsNullSec'] = $warpsNullSec; + + return $this; + } + + /** + * Gets warpsToBookmark + * + * @return int + */ + public function getWarpsToBookmark() + { + return $this->container['warpsToBookmark']; + } + + /** + * Sets warpsToBookmark + * + * @param int $warpsToBookmark warps_to_bookmark integer + * + * @return $this + */ + public function setWarpsToBookmark($warpsToBookmark) + { + $this->container['warpsToBookmark'] = $warpsToBookmark; + + return $this; + } + + /** + * Gets warpsToCelestial + * + * @return int + */ + public function getWarpsToCelestial() + { + return $this->container['warpsToCelestial']; + } + + /** + * Sets warpsToCelestial + * + * @param int $warpsToCelestial warps_to_celestial integer + * + * @return $this + */ + public function setWarpsToCelestial($warpsToCelestial) + { + $this->container['warpsToCelestial'] = $warpsToCelestial; + + return $this; + } + + /** + * Gets warpsToFleetMember + * + * @return int + */ + public function getWarpsToFleetMember() + { + return $this->container['warpsToFleetMember']; + } + + /** + * Sets warpsToFleetMember + * + * @param int $warpsToFleetMember warps_to_fleet_member integer + * + * @return $this + */ + public function setWarpsToFleetMember($warpsToFleetMember) + { + $this->container['warpsToFleetMember'] = $warpsToFleetMember; + + return $this; + } + + /** + * Gets warpsToScanResult + * + * @return int + */ + public function getWarpsToScanResult() + { + return $this->container['warpsToScanResult']; + } + + /** + * Sets warpsToScanResult + * + * @param int $warpsToScanResult warps_to_scan_result integer + * + * @return $this + */ + public function setWarpsToScanResult($warpsToScanResult) + { + $this->container['warpsToScanResult'] = $warpsToScanResult; + + return $this; + } + + /** + * Gets warpsWormhole + * + * @return int + */ + public function getWarpsWormhole() + { + return $this->container['warpsWormhole']; + } + + /** + * Sets warpsWormhole + * + * @param int $warpsWormhole warps_wormhole integer + * + * @return $this + */ + public function setWarpsWormhole($warpsWormhole) + { + $this->container['warpsWormhole'] = $warpsWormhole; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdTitles200Ok.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdTitles200Ok.php new file mode 100644 index 0000000..18f0284 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdTitles200Ok.php @@ -0,0 +1,333 @@ + 'int', + 'name' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'titleId' => 'int32', + 'name' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'titleId' => 'title_id', + 'name' => 'name' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'titleId' => 'setTitleId', + 'name' => 'setName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'titleId' => 'getTitleId', + 'name' => 'getName' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['titleId'] = isset($data['titleId']) ? $data['titleId'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets titleId + * + * @return int + */ + public function getTitleId() + { + return $this->container['titleId']; + } + + /** + * Sets titleId + * + * @param int $titleId title_id integer + * + * @return $this + */ + public function setTitleId($titleId) + { + $this->container['titleId'] = $titleId; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdWalletJournal200Ok.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdWalletJournal200Ok.php new file mode 100644 index 0000000..df2009d --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdWalletJournal200Ok.php @@ -0,0 +1,1031 @@ + '\DateTime', + 'refId' => 'int', + 'refType' => 'string', + 'firstPartyId' => 'int', + 'firstPartyType' => 'string', + 'secondPartyId' => 'int', + 'secondPartyType' => 'string', + 'amount' => 'double', + 'balance' => 'double', + 'reason' => 'string', + 'taxReceiverId' => 'int', + 'tax' => 'double', + 'extraInfo' => '\nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdWalletJournalExtraInfo' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'date' => 'date-time', + 'refId' => 'int64', + 'refType' => null, + 'firstPartyId' => 'int32', + 'firstPartyType' => null, + 'secondPartyId' => 'int32', + 'secondPartyType' => null, + 'amount' => 'double', + 'balance' => 'double', + 'reason' => null, + 'taxReceiverId' => 'int32', + 'tax' => 'double', + 'extraInfo' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'date' => 'date', + 'refId' => 'ref_id', + 'refType' => 'ref_type', + 'firstPartyId' => 'first_party_id', + 'firstPartyType' => 'first_party_type', + 'secondPartyId' => 'second_party_id', + 'secondPartyType' => 'second_party_type', + 'amount' => 'amount', + 'balance' => 'balance', + 'reason' => 'reason', + 'taxReceiverId' => 'tax_receiver_id', + 'tax' => 'tax', + 'extraInfo' => 'extra_info' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'date' => 'setDate', + 'refId' => 'setRefId', + 'refType' => 'setRefType', + 'firstPartyId' => 'setFirstPartyId', + 'firstPartyType' => 'setFirstPartyType', + 'secondPartyId' => 'setSecondPartyId', + 'secondPartyType' => 'setSecondPartyType', + 'amount' => 'setAmount', + 'balance' => 'setBalance', + 'reason' => 'setReason', + 'taxReceiverId' => 'setTaxReceiverId', + 'tax' => 'setTax', + 'extraInfo' => 'setExtraInfo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'date' => 'getDate', + 'refId' => 'getRefId', + 'refType' => 'getRefType', + 'firstPartyId' => 'getFirstPartyId', + 'firstPartyType' => 'getFirstPartyType', + 'secondPartyId' => 'getSecondPartyId', + 'secondPartyType' => 'getSecondPartyType', + 'amount' => 'getAmount', + 'balance' => 'getBalance', + 'reason' => 'getReason', + 'taxReceiverId' => 'getTaxReceiverId', + 'tax' => 'getTax', + 'extraInfo' => 'getExtraInfo' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const REF_TYPE_ACCELERATION_GATE_FEE = 'acceleration_gate_fee'; + const REF_TYPE_ADVERTISEMENT_LISTING_FEE = 'advertisement_listing_fee'; + const REF_TYPE_AGENT_DONATION = 'agent_donation'; + const REF_TYPE_AGENT_LOCATION_SERVICES = 'agent_location_services'; + const REF_TYPE_AGENT_MISCELLANEOUS = 'agent_miscellaneous'; + const REF_TYPE_AGENT_MISSION_COLLATERAL_PAID = 'agent_mission_collateral_paid'; + const REF_TYPE_AGENT_MISSION_COLLATERAL_REFUNDED = 'agent_mission_collateral_refunded'; + const REF_TYPE_AGENT_MISSION_REWARD = 'agent_mission_reward'; + const REF_TYPE_AGENT_MISSION_REWARD_CORPORATION_TAX = 'agent_mission_reward_corporation_tax'; + const REF_TYPE_AGENT_MISSION_TIME_BONUS_REWARD = 'agent_mission_time_bonus_reward'; + const REF_TYPE_AGENT_MISSION_TIME_BONUS_REWARD_CORPORATION_TAX = 'agent_mission_time_bonus_reward_corporation_tax'; + const REF_TYPE_AGENT_SECURITY_SERVICES = 'agent_security_services'; + const REF_TYPE_AGENT_SERVICES_RENDERED = 'agent_services_rendered'; + const REF_TYPE_AGENTS_PREWARD = 'agents_preward'; + const REF_TYPE_ALLIANCE_MAINTAINANCE_FEE = 'alliance_maintainance_fee'; + const REF_TYPE_ALLIANCE_REGISTRATION_FEE = 'alliance_registration_fee'; + const REF_TYPE_ASSET_SAFETY_RECOVERY_TAX = 'asset_safety_recovery_tax'; + const REF_TYPE_BOUNTY = 'bounty'; + const REF_TYPE_BOUNTY_PRIZE = 'bounty_prize'; + const REF_TYPE_BOUNTY_PRIZE_CORPORATION_TAX = 'bounty_prize_corporation_tax'; + const REF_TYPE_BOUNTY_PRIZES = 'bounty_prizes'; + const REF_TYPE_BOUNTY_REIMBURSEMENT = 'bounty_reimbursement'; + const REF_TYPE_BOUNTY_SURCHARGE = 'bounty_surcharge'; + const REF_TYPE_BROKERS_FEE = 'brokers_fee'; + const REF_TYPE_CLONE_ACTIVATION = 'clone_activation'; + const REF_TYPE_CLONE_TRANSFER = 'clone_transfer'; + const REF_TYPE_CONTRABAND_FINE = 'contraband_fine'; + const REF_TYPE_CONTRACT_AUCTION_BID = 'contract_auction_bid'; + const REF_TYPE_CONTRACT_AUCTION_BID_CORP = 'contract_auction_bid_corp'; + const REF_TYPE_CONTRACT_AUCTION_BID_REFUND = 'contract_auction_bid_refund'; + const REF_TYPE_CONTRACT_AUCTION_SOLD = 'contract_auction_sold'; + const REF_TYPE_CONTRACT_BROKERS_FEE = 'contract_brokers_fee'; + const REF_TYPE_CONTRACT_BROKERS_FEE_CORP = 'contract_brokers_fee_corp'; + const REF_TYPE_CONTRACT_COLLATERAL = 'contract_collateral'; + const REF_TYPE_CONTRACT_COLLATERAL_DEPOSITED_CORP = 'contract_collateral_deposited_corp'; + const REF_TYPE_CONTRACT_COLLATERAL_PAYOUT = 'contract_collateral_payout'; + const REF_TYPE_CONTRACT_COLLATERAL_REFUND = 'contract_collateral_refund'; + const REF_TYPE_CONTRACT_DEPOSIT = 'contract_deposit'; + const REF_TYPE_CONTRACT_DEPOSIT_CORP = 'contract_deposit_corp'; + const REF_TYPE_CONTRACT_DEPOSIT_REFUND = 'contract_deposit_refund'; + const REF_TYPE_CONTRACT_DEPOSIT_SALES_TAX = 'contract_deposit_sales_tax'; + const REF_TYPE_CONTRACT_PRICE = 'contract_price'; + const REF_TYPE_CONTRACT_PRICE_PAYMENT_CORP = 'contract_price_payment_corp'; + const REF_TYPE_CONTRACT_REVERSAL = 'contract_reversal'; + const REF_TYPE_CONTRACT_REWARD = 'contract_reward'; + const REF_TYPE_CONTRACT_REWARD_DEPOSITED = 'contract_reward_deposited'; + const REF_TYPE_CONTRACT_REWARD_DEPOSITED_CORP = 'contract_reward_deposited_corp'; + const REF_TYPE_CONTRACT_REWARD_REFUND = 'contract_reward_refund'; + const REF_TYPE_CONTRACT_SALES_TAX = 'contract_sales_tax'; + const REF_TYPE_COPYING = 'copying'; + const REF_TYPE_CORPORATE_REWARD_PAYOUT = 'corporate_reward_payout'; + const REF_TYPE_CORPORATE_REWARD_TAX = 'corporate_reward_tax'; + const REF_TYPE_CORPORATION_ACCOUNT_WITHDRAWAL = 'corporation_account_withdrawal'; + const REF_TYPE_CORPORATION_BULK_PAYMENT = 'corporation_bulk_payment'; + const REF_TYPE_CORPORATION_DIVIDEND_PAYMENT = 'corporation_dividend_payment'; + const REF_TYPE_CORPORATION_LIQUIDATION = 'corporation_liquidation'; + const REF_TYPE_CORPORATION_LOGO_CHANGE_COST = 'corporation_logo_change_cost'; + const REF_TYPE_CORPORATION_PAYMENT = 'corporation_payment'; + const REF_TYPE_CORPORATION_REGISTRATION_FEE = 'corporation_registration_fee'; + const REF_TYPE_COURIER_MISSION_ESCROW = 'courier_mission_escrow'; + const REF_TYPE_CSPA = 'cspa'; + const REF_TYPE_CSPAOFFLINEREFUND = 'cspaofflinerefund'; + const REF_TYPE_DATACORE_FEE = 'datacore_fee'; + const REF_TYPE_DNA_MODIFICATION_FEE = 'dna_modification_fee'; + const REF_TYPE_DOCKING_FEE = 'docking_fee'; + const REF_TYPE_DUEL_WAGER_ESCROW = 'duel_wager_escrow'; + const REF_TYPE_DUEL_WAGER_PAYMENT = 'duel_wager_payment'; + const REF_TYPE_DUEL_WAGER_REFUND = 'duel_wager_refund'; + const REF_TYPE_FACTORY_SLOT_RENTAL_FEE = 'factory_slot_rental_fee'; + const REF_TYPE_GM_CASH_TRANSFER = 'gm_cash_transfer'; + const REF_TYPE_INDUSTRY_JOB_TAX = 'industry_job_tax'; + const REF_TYPE_INFRASTRUCTURE_HUB_MAINTENANCE = 'infrastructure_hub_maintenance'; + const REF_TYPE_INHERITANCE = 'inheritance'; + const REF_TYPE_INSURANCE = 'insurance'; + const REF_TYPE_JUMP_CLONE_ACTIVATION_FEE = 'jump_clone_activation_fee'; + const REF_TYPE_JUMP_CLONE_INSTALLATION_FEE = 'jump_clone_installation_fee'; + const REF_TYPE_KILL_RIGHT_FEE = 'kill_right_fee'; + const REF_TYPE_LP_STORE = 'lp_store'; + const REF_TYPE_MANUFACTURING = 'manufacturing'; + const REF_TYPE_MARKET_ESCROW = 'market_escrow'; + const REF_TYPE_MARKET_FINE_PAID = 'market_fine_paid'; + const REF_TYPE_MARKET_TRANSACTION = 'market_transaction'; + const REF_TYPE_MEDAL_CREATION = 'medal_creation'; + const REF_TYPE_MEDAL_ISSUED = 'medal_issued'; + const REF_TYPE_MISSION_COMPLETION = 'mission_completion'; + const REF_TYPE_MISSION_COST = 'mission_cost'; + const REF_TYPE_MISSION_EXPIRATION = 'mission_expiration'; + const REF_TYPE_MISSION_REWARD = 'mission_reward'; + const REF_TYPE_OFFICE_RENTAL_FEE = 'office_rental_fee'; + const REF_TYPE_OPERATION_BONUS = 'operation_bonus'; + const REF_TYPE_OPPORTUNITY_REWARD = 'opportunity_reward'; + const REF_TYPE_PLANETARY_CONSTRUCTION = 'planetary_construction'; + const REF_TYPE_PLANETARY_EXPORT_TAX = 'planetary_export_tax'; + const REF_TYPE_PLANETARY_IMPORT_TAX = 'planetary_import_tax'; + const REF_TYPE_PLAYER_DONATION = 'player_donation'; + const REF_TYPE_PLAYER_TRADING = 'player_trading'; + const REF_TYPE_PROJECT_DISCOVERY_REWARD = 'project_discovery_reward'; + const REF_TYPE_PROJECT_DISCOVERY_TAX = 'project_discovery_tax'; + const REF_TYPE_REACTION = 'reaction'; + const REF_TYPE_RELEASE_OF_IMPOUNDED_PROPERTY = 'release_of_impounded_property'; + const REF_TYPE_REPAIR_BILL = 'repair_bill'; + const REF_TYPE_REPROCESSING_TAX = 'reprocessing_tax'; + const REF_TYPE_RESEARCHING_MATERIAL_PRODUCTIVITY = 'researching_material_productivity'; + const REF_TYPE_RESEARCHING_TECHNOLOGY = 'researching_technology'; + const REF_TYPE_RESEARCHING_TIME_PRODUCTIVITY = 'researching_time_productivity'; + const REF_TYPE_RESOURCE_WARS_REWARD = 'resource_wars_reward'; + const REF_TYPE_REVERSE_ENGINEERING = 'reverse_engineering'; + const REF_TYPE_SECURITY_PROCESSING_FEE = 'security_processing_fee'; + const REF_TYPE_SHARES = 'shares'; + const REF_TYPE_SOVEREIGNITY_BILL = 'sovereignity_bill'; + const REF_TYPE_STORE_PURCHASE = 'store_purchase'; + const REF_TYPE_STORE_PURCHASE_REFUND = 'store_purchase_refund'; + const REF_TYPE_TRANSACTION_TAX = 'transaction_tax'; + const REF_TYPE_UPKEEP_ADJUSTMENT_FEE = 'upkeep_adjustment_fee'; + const REF_TYPE_WAR_ALLY_CONTRACT = 'war_ally_contract'; + const REF_TYPE_WAR_FEE = 'war_fee'; + const REF_TYPE_WAR_FEE_SURRENDER = 'war_fee_surrender'; + const FIRST_PARTY_TYPE_CHARACTER = 'character'; + const FIRST_PARTY_TYPE_CORPORATION = 'corporation'; + const FIRST_PARTY_TYPE_ALLIANCE = 'alliance'; + const FIRST_PARTY_TYPE_FACTION = 'faction'; + const FIRST_PARTY_TYPE_SYSTEM = 'system'; + const SECOND_PARTY_TYPE_CHARACTER = 'character'; + const SECOND_PARTY_TYPE_CORPORATION = 'corporation'; + const SECOND_PARTY_TYPE_ALLIANCE = 'alliance'; + const SECOND_PARTY_TYPE_FACTION = 'faction'; + const SECOND_PARTY_TYPE_SYSTEM = 'system'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getRefTypeAllowableValues() + { + return [ + self::REF_TYPE_ACCELERATION_GATE_FEE, + self::REF_TYPE_ADVERTISEMENT_LISTING_FEE, + self::REF_TYPE_AGENT_DONATION, + self::REF_TYPE_AGENT_LOCATION_SERVICES, + self::REF_TYPE_AGENT_MISCELLANEOUS, + self::REF_TYPE_AGENT_MISSION_COLLATERAL_PAID, + self::REF_TYPE_AGENT_MISSION_COLLATERAL_REFUNDED, + self::REF_TYPE_AGENT_MISSION_REWARD, + self::REF_TYPE_AGENT_MISSION_REWARD_CORPORATION_TAX, + self::REF_TYPE_AGENT_MISSION_TIME_BONUS_REWARD, + self::REF_TYPE_AGENT_MISSION_TIME_BONUS_REWARD_CORPORATION_TAX, + self::REF_TYPE_AGENT_SECURITY_SERVICES, + self::REF_TYPE_AGENT_SERVICES_RENDERED, + self::REF_TYPE_AGENTS_PREWARD, + self::REF_TYPE_ALLIANCE_MAINTAINANCE_FEE, + self::REF_TYPE_ALLIANCE_REGISTRATION_FEE, + self::REF_TYPE_ASSET_SAFETY_RECOVERY_TAX, + self::REF_TYPE_BOUNTY, + self::REF_TYPE_BOUNTY_PRIZE, + self::REF_TYPE_BOUNTY_PRIZE_CORPORATION_TAX, + self::REF_TYPE_BOUNTY_PRIZES, + self::REF_TYPE_BOUNTY_REIMBURSEMENT, + self::REF_TYPE_BOUNTY_SURCHARGE, + self::REF_TYPE_BROKERS_FEE, + self::REF_TYPE_CLONE_ACTIVATION, + self::REF_TYPE_CLONE_TRANSFER, + self::REF_TYPE_CONTRABAND_FINE, + self::REF_TYPE_CONTRACT_AUCTION_BID, + self::REF_TYPE_CONTRACT_AUCTION_BID_CORP, + self::REF_TYPE_CONTRACT_AUCTION_BID_REFUND, + self::REF_TYPE_CONTRACT_AUCTION_SOLD, + self::REF_TYPE_CONTRACT_BROKERS_FEE, + self::REF_TYPE_CONTRACT_BROKERS_FEE_CORP, + self::REF_TYPE_CONTRACT_COLLATERAL, + self::REF_TYPE_CONTRACT_COLLATERAL_DEPOSITED_CORP, + self::REF_TYPE_CONTRACT_COLLATERAL_PAYOUT, + self::REF_TYPE_CONTRACT_COLLATERAL_REFUND, + self::REF_TYPE_CONTRACT_DEPOSIT, + self::REF_TYPE_CONTRACT_DEPOSIT_CORP, + self::REF_TYPE_CONTRACT_DEPOSIT_REFUND, + self::REF_TYPE_CONTRACT_DEPOSIT_SALES_TAX, + self::REF_TYPE_CONTRACT_PRICE, + self::REF_TYPE_CONTRACT_PRICE_PAYMENT_CORP, + self::REF_TYPE_CONTRACT_REVERSAL, + self::REF_TYPE_CONTRACT_REWARD, + self::REF_TYPE_CONTRACT_REWARD_DEPOSITED, + self::REF_TYPE_CONTRACT_REWARD_DEPOSITED_CORP, + self::REF_TYPE_CONTRACT_REWARD_REFUND, + self::REF_TYPE_CONTRACT_SALES_TAX, + self::REF_TYPE_COPYING, + self::REF_TYPE_CORPORATE_REWARD_PAYOUT, + self::REF_TYPE_CORPORATE_REWARD_TAX, + self::REF_TYPE_CORPORATION_ACCOUNT_WITHDRAWAL, + self::REF_TYPE_CORPORATION_BULK_PAYMENT, + self::REF_TYPE_CORPORATION_DIVIDEND_PAYMENT, + self::REF_TYPE_CORPORATION_LIQUIDATION, + self::REF_TYPE_CORPORATION_LOGO_CHANGE_COST, + self::REF_TYPE_CORPORATION_PAYMENT, + self::REF_TYPE_CORPORATION_REGISTRATION_FEE, + self::REF_TYPE_COURIER_MISSION_ESCROW, + self::REF_TYPE_CSPA, + self::REF_TYPE_CSPAOFFLINEREFUND, + self::REF_TYPE_DATACORE_FEE, + self::REF_TYPE_DNA_MODIFICATION_FEE, + self::REF_TYPE_DOCKING_FEE, + self::REF_TYPE_DUEL_WAGER_ESCROW, + self::REF_TYPE_DUEL_WAGER_PAYMENT, + self::REF_TYPE_DUEL_WAGER_REFUND, + self::REF_TYPE_FACTORY_SLOT_RENTAL_FEE, + self::REF_TYPE_GM_CASH_TRANSFER, + self::REF_TYPE_INDUSTRY_JOB_TAX, + self::REF_TYPE_INFRASTRUCTURE_HUB_MAINTENANCE, + self::REF_TYPE_INHERITANCE, + self::REF_TYPE_INSURANCE, + self::REF_TYPE_JUMP_CLONE_ACTIVATION_FEE, + self::REF_TYPE_JUMP_CLONE_INSTALLATION_FEE, + self::REF_TYPE_KILL_RIGHT_FEE, + self::REF_TYPE_LP_STORE, + self::REF_TYPE_MANUFACTURING, + self::REF_TYPE_MARKET_ESCROW, + self::REF_TYPE_MARKET_FINE_PAID, + self::REF_TYPE_MARKET_TRANSACTION, + self::REF_TYPE_MEDAL_CREATION, + self::REF_TYPE_MEDAL_ISSUED, + self::REF_TYPE_MISSION_COMPLETION, + self::REF_TYPE_MISSION_COST, + self::REF_TYPE_MISSION_EXPIRATION, + self::REF_TYPE_MISSION_REWARD, + self::REF_TYPE_OFFICE_RENTAL_FEE, + self::REF_TYPE_OPERATION_BONUS, + self::REF_TYPE_OPPORTUNITY_REWARD, + self::REF_TYPE_PLANETARY_CONSTRUCTION, + self::REF_TYPE_PLANETARY_EXPORT_TAX, + self::REF_TYPE_PLANETARY_IMPORT_TAX, + self::REF_TYPE_PLAYER_DONATION, + self::REF_TYPE_PLAYER_TRADING, + self::REF_TYPE_PROJECT_DISCOVERY_REWARD, + self::REF_TYPE_PROJECT_DISCOVERY_TAX, + self::REF_TYPE_REACTION, + self::REF_TYPE_RELEASE_OF_IMPOUNDED_PROPERTY, + self::REF_TYPE_REPAIR_BILL, + self::REF_TYPE_REPROCESSING_TAX, + self::REF_TYPE_RESEARCHING_MATERIAL_PRODUCTIVITY, + self::REF_TYPE_RESEARCHING_TECHNOLOGY, + self::REF_TYPE_RESEARCHING_TIME_PRODUCTIVITY, + self::REF_TYPE_RESOURCE_WARS_REWARD, + self::REF_TYPE_REVERSE_ENGINEERING, + self::REF_TYPE_SECURITY_PROCESSING_FEE, + self::REF_TYPE_SHARES, + self::REF_TYPE_SOVEREIGNITY_BILL, + self::REF_TYPE_STORE_PURCHASE, + self::REF_TYPE_STORE_PURCHASE_REFUND, + self::REF_TYPE_TRANSACTION_TAX, + self::REF_TYPE_UPKEEP_ADJUSTMENT_FEE, + self::REF_TYPE_WAR_ALLY_CONTRACT, + self::REF_TYPE_WAR_FEE, + self::REF_TYPE_WAR_FEE_SURRENDER, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getFirstPartyTypeAllowableValues() + { + return [ + self::FIRST_PARTY_TYPE_CHARACTER, + self::FIRST_PARTY_TYPE_CORPORATION, + self::FIRST_PARTY_TYPE_ALLIANCE, + self::FIRST_PARTY_TYPE_FACTION, + self::FIRST_PARTY_TYPE_SYSTEM, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getSecondPartyTypeAllowableValues() + { + return [ + self::SECOND_PARTY_TYPE_CHARACTER, + self::SECOND_PARTY_TYPE_CORPORATION, + self::SECOND_PARTY_TYPE_ALLIANCE, + self::SECOND_PARTY_TYPE_FACTION, + self::SECOND_PARTY_TYPE_SYSTEM, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['date'] = isset($data['date']) ? $data['date'] : null; + $this->container['refId'] = isset($data['refId']) ? $data['refId'] : null; + $this->container['refType'] = isset($data['refType']) ? $data['refType'] : null; + $this->container['firstPartyId'] = isset($data['firstPartyId']) ? $data['firstPartyId'] : null; + $this->container['firstPartyType'] = isset($data['firstPartyType']) ? $data['firstPartyType'] : null; + $this->container['secondPartyId'] = isset($data['secondPartyId']) ? $data['secondPartyId'] : null; + $this->container['secondPartyType'] = isset($data['secondPartyType']) ? $data['secondPartyType'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + $this->container['balance'] = isset($data['balance']) ? $data['balance'] : null; + $this->container['reason'] = isset($data['reason']) ? $data['reason'] : null; + $this->container['taxReceiverId'] = isset($data['taxReceiverId']) ? $data['taxReceiverId'] : null; + $this->container['tax'] = isset($data['tax']) ? $data['tax'] : null; + $this->container['extraInfo'] = isset($data['extraInfo']) ? $data['extraInfo'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['date'] === null) { + $invalidProperties[] = "'date' can't be null"; + } + if ($this->container['refId'] === null) { + $invalidProperties[] = "'refId' can't be null"; + } + if ($this->container['refType'] === null) { + $invalidProperties[] = "'refType' can't be null"; + } + $allowedValues = $this->getRefTypeAllowableValues(); + if (!in_array($this->container['refType'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'refType', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getFirstPartyTypeAllowableValues(); + if (!in_array($this->container['firstPartyType'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'firstPartyType', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getSecondPartyTypeAllowableValues(); + if (!in_array($this->container['secondPartyType'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'secondPartyType', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['date'] === null) { + return false; + } + if ($this->container['refId'] === null) { + return false; + } + if ($this->container['refType'] === null) { + return false; + } + $allowedValues = $this->getRefTypeAllowableValues(); + if (!in_array($this->container['refType'], $allowedValues)) { + return false; + } + $allowedValues = $this->getFirstPartyTypeAllowableValues(); + if (!in_array($this->container['firstPartyType'], $allowedValues)) { + return false; + } + $allowedValues = $this->getSecondPartyTypeAllowableValues(); + if (!in_array($this->container['secondPartyType'], $allowedValues)) { + return false; + } + return true; + } + + + /** + * Gets date + * + * @return \DateTime + */ + public function getDate() + { + return $this->container['date']; + } + + /** + * Sets date + * + * @param \DateTime $date Date and time of transaction + * + * @return $this + */ + public function setDate($date) + { + $this->container['date'] = $date; + + return $this; + } + + /** + * Gets refId + * + * @return int + */ + public function getRefId() + { + return $this->container['refId']; + } + + /** + * Sets refId + * + * @param int $refId Unique journal reference ID + * + * @return $this + */ + public function setRefId($refId) + { + $this->container['refId'] = $refId; + + return $this; + } + + /** + * Gets refType + * + * @return string + */ + public function getRefType() + { + return $this->container['refType']; + } + + /** + * Sets refType + * + * @param string $refType Transaction type, different type of transaction will populate different fields in `extra_info` Note: If you have an existing XML API application that is using ref_types, you will need to know which string ESI ref_type maps to which integer. You can use the following gist to see string->int mappings: https://gist.github.com/ccp-zoetrope/c03db66d90c2148724c06171bc52e0ec + * + * @return $this + */ + public function setRefType($refType) + { + $allowedValues = $this->getRefTypeAllowableValues(); + if (!in_array($refType, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'refType', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['refType'] = $refType; + + return $this; + } + + /** + * Gets firstPartyId + * + * @return int + */ + public function getFirstPartyId() + { + return $this->container['firstPartyId']; + } + + /** + * Sets firstPartyId + * + * @param int $firstPartyId first_party_id integer + * + * @return $this + */ + public function setFirstPartyId($firstPartyId) + { + $this->container['firstPartyId'] = $firstPartyId; + + return $this; + } + + /** + * Gets firstPartyType + * + * @return string + */ + public function getFirstPartyType() + { + return $this->container['firstPartyType']; + } + + /** + * Sets firstPartyType + * + * @param string $firstPartyType first_party_type string + * + * @return $this + */ + public function setFirstPartyType($firstPartyType) + { + $allowedValues = $this->getFirstPartyTypeAllowableValues(); + if (!is_null($firstPartyType) && !in_array($firstPartyType, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'firstPartyType', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['firstPartyType'] = $firstPartyType; + + return $this; + } + + /** + * Gets secondPartyId + * + * @return int + */ + public function getSecondPartyId() + { + return $this->container['secondPartyId']; + } + + /** + * Sets secondPartyId + * + * @param int $secondPartyId second_party_id integer + * + * @return $this + */ + public function setSecondPartyId($secondPartyId) + { + $this->container['secondPartyId'] = $secondPartyId; + + return $this; + } + + /** + * Gets secondPartyType + * + * @return string + */ + public function getSecondPartyType() + { + return $this->container['secondPartyType']; + } + + /** + * Sets secondPartyType + * + * @param string $secondPartyType second_party_type string + * + * @return $this + */ + public function setSecondPartyType($secondPartyType) + { + $allowedValues = $this->getSecondPartyTypeAllowableValues(); + if (!is_null($secondPartyType) && !in_array($secondPartyType, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'secondPartyType', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['secondPartyType'] = $secondPartyType; + + return $this; + } + + /** + * Gets amount + * + * @return double + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param double $amount Transaction amount. Positive when value transferred to the first party. Negative otherwise + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + + /** + * Gets balance + * + * @return double + */ + public function getBalance() + { + return $this->container['balance']; + } + + /** + * Sets balance + * + * @param double $balance Wallet balance after transaction occurred + * + * @return $this + */ + public function setBalance($balance) + { + $this->container['balance'] = $balance; + + return $this; + } + + /** + * Gets reason + * + * @return string + */ + public function getReason() + { + return $this->container['reason']; + } + + /** + * Sets reason + * + * @param string $reason reason string + * + * @return $this + */ + public function setReason($reason) + { + $this->container['reason'] = $reason; + + return $this; + } + + /** + * Gets taxReceiverId + * + * @return int + */ + public function getTaxReceiverId() + { + return $this->container['taxReceiverId']; + } + + /** + * Sets taxReceiverId + * + * @param int $taxReceiverId the corporation ID receiving any tax paid + * + * @return $this + */ + public function setTaxReceiverId($taxReceiverId) + { + $this->container['taxReceiverId'] = $taxReceiverId; + + return $this; + } + + /** + * Gets tax + * + * @return double + */ + public function getTax() + { + return $this->container['tax']; + } + + /** + * Sets tax + * + * @param double $tax Tax amount received for tax related transactions + * + * @return $this + */ + public function setTax($tax) + { + $this->container['tax'] = $tax; + + return $this; + } + + /** + * Gets extraInfo + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdWalletJournalExtraInfo + */ + public function getExtraInfo() + { + return $this->container['extraInfo']; + } + + /** + * Sets extraInfo + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCharactersCharacterIdWalletJournalExtraInfo $extraInfo extraInfo + * + * @return $this + */ + public function setExtraInfo($extraInfo) + { + $this->container['extraInfo'] = $extraInfo; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdWalletJournalExtraInfo.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdWalletJournalExtraInfo.php new file mode 100644 index 0000000..3b7844d --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdWalletJournalExtraInfo.php @@ -0,0 +1,633 @@ + 'int', + 'transactionId' => 'int', + 'npcName' => 'string', + 'npcId' => 'int', + 'destroyedShipTypeId' => 'int', + 'characterId' => 'int', + 'corporationId' => 'int', + 'allianceId' => 'int', + 'jobId' => 'int', + 'contractId' => 'int', + 'systemId' => 'int', + 'planetId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'locationId' => 'int64', + 'transactionId' => 'int64', + 'npcName' => null, + 'npcId' => 'int32', + 'destroyedShipTypeId' => 'int32', + 'characterId' => 'int32', + 'corporationId' => 'int32', + 'allianceId' => 'int32', + 'jobId' => 'int32', + 'contractId' => 'int32', + 'systemId' => 'int32', + 'planetId' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'locationId' => 'location_id', + 'transactionId' => 'transaction_id', + 'npcName' => 'npc_name', + 'npcId' => 'npc_id', + 'destroyedShipTypeId' => 'destroyed_ship_type_id', + 'characterId' => 'character_id', + 'corporationId' => 'corporation_id', + 'allianceId' => 'alliance_id', + 'jobId' => 'job_id', + 'contractId' => 'contract_id', + 'systemId' => 'system_id', + 'planetId' => 'planet_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'locationId' => 'setLocationId', + 'transactionId' => 'setTransactionId', + 'npcName' => 'setNpcName', + 'npcId' => 'setNpcId', + 'destroyedShipTypeId' => 'setDestroyedShipTypeId', + 'characterId' => 'setCharacterId', + 'corporationId' => 'setCorporationId', + 'allianceId' => 'setAllianceId', + 'jobId' => 'setJobId', + 'contractId' => 'setContractId', + 'systemId' => 'setSystemId', + 'planetId' => 'setPlanetId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'locationId' => 'getLocationId', + 'transactionId' => 'getTransactionId', + 'npcName' => 'getNpcName', + 'npcId' => 'getNpcId', + 'destroyedShipTypeId' => 'getDestroyedShipTypeId', + 'characterId' => 'getCharacterId', + 'corporationId' => 'getCorporationId', + 'allianceId' => 'getAllianceId', + 'jobId' => 'getJobId', + 'contractId' => 'getContractId', + 'systemId' => 'getSystemId', + 'planetId' => 'getPlanetId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['locationId'] = isset($data['locationId']) ? $data['locationId'] : null; + $this->container['transactionId'] = isset($data['transactionId']) ? $data['transactionId'] : null; + $this->container['npcName'] = isset($data['npcName']) ? $data['npcName'] : null; + $this->container['npcId'] = isset($data['npcId']) ? $data['npcId'] : null; + $this->container['destroyedShipTypeId'] = isset($data['destroyedShipTypeId']) ? $data['destroyedShipTypeId'] : null; + $this->container['characterId'] = isset($data['characterId']) ? $data['characterId'] : null; + $this->container['corporationId'] = isset($data['corporationId']) ? $data['corporationId'] : null; + $this->container['allianceId'] = isset($data['allianceId']) ? $data['allianceId'] : null; + $this->container['jobId'] = isset($data['jobId']) ? $data['jobId'] : null; + $this->container['contractId'] = isset($data['contractId']) ? $data['contractId'] : null; + $this->container['systemId'] = isset($data['systemId']) ? $data['systemId'] : null; + $this->container['planetId'] = isset($data['planetId']) ? $data['planetId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets locationId + * + * @return int + */ + public function getLocationId() + { + return $this->container['locationId']; + } + + /** + * Sets locationId + * + * @param int $locationId location_id integer + * + * @return $this + */ + public function setLocationId($locationId) + { + $this->container['locationId'] = $locationId; + + return $this; + } + + /** + * Gets transactionId + * + * @return int + */ + public function getTransactionId() + { + return $this->container['transactionId']; + } + + /** + * Sets transactionId + * + * @param int $transactionId transaction_id integer + * + * @return $this + */ + public function setTransactionId($transactionId) + { + $this->container['transactionId'] = $transactionId; + + return $this; + } + + /** + * Gets npcName + * + * @return string + */ + public function getNpcName() + { + return $this->container['npcName']; + } + + /** + * Sets npcName + * + * @param string $npcName npc_name string + * + * @return $this + */ + public function setNpcName($npcName) + { + $this->container['npcName'] = $npcName; + + return $this; + } + + /** + * Gets npcId + * + * @return int + */ + public function getNpcId() + { + return $this->container['npcId']; + } + + /** + * Sets npcId + * + * @param int $npcId npc_id integer + * + * @return $this + */ + public function setNpcId($npcId) + { + $this->container['npcId'] = $npcId; + + return $this; + } + + /** + * Gets destroyedShipTypeId + * + * @return int + */ + public function getDestroyedShipTypeId() + { + return $this->container['destroyedShipTypeId']; + } + + /** + * Sets destroyedShipTypeId + * + * @param int $destroyedShipTypeId destroyed_ship_type_id integer + * + * @return $this + */ + public function setDestroyedShipTypeId($destroyedShipTypeId) + { + $this->container['destroyedShipTypeId'] = $destroyedShipTypeId; + + return $this; + } + + /** + * Gets characterId + * + * @return int + */ + public function getCharacterId() + { + return $this->container['characterId']; + } + + /** + * Sets characterId + * + * @param int $characterId character_id integer + * + * @return $this + */ + public function setCharacterId($characterId) + { + $this->container['characterId'] = $characterId; + + return $this; + } + + /** + * Gets corporationId + * + * @return int + */ + public function getCorporationId() + { + return $this->container['corporationId']; + } + + /** + * Sets corporationId + * + * @param int $corporationId corporation_id integer + * + * @return $this + */ + public function setCorporationId($corporationId) + { + $this->container['corporationId'] = $corporationId; + + return $this; + } + + /** + * Gets allianceId + * + * @return int + */ + public function getAllianceId() + { + return $this->container['allianceId']; + } + + /** + * Sets allianceId + * + * @param int $allianceId alliance_id integer + * + * @return $this + */ + public function setAllianceId($allianceId) + { + $this->container['allianceId'] = $allianceId; + + return $this; + } + + /** + * Gets jobId + * + * @return int + */ + public function getJobId() + { + return $this->container['jobId']; + } + + /** + * Sets jobId + * + * @param int $jobId job_id integer + * + * @return $this + */ + public function setJobId($jobId) + { + $this->container['jobId'] = $jobId; + + return $this; + } + + /** + * Gets contractId + * + * @return int + */ + public function getContractId() + { + return $this->container['contractId']; + } + + /** + * Sets contractId + * + * @param int $contractId contract_id integer + * + * @return $this + */ + public function setContractId($contractId) + { + $this->container['contractId'] = $contractId; + + return $this; + } + + /** + * Gets systemId + * + * @return int + */ + public function getSystemId() + { + return $this->container['systemId']; + } + + /** + * Sets systemId + * + * @param int $systemId system_id integer + * + * @return $this + */ + public function setSystemId($systemId) + { + $this->container['systemId'] = $systemId; + + return $this; + } + + /** + * Gets planetId + * + * @return int + */ + public function getPlanetId() + { + return $this->container['planetId']; + } + + /** + * Sets planetId + * + * @param int $planetId planet_id integer + * + * @return $this + */ + public function setPlanetId($planetId) + { + $this->container['planetId'] = $planetId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersCharacterIdWalletTransactions200Ok.php b/src/nullx27/ESI/Models/GetCharactersCharacterIdWalletTransactions200Ok.php new file mode 100644 index 0000000..99fe298 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersCharacterIdWalletTransactions200Ok.php @@ -0,0 +1,633 @@ + 'int', + 'date' => '\DateTime', + 'typeId' => 'int', + 'locationId' => 'int', + 'unitPrice' => 'double', + 'quantity' => 'int', + 'clientId' => 'int', + 'isBuy' => 'bool', + 'isPersonal' => 'bool', + 'journalRefId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'transactionId' => 'int64', + 'date' => 'date-time', + 'typeId' => 'int32', + 'locationId' => 'int64', + 'unitPrice' => 'double', + 'quantity' => 'int32', + 'clientId' => 'int32', + 'isBuy' => null, + 'isPersonal' => null, + 'journalRefId' => 'int64' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'transactionId' => 'transaction_id', + 'date' => 'date', + 'typeId' => 'type_id', + 'locationId' => 'location_id', + 'unitPrice' => 'unit_price', + 'quantity' => 'quantity', + 'clientId' => 'client_id', + 'isBuy' => 'is_buy', + 'isPersonal' => 'is_personal', + 'journalRefId' => 'journal_ref_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'transactionId' => 'setTransactionId', + 'date' => 'setDate', + 'typeId' => 'setTypeId', + 'locationId' => 'setLocationId', + 'unitPrice' => 'setUnitPrice', + 'quantity' => 'setQuantity', + 'clientId' => 'setClientId', + 'isBuy' => 'setIsBuy', + 'isPersonal' => 'setIsPersonal', + 'journalRefId' => 'setJournalRefId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'transactionId' => 'getTransactionId', + 'date' => 'getDate', + 'typeId' => 'getTypeId', + 'locationId' => 'getLocationId', + 'unitPrice' => 'getUnitPrice', + 'quantity' => 'getQuantity', + 'clientId' => 'getClientId', + 'isBuy' => 'getIsBuy', + 'isPersonal' => 'getIsPersonal', + 'journalRefId' => 'getJournalRefId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['transactionId'] = isset($data['transactionId']) ? $data['transactionId'] : null; + $this->container['date'] = isset($data['date']) ? $data['date'] : null; + $this->container['typeId'] = isset($data['typeId']) ? $data['typeId'] : null; + $this->container['locationId'] = isset($data['locationId']) ? $data['locationId'] : null; + $this->container['unitPrice'] = isset($data['unitPrice']) ? $data['unitPrice'] : null; + $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null; + $this->container['clientId'] = isset($data['clientId']) ? $data['clientId'] : null; + $this->container['isBuy'] = isset($data['isBuy']) ? $data['isBuy'] : null; + $this->container['isPersonal'] = isset($data['isPersonal']) ? $data['isPersonal'] : null; + $this->container['journalRefId'] = isset($data['journalRefId']) ? $data['journalRefId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['transactionId'] === null) { + $invalidProperties[] = "'transactionId' can't be null"; + } + if ($this->container['date'] === null) { + $invalidProperties[] = "'date' can't be null"; + } + if ($this->container['typeId'] === null) { + $invalidProperties[] = "'typeId' can't be null"; + } + if ($this->container['locationId'] === null) { + $invalidProperties[] = "'locationId' can't be null"; + } + if ($this->container['unitPrice'] === null) { + $invalidProperties[] = "'unitPrice' can't be null"; + } + if ($this->container['quantity'] === null) { + $invalidProperties[] = "'quantity' can't be null"; + } + if ($this->container['clientId'] === null) { + $invalidProperties[] = "'clientId' can't be null"; + } + if ($this->container['isBuy'] === null) { + $invalidProperties[] = "'isBuy' can't be null"; + } + if ($this->container['isPersonal'] === null) { + $invalidProperties[] = "'isPersonal' can't be null"; + } + if ($this->container['journalRefId'] === null) { + $invalidProperties[] = "'journalRefId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['transactionId'] === null) { + return false; + } + if ($this->container['date'] === null) { + return false; + } + if ($this->container['typeId'] === null) { + return false; + } + if ($this->container['locationId'] === null) { + return false; + } + if ($this->container['unitPrice'] === null) { + return false; + } + if ($this->container['quantity'] === null) { + return false; + } + if ($this->container['clientId'] === null) { + return false; + } + if ($this->container['isBuy'] === null) { + return false; + } + if ($this->container['isPersonal'] === null) { + return false; + } + if ($this->container['journalRefId'] === null) { + return false; + } + return true; + } + + + /** + * Gets transactionId + * + * @return int + */ + public function getTransactionId() + { + return $this->container['transactionId']; + } + + /** + * Sets transactionId + * + * @param int $transactionId Unique transaction ID + * + * @return $this + */ + public function setTransactionId($transactionId) + { + $this->container['transactionId'] = $transactionId; + + return $this; + } + + /** + * Gets date + * + * @return \DateTime + */ + public function getDate() + { + return $this->container['date']; + } + + /** + * Sets date + * + * @param \DateTime $date Date and time of transaction + * + * @return $this + */ + public function setDate($date) + { + $this->container['date'] = $date; + + return $this; + } + + /** + * Gets typeId + * + * @return int + */ + public function getTypeId() + { + return $this->container['typeId']; + } + + /** + * Sets typeId + * + * @param int $typeId type_id integer + * + * @return $this + */ + public function setTypeId($typeId) + { + $this->container['typeId'] = $typeId; + + return $this; + } + + /** + * Gets locationId + * + * @return int + */ + public function getLocationId() + { + return $this->container['locationId']; + } + + /** + * Sets locationId + * + * @param int $locationId location_id integer + * + * @return $this + */ + public function setLocationId($locationId) + { + $this->container['locationId'] = $locationId; + + return $this; + } + + /** + * Gets unitPrice + * + * @return double + */ + public function getUnitPrice() + { + return $this->container['unitPrice']; + } + + /** + * Sets unitPrice + * + * @param double $unitPrice Amount paid per unit + * + * @return $this + */ + public function setUnitPrice($unitPrice) + { + $this->container['unitPrice'] = $unitPrice; + + return $this; + } + + /** + * Gets quantity + * + * @return int + */ + public function getQuantity() + { + return $this->container['quantity']; + } + + /** + * Sets quantity + * + * @param int $quantity quantity integer + * + * @return $this + */ + public function setQuantity($quantity) + { + $this->container['quantity'] = $quantity; + + return $this; + } + + /** + * Gets clientId + * + * @return int + */ + public function getClientId() + { + return $this->container['clientId']; + } + + /** + * Sets clientId + * + * @param int $clientId client_id integer + * + * @return $this + */ + public function setClientId($clientId) + { + $this->container['clientId'] = $clientId; + + return $this; + } + + /** + * Gets isBuy + * + * @return bool + */ + public function getIsBuy() + { + return $this->container['isBuy']; + } + + /** + * Sets isBuy + * + * @param bool $isBuy is_buy boolean + * + * @return $this + */ + public function setIsBuy($isBuy) + { + $this->container['isBuy'] = $isBuy; + + return $this; + } + + /** + * Gets isPersonal + * + * @return bool + */ + public function getIsPersonal() + { + return $this->container['isPersonal']; + } + + /** + * Sets isPersonal + * + * @param bool $isPersonal is_personal boolean + * + * @return $this + */ + public function setIsPersonal($isPersonal) + { + $this->container['isPersonal'] = $isPersonal; + + return $this; + } + + /** + * Gets journalRefId + * + * @return int + */ + public function getJournalRefId() + { + return $this->container['journalRefId']; + } + + /** + * Sets journalRefId + * + * @param int $journalRefId journal_ref_id integer + * + * @return $this + */ + public function setJournalRefId($journalRefId) + { + $this->container['journalRefId'] = $journalRefId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCharactersNames200Ok.php b/src/nullx27/ESI/Models/GetCharactersNames200Ok.php new file mode 100644 index 0000000..50fe75c --- /dev/null +++ b/src/nullx27/ESI/Models/GetCharactersNames200Ok.php @@ -0,0 +1,345 @@ + 'int', + 'characterName' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'characterId' => 'int64', + 'characterName' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'characterId' => 'character_id', + 'characterName' => 'character_name' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'characterId' => 'setCharacterId', + 'characterName' => 'setCharacterName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'characterId' => 'getCharacterId', + 'characterName' => 'getCharacterName' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['characterId'] = isset($data['characterId']) ? $data['characterId'] : null; + $this->container['characterName'] = isset($data['characterName']) ? $data['characterName'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['characterId'] === null) { + $invalidProperties[] = "'characterId' can't be null"; + } + if ($this->container['characterName'] === null) { + $invalidProperties[] = "'characterName' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['characterId'] === null) { + return false; + } + if ($this->container['characterName'] === null) { + return false; + } + return true; + } + + + /** + * Gets characterId + * + * @return int + */ + public function getCharacterId() + { + return $this->container['characterId']; + } + + /** + * Sets characterId + * + * @param int $characterId character_id integer + * + * @return $this + */ + public function setCharacterId($characterId) + { + $this->container['characterId'] = $characterId; + + return $this; + } + + /** + * Gets characterName + * + * @return string + */ + public function getCharacterName() + { + return $this->container['characterName']; + } + + /** + * Sets characterName + * + * @param string $characterName character_name string + * + * @return $this + */ + public function setCharacterName($characterName) + { + $this->container['characterName'] = $characterName; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationCorporationIdMiningExtractions200Ok.php b/src/nullx27/ESI/Models/GetCorporationCorporationIdMiningExtractions200Ok.php new file mode 100644 index 0000000..f77ca34 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationCorporationIdMiningExtractions200Ok.php @@ -0,0 +1,453 @@ + 'int', + 'moonId' => 'int', + 'extractionStartTime' => '\DateTime', + 'chunkArrivalTime' => '\DateTime', + 'naturalDecayTime' => '\DateTime' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'structureId' => 'int64', + 'moonId' => 'int32', + 'extractionStartTime' => 'date-time', + 'chunkArrivalTime' => 'date-time', + 'naturalDecayTime' => 'date-time' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'structureId' => 'structure_id', + 'moonId' => 'moon_id', + 'extractionStartTime' => 'extraction_start_time', + 'chunkArrivalTime' => 'chunk_arrival_time', + 'naturalDecayTime' => 'natural_decay_time' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'structureId' => 'setStructureId', + 'moonId' => 'setMoonId', + 'extractionStartTime' => 'setExtractionStartTime', + 'chunkArrivalTime' => 'setChunkArrivalTime', + 'naturalDecayTime' => 'setNaturalDecayTime' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'structureId' => 'getStructureId', + 'moonId' => 'getMoonId', + 'extractionStartTime' => 'getExtractionStartTime', + 'chunkArrivalTime' => 'getChunkArrivalTime', + 'naturalDecayTime' => 'getNaturalDecayTime' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['structureId'] = isset($data['structureId']) ? $data['structureId'] : null; + $this->container['moonId'] = isset($data['moonId']) ? $data['moonId'] : null; + $this->container['extractionStartTime'] = isset($data['extractionStartTime']) ? $data['extractionStartTime'] : null; + $this->container['chunkArrivalTime'] = isset($data['chunkArrivalTime']) ? $data['chunkArrivalTime'] : null; + $this->container['naturalDecayTime'] = isset($data['naturalDecayTime']) ? $data['naturalDecayTime'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['structureId'] === null) { + $invalidProperties[] = "'structureId' can't be null"; + } + if ($this->container['moonId'] === null) { + $invalidProperties[] = "'moonId' can't be null"; + } + if ($this->container['extractionStartTime'] === null) { + $invalidProperties[] = "'extractionStartTime' can't be null"; + } + if ($this->container['chunkArrivalTime'] === null) { + $invalidProperties[] = "'chunkArrivalTime' can't be null"; + } + if ($this->container['naturalDecayTime'] === null) { + $invalidProperties[] = "'naturalDecayTime' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['structureId'] === null) { + return false; + } + if ($this->container['moonId'] === null) { + return false; + } + if ($this->container['extractionStartTime'] === null) { + return false; + } + if ($this->container['chunkArrivalTime'] === null) { + return false; + } + if ($this->container['naturalDecayTime'] === null) { + return false; + } + return true; + } + + + /** + * Gets structureId + * + * @return int + */ + public function getStructureId() + { + return $this->container['structureId']; + } + + /** + * Sets structureId + * + * @param int $structureId structure_id integer + * + * @return $this + */ + public function setStructureId($structureId) + { + $this->container['structureId'] = $structureId; + + return $this; + } + + /** + * Gets moonId + * + * @return int + */ + public function getMoonId() + { + return $this->container['moonId']; + } + + /** + * Sets moonId + * + * @param int $moonId moon_id integer + * + * @return $this + */ + public function setMoonId($moonId) + { + $this->container['moonId'] = $moonId; + + return $this; + } + + /** + * Gets extractionStartTime + * + * @return \DateTime + */ + public function getExtractionStartTime() + { + return $this->container['extractionStartTime']; + } + + /** + * Sets extractionStartTime + * + * @param \DateTime $extractionStartTime The time at which the current extraction was initiated. + * + * @return $this + */ + public function setExtractionStartTime($extractionStartTime) + { + $this->container['extractionStartTime'] = $extractionStartTime; + + return $this; + } + + /** + * Gets chunkArrivalTime + * + * @return \DateTime + */ + public function getChunkArrivalTime() + { + return $this->container['chunkArrivalTime']; + } + + /** + * Sets chunkArrivalTime + * + * @param \DateTime $chunkArrivalTime The time at which the chunk being extracted will arrive and can be fractured by the moon mining drill. + * + * @return $this + */ + public function setChunkArrivalTime($chunkArrivalTime) + { + $this->container['chunkArrivalTime'] = $chunkArrivalTime; + + return $this; + } + + /** + * Gets naturalDecayTime + * + * @return \DateTime + */ + public function getNaturalDecayTime() + { + return $this->container['naturalDecayTime']; + } + + /** + * Sets naturalDecayTime + * + * @param \DateTime $naturalDecayTime The time at which the chunk being extracted will naturally fracture if it is not first fractured by the moon mining drill. + * + * @return $this + */ + public function setNaturalDecayTime($naturalDecayTime) + { + $this->container['naturalDecayTime'] = $naturalDecayTime; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationCorporationIdMiningObservers200Ok.php b/src/nullx27/ESI/Models/GetCorporationCorporationIdMiningObservers200Ok.php new file mode 100644 index 0000000..bcfe7fd --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationCorporationIdMiningObservers200Ok.php @@ -0,0 +1,415 @@ + '\DateTime', + 'observerId' => 'int', + 'observerType' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'lastUpdated' => 'date', + 'observerId' => 'int64', + 'observerType' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'lastUpdated' => 'last_updated', + 'observerId' => 'observer_id', + 'observerType' => 'observer_type' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'lastUpdated' => 'setLastUpdated', + 'observerId' => 'setObserverId', + 'observerType' => 'setObserverType' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'lastUpdated' => 'getLastUpdated', + 'observerId' => 'getObserverId', + 'observerType' => 'getObserverType' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const OBSERVER_TYPE_STRUCTURE = 'structure'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getObserverTypeAllowableValues() + { + return [ + self::OBSERVER_TYPE_STRUCTURE, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['lastUpdated'] = isset($data['lastUpdated']) ? $data['lastUpdated'] : null; + $this->container['observerId'] = isset($data['observerId']) ? $data['observerId'] : null; + $this->container['observerType'] = isset($data['observerType']) ? $data['observerType'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['lastUpdated'] === null) { + $invalidProperties[] = "'lastUpdated' can't be null"; + } + if ($this->container['observerId'] === null) { + $invalidProperties[] = "'observerId' can't be null"; + } + if ($this->container['observerType'] === null) { + $invalidProperties[] = "'observerType' can't be null"; + } + $allowedValues = $this->getObserverTypeAllowableValues(); + if (!in_array($this->container['observerType'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'observerType', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['lastUpdated'] === null) { + return false; + } + if ($this->container['observerId'] === null) { + return false; + } + if ($this->container['observerType'] === null) { + return false; + } + $allowedValues = $this->getObserverTypeAllowableValues(); + if (!in_array($this->container['observerType'], $allowedValues)) { + return false; + } + return true; + } + + + /** + * Gets lastUpdated + * + * @return \DateTime + */ + public function getLastUpdated() + { + return $this->container['lastUpdated']; + } + + /** + * Sets lastUpdated + * + * @param \DateTime $lastUpdated last_updated string + * + * @return $this + */ + public function setLastUpdated($lastUpdated) + { + $this->container['lastUpdated'] = $lastUpdated; + + return $this; + } + + /** + * Gets observerId + * + * @return int + */ + public function getObserverId() + { + return $this->container['observerId']; + } + + /** + * Sets observerId + * + * @param int $observerId The entity that was observing the asteroid field when it was mined. + * + * @return $this + */ + public function setObserverId($observerId) + { + $this->container['observerId'] = $observerId; + + return $this; + } + + /** + * Gets observerType + * + * @return string + */ + public function getObserverType() + { + return $this->container['observerType']; + } + + /** + * Sets observerType + * + * @param string $observerType The category of the observing entity + * + * @return $this + */ + public function setObserverType($observerType) + { + $allowedValues = $this->getObserverTypeAllowableValues(); + if (!in_array($observerType, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'observerType', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['observerType'] = $observerType; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationCorporationIdMiningObserversObserverId200Ok.php b/src/nullx27/ESI/Models/GetCorporationCorporationIdMiningObserversObserverId200Ok.php new file mode 100644 index 0000000..9ec3486 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationCorporationIdMiningObserversObserverId200Ok.php @@ -0,0 +1,453 @@ + '\DateTime', + 'characterId' => 'int', + 'recordedCorporationId' => 'int', + 'typeId' => 'int', + 'quantity' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'lastUpdated' => 'date', + 'characterId' => 'int32', + 'recordedCorporationId' => 'int32', + 'typeId' => 'int32', + 'quantity' => 'int64' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'lastUpdated' => 'last_updated', + 'characterId' => 'character_id', + 'recordedCorporationId' => 'recorded_corporation_id', + 'typeId' => 'type_id', + 'quantity' => 'quantity' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'lastUpdated' => 'setLastUpdated', + 'characterId' => 'setCharacterId', + 'recordedCorporationId' => 'setRecordedCorporationId', + 'typeId' => 'setTypeId', + 'quantity' => 'setQuantity' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'lastUpdated' => 'getLastUpdated', + 'characterId' => 'getCharacterId', + 'recordedCorporationId' => 'getRecordedCorporationId', + 'typeId' => 'getTypeId', + 'quantity' => 'getQuantity' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['lastUpdated'] = isset($data['lastUpdated']) ? $data['lastUpdated'] : null; + $this->container['characterId'] = isset($data['characterId']) ? $data['characterId'] : null; + $this->container['recordedCorporationId'] = isset($data['recordedCorporationId']) ? $data['recordedCorporationId'] : null; + $this->container['typeId'] = isset($data['typeId']) ? $data['typeId'] : null; + $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['lastUpdated'] === null) { + $invalidProperties[] = "'lastUpdated' can't be null"; + } + if ($this->container['characterId'] === null) { + $invalidProperties[] = "'characterId' can't be null"; + } + if ($this->container['recordedCorporationId'] === null) { + $invalidProperties[] = "'recordedCorporationId' can't be null"; + } + if ($this->container['typeId'] === null) { + $invalidProperties[] = "'typeId' can't be null"; + } + if ($this->container['quantity'] === null) { + $invalidProperties[] = "'quantity' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['lastUpdated'] === null) { + return false; + } + if ($this->container['characterId'] === null) { + return false; + } + if ($this->container['recordedCorporationId'] === null) { + return false; + } + if ($this->container['typeId'] === null) { + return false; + } + if ($this->container['quantity'] === null) { + return false; + } + return true; + } + + + /** + * Gets lastUpdated + * + * @return \DateTime + */ + public function getLastUpdated() + { + return $this->container['lastUpdated']; + } + + /** + * Sets lastUpdated + * + * @param \DateTime $lastUpdated last_updated string + * + * @return $this + */ + public function setLastUpdated($lastUpdated) + { + $this->container['lastUpdated'] = $lastUpdated; + + return $this; + } + + /** + * Gets characterId + * + * @return int + */ + public function getCharacterId() + { + return $this->container['characterId']; + } + + /** + * Sets characterId + * + * @param int $characterId The character that did the mining + * + * @return $this + */ + public function setCharacterId($characterId) + { + $this->container['characterId'] = $characterId; + + return $this; + } + + /** + * Gets recordedCorporationId + * + * @return int + */ + public function getRecordedCorporationId() + { + return $this->container['recordedCorporationId']; + } + + /** + * Sets recordedCorporationId + * + * @param int $recordedCorporationId The corporation id of the character at the time data was recorded. + * + * @return $this + */ + public function setRecordedCorporationId($recordedCorporationId) + { + $this->container['recordedCorporationId'] = $recordedCorporationId; + + return $this; + } + + /** + * Gets typeId + * + * @return int + */ + public function getTypeId() + { + return $this->container['typeId']; + } + + /** + * Sets typeId + * + * @param int $typeId type_id integer + * + * @return $this + */ + public function setTypeId($typeId) + { + $this->container['typeId'] = $typeId; + + return $this; + } + + /** + * Gets quantity + * + * @return int + */ + public function getQuantity() + { + return $this->container['quantity']; + } + + /** + * Sets quantity + * + * @param int $quantity quantity integer + * + * @return $this + */ + public function setQuantity($quantity) + { + $this->container['quantity'] = $quantity; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdAlliancehistory200Ok.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdAlliancehistory200Ok.php new file mode 100644 index 0000000..128cd85 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdAlliancehistory200Ok.php @@ -0,0 +1,405 @@ + '\DateTime', + 'allianceId' => 'int', + 'isDeleted' => 'bool', + 'recordId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'startDate' => 'date-time', + 'allianceId' => 'int32', + 'isDeleted' => null, + 'recordId' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'startDate' => 'start_date', + 'allianceId' => 'alliance_id', + 'isDeleted' => 'is_deleted', + 'recordId' => 'record_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'startDate' => 'setStartDate', + 'allianceId' => 'setAllianceId', + 'isDeleted' => 'setIsDeleted', + 'recordId' => 'setRecordId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'startDate' => 'getStartDate', + 'allianceId' => 'getAllianceId', + 'isDeleted' => 'getIsDeleted', + 'recordId' => 'getRecordId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['startDate'] = isset($data['startDate']) ? $data['startDate'] : null; + $this->container['allianceId'] = isset($data['allianceId']) ? $data['allianceId'] : null; + $this->container['isDeleted'] = isset($data['isDeleted']) ? $data['isDeleted'] : null; + $this->container['recordId'] = isset($data['recordId']) ? $data['recordId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['startDate'] === null) { + $invalidProperties[] = "'startDate' can't be null"; + } + if ($this->container['recordId'] === null) { + $invalidProperties[] = "'recordId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['startDate'] === null) { + return false; + } + if ($this->container['recordId'] === null) { + return false; + } + return true; + } + + + /** + * Gets startDate + * + * @return \DateTime + */ + public function getStartDate() + { + return $this->container['startDate']; + } + + /** + * Sets startDate + * + * @param \DateTime $startDate start_date string + * + * @return $this + */ + public function setStartDate($startDate) + { + $this->container['startDate'] = $startDate; + + return $this; + } + + /** + * Gets allianceId + * + * @return int + */ + public function getAllianceId() + { + return $this->container['allianceId']; + } + + /** + * Sets allianceId + * + * @param int $allianceId alliance_id integer + * + * @return $this + */ + public function setAllianceId($allianceId) + { + $this->container['allianceId'] = $allianceId; + + return $this; + } + + /** + * Gets isDeleted + * + * @return bool + */ + public function getIsDeleted() + { + return $this->container['isDeleted']; + } + + /** + * Sets isDeleted + * + * @param bool $isDeleted True if the alliance has been closed + * + * @return $this + */ + public function setIsDeleted($isDeleted) + { + $this->container['isDeleted'] = $isDeleted; + + return $this; + } + + /** + * Gets recordId + * + * @return int + */ + public function getRecordId() + { + return $this->container['recordId']; + } + + /** + * Sets recordId + * + * @param int $recordId An incrementing ID that can be used to canonically establish order of records in cases where dates may be ambiguous + * + * @return $this + */ + public function setRecordId($recordId) + { + $this->container['recordId'] = $recordId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdAssets200Ok.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdAssets200Ok.php new file mode 100644 index 0000000..943f594 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdAssets200Ok.php @@ -0,0 +1,825 @@ + 'int', + 'quantity' => 'int', + 'locationId' => 'int', + 'locationType' => 'string', + 'itemId' => 'int', + 'locationFlag' => 'string', + 'isSingleton' => 'bool' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'typeId' => 'int32', + 'quantity' => 'int32', + 'locationId' => 'int64', + 'locationType' => null, + 'itemId' => 'int64', + 'locationFlag' => null, + 'isSingleton' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'typeId' => 'type_id', + 'quantity' => 'quantity', + 'locationId' => 'location_id', + 'locationType' => 'location_type', + 'itemId' => 'item_id', + 'locationFlag' => 'location_flag', + 'isSingleton' => 'is_singleton' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'typeId' => 'setTypeId', + 'quantity' => 'setQuantity', + 'locationId' => 'setLocationId', + 'locationType' => 'setLocationType', + 'itemId' => 'setItemId', + 'locationFlag' => 'setLocationFlag', + 'isSingleton' => 'setIsSingleton' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'typeId' => 'getTypeId', + 'quantity' => 'getQuantity', + 'locationId' => 'getLocationId', + 'locationType' => 'getLocationType', + 'itemId' => 'getItemId', + 'locationFlag' => 'getLocationFlag', + 'isSingleton' => 'getIsSingleton' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const LOCATION_TYPE_STATION = 'station'; + const LOCATION_TYPE_SOLAR_SYSTEM = 'solar_system'; + const LOCATION_TYPE_OTHER = 'other'; + const LOCATION_FLAG_ASSET_SAFETY = 'AssetSafety'; + const LOCATION_FLAG_AUTO_FIT = 'AutoFit'; + const LOCATION_FLAG_BONUS = 'Bonus'; + const LOCATION_FLAG_BOOSTER = 'Booster'; + const LOCATION_FLAG_BOOSTER_BAY = 'BoosterBay'; + const LOCATION_FLAG_CAPSULE = 'Capsule'; + const LOCATION_FLAG_CARGO = 'Cargo'; + const LOCATION_FLAG_CORP_DELIVERIES = 'CorpDeliveries'; + const LOCATION_FLAG_CORP_SAG1 = 'CorpSAG1'; + const LOCATION_FLAG_CORP_SAG2 = 'CorpSAG2'; + const LOCATION_FLAG_CORP_SAG3 = 'CorpSAG3'; + const LOCATION_FLAG_CORP_SAG4 = 'CorpSAG4'; + const LOCATION_FLAG_CORP_SAG5 = 'CorpSAG5'; + const LOCATION_FLAG_CORP_SAG6 = 'CorpSAG6'; + const LOCATION_FLAG_CORP_SAG7 = 'CorpSAG7'; + const LOCATION_FLAG_CRATE_LOOT = 'CrateLoot'; + const LOCATION_FLAG_DELIVERIES = 'Deliveries'; + const LOCATION_FLAG_DRONE_BAY = 'DroneBay'; + const LOCATION_FLAG_DUST_BATTLE = 'DustBattle'; + const LOCATION_FLAG_DUST_DATABANK = 'DustDatabank'; + const LOCATION_FLAG_FIGHTER_BAY = 'FighterBay'; + const LOCATION_FLAG_FIGHTER_TUBE0 = 'FighterTube0'; + const LOCATION_FLAG_FIGHTER_TUBE1 = 'FighterTube1'; + const LOCATION_FLAG_FIGHTER_TUBE2 = 'FighterTube2'; + const LOCATION_FLAG_FIGHTER_TUBE3 = 'FighterTube3'; + const LOCATION_FLAG_FIGHTER_TUBE4 = 'FighterTube4'; + const LOCATION_FLAG_FLEET_HANGAR = 'FleetHangar'; + const LOCATION_FLAG_HANGAR = 'Hangar'; + const LOCATION_FLAG_HANGAR_ALL = 'HangarAll'; + const LOCATION_FLAG_HI_SLOT0 = 'HiSlot0'; + const LOCATION_FLAG_HI_SLOT1 = 'HiSlot1'; + const LOCATION_FLAG_HI_SLOT2 = 'HiSlot2'; + const LOCATION_FLAG_HI_SLOT3 = 'HiSlot3'; + const LOCATION_FLAG_HI_SLOT4 = 'HiSlot4'; + const LOCATION_FLAG_HI_SLOT5 = 'HiSlot5'; + const LOCATION_FLAG_HI_SLOT6 = 'HiSlot6'; + const LOCATION_FLAG_HI_SLOT7 = 'HiSlot7'; + const LOCATION_FLAG_HIDDEN_MODIFERS = 'HiddenModifers'; + const LOCATION_FLAG_IMPLANT = 'Implant'; + const LOCATION_FLAG_IMPOUNDED = 'Impounded'; + const LOCATION_FLAG_JUNKYARD_REPROCESSED = 'JunkyardReprocessed'; + const LOCATION_FLAG_JUNKYARD_TRASHED = 'JunkyardTrashed'; + const LOCATION_FLAG_LO_SLOT0 = 'LoSlot0'; + const LOCATION_FLAG_LO_SLOT1 = 'LoSlot1'; + const LOCATION_FLAG_LO_SLOT2 = 'LoSlot2'; + const LOCATION_FLAG_LO_SLOT3 = 'LoSlot3'; + const LOCATION_FLAG_LO_SLOT4 = 'LoSlot4'; + const LOCATION_FLAG_LO_SLOT5 = 'LoSlot5'; + const LOCATION_FLAG_LO_SLOT6 = 'LoSlot6'; + const LOCATION_FLAG_LO_SLOT7 = 'LoSlot7'; + const LOCATION_FLAG_LOCKED = 'Locked'; + const LOCATION_FLAG_MED_SLOT0 = 'MedSlot0'; + const LOCATION_FLAG_MED_SLOT1 = 'MedSlot1'; + const LOCATION_FLAG_MED_SLOT2 = 'MedSlot2'; + const LOCATION_FLAG_MED_SLOT3 = 'MedSlot3'; + const LOCATION_FLAG_MED_SLOT4 = 'MedSlot4'; + const LOCATION_FLAG_MED_SLOT5 = 'MedSlot5'; + const LOCATION_FLAG_MED_SLOT6 = 'MedSlot6'; + const LOCATION_FLAG_MED_SLOT7 = 'MedSlot7'; + const LOCATION_FLAG_OFFICE_FOLDER = 'OfficeFolder'; + const LOCATION_FLAG_PILOT = 'Pilot'; + const LOCATION_FLAG_PLANET_SURFACE = 'PlanetSurface'; + const LOCATION_FLAG_QUAFE_BAY = 'QuafeBay'; + const LOCATION_FLAG_REWARD = 'Reward'; + const LOCATION_FLAG_RIG_SLOT0 = 'RigSlot0'; + const LOCATION_FLAG_RIG_SLOT1 = 'RigSlot1'; + const LOCATION_FLAG_RIG_SLOT2 = 'RigSlot2'; + const LOCATION_FLAG_RIG_SLOT3 = 'RigSlot3'; + const LOCATION_FLAG_RIG_SLOT4 = 'RigSlot4'; + const LOCATION_FLAG_RIG_SLOT5 = 'RigSlot5'; + const LOCATION_FLAG_RIG_SLOT6 = 'RigSlot6'; + const LOCATION_FLAG_RIG_SLOT7 = 'RigSlot7'; + const LOCATION_FLAG_SECONDARY_STORAGE = 'SecondaryStorage'; + const LOCATION_FLAG_SERVICE_SLOT0 = 'ServiceSlot0'; + const LOCATION_FLAG_SERVICE_SLOT1 = 'ServiceSlot1'; + const LOCATION_FLAG_SERVICE_SLOT2 = 'ServiceSlot2'; + const LOCATION_FLAG_SERVICE_SLOT3 = 'ServiceSlot3'; + const LOCATION_FLAG_SERVICE_SLOT4 = 'ServiceSlot4'; + const LOCATION_FLAG_SERVICE_SLOT5 = 'ServiceSlot5'; + const LOCATION_FLAG_SERVICE_SLOT6 = 'ServiceSlot6'; + const LOCATION_FLAG_SERVICE_SLOT7 = 'ServiceSlot7'; + const LOCATION_FLAG_SHIP_HANGAR = 'ShipHangar'; + const LOCATION_FLAG_SHIP_OFFLINE = 'ShipOffline'; + const LOCATION_FLAG_SKILL = 'Skill'; + const LOCATION_FLAG_SKILL_IN_TRAINING = 'SkillInTraining'; + const LOCATION_FLAG_SPECIALIZED_AMMO_HOLD = 'SpecializedAmmoHold'; + const LOCATION_FLAG_SPECIALIZED_COMMAND_CENTER_HOLD = 'SpecializedCommandCenterHold'; + const LOCATION_FLAG_SPECIALIZED_FUEL_BAY = 'SpecializedFuelBay'; + const LOCATION_FLAG_SPECIALIZED_GAS_HOLD = 'SpecializedGasHold'; + const LOCATION_FLAG_SPECIALIZED_INDUSTRIAL_SHIP_HOLD = 'SpecializedIndustrialShipHold'; + const LOCATION_FLAG_SPECIALIZED_LARGE_SHIP_HOLD = 'SpecializedLargeShipHold'; + const LOCATION_FLAG_SPECIALIZED_MATERIAL_BAY = 'SpecializedMaterialBay'; + const LOCATION_FLAG_SPECIALIZED_MEDIUM_SHIP_HOLD = 'SpecializedMediumShipHold'; + const LOCATION_FLAG_SPECIALIZED_MINERAL_HOLD = 'SpecializedMineralHold'; + const LOCATION_FLAG_SPECIALIZED_ORE_HOLD = 'SpecializedOreHold'; + const LOCATION_FLAG_SPECIALIZED_PLANETARY_COMMODITIES_HOLD = 'SpecializedPlanetaryCommoditiesHold'; + const LOCATION_FLAG_SPECIALIZED_SALVAGE_HOLD = 'SpecializedSalvageHold'; + const LOCATION_FLAG_SPECIALIZED_SHIP_HOLD = 'SpecializedShipHold'; + const LOCATION_FLAG_SPECIALIZED_SMALL_SHIP_HOLD = 'SpecializedSmallShipHold'; + const LOCATION_FLAG_STRUCTURE_ACTIVE = 'StructureActive'; + const LOCATION_FLAG_STRUCTURE_FUEL = 'StructureFuel'; + const LOCATION_FLAG_STRUCTURE_INACTIVE = 'StructureInactive'; + const LOCATION_FLAG_STRUCTURE_OFFLINE = 'StructureOffline'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT0 = 'SubSystemSlot0'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT1 = 'SubSystemSlot1'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT2 = 'SubSystemSlot2'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT3 = 'SubSystemSlot3'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT4 = 'SubSystemSlot4'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT5 = 'SubSystemSlot5'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT6 = 'SubSystemSlot6'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT7 = 'SubSystemSlot7'; + const LOCATION_FLAG_SUBSYSTEM_BAY = 'SubsystemBay'; + const LOCATION_FLAG_UNLOCKED = 'Unlocked'; + const LOCATION_FLAG_WALLET = 'Wallet'; + const LOCATION_FLAG_WARDROBE = 'Wardrobe'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getLocationTypeAllowableValues() + { + return [ + self::LOCATION_TYPE_STATION, + self::LOCATION_TYPE_SOLAR_SYSTEM, + self::LOCATION_TYPE_OTHER, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getLocationFlagAllowableValues() + { + return [ + self::LOCATION_FLAG_ASSET_SAFETY, + self::LOCATION_FLAG_AUTO_FIT, + self::LOCATION_FLAG_BONUS, + self::LOCATION_FLAG_BOOSTER, + self::LOCATION_FLAG_BOOSTER_BAY, + self::LOCATION_FLAG_CAPSULE, + self::LOCATION_FLAG_CARGO, + self::LOCATION_FLAG_CORP_DELIVERIES, + self::LOCATION_FLAG_CORP_SAG1, + self::LOCATION_FLAG_CORP_SAG2, + self::LOCATION_FLAG_CORP_SAG3, + self::LOCATION_FLAG_CORP_SAG4, + self::LOCATION_FLAG_CORP_SAG5, + self::LOCATION_FLAG_CORP_SAG6, + self::LOCATION_FLAG_CORP_SAG7, + self::LOCATION_FLAG_CRATE_LOOT, + self::LOCATION_FLAG_DELIVERIES, + self::LOCATION_FLAG_DRONE_BAY, + self::LOCATION_FLAG_DUST_BATTLE, + self::LOCATION_FLAG_DUST_DATABANK, + self::LOCATION_FLAG_FIGHTER_BAY, + self::LOCATION_FLAG_FIGHTER_TUBE0, + self::LOCATION_FLAG_FIGHTER_TUBE1, + self::LOCATION_FLAG_FIGHTER_TUBE2, + self::LOCATION_FLAG_FIGHTER_TUBE3, + self::LOCATION_FLAG_FIGHTER_TUBE4, + self::LOCATION_FLAG_FLEET_HANGAR, + self::LOCATION_FLAG_HANGAR, + self::LOCATION_FLAG_HANGAR_ALL, + self::LOCATION_FLAG_HI_SLOT0, + self::LOCATION_FLAG_HI_SLOT1, + self::LOCATION_FLAG_HI_SLOT2, + self::LOCATION_FLAG_HI_SLOT3, + self::LOCATION_FLAG_HI_SLOT4, + self::LOCATION_FLAG_HI_SLOT5, + self::LOCATION_FLAG_HI_SLOT6, + self::LOCATION_FLAG_HI_SLOT7, + self::LOCATION_FLAG_HIDDEN_MODIFERS, + self::LOCATION_FLAG_IMPLANT, + self::LOCATION_FLAG_IMPOUNDED, + self::LOCATION_FLAG_JUNKYARD_REPROCESSED, + self::LOCATION_FLAG_JUNKYARD_TRASHED, + self::LOCATION_FLAG_LO_SLOT0, + self::LOCATION_FLAG_LO_SLOT1, + self::LOCATION_FLAG_LO_SLOT2, + self::LOCATION_FLAG_LO_SLOT3, + self::LOCATION_FLAG_LO_SLOT4, + self::LOCATION_FLAG_LO_SLOT5, + self::LOCATION_FLAG_LO_SLOT6, + self::LOCATION_FLAG_LO_SLOT7, + self::LOCATION_FLAG_LOCKED, + self::LOCATION_FLAG_MED_SLOT0, + self::LOCATION_FLAG_MED_SLOT1, + self::LOCATION_FLAG_MED_SLOT2, + self::LOCATION_FLAG_MED_SLOT3, + self::LOCATION_FLAG_MED_SLOT4, + self::LOCATION_FLAG_MED_SLOT5, + self::LOCATION_FLAG_MED_SLOT6, + self::LOCATION_FLAG_MED_SLOT7, + self::LOCATION_FLAG_OFFICE_FOLDER, + self::LOCATION_FLAG_PILOT, + self::LOCATION_FLAG_PLANET_SURFACE, + self::LOCATION_FLAG_QUAFE_BAY, + self::LOCATION_FLAG_REWARD, + self::LOCATION_FLAG_RIG_SLOT0, + self::LOCATION_FLAG_RIG_SLOT1, + self::LOCATION_FLAG_RIG_SLOT2, + self::LOCATION_FLAG_RIG_SLOT3, + self::LOCATION_FLAG_RIG_SLOT4, + self::LOCATION_FLAG_RIG_SLOT5, + self::LOCATION_FLAG_RIG_SLOT6, + self::LOCATION_FLAG_RIG_SLOT7, + self::LOCATION_FLAG_SECONDARY_STORAGE, + self::LOCATION_FLAG_SERVICE_SLOT0, + self::LOCATION_FLAG_SERVICE_SLOT1, + self::LOCATION_FLAG_SERVICE_SLOT2, + self::LOCATION_FLAG_SERVICE_SLOT3, + self::LOCATION_FLAG_SERVICE_SLOT4, + self::LOCATION_FLAG_SERVICE_SLOT5, + self::LOCATION_FLAG_SERVICE_SLOT6, + self::LOCATION_FLAG_SERVICE_SLOT7, + self::LOCATION_FLAG_SHIP_HANGAR, + self::LOCATION_FLAG_SHIP_OFFLINE, + self::LOCATION_FLAG_SKILL, + self::LOCATION_FLAG_SKILL_IN_TRAINING, + self::LOCATION_FLAG_SPECIALIZED_AMMO_HOLD, + self::LOCATION_FLAG_SPECIALIZED_COMMAND_CENTER_HOLD, + self::LOCATION_FLAG_SPECIALIZED_FUEL_BAY, + self::LOCATION_FLAG_SPECIALIZED_GAS_HOLD, + self::LOCATION_FLAG_SPECIALIZED_INDUSTRIAL_SHIP_HOLD, + self::LOCATION_FLAG_SPECIALIZED_LARGE_SHIP_HOLD, + self::LOCATION_FLAG_SPECIALIZED_MATERIAL_BAY, + self::LOCATION_FLAG_SPECIALIZED_MEDIUM_SHIP_HOLD, + self::LOCATION_FLAG_SPECIALIZED_MINERAL_HOLD, + self::LOCATION_FLAG_SPECIALIZED_ORE_HOLD, + self::LOCATION_FLAG_SPECIALIZED_PLANETARY_COMMODITIES_HOLD, + self::LOCATION_FLAG_SPECIALIZED_SALVAGE_HOLD, + self::LOCATION_FLAG_SPECIALIZED_SHIP_HOLD, + self::LOCATION_FLAG_SPECIALIZED_SMALL_SHIP_HOLD, + self::LOCATION_FLAG_STRUCTURE_ACTIVE, + self::LOCATION_FLAG_STRUCTURE_FUEL, + self::LOCATION_FLAG_STRUCTURE_INACTIVE, + self::LOCATION_FLAG_STRUCTURE_OFFLINE, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT0, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT1, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT2, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT3, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT4, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT5, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT6, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT7, + self::LOCATION_FLAG_SUBSYSTEM_BAY, + self::LOCATION_FLAG_UNLOCKED, + self::LOCATION_FLAG_WALLET, + self::LOCATION_FLAG_WARDROBE, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['typeId'] = isset($data['typeId']) ? $data['typeId'] : null; + $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null; + $this->container['locationId'] = isset($data['locationId']) ? $data['locationId'] : null; + $this->container['locationType'] = isset($data['locationType']) ? $data['locationType'] : null; + $this->container['itemId'] = isset($data['itemId']) ? $data['itemId'] : null; + $this->container['locationFlag'] = isset($data['locationFlag']) ? $data['locationFlag'] : null; + $this->container['isSingleton'] = isset($data['isSingleton']) ? $data['isSingleton'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['typeId'] === null) { + $invalidProperties[] = "'typeId' can't be null"; + } + if ($this->container['quantity'] === null) { + $invalidProperties[] = "'quantity' can't be null"; + } + if ($this->container['locationId'] === null) { + $invalidProperties[] = "'locationId' can't be null"; + } + if ($this->container['locationType'] === null) { + $invalidProperties[] = "'locationType' can't be null"; + } + $allowedValues = $this->getLocationTypeAllowableValues(); + if (!in_array($this->container['locationType'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'locationType', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['itemId'] === null) { + $invalidProperties[] = "'itemId' can't be null"; + } + if ($this->container['locationFlag'] === null) { + $invalidProperties[] = "'locationFlag' can't be null"; + } + $allowedValues = $this->getLocationFlagAllowableValues(); + if (!in_array($this->container['locationFlag'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'locationFlag', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['isSingleton'] === null) { + $invalidProperties[] = "'isSingleton' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['typeId'] === null) { + return false; + } + if ($this->container['quantity'] === null) { + return false; + } + if ($this->container['locationId'] === null) { + return false; + } + if ($this->container['locationType'] === null) { + return false; + } + $allowedValues = $this->getLocationTypeAllowableValues(); + if (!in_array($this->container['locationType'], $allowedValues)) { + return false; + } + if ($this->container['itemId'] === null) { + return false; + } + if ($this->container['locationFlag'] === null) { + return false; + } + $allowedValues = $this->getLocationFlagAllowableValues(); + if (!in_array($this->container['locationFlag'], $allowedValues)) { + return false; + } + if ($this->container['isSingleton'] === null) { + return false; + } + return true; + } + + + /** + * Gets typeId + * + * @return int + */ + public function getTypeId() + { + return $this->container['typeId']; + } + + /** + * Sets typeId + * + * @param int $typeId type_id integer + * + * @return $this + */ + public function setTypeId($typeId) + { + $this->container['typeId'] = $typeId; + + return $this; + } + + /** + * Gets quantity + * + * @return int + */ + public function getQuantity() + { + return $this->container['quantity']; + } + + /** + * Sets quantity + * + * @param int $quantity quantity integer + * + * @return $this + */ + public function setQuantity($quantity) + { + $this->container['quantity'] = $quantity; + + return $this; + } + + /** + * Gets locationId + * + * @return int + */ + public function getLocationId() + { + return $this->container['locationId']; + } + + /** + * Sets locationId + * + * @param int $locationId location_id integer + * + * @return $this + */ + public function setLocationId($locationId) + { + $this->container['locationId'] = $locationId; + + return $this; + } + + /** + * Gets locationType + * + * @return string + */ + public function getLocationType() + { + return $this->container['locationType']; + } + + /** + * Sets locationType + * + * @param string $locationType location_type string + * + * @return $this + */ + public function setLocationType($locationType) + { + $allowedValues = $this->getLocationTypeAllowableValues(); + if (!in_array($locationType, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'locationType', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['locationType'] = $locationType; + + return $this; + } + + /** + * Gets itemId + * + * @return int + */ + public function getItemId() + { + return $this->container['itemId']; + } + + /** + * Sets itemId + * + * @param int $itemId item_id integer + * + * @return $this + */ + public function setItemId($itemId) + { + $this->container['itemId'] = $itemId; + + return $this; + } + + /** + * Gets locationFlag + * + * @return string + */ + public function getLocationFlag() + { + return $this->container['locationFlag']; + } + + /** + * Sets locationFlag + * + * @param string $locationFlag location_flag string + * + * @return $this + */ + public function setLocationFlag($locationFlag) + { + $allowedValues = $this->getLocationFlagAllowableValues(); + if (!in_array($locationFlag, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'locationFlag', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['locationFlag'] = $locationFlag; + + return $this; + } + + /** + * Gets isSingleton + * + * @return bool + */ + public function getIsSingleton() + { + return $this->container['isSingleton']; + } + + /** + * Sets isSingleton + * + * @param bool $isSingleton is_singleton boolean + * + * @return $this + */ + public function setIsSingleton($isSingleton) + { + $this->container['isSingleton'] = $isSingleton; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdBlueprints200Ok.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdBlueprints200Ok.php new file mode 100644 index 0000000..581ee4d --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdBlueprints200Ok.php @@ -0,0 +1,891 @@ + 'int', + 'typeId' => 'int', + 'locationId' => 'int', + 'locationFlag' => 'string', + 'quantity' => 'int', + 'timeEfficiency' => 'int', + 'materialEfficiency' => 'int', + 'runs' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'itemId' => 'int64', + 'typeId' => 'int32', + 'locationId' => 'int64', + 'locationFlag' => null, + 'quantity' => 'int32', + 'timeEfficiency' => 'int32', + 'materialEfficiency' => 'int32', + 'runs' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'itemId' => 'item_id', + 'typeId' => 'type_id', + 'locationId' => 'location_id', + 'locationFlag' => 'location_flag', + 'quantity' => 'quantity', + 'timeEfficiency' => 'time_efficiency', + 'materialEfficiency' => 'material_efficiency', + 'runs' => 'runs' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'itemId' => 'setItemId', + 'typeId' => 'setTypeId', + 'locationId' => 'setLocationId', + 'locationFlag' => 'setLocationFlag', + 'quantity' => 'setQuantity', + 'timeEfficiency' => 'setTimeEfficiency', + 'materialEfficiency' => 'setMaterialEfficiency', + 'runs' => 'setRuns' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'itemId' => 'getItemId', + 'typeId' => 'getTypeId', + 'locationId' => 'getLocationId', + 'locationFlag' => 'getLocationFlag', + 'quantity' => 'getQuantity', + 'timeEfficiency' => 'getTimeEfficiency', + 'materialEfficiency' => 'getMaterialEfficiency', + 'runs' => 'getRuns' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const LOCATION_FLAG_ASSET_SAFETY = 'AssetSafety'; + const LOCATION_FLAG_AUTO_FIT = 'AutoFit'; + const LOCATION_FLAG_BONUS = 'Bonus'; + const LOCATION_FLAG_BOOSTER = 'Booster'; + const LOCATION_FLAG_BOOSTER_BAY = 'BoosterBay'; + const LOCATION_FLAG_CAPSULE = 'Capsule'; + const LOCATION_FLAG_CARGO = 'Cargo'; + const LOCATION_FLAG_CORP_DELIVERIES = 'CorpDeliveries'; + const LOCATION_FLAG_CORP_SAG1 = 'CorpSAG1'; + const LOCATION_FLAG_CORP_SAG2 = 'CorpSAG2'; + const LOCATION_FLAG_CORP_SAG3 = 'CorpSAG3'; + const LOCATION_FLAG_CORP_SAG4 = 'CorpSAG4'; + const LOCATION_FLAG_CORP_SAG5 = 'CorpSAG5'; + const LOCATION_FLAG_CORP_SAG6 = 'CorpSAG6'; + const LOCATION_FLAG_CORP_SAG7 = 'CorpSAG7'; + const LOCATION_FLAG_CRATE_LOOT = 'CrateLoot'; + const LOCATION_FLAG_DELIVERIES = 'Deliveries'; + const LOCATION_FLAG_DRONE_BAY = 'DroneBay'; + const LOCATION_FLAG_DUST_BATTLE = 'DustBattle'; + const LOCATION_FLAG_DUST_DATABANK = 'DustDatabank'; + const LOCATION_FLAG_FIGHTER_BAY = 'FighterBay'; + const LOCATION_FLAG_FIGHTER_TUBE0 = 'FighterTube0'; + const LOCATION_FLAG_FIGHTER_TUBE1 = 'FighterTube1'; + const LOCATION_FLAG_FIGHTER_TUBE2 = 'FighterTube2'; + const LOCATION_FLAG_FIGHTER_TUBE3 = 'FighterTube3'; + const LOCATION_FLAG_FIGHTER_TUBE4 = 'FighterTube4'; + const LOCATION_FLAG_FLEET_HANGAR = 'FleetHangar'; + const LOCATION_FLAG_HANGAR = 'Hangar'; + const LOCATION_FLAG_HANGAR_ALL = 'HangarAll'; + const LOCATION_FLAG_HI_SLOT0 = 'HiSlot0'; + const LOCATION_FLAG_HI_SLOT1 = 'HiSlot1'; + const LOCATION_FLAG_HI_SLOT2 = 'HiSlot2'; + const LOCATION_FLAG_HI_SLOT3 = 'HiSlot3'; + const LOCATION_FLAG_HI_SLOT4 = 'HiSlot4'; + const LOCATION_FLAG_HI_SLOT5 = 'HiSlot5'; + const LOCATION_FLAG_HI_SLOT6 = 'HiSlot6'; + const LOCATION_FLAG_HI_SLOT7 = 'HiSlot7'; + const LOCATION_FLAG_HIDDEN_MODIFERS = 'HiddenModifers'; + const LOCATION_FLAG_IMPLANT = 'Implant'; + const LOCATION_FLAG_IMPOUNDED = 'Impounded'; + const LOCATION_FLAG_JUNKYARD_REPROCESSED = 'JunkyardReprocessed'; + const LOCATION_FLAG_JUNKYARD_TRASHED = 'JunkyardTrashed'; + const LOCATION_FLAG_LO_SLOT0 = 'LoSlot0'; + const LOCATION_FLAG_LO_SLOT1 = 'LoSlot1'; + const LOCATION_FLAG_LO_SLOT2 = 'LoSlot2'; + const LOCATION_FLAG_LO_SLOT3 = 'LoSlot3'; + const LOCATION_FLAG_LO_SLOT4 = 'LoSlot4'; + const LOCATION_FLAG_LO_SLOT5 = 'LoSlot5'; + const LOCATION_FLAG_LO_SLOT6 = 'LoSlot6'; + const LOCATION_FLAG_LO_SLOT7 = 'LoSlot7'; + const LOCATION_FLAG_LOCKED = 'Locked'; + const LOCATION_FLAG_MED_SLOT0 = 'MedSlot0'; + const LOCATION_FLAG_MED_SLOT1 = 'MedSlot1'; + const LOCATION_FLAG_MED_SLOT2 = 'MedSlot2'; + const LOCATION_FLAG_MED_SLOT3 = 'MedSlot3'; + const LOCATION_FLAG_MED_SLOT4 = 'MedSlot4'; + const LOCATION_FLAG_MED_SLOT5 = 'MedSlot5'; + const LOCATION_FLAG_MED_SLOT6 = 'MedSlot6'; + const LOCATION_FLAG_MED_SLOT7 = 'MedSlot7'; + const LOCATION_FLAG_OFFICE_FOLDER = 'OfficeFolder'; + const LOCATION_FLAG_PILOT = 'Pilot'; + const LOCATION_FLAG_PLANET_SURFACE = 'PlanetSurface'; + const LOCATION_FLAG_QUAFE_BAY = 'QuafeBay'; + const LOCATION_FLAG_REWARD = 'Reward'; + const LOCATION_FLAG_RIG_SLOT0 = 'RigSlot0'; + const LOCATION_FLAG_RIG_SLOT1 = 'RigSlot1'; + const LOCATION_FLAG_RIG_SLOT2 = 'RigSlot2'; + const LOCATION_FLAG_RIG_SLOT3 = 'RigSlot3'; + const LOCATION_FLAG_RIG_SLOT4 = 'RigSlot4'; + const LOCATION_FLAG_RIG_SLOT5 = 'RigSlot5'; + const LOCATION_FLAG_RIG_SLOT6 = 'RigSlot6'; + const LOCATION_FLAG_RIG_SLOT7 = 'RigSlot7'; + const LOCATION_FLAG_SECONDARY_STORAGE = 'SecondaryStorage'; + const LOCATION_FLAG_SERVICE_SLOT0 = 'ServiceSlot0'; + const LOCATION_FLAG_SERVICE_SLOT1 = 'ServiceSlot1'; + const LOCATION_FLAG_SERVICE_SLOT2 = 'ServiceSlot2'; + const LOCATION_FLAG_SERVICE_SLOT3 = 'ServiceSlot3'; + const LOCATION_FLAG_SERVICE_SLOT4 = 'ServiceSlot4'; + const LOCATION_FLAG_SERVICE_SLOT5 = 'ServiceSlot5'; + const LOCATION_FLAG_SERVICE_SLOT6 = 'ServiceSlot6'; + const LOCATION_FLAG_SERVICE_SLOT7 = 'ServiceSlot7'; + const LOCATION_FLAG_SHIP_HANGAR = 'ShipHangar'; + const LOCATION_FLAG_SHIP_OFFLINE = 'ShipOffline'; + const LOCATION_FLAG_SKILL = 'Skill'; + const LOCATION_FLAG_SKILL_IN_TRAINING = 'SkillInTraining'; + const LOCATION_FLAG_SPECIALIZED_AMMO_HOLD = 'SpecializedAmmoHold'; + const LOCATION_FLAG_SPECIALIZED_COMMAND_CENTER_HOLD = 'SpecializedCommandCenterHold'; + const LOCATION_FLAG_SPECIALIZED_FUEL_BAY = 'SpecializedFuelBay'; + const LOCATION_FLAG_SPECIALIZED_GAS_HOLD = 'SpecializedGasHold'; + const LOCATION_FLAG_SPECIALIZED_INDUSTRIAL_SHIP_HOLD = 'SpecializedIndustrialShipHold'; + const LOCATION_FLAG_SPECIALIZED_LARGE_SHIP_HOLD = 'SpecializedLargeShipHold'; + const LOCATION_FLAG_SPECIALIZED_MATERIAL_BAY = 'SpecializedMaterialBay'; + const LOCATION_FLAG_SPECIALIZED_MEDIUM_SHIP_HOLD = 'SpecializedMediumShipHold'; + const LOCATION_FLAG_SPECIALIZED_MINERAL_HOLD = 'SpecializedMineralHold'; + const LOCATION_FLAG_SPECIALIZED_ORE_HOLD = 'SpecializedOreHold'; + const LOCATION_FLAG_SPECIALIZED_PLANETARY_COMMODITIES_HOLD = 'SpecializedPlanetaryCommoditiesHold'; + const LOCATION_FLAG_SPECIALIZED_SALVAGE_HOLD = 'SpecializedSalvageHold'; + const LOCATION_FLAG_SPECIALIZED_SHIP_HOLD = 'SpecializedShipHold'; + const LOCATION_FLAG_SPECIALIZED_SMALL_SHIP_HOLD = 'SpecializedSmallShipHold'; + const LOCATION_FLAG_STRUCTURE_ACTIVE = 'StructureActive'; + const LOCATION_FLAG_STRUCTURE_FUEL = 'StructureFuel'; + const LOCATION_FLAG_STRUCTURE_INACTIVE = 'StructureInactive'; + const LOCATION_FLAG_STRUCTURE_OFFLINE = 'StructureOffline'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT0 = 'SubSystemSlot0'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT1 = 'SubSystemSlot1'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT2 = 'SubSystemSlot2'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT3 = 'SubSystemSlot3'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT4 = 'SubSystemSlot4'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT5 = 'SubSystemSlot5'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT6 = 'SubSystemSlot6'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT7 = 'SubSystemSlot7'; + const LOCATION_FLAG_SUBSYSTEM_BAY = 'SubsystemBay'; + const LOCATION_FLAG_UNLOCKED = 'Unlocked'; + const LOCATION_FLAG_WALLET = 'Wallet'; + const LOCATION_FLAG_WARDROBE = 'Wardrobe'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getLocationFlagAllowableValues() + { + return [ + self::LOCATION_FLAG_ASSET_SAFETY, + self::LOCATION_FLAG_AUTO_FIT, + self::LOCATION_FLAG_BONUS, + self::LOCATION_FLAG_BOOSTER, + self::LOCATION_FLAG_BOOSTER_BAY, + self::LOCATION_FLAG_CAPSULE, + self::LOCATION_FLAG_CARGO, + self::LOCATION_FLAG_CORP_DELIVERIES, + self::LOCATION_FLAG_CORP_SAG1, + self::LOCATION_FLAG_CORP_SAG2, + self::LOCATION_FLAG_CORP_SAG3, + self::LOCATION_FLAG_CORP_SAG4, + self::LOCATION_FLAG_CORP_SAG5, + self::LOCATION_FLAG_CORP_SAG6, + self::LOCATION_FLAG_CORP_SAG7, + self::LOCATION_FLAG_CRATE_LOOT, + self::LOCATION_FLAG_DELIVERIES, + self::LOCATION_FLAG_DRONE_BAY, + self::LOCATION_FLAG_DUST_BATTLE, + self::LOCATION_FLAG_DUST_DATABANK, + self::LOCATION_FLAG_FIGHTER_BAY, + self::LOCATION_FLAG_FIGHTER_TUBE0, + self::LOCATION_FLAG_FIGHTER_TUBE1, + self::LOCATION_FLAG_FIGHTER_TUBE2, + self::LOCATION_FLAG_FIGHTER_TUBE3, + self::LOCATION_FLAG_FIGHTER_TUBE4, + self::LOCATION_FLAG_FLEET_HANGAR, + self::LOCATION_FLAG_HANGAR, + self::LOCATION_FLAG_HANGAR_ALL, + self::LOCATION_FLAG_HI_SLOT0, + self::LOCATION_FLAG_HI_SLOT1, + self::LOCATION_FLAG_HI_SLOT2, + self::LOCATION_FLAG_HI_SLOT3, + self::LOCATION_FLAG_HI_SLOT4, + self::LOCATION_FLAG_HI_SLOT5, + self::LOCATION_FLAG_HI_SLOT6, + self::LOCATION_FLAG_HI_SLOT7, + self::LOCATION_FLAG_HIDDEN_MODIFERS, + self::LOCATION_FLAG_IMPLANT, + self::LOCATION_FLAG_IMPOUNDED, + self::LOCATION_FLAG_JUNKYARD_REPROCESSED, + self::LOCATION_FLAG_JUNKYARD_TRASHED, + self::LOCATION_FLAG_LO_SLOT0, + self::LOCATION_FLAG_LO_SLOT1, + self::LOCATION_FLAG_LO_SLOT2, + self::LOCATION_FLAG_LO_SLOT3, + self::LOCATION_FLAG_LO_SLOT4, + self::LOCATION_FLAG_LO_SLOT5, + self::LOCATION_FLAG_LO_SLOT6, + self::LOCATION_FLAG_LO_SLOT7, + self::LOCATION_FLAG_LOCKED, + self::LOCATION_FLAG_MED_SLOT0, + self::LOCATION_FLAG_MED_SLOT1, + self::LOCATION_FLAG_MED_SLOT2, + self::LOCATION_FLAG_MED_SLOT3, + self::LOCATION_FLAG_MED_SLOT4, + self::LOCATION_FLAG_MED_SLOT5, + self::LOCATION_FLAG_MED_SLOT6, + self::LOCATION_FLAG_MED_SLOT7, + self::LOCATION_FLAG_OFFICE_FOLDER, + self::LOCATION_FLAG_PILOT, + self::LOCATION_FLAG_PLANET_SURFACE, + self::LOCATION_FLAG_QUAFE_BAY, + self::LOCATION_FLAG_REWARD, + self::LOCATION_FLAG_RIG_SLOT0, + self::LOCATION_FLAG_RIG_SLOT1, + self::LOCATION_FLAG_RIG_SLOT2, + self::LOCATION_FLAG_RIG_SLOT3, + self::LOCATION_FLAG_RIG_SLOT4, + self::LOCATION_FLAG_RIG_SLOT5, + self::LOCATION_FLAG_RIG_SLOT6, + self::LOCATION_FLAG_RIG_SLOT7, + self::LOCATION_FLAG_SECONDARY_STORAGE, + self::LOCATION_FLAG_SERVICE_SLOT0, + self::LOCATION_FLAG_SERVICE_SLOT1, + self::LOCATION_FLAG_SERVICE_SLOT2, + self::LOCATION_FLAG_SERVICE_SLOT3, + self::LOCATION_FLAG_SERVICE_SLOT4, + self::LOCATION_FLAG_SERVICE_SLOT5, + self::LOCATION_FLAG_SERVICE_SLOT6, + self::LOCATION_FLAG_SERVICE_SLOT7, + self::LOCATION_FLAG_SHIP_HANGAR, + self::LOCATION_FLAG_SHIP_OFFLINE, + self::LOCATION_FLAG_SKILL, + self::LOCATION_FLAG_SKILL_IN_TRAINING, + self::LOCATION_FLAG_SPECIALIZED_AMMO_HOLD, + self::LOCATION_FLAG_SPECIALIZED_COMMAND_CENTER_HOLD, + self::LOCATION_FLAG_SPECIALIZED_FUEL_BAY, + self::LOCATION_FLAG_SPECIALIZED_GAS_HOLD, + self::LOCATION_FLAG_SPECIALIZED_INDUSTRIAL_SHIP_HOLD, + self::LOCATION_FLAG_SPECIALIZED_LARGE_SHIP_HOLD, + self::LOCATION_FLAG_SPECIALIZED_MATERIAL_BAY, + self::LOCATION_FLAG_SPECIALIZED_MEDIUM_SHIP_HOLD, + self::LOCATION_FLAG_SPECIALIZED_MINERAL_HOLD, + self::LOCATION_FLAG_SPECIALIZED_ORE_HOLD, + self::LOCATION_FLAG_SPECIALIZED_PLANETARY_COMMODITIES_HOLD, + self::LOCATION_FLAG_SPECIALIZED_SALVAGE_HOLD, + self::LOCATION_FLAG_SPECIALIZED_SHIP_HOLD, + self::LOCATION_FLAG_SPECIALIZED_SMALL_SHIP_HOLD, + self::LOCATION_FLAG_STRUCTURE_ACTIVE, + self::LOCATION_FLAG_STRUCTURE_FUEL, + self::LOCATION_FLAG_STRUCTURE_INACTIVE, + self::LOCATION_FLAG_STRUCTURE_OFFLINE, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT0, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT1, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT2, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT3, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT4, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT5, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT6, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT7, + self::LOCATION_FLAG_SUBSYSTEM_BAY, + self::LOCATION_FLAG_UNLOCKED, + self::LOCATION_FLAG_WALLET, + self::LOCATION_FLAG_WARDROBE, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['itemId'] = isset($data['itemId']) ? $data['itemId'] : null; + $this->container['typeId'] = isset($data['typeId']) ? $data['typeId'] : null; + $this->container['locationId'] = isset($data['locationId']) ? $data['locationId'] : null; + $this->container['locationFlag'] = isset($data['locationFlag']) ? $data['locationFlag'] : null; + $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null; + $this->container['timeEfficiency'] = isset($data['timeEfficiency']) ? $data['timeEfficiency'] : null; + $this->container['materialEfficiency'] = isset($data['materialEfficiency']) ? $data['materialEfficiency'] : null; + $this->container['runs'] = isset($data['runs']) ? $data['runs'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['itemId'] === null) { + $invalidProperties[] = "'itemId' can't be null"; + } + if ($this->container['typeId'] === null) { + $invalidProperties[] = "'typeId' can't be null"; + } + if ($this->container['locationId'] === null) { + $invalidProperties[] = "'locationId' can't be null"; + } + if ($this->container['locationFlag'] === null) { + $invalidProperties[] = "'locationFlag' can't be null"; + } + $allowedValues = $this->getLocationFlagAllowableValues(); + if (!in_array($this->container['locationFlag'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'locationFlag', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['quantity'] === null) { + $invalidProperties[] = "'quantity' can't be null"; + } + if (($this->container['quantity'] < -2)) { + $invalidProperties[] = "invalid value for 'quantity', must be bigger than or equal to -2."; + } + + if ($this->container['timeEfficiency'] === null) { + $invalidProperties[] = "'timeEfficiency' can't be null"; + } + if (($this->container['timeEfficiency'] > 20)) { + $invalidProperties[] = "invalid value for 'timeEfficiency', must be smaller than or equal to 20."; + } + + if (($this->container['timeEfficiency'] < 0)) { + $invalidProperties[] = "invalid value for 'timeEfficiency', must be bigger than or equal to 0."; + } + + if ($this->container['materialEfficiency'] === null) { + $invalidProperties[] = "'materialEfficiency' can't be null"; + } + if (($this->container['materialEfficiency'] > 25)) { + $invalidProperties[] = "invalid value for 'materialEfficiency', must be smaller than or equal to 25."; + } + + if (($this->container['materialEfficiency'] < 0)) { + $invalidProperties[] = "invalid value for 'materialEfficiency', must be bigger than or equal to 0."; + } + + if ($this->container['runs'] === null) { + $invalidProperties[] = "'runs' can't be null"; + } + if (($this->container['runs'] < -1)) { + $invalidProperties[] = "invalid value for 'runs', must be bigger than or equal to -1."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['itemId'] === null) { + return false; + } + if ($this->container['typeId'] === null) { + return false; + } + if ($this->container['locationId'] === null) { + return false; + } + if ($this->container['locationFlag'] === null) { + return false; + } + $allowedValues = $this->getLocationFlagAllowableValues(); + if (!in_array($this->container['locationFlag'], $allowedValues)) { + return false; + } + if ($this->container['quantity'] === null) { + return false; + } + if ($this->container['quantity'] < -2) { + return false; + } + if ($this->container['timeEfficiency'] === null) { + return false; + } + if ($this->container['timeEfficiency'] > 20) { + return false; + } + if ($this->container['timeEfficiency'] < 0) { + return false; + } + if ($this->container['materialEfficiency'] === null) { + return false; + } + if ($this->container['materialEfficiency'] > 25) { + return false; + } + if ($this->container['materialEfficiency'] < 0) { + return false; + } + if ($this->container['runs'] === null) { + return false; + } + if ($this->container['runs'] < -1) { + return false; + } + return true; + } + + + /** + * Gets itemId + * + * @return int + */ + public function getItemId() + { + return $this->container['itemId']; + } + + /** + * Sets itemId + * + * @param int $itemId Unique ID for this item. + * + * @return $this + */ + public function setItemId($itemId) + { + $this->container['itemId'] = $itemId; + + return $this; + } + + /** + * Gets typeId + * + * @return int + */ + public function getTypeId() + { + return $this->container['typeId']; + } + + /** + * Sets typeId + * + * @param int $typeId type_id integer + * + * @return $this + */ + public function setTypeId($typeId) + { + $this->container['typeId'] = $typeId; + + return $this; + } + + /** + * Gets locationId + * + * @return int + */ + public function getLocationId() + { + return $this->container['locationId']; + } + + /** + * Sets locationId + * + * @param int $locationId References a solar system, station or item_id if this blueprint is located within a container. + * + * @return $this + */ + public function setLocationId($locationId) + { + $this->container['locationId'] = $locationId; + + return $this; + } + + /** + * Gets locationFlag + * + * @return string + */ + public function getLocationFlag() + { + return $this->container['locationFlag']; + } + + /** + * Sets locationFlag + * + * @param string $locationFlag Type of the location_id + * + * @return $this + */ + public function setLocationFlag($locationFlag) + { + $allowedValues = $this->getLocationFlagAllowableValues(); + if (!in_array($locationFlag, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'locationFlag', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['locationFlag'] = $locationFlag; + + return $this; + } + + /** + * Gets quantity + * + * @return int + */ + public function getQuantity() + { + return $this->container['quantity']; + } + + /** + * Sets quantity + * + * @param int $quantity A range of numbers with a minimum of -2 and no maximum value where -1 is an original and -2 is a copy. It can be a positive integer if it is a stack of blueprint originals fresh from the market (e.g. no activities performed on them yet). + * + * @return $this + */ + public function setQuantity($quantity) + { + + if (($quantity < -2)) { + throw new \InvalidArgumentException('invalid value for $quantity when calling GetCorporationsCorporationIdBlueprints200Ok., must be bigger than or equal to -2.'); + } + + $this->container['quantity'] = $quantity; + + return $this; + } + + /** + * Gets timeEfficiency + * + * @return int + */ + public function getTimeEfficiency() + { + return $this->container['timeEfficiency']; + } + + /** + * Sets timeEfficiency + * + * @param int $timeEfficiency Time Efficiency Level of the blueprint. + * + * @return $this + */ + public function setTimeEfficiency($timeEfficiency) + { + + if (($timeEfficiency > 20)) { + throw new \InvalidArgumentException('invalid value for $timeEfficiency when calling GetCorporationsCorporationIdBlueprints200Ok., must be smaller than or equal to 20.'); + } + if (($timeEfficiency < 0)) { + throw new \InvalidArgumentException('invalid value for $timeEfficiency when calling GetCorporationsCorporationIdBlueprints200Ok., must be bigger than or equal to 0.'); + } + + $this->container['timeEfficiency'] = $timeEfficiency; + + return $this; + } + + /** + * Gets materialEfficiency + * + * @return int + */ + public function getMaterialEfficiency() + { + return $this->container['materialEfficiency']; + } + + /** + * Sets materialEfficiency + * + * @param int $materialEfficiency Material Efficiency Level of the blueprint. + * + * @return $this + */ + public function setMaterialEfficiency($materialEfficiency) + { + + if (($materialEfficiency > 25)) { + throw new \InvalidArgumentException('invalid value for $materialEfficiency when calling GetCorporationsCorporationIdBlueprints200Ok., must be smaller than or equal to 25.'); + } + if (($materialEfficiency < 0)) { + throw new \InvalidArgumentException('invalid value for $materialEfficiency when calling GetCorporationsCorporationIdBlueprints200Ok., must be bigger than or equal to 0.'); + } + + $this->container['materialEfficiency'] = $materialEfficiency; + + return $this; + } + + /** + * Gets runs + * + * @return int + */ + public function getRuns() + { + return $this->container['runs']; + } + + /** + * Sets runs + * + * @param int $runs Number of runs remaining if the blueprint is a copy, -1 if it is an original. + * + * @return $this + */ + public function setRuns($runs) + { + + if (($runs < -1)) { + throw new \InvalidArgumentException('invalid value for $runs when calling GetCorporationsCorporationIdBlueprints200Ok., must be bigger than or equal to -1.'); + } + + $this->container['runs'] = $runs; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdBookmarks200Ok.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdBookmarks200Ok.php new file mode 100644 index 0000000..0b4240a --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdBookmarks200Ok.php @@ -0,0 +1,579 @@ + 'int', + 'creatorId' => 'int', + 'folderId' => 'int', + 'created' => '\DateTime', + 'label' => 'string', + 'notes' => 'string', + 'locationId' => 'int', + 'item' => '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdBookmarksItem', + 'coordinates' => '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdBookmarksCoordinates' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'bookmarkId' => 'int32', + 'creatorId' => 'int32', + 'folderId' => 'int32', + 'created' => 'date-time', + 'label' => null, + 'notes' => null, + 'locationId' => 'int32', + 'item' => null, + 'coordinates' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'bookmarkId' => 'bookmark_id', + 'creatorId' => 'creator_id', + 'folderId' => 'folder_id', + 'created' => 'created', + 'label' => 'label', + 'notes' => 'notes', + 'locationId' => 'location_id', + 'item' => 'item', + 'coordinates' => 'coordinates' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'bookmarkId' => 'setBookmarkId', + 'creatorId' => 'setCreatorId', + 'folderId' => 'setFolderId', + 'created' => 'setCreated', + 'label' => 'setLabel', + 'notes' => 'setNotes', + 'locationId' => 'setLocationId', + 'item' => 'setItem', + 'coordinates' => 'setCoordinates' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'bookmarkId' => 'getBookmarkId', + 'creatorId' => 'getCreatorId', + 'folderId' => 'getFolderId', + 'created' => 'getCreated', + 'label' => 'getLabel', + 'notes' => 'getNotes', + 'locationId' => 'getLocationId', + 'item' => 'getItem', + 'coordinates' => 'getCoordinates' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['bookmarkId'] = isset($data['bookmarkId']) ? $data['bookmarkId'] : null; + $this->container['creatorId'] = isset($data['creatorId']) ? $data['creatorId'] : null; + $this->container['folderId'] = isset($data['folderId']) ? $data['folderId'] : null; + $this->container['created'] = isset($data['created']) ? $data['created'] : null; + $this->container['label'] = isset($data['label']) ? $data['label'] : null; + $this->container['notes'] = isset($data['notes']) ? $data['notes'] : null; + $this->container['locationId'] = isset($data['locationId']) ? $data['locationId'] : null; + $this->container['item'] = isset($data['item']) ? $data['item'] : null; + $this->container['coordinates'] = isset($data['coordinates']) ? $data['coordinates'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['bookmarkId'] === null) { + $invalidProperties[] = "'bookmarkId' can't be null"; + } + if ($this->container['creatorId'] === null) { + $invalidProperties[] = "'creatorId' can't be null"; + } + if ($this->container['created'] === null) { + $invalidProperties[] = "'created' can't be null"; + } + if ($this->container['label'] === null) { + $invalidProperties[] = "'label' can't be null"; + } + if ($this->container['notes'] === null) { + $invalidProperties[] = "'notes' can't be null"; + } + if ($this->container['locationId'] === null) { + $invalidProperties[] = "'locationId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['bookmarkId'] === null) { + return false; + } + if ($this->container['creatorId'] === null) { + return false; + } + if ($this->container['created'] === null) { + return false; + } + if ($this->container['label'] === null) { + return false; + } + if ($this->container['notes'] === null) { + return false; + } + if ($this->container['locationId'] === null) { + return false; + } + return true; + } + + + /** + * Gets bookmarkId + * + * @return int + */ + public function getBookmarkId() + { + return $this->container['bookmarkId']; + } + + /** + * Sets bookmarkId + * + * @param int $bookmarkId bookmark_id integer + * + * @return $this + */ + public function setBookmarkId($bookmarkId) + { + $this->container['bookmarkId'] = $bookmarkId; + + return $this; + } + + /** + * Gets creatorId + * + * @return int + */ + public function getCreatorId() + { + return $this->container['creatorId']; + } + + /** + * Sets creatorId + * + * @param int $creatorId creator_id integer + * + * @return $this + */ + public function setCreatorId($creatorId) + { + $this->container['creatorId'] = $creatorId; + + return $this; + } + + /** + * Gets folderId + * + * @return int + */ + public function getFolderId() + { + return $this->container['folderId']; + } + + /** + * Sets folderId + * + * @param int $folderId folder_id integer + * + * @return $this + */ + public function setFolderId($folderId) + { + $this->container['folderId'] = $folderId; + + return $this; + } + + /** + * Gets created + * + * @return \DateTime + */ + public function getCreated() + { + return $this->container['created']; + } + + /** + * Sets created + * + * @param \DateTime $created created string + * + * @return $this + */ + public function setCreated($created) + { + $this->container['created'] = $created; + + return $this; + } + + /** + * Gets label + * + * @return string + */ + public function getLabel() + { + return $this->container['label']; + } + + /** + * Sets label + * + * @param string $label label string + * + * @return $this + */ + public function setLabel($label) + { + $this->container['label'] = $label; + + return $this; + } + + /** + * Gets notes + * + * @return string + */ + public function getNotes() + { + return $this->container['notes']; + } + + /** + * Sets notes + * + * @param string $notes notes string + * + * @return $this + */ + public function setNotes($notes) + { + $this->container['notes'] = $notes; + + return $this; + } + + /** + * Gets locationId + * + * @return int + */ + public function getLocationId() + { + return $this->container['locationId']; + } + + /** + * Sets locationId + * + * @param int $locationId location_id integer + * + * @return $this + */ + public function setLocationId($locationId) + { + $this->container['locationId'] = $locationId; + + return $this; + } + + /** + * Gets item + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdBookmarksItem + */ + public function getItem() + { + return $this->container['item']; + } + + /** + * Sets item + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdBookmarksItem $item item + * + * @return $this + */ + public function setItem($item) + { + $this->container['item'] = $item; + + return $this; + } + + /** + * Gets coordinates + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdBookmarksCoordinates + */ + public function getCoordinates() + { + return $this->container['coordinates']; + } + + /** + * Sets coordinates + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdBookmarksCoordinates $coordinates coordinates + * + * @return $this + */ + public function setCoordinates($coordinates) + { + $this->container['coordinates'] = $coordinates; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdBookmarksCoordinates.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdBookmarksCoordinates.php new file mode 100644 index 0000000..f0b571e --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdBookmarksCoordinates.php @@ -0,0 +1,381 @@ + 'double', + 'y' => 'double', + 'z' => 'double' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'x' => 'double', + 'y' => 'double', + 'z' => 'double' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'x' => 'x', + 'y' => 'y', + 'z' => 'z' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'x' => 'setX', + 'y' => 'setY', + 'z' => 'setZ' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'x' => 'getX', + 'y' => 'getY', + 'z' => 'getZ' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['x'] = isset($data['x']) ? $data['x'] : null; + $this->container['y'] = isset($data['y']) ? $data['y'] : null; + $this->container['z'] = isset($data['z']) ? $data['z'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['x'] === null) { + $invalidProperties[] = "'x' can't be null"; + } + if ($this->container['y'] === null) { + $invalidProperties[] = "'y' can't be null"; + } + if ($this->container['z'] === null) { + $invalidProperties[] = "'z' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['x'] === null) { + return false; + } + if ($this->container['y'] === null) { + return false; + } + if ($this->container['z'] === null) { + return false; + } + return true; + } + + + /** + * Gets x + * + * @return double + */ + public function getX() + { + return $this->container['x']; + } + + /** + * Sets x + * + * @param double $x x number + * + * @return $this + */ + public function setX($x) + { + $this->container['x'] = $x; + + return $this; + } + + /** + * Gets y + * + * @return double + */ + public function getY() + { + return $this->container['y']; + } + + /** + * Sets y + * + * @param double $y y number + * + * @return $this + */ + public function setY($y) + { + $this->container['y'] = $y; + + return $this; + } + + /** + * Gets z + * + * @return double + */ + public function getZ() + { + return $this->container['z']; + } + + /** + * Sets z + * + * @param double $z z number + * + * @return $this + */ + public function setZ($z) + { + $this->container['z'] = $z; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdBookmarksFolders200Ok.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdBookmarksFolders200Ok.php new file mode 100644 index 0000000..ea91dfc --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdBookmarksFolders200Ok.php @@ -0,0 +1,375 @@ + 'int', + 'name' => 'string', + 'creatorId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'folderId' => 'int32', + 'name' => null, + 'creatorId' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'folderId' => 'folder_id', + 'name' => 'name', + 'creatorId' => 'creator_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'folderId' => 'setFolderId', + 'name' => 'setName', + 'creatorId' => 'setCreatorId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'folderId' => 'getFolderId', + 'name' => 'getName', + 'creatorId' => 'getCreatorId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['folderId'] = isset($data['folderId']) ? $data['folderId'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['creatorId'] = isset($data['creatorId']) ? $data['creatorId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['folderId'] === null) { + $invalidProperties[] = "'folderId' can't be null"; + } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['folderId'] === null) { + return false; + } + if ($this->container['name'] === null) { + return false; + } + return true; + } + + + /** + * Gets folderId + * + * @return int + */ + public function getFolderId() + { + return $this->container['folderId']; + } + + /** + * Sets folderId + * + * @param int $folderId folder_id integer + * + * @return $this + */ + public function setFolderId($folderId) + { + $this->container['folderId'] = $folderId; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets creatorId + * + * @return int + */ + public function getCreatorId() + { + return $this->container['creatorId']; + } + + /** + * Sets creatorId + * + * @param int $creatorId creator_id integer + * + * @return $this + */ + public function setCreatorId($creatorId) + { + $this->container['creatorId'] = $creatorId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdBookmarksItem.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdBookmarksItem.php new file mode 100644 index 0000000..e7512bd --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdBookmarksItem.php @@ -0,0 +1,345 @@ + 'int', + 'typeId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'itemId' => 'int64', + 'typeId' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'itemId' => 'item_id', + 'typeId' => 'type_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'itemId' => 'setItemId', + 'typeId' => 'setTypeId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'itemId' => 'getItemId', + 'typeId' => 'getTypeId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['itemId'] = isset($data['itemId']) ? $data['itemId'] : null; + $this->container['typeId'] = isset($data['typeId']) ? $data['typeId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['itemId'] === null) { + $invalidProperties[] = "'itemId' can't be null"; + } + if ($this->container['typeId'] === null) { + $invalidProperties[] = "'typeId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['itemId'] === null) { + return false; + } + if ($this->container['typeId'] === null) { + return false; + } + return true; + } + + + /** + * Gets itemId + * + * @return int + */ + public function getItemId() + { + return $this->container['itemId']; + } + + /** + * Sets itemId + * + * @param int $itemId item_id integer + * + * @return $this + */ + public function setItemId($itemId) + { + $this->container['itemId'] = $itemId; + + return $this; + } + + /** + * Gets typeId + * + * @return int + */ + public function getTypeId() + { + return $this->container['typeId']; + } + + /** + * Sets typeId + * + * @param int $typeId type_id integer + * + * @return $this + */ + public function setTypeId($typeId) + { + $this->container['typeId'] = $typeId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdContacts200Ok.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdContacts200Ok.php new file mode 100644 index 0000000..acce00d --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdContacts200Ok.php @@ -0,0 +1,481 @@ + 'float', + 'contactType' => 'string', + 'contactId' => 'int', + 'isWatched' => 'bool', + 'labelId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'standing' => 'float', + 'contactType' => null, + 'contactId' => 'int32', + 'isWatched' => null, + 'labelId' => 'int64' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'standing' => 'standing', + 'contactType' => 'contact_type', + 'contactId' => 'contact_id', + 'isWatched' => 'is_watched', + 'labelId' => 'label_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'standing' => 'setStanding', + 'contactType' => 'setContactType', + 'contactId' => 'setContactId', + 'isWatched' => 'setIsWatched', + 'labelId' => 'setLabelId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'standing' => 'getStanding', + 'contactType' => 'getContactType', + 'contactId' => 'getContactId', + 'isWatched' => 'getIsWatched', + 'labelId' => 'getLabelId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const CONTACT_TYPE_CHARACTER = 'character'; + const CONTACT_TYPE_CORPORATION = 'corporation'; + const CONTACT_TYPE_ALLIANCE = 'alliance'; + const CONTACT_TYPE_FACTION = 'faction'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getContactTypeAllowableValues() + { + return [ + self::CONTACT_TYPE_CHARACTER, + self::CONTACT_TYPE_CORPORATION, + self::CONTACT_TYPE_ALLIANCE, + self::CONTACT_TYPE_FACTION, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['standing'] = isset($data['standing']) ? $data['standing'] : null; + $this->container['contactType'] = isset($data['contactType']) ? $data['contactType'] : null; + $this->container['contactId'] = isset($data['contactId']) ? $data['contactId'] : null; + $this->container['isWatched'] = isset($data['isWatched']) ? $data['isWatched'] : null; + $this->container['labelId'] = isset($data['labelId']) ? $data['labelId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['standing'] === null) { + $invalidProperties[] = "'standing' can't be null"; + } + if ($this->container['contactType'] === null) { + $invalidProperties[] = "'contactType' can't be null"; + } + $allowedValues = $this->getContactTypeAllowableValues(); + if (!in_array($this->container['contactType'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'contactType', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['contactId'] === null) { + $invalidProperties[] = "'contactId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['standing'] === null) { + return false; + } + if ($this->container['contactType'] === null) { + return false; + } + $allowedValues = $this->getContactTypeAllowableValues(); + if (!in_array($this->container['contactType'], $allowedValues)) { + return false; + } + if ($this->container['contactId'] === null) { + return false; + } + return true; + } + + + /** + * Gets standing + * + * @return float + */ + public function getStanding() + { + return $this->container['standing']; + } + + /** + * Sets standing + * + * @param float $standing Standing of the contact + * + * @return $this + */ + public function setStanding($standing) + { + $this->container['standing'] = $standing; + + return $this; + } + + /** + * Gets contactType + * + * @return string + */ + public function getContactType() + { + return $this->container['contactType']; + } + + /** + * Sets contactType + * + * @param string $contactType contact_type string + * + * @return $this + */ + public function setContactType($contactType) + { + $allowedValues = $this->getContactTypeAllowableValues(); + if (!in_array($contactType, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'contactType', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['contactType'] = $contactType; + + return $this; + } + + /** + * Gets contactId + * + * @return int + */ + public function getContactId() + { + return $this->container['contactId']; + } + + /** + * Sets contactId + * + * @param int $contactId contact_id integer + * + * @return $this + */ + public function setContactId($contactId) + { + $this->container['contactId'] = $contactId; + + return $this; + } + + /** + * Gets isWatched + * + * @return bool + */ + public function getIsWatched() + { + return $this->container['isWatched']; + } + + /** + * Sets isWatched + * + * @param bool $isWatched Whether this contact is being watched + * + * @return $this + */ + public function setIsWatched($isWatched) + { + $this->container['isWatched'] = $isWatched; + + return $this; + } + + /** + * Gets labelId + * + * @return int + */ + public function getLabelId() + { + return $this->container['labelId']; + } + + /** + * Sets labelId + * + * @param int $labelId Custom label of the contact + * + * @return $this + */ + public function setLabelId($labelId) + { + $this->container['labelId'] = $labelId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdContainersLogs200Ok.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdContainersLogs200Ok.php new file mode 100644 index 0000000..fb21c8e --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdContainersLogs200Ok.php @@ -0,0 +1,1025 @@ + '\DateTime', + 'containerId' => 'int', + 'containerTypeId' => 'int', + 'characterId' => 'int', + 'locationId' => 'int', + 'locationFlag' => 'string', + 'action' => 'string', + 'passwordType' => 'string', + 'typeId' => 'int', + 'quantity' => 'int', + 'oldConfigBitmask' => 'int', + 'newConfigBitmask' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'loggedAt' => 'date-time', + 'containerId' => 'int64', + 'containerTypeId' => 'int32', + 'characterId' => 'int32', + 'locationId' => 'int64', + 'locationFlag' => null, + 'action' => null, + 'passwordType' => null, + 'typeId' => 'int32', + 'quantity' => 'int32', + 'oldConfigBitmask' => 'int32', + 'newConfigBitmask' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'loggedAt' => 'logged_at', + 'containerId' => 'container_id', + 'containerTypeId' => 'container_type_id', + 'characterId' => 'character_id', + 'locationId' => 'location_id', + 'locationFlag' => 'location_flag', + 'action' => 'action', + 'passwordType' => 'password_type', + 'typeId' => 'type_id', + 'quantity' => 'quantity', + 'oldConfigBitmask' => 'old_config_bitmask', + 'newConfigBitmask' => 'new_config_bitmask' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'loggedAt' => 'setLoggedAt', + 'containerId' => 'setContainerId', + 'containerTypeId' => 'setContainerTypeId', + 'characterId' => 'setCharacterId', + 'locationId' => 'setLocationId', + 'locationFlag' => 'setLocationFlag', + 'action' => 'setAction', + 'passwordType' => 'setPasswordType', + 'typeId' => 'setTypeId', + 'quantity' => 'setQuantity', + 'oldConfigBitmask' => 'setOldConfigBitmask', + 'newConfigBitmask' => 'setNewConfigBitmask' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'loggedAt' => 'getLoggedAt', + 'containerId' => 'getContainerId', + 'containerTypeId' => 'getContainerTypeId', + 'characterId' => 'getCharacterId', + 'locationId' => 'getLocationId', + 'locationFlag' => 'getLocationFlag', + 'action' => 'getAction', + 'passwordType' => 'getPasswordType', + 'typeId' => 'getTypeId', + 'quantity' => 'getQuantity', + 'oldConfigBitmask' => 'getOldConfigBitmask', + 'newConfigBitmask' => 'getNewConfigBitmask' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const LOCATION_FLAG_ASSET_SAFETY = 'AssetSafety'; + const LOCATION_FLAG_AUTO_FIT = 'AutoFit'; + const LOCATION_FLAG_BONUS = 'Bonus'; + const LOCATION_FLAG_BOOSTER = 'Booster'; + const LOCATION_FLAG_BOOSTER_BAY = 'BoosterBay'; + const LOCATION_FLAG_CAPSULE = 'Capsule'; + const LOCATION_FLAG_CARGO = 'Cargo'; + const LOCATION_FLAG_CORP_DELIVERIES = 'CorpDeliveries'; + const LOCATION_FLAG_CORP_SAG1 = 'CorpSAG1'; + const LOCATION_FLAG_CORP_SAG2 = 'CorpSAG2'; + const LOCATION_FLAG_CORP_SAG3 = 'CorpSAG3'; + const LOCATION_FLAG_CORP_SAG4 = 'CorpSAG4'; + const LOCATION_FLAG_CORP_SAG5 = 'CorpSAG5'; + const LOCATION_FLAG_CORP_SAG6 = 'CorpSAG6'; + const LOCATION_FLAG_CORP_SAG7 = 'CorpSAG7'; + const LOCATION_FLAG_CRATE_LOOT = 'CrateLoot'; + const LOCATION_FLAG_DELIVERIES = 'Deliveries'; + const LOCATION_FLAG_DRONE_BAY = 'DroneBay'; + const LOCATION_FLAG_DUST_BATTLE = 'DustBattle'; + const LOCATION_FLAG_DUST_DATABANK = 'DustDatabank'; + const LOCATION_FLAG_FIGHTER_BAY = 'FighterBay'; + const LOCATION_FLAG_FIGHTER_TUBE0 = 'FighterTube0'; + const LOCATION_FLAG_FIGHTER_TUBE1 = 'FighterTube1'; + const LOCATION_FLAG_FIGHTER_TUBE2 = 'FighterTube2'; + const LOCATION_FLAG_FIGHTER_TUBE3 = 'FighterTube3'; + const LOCATION_FLAG_FIGHTER_TUBE4 = 'FighterTube4'; + const LOCATION_FLAG_FLEET_HANGAR = 'FleetHangar'; + const LOCATION_FLAG_HANGAR = 'Hangar'; + const LOCATION_FLAG_HANGAR_ALL = 'HangarAll'; + const LOCATION_FLAG_HI_SLOT0 = 'HiSlot0'; + const LOCATION_FLAG_HI_SLOT1 = 'HiSlot1'; + const LOCATION_FLAG_HI_SLOT2 = 'HiSlot2'; + const LOCATION_FLAG_HI_SLOT3 = 'HiSlot3'; + const LOCATION_FLAG_HI_SLOT4 = 'HiSlot4'; + const LOCATION_FLAG_HI_SLOT5 = 'HiSlot5'; + const LOCATION_FLAG_HI_SLOT6 = 'HiSlot6'; + const LOCATION_FLAG_HI_SLOT7 = 'HiSlot7'; + const LOCATION_FLAG_HIDDEN_MODIFERS = 'HiddenModifers'; + const LOCATION_FLAG_IMPLANT = 'Implant'; + const LOCATION_FLAG_IMPOUNDED = 'Impounded'; + const LOCATION_FLAG_JUNKYARD_REPROCESSED = 'JunkyardReprocessed'; + const LOCATION_FLAG_JUNKYARD_TRASHED = 'JunkyardTrashed'; + const LOCATION_FLAG_LO_SLOT0 = 'LoSlot0'; + const LOCATION_FLAG_LO_SLOT1 = 'LoSlot1'; + const LOCATION_FLAG_LO_SLOT2 = 'LoSlot2'; + const LOCATION_FLAG_LO_SLOT3 = 'LoSlot3'; + const LOCATION_FLAG_LO_SLOT4 = 'LoSlot4'; + const LOCATION_FLAG_LO_SLOT5 = 'LoSlot5'; + const LOCATION_FLAG_LO_SLOT6 = 'LoSlot6'; + const LOCATION_FLAG_LO_SLOT7 = 'LoSlot7'; + const LOCATION_FLAG_LOCKED = 'Locked'; + const LOCATION_FLAG_MED_SLOT0 = 'MedSlot0'; + const LOCATION_FLAG_MED_SLOT1 = 'MedSlot1'; + const LOCATION_FLAG_MED_SLOT2 = 'MedSlot2'; + const LOCATION_FLAG_MED_SLOT3 = 'MedSlot3'; + const LOCATION_FLAG_MED_SLOT4 = 'MedSlot4'; + const LOCATION_FLAG_MED_SLOT5 = 'MedSlot5'; + const LOCATION_FLAG_MED_SLOT6 = 'MedSlot6'; + const LOCATION_FLAG_MED_SLOT7 = 'MedSlot7'; + const LOCATION_FLAG_OFFICE_FOLDER = 'OfficeFolder'; + const LOCATION_FLAG_PILOT = 'Pilot'; + const LOCATION_FLAG_PLANET_SURFACE = 'PlanetSurface'; + const LOCATION_FLAG_QUAFE_BAY = 'QuafeBay'; + const LOCATION_FLAG_REWARD = 'Reward'; + const LOCATION_FLAG_RIG_SLOT0 = 'RigSlot0'; + const LOCATION_FLAG_RIG_SLOT1 = 'RigSlot1'; + const LOCATION_FLAG_RIG_SLOT2 = 'RigSlot2'; + const LOCATION_FLAG_RIG_SLOT3 = 'RigSlot3'; + const LOCATION_FLAG_RIG_SLOT4 = 'RigSlot4'; + const LOCATION_FLAG_RIG_SLOT5 = 'RigSlot5'; + const LOCATION_FLAG_RIG_SLOT6 = 'RigSlot6'; + const LOCATION_FLAG_RIG_SLOT7 = 'RigSlot7'; + const LOCATION_FLAG_SECONDARY_STORAGE = 'SecondaryStorage'; + const LOCATION_FLAG_SERVICE_SLOT0 = 'ServiceSlot0'; + const LOCATION_FLAG_SERVICE_SLOT1 = 'ServiceSlot1'; + const LOCATION_FLAG_SERVICE_SLOT2 = 'ServiceSlot2'; + const LOCATION_FLAG_SERVICE_SLOT3 = 'ServiceSlot3'; + const LOCATION_FLAG_SERVICE_SLOT4 = 'ServiceSlot4'; + const LOCATION_FLAG_SERVICE_SLOT5 = 'ServiceSlot5'; + const LOCATION_FLAG_SERVICE_SLOT6 = 'ServiceSlot6'; + const LOCATION_FLAG_SERVICE_SLOT7 = 'ServiceSlot7'; + const LOCATION_FLAG_SHIP_HANGAR = 'ShipHangar'; + const LOCATION_FLAG_SHIP_OFFLINE = 'ShipOffline'; + const LOCATION_FLAG_SKILL = 'Skill'; + const LOCATION_FLAG_SKILL_IN_TRAINING = 'SkillInTraining'; + const LOCATION_FLAG_SPECIALIZED_AMMO_HOLD = 'SpecializedAmmoHold'; + const LOCATION_FLAG_SPECIALIZED_COMMAND_CENTER_HOLD = 'SpecializedCommandCenterHold'; + const LOCATION_FLAG_SPECIALIZED_FUEL_BAY = 'SpecializedFuelBay'; + const LOCATION_FLAG_SPECIALIZED_GAS_HOLD = 'SpecializedGasHold'; + const LOCATION_FLAG_SPECIALIZED_INDUSTRIAL_SHIP_HOLD = 'SpecializedIndustrialShipHold'; + const LOCATION_FLAG_SPECIALIZED_LARGE_SHIP_HOLD = 'SpecializedLargeShipHold'; + const LOCATION_FLAG_SPECIALIZED_MATERIAL_BAY = 'SpecializedMaterialBay'; + const LOCATION_FLAG_SPECIALIZED_MEDIUM_SHIP_HOLD = 'SpecializedMediumShipHold'; + const LOCATION_FLAG_SPECIALIZED_MINERAL_HOLD = 'SpecializedMineralHold'; + const LOCATION_FLAG_SPECIALIZED_ORE_HOLD = 'SpecializedOreHold'; + const LOCATION_FLAG_SPECIALIZED_PLANETARY_COMMODITIES_HOLD = 'SpecializedPlanetaryCommoditiesHold'; + const LOCATION_FLAG_SPECIALIZED_SALVAGE_HOLD = 'SpecializedSalvageHold'; + const LOCATION_FLAG_SPECIALIZED_SHIP_HOLD = 'SpecializedShipHold'; + const LOCATION_FLAG_SPECIALIZED_SMALL_SHIP_HOLD = 'SpecializedSmallShipHold'; + const LOCATION_FLAG_STRUCTURE_ACTIVE = 'StructureActive'; + const LOCATION_FLAG_STRUCTURE_FUEL = 'StructureFuel'; + const LOCATION_FLAG_STRUCTURE_INACTIVE = 'StructureInactive'; + const LOCATION_FLAG_STRUCTURE_OFFLINE = 'StructureOffline'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT0 = 'SubSystemSlot0'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT1 = 'SubSystemSlot1'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT2 = 'SubSystemSlot2'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT3 = 'SubSystemSlot3'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT4 = 'SubSystemSlot4'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT5 = 'SubSystemSlot5'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT6 = 'SubSystemSlot6'; + const LOCATION_FLAG_SUB_SYSTEM_SLOT7 = 'SubSystemSlot7'; + const LOCATION_FLAG_SUBSYSTEM_BAY = 'SubsystemBay'; + const LOCATION_FLAG_UNLOCKED = 'Unlocked'; + const LOCATION_FLAG_WALLET = 'Wallet'; + const LOCATION_FLAG_WARDROBE = 'Wardrobe'; + const ACTION_ADD = 'add'; + const ACTION_ASSEMBLE = 'assemble'; + const ACTION_CONFIGURE = 'configure'; + const ACTION_ENTER_PASSWORD = 'enter_password'; + const ACTION_LOCK = 'lock'; + const ACTION_MOVE = 'move'; + const ACTION_REPACKAGE = 'repackage'; + const ACTION_SET_NAME = 'set_name'; + const ACTION_SET_PASSWORD = 'set_password'; + const ACTION_UNLOCK = 'unlock'; + const PASSWORD_TYPE_CONFIG = 'config'; + const PASSWORD_TYPE_GENERAL = 'general'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getLocationFlagAllowableValues() + { + return [ + self::LOCATION_FLAG_ASSET_SAFETY, + self::LOCATION_FLAG_AUTO_FIT, + self::LOCATION_FLAG_BONUS, + self::LOCATION_FLAG_BOOSTER, + self::LOCATION_FLAG_BOOSTER_BAY, + self::LOCATION_FLAG_CAPSULE, + self::LOCATION_FLAG_CARGO, + self::LOCATION_FLAG_CORP_DELIVERIES, + self::LOCATION_FLAG_CORP_SAG1, + self::LOCATION_FLAG_CORP_SAG2, + self::LOCATION_FLAG_CORP_SAG3, + self::LOCATION_FLAG_CORP_SAG4, + self::LOCATION_FLAG_CORP_SAG5, + self::LOCATION_FLAG_CORP_SAG6, + self::LOCATION_FLAG_CORP_SAG7, + self::LOCATION_FLAG_CRATE_LOOT, + self::LOCATION_FLAG_DELIVERIES, + self::LOCATION_FLAG_DRONE_BAY, + self::LOCATION_FLAG_DUST_BATTLE, + self::LOCATION_FLAG_DUST_DATABANK, + self::LOCATION_FLAG_FIGHTER_BAY, + self::LOCATION_FLAG_FIGHTER_TUBE0, + self::LOCATION_FLAG_FIGHTER_TUBE1, + self::LOCATION_FLAG_FIGHTER_TUBE2, + self::LOCATION_FLAG_FIGHTER_TUBE3, + self::LOCATION_FLAG_FIGHTER_TUBE4, + self::LOCATION_FLAG_FLEET_HANGAR, + self::LOCATION_FLAG_HANGAR, + self::LOCATION_FLAG_HANGAR_ALL, + self::LOCATION_FLAG_HI_SLOT0, + self::LOCATION_FLAG_HI_SLOT1, + self::LOCATION_FLAG_HI_SLOT2, + self::LOCATION_FLAG_HI_SLOT3, + self::LOCATION_FLAG_HI_SLOT4, + self::LOCATION_FLAG_HI_SLOT5, + self::LOCATION_FLAG_HI_SLOT6, + self::LOCATION_FLAG_HI_SLOT7, + self::LOCATION_FLAG_HIDDEN_MODIFERS, + self::LOCATION_FLAG_IMPLANT, + self::LOCATION_FLAG_IMPOUNDED, + self::LOCATION_FLAG_JUNKYARD_REPROCESSED, + self::LOCATION_FLAG_JUNKYARD_TRASHED, + self::LOCATION_FLAG_LO_SLOT0, + self::LOCATION_FLAG_LO_SLOT1, + self::LOCATION_FLAG_LO_SLOT2, + self::LOCATION_FLAG_LO_SLOT3, + self::LOCATION_FLAG_LO_SLOT4, + self::LOCATION_FLAG_LO_SLOT5, + self::LOCATION_FLAG_LO_SLOT6, + self::LOCATION_FLAG_LO_SLOT7, + self::LOCATION_FLAG_LOCKED, + self::LOCATION_FLAG_MED_SLOT0, + self::LOCATION_FLAG_MED_SLOT1, + self::LOCATION_FLAG_MED_SLOT2, + self::LOCATION_FLAG_MED_SLOT3, + self::LOCATION_FLAG_MED_SLOT4, + self::LOCATION_FLAG_MED_SLOT5, + self::LOCATION_FLAG_MED_SLOT6, + self::LOCATION_FLAG_MED_SLOT7, + self::LOCATION_FLAG_OFFICE_FOLDER, + self::LOCATION_FLAG_PILOT, + self::LOCATION_FLAG_PLANET_SURFACE, + self::LOCATION_FLAG_QUAFE_BAY, + self::LOCATION_FLAG_REWARD, + self::LOCATION_FLAG_RIG_SLOT0, + self::LOCATION_FLAG_RIG_SLOT1, + self::LOCATION_FLAG_RIG_SLOT2, + self::LOCATION_FLAG_RIG_SLOT3, + self::LOCATION_FLAG_RIG_SLOT4, + self::LOCATION_FLAG_RIG_SLOT5, + self::LOCATION_FLAG_RIG_SLOT6, + self::LOCATION_FLAG_RIG_SLOT7, + self::LOCATION_FLAG_SECONDARY_STORAGE, + self::LOCATION_FLAG_SERVICE_SLOT0, + self::LOCATION_FLAG_SERVICE_SLOT1, + self::LOCATION_FLAG_SERVICE_SLOT2, + self::LOCATION_FLAG_SERVICE_SLOT3, + self::LOCATION_FLAG_SERVICE_SLOT4, + self::LOCATION_FLAG_SERVICE_SLOT5, + self::LOCATION_FLAG_SERVICE_SLOT6, + self::LOCATION_FLAG_SERVICE_SLOT7, + self::LOCATION_FLAG_SHIP_HANGAR, + self::LOCATION_FLAG_SHIP_OFFLINE, + self::LOCATION_FLAG_SKILL, + self::LOCATION_FLAG_SKILL_IN_TRAINING, + self::LOCATION_FLAG_SPECIALIZED_AMMO_HOLD, + self::LOCATION_FLAG_SPECIALIZED_COMMAND_CENTER_HOLD, + self::LOCATION_FLAG_SPECIALIZED_FUEL_BAY, + self::LOCATION_FLAG_SPECIALIZED_GAS_HOLD, + self::LOCATION_FLAG_SPECIALIZED_INDUSTRIAL_SHIP_HOLD, + self::LOCATION_FLAG_SPECIALIZED_LARGE_SHIP_HOLD, + self::LOCATION_FLAG_SPECIALIZED_MATERIAL_BAY, + self::LOCATION_FLAG_SPECIALIZED_MEDIUM_SHIP_HOLD, + self::LOCATION_FLAG_SPECIALIZED_MINERAL_HOLD, + self::LOCATION_FLAG_SPECIALIZED_ORE_HOLD, + self::LOCATION_FLAG_SPECIALIZED_PLANETARY_COMMODITIES_HOLD, + self::LOCATION_FLAG_SPECIALIZED_SALVAGE_HOLD, + self::LOCATION_FLAG_SPECIALIZED_SHIP_HOLD, + self::LOCATION_FLAG_SPECIALIZED_SMALL_SHIP_HOLD, + self::LOCATION_FLAG_STRUCTURE_ACTIVE, + self::LOCATION_FLAG_STRUCTURE_FUEL, + self::LOCATION_FLAG_STRUCTURE_INACTIVE, + self::LOCATION_FLAG_STRUCTURE_OFFLINE, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT0, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT1, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT2, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT3, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT4, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT5, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT6, + self::LOCATION_FLAG_SUB_SYSTEM_SLOT7, + self::LOCATION_FLAG_SUBSYSTEM_BAY, + self::LOCATION_FLAG_UNLOCKED, + self::LOCATION_FLAG_WALLET, + self::LOCATION_FLAG_WARDROBE, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getActionAllowableValues() + { + return [ + self::ACTION_ADD, + self::ACTION_ASSEMBLE, + self::ACTION_CONFIGURE, + self::ACTION_ENTER_PASSWORD, + self::ACTION_LOCK, + self::ACTION_MOVE, + self::ACTION_REPACKAGE, + self::ACTION_SET_NAME, + self::ACTION_SET_PASSWORD, + self::ACTION_UNLOCK, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getPasswordTypeAllowableValues() + { + return [ + self::PASSWORD_TYPE_CONFIG, + self::PASSWORD_TYPE_GENERAL, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['loggedAt'] = isset($data['loggedAt']) ? $data['loggedAt'] : null; + $this->container['containerId'] = isset($data['containerId']) ? $data['containerId'] : null; + $this->container['containerTypeId'] = isset($data['containerTypeId']) ? $data['containerTypeId'] : null; + $this->container['characterId'] = isset($data['characterId']) ? $data['characterId'] : null; + $this->container['locationId'] = isset($data['locationId']) ? $data['locationId'] : null; + $this->container['locationFlag'] = isset($data['locationFlag']) ? $data['locationFlag'] : null; + $this->container['action'] = isset($data['action']) ? $data['action'] : null; + $this->container['passwordType'] = isset($data['passwordType']) ? $data['passwordType'] : null; + $this->container['typeId'] = isset($data['typeId']) ? $data['typeId'] : null; + $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null; + $this->container['oldConfigBitmask'] = isset($data['oldConfigBitmask']) ? $data['oldConfigBitmask'] : null; + $this->container['newConfigBitmask'] = isset($data['newConfigBitmask']) ? $data['newConfigBitmask'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['loggedAt'] === null) { + $invalidProperties[] = "'loggedAt' can't be null"; + } + if ($this->container['containerId'] === null) { + $invalidProperties[] = "'containerId' can't be null"; + } + if ($this->container['containerTypeId'] === null) { + $invalidProperties[] = "'containerTypeId' can't be null"; + } + if ($this->container['characterId'] === null) { + $invalidProperties[] = "'characterId' can't be null"; + } + if ($this->container['locationId'] === null) { + $invalidProperties[] = "'locationId' can't be null"; + } + if ($this->container['locationFlag'] === null) { + $invalidProperties[] = "'locationFlag' can't be null"; + } + $allowedValues = $this->getLocationFlagAllowableValues(); + if (!in_array($this->container['locationFlag'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'locationFlag', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['action'] === null) { + $invalidProperties[] = "'action' can't be null"; + } + $allowedValues = $this->getActionAllowableValues(); + if (!in_array($this->container['action'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'action', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getPasswordTypeAllowableValues(); + if (!in_array($this->container['passwordType'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'passwordType', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['loggedAt'] === null) { + return false; + } + if ($this->container['containerId'] === null) { + return false; + } + if ($this->container['containerTypeId'] === null) { + return false; + } + if ($this->container['characterId'] === null) { + return false; + } + if ($this->container['locationId'] === null) { + return false; + } + if ($this->container['locationFlag'] === null) { + return false; + } + $allowedValues = $this->getLocationFlagAllowableValues(); + if (!in_array($this->container['locationFlag'], $allowedValues)) { + return false; + } + if ($this->container['action'] === null) { + return false; + } + $allowedValues = $this->getActionAllowableValues(); + if (!in_array($this->container['action'], $allowedValues)) { + return false; + } + $allowedValues = $this->getPasswordTypeAllowableValues(); + if (!in_array($this->container['passwordType'], $allowedValues)) { + return false; + } + return true; + } + + + /** + * Gets loggedAt + * + * @return \DateTime + */ + public function getLoggedAt() + { + return $this->container['loggedAt']; + } + + /** + * Sets loggedAt + * + * @param \DateTime $loggedAt Timestamp when this log was created + * + * @return $this + */ + public function setLoggedAt($loggedAt) + { + $this->container['loggedAt'] = $loggedAt; + + return $this; + } + + /** + * Gets containerId + * + * @return int + */ + public function getContainerId() + { + return $this->container['containerId']; + } + + /** + * Sets containerId + * + * @param int $containerId ID of the container + * + * @return $this + */ + public function setContainerId($containerId) + { + $this->container['containerId'] = $containerId; + + return $this; + } + + /** + * Gets containerTypeId + * + * @return int + */ + public function getContainerTypeId() + { + return $this->container['containerTypeId']; + } + + /** + * Sets containerTypeId + * + * @param int $containerTypeId Type ID of the container + * + * @return $this + */ + public function setContainerTypeId($containerTypeId) + { + $this->container['containerTypeId'] = $containerTypeId; + + return $this; + } + + /** + * Gets characterId + * + * @return int + */ + public function getCharacterId() + { + return $this->container['characterId']; + } + + /** + * Sets characterId + * + * @param int $characterId ID of the character who performed the action. + * + * @return $this + */ + public function setCharacterId($characterId) + { + $this->container['characterId'] = $characterId; + + return $this; + } + + /** + * Gets locationId + * + * @return int + */ + public function getLocationId() + { + return $this->container['locationId']; + } + + /** + * Sets locationId + * + * @param int $locationId location_id integer + * + * @return $this + */ + public function setLocationId($locationId) + { + $this->container['locationId'] = $locationId; + + return $this; + } + + /** + * Gets locationFlag + * + * @return string + */ + public function getLocationFlag() + { + return $this->container['locationFlag']; + } + + /** + * Sets locationFlag + * + * @param string $locationFlag location_flag string + * + * @return $this + */ + public function setLocationFlag($locationFlag) + { + $allowedValues = $this->getLocationFlagAllowableValues(); + if (!in_array($locationFlag, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'locationFlag', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['locationFlag'] = $locationFlag; + + return $this; + } + + /** + * Gets action + * + * @return string + */ + public function getAction() + { + return $this->container['action']; + } + + /** + * Sets action + * + * @param string $action action string + * + * @return $this + */ + public function setAction($action) + { + $allowedValues = $this->getActionAllowableValues(); + if (!in_array($action, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'action', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['action'] = $action; + + return $this; + } + + /** + * Gets passwordType + * + * @return string + */ + public function getPasswordType() + { + return $this->container['passwordType']; + } + + /** + * Sets passwordType + * + * @param string $passwordType Type of password set if action is of type SetPassword or EnterPassword + * + * @return $this + */ + public function setPasswordType($passwordType) + { + $allowedValues = $this->getPasswordTypeAllowableValues(); + if (!is_null($passwordType) && !in_array($passwordType, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'passwordType', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['passwordType'] = $passwordType; + + return $this; + } + + /** + * Gets typeId + * + * @return int + */ + public function getTypeId() + { + return $this->container['typeId']; + } + + /** + * Sets typeId + * + * @param int $typeId Type ID of the item being acted upon + * + * @return $this + */ + public function setTypeId($typeId) + { + $this->container['typeId'] = $typeId; + + return $this; + } + + /** + * Gets quantity + * + * @return int + */ + public function getQuantity() + { + return $this->container['quantity']; + } + + /** + * Sets quantity + * + * @param int $quantity Quantity of the item being acted upon + * + * @return $this + */ + public function setQuantity($quantity) + { + $this->container['quantity'] = $quantity; + + return $this; + } + + /** + * Gets oldConfigBitmask + * + * @return int + */ + public function getOldConfigBitmask() + { + return $this->container['oldConfigBitmask']; + } + + /** + * Sets oldConfigBitmask + * + * @param int $oldConfigBitmask old_config_bitmask integer + * + * @return $this + */ + public function setOldConfigBitmask($oldConfigBitmask) + { + $this->container['oldConfigBitmask'] = $oldConfigBitmask; + + return $this; + } + + /** + * Gets newConfigBitmask + * + * @return int + */ + public function getNewConfigBitmask() + { + return $this->container['newConfigBitmask']; + } + + /** + * Sets newConfigBitmask + * + * @param int $newConfigBitmask new_config_bitmask integer + * + * @return $this + */ + public function setNewConfigBitmask($newConfigBitmask) + { + $this->container['newConfigBitmask'] = $newConfigBitmask; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdContracts200Ok.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdContracts200Ok.php new file mode 100644 index 0000000..3047d7c --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdContracts200Ok.php @@ -0,0 +1,1133 @@ + 'int', + 'issuerId' => 'int', + 'issuerCorporationId' => 'int', + 'assigneeId' => 'int', + 'acceptorId' => 'int', + 'startLocationId' => 'int', + 'endLocationId' => 'int', + 'type' => 'string', + 'status' => 'string', + 'title' => 'string', + 'forCorporation' => 'bool', + 'availability' => 'string', + 'dateIssued' => '\DateTime', + 'dateExpired' => '\DateTime', + 'dateAccepted' => '\DateTime', + 'daysToComplete' => 'int', + 'dateCompleted' => '\DateTime', + 'price' => 'double', + 'reward' => 'double', + 'collateral' => 'double', + 'buyout' => 'double', + 'volume' => 'float' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'contractId' => 'int32', + 'issuerId' => 'int32', + 'issuerCorporationId' => 'int32', + 'assigneeId' => 'int32', + 'acceptorId' => 'int32', + 'startLocationId' => 'int64', + 'endLocationId' => 'int64', + 'type' => null, + 'status' => null, + 'title' => null, + 'forCorporation' => null, + 'availability' => null, + 'dateIssued' => 'date-time', + 'dateExpired' => 'date-time', + 'dateAccepted' => 'date-time', + 'daysToComplete' => 'int32', + 'dateCompleted' => 'date-time', + 'price' => 'double', + 'reward' => 'double', + 'collateral' => 'double', + 'buyout' => 'double', + 'volume' => 'float' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'contractId' => 'contract_id', + 'issuerId' => 'issuer_id', + 'issuerCorporationId' => 'issuer_corporation_id', + 'assigneeId' => 'assignee_id', + 'acceptorId' => 'acceptor_id', + 'startLocationId' => 'start_location_id', + 'endLocationId' => 'end_location_id', + 'type' => 'type', + 'status' => 'status', + 'title' => 'title', + 'forCorporation' => 'for_corporation', + 'availability' => 'availability', + 'dateIssued' => 'date_issued', + 'dateExpired' => 'date_expired', + 'dateAccepted' => 'date_accepted', + 'daysToComplete' => 'days_to_complete', + 'dateCompleted' => 'date_completed', + 'price' => 'price', + 'reward' => 'reward', + 'collateral' => 'collateral', + 'buyout' => 'buyout', + 'volume' => 'volume' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'contractId' => 'setContractId', + 'issuerId' => 'setIssuerId', + 'issuerCorporationId' => 'setIssuerCorporationId', + 'assigneeId' => 'setAssigneeId', + 'acceptorId' => 'setAcceptorId', + 'startLocationId' => 'setStartLocationId', + 'endLocationId' => 'setEndLocationId', + 'type' => 'setType', + 'status' => 'setStatus', + 'title' => 'setTitle', + 'forCorporation' => 'setForCorporation', + 'availability' => 'setAvailability', + 'dateIssued' => 'setDateIssued', + 'dateExpired' => 'setDateExpired', + 'dateAccepted' => 'setDateAccepted', + 'daysToComplete' => 'setDaysToComplete', + 'dateCompleted' => 'setDateCompleted', + 'price' => 'setPrice', + 'reward' => 'setReward', + 'collateral' => 'setCollateral', + 'buyout' => 'setBuyout', + 'volume' => 'setVolume' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'contractId' => 'getContractId', + 'issuerId' => 'getIssuerId', + 'issuerCorporationId' => 'getIssuerCorporationId', + 'assigneeId' => 'getAssigneeId', + 'acceptorId' => 'getAcceptorId', + 'startLocationId' => 'getStartLocationId', + 'endLocationId' => 'getEndLocationId', + 'type' => 'getType', + 'status' => 'getStatus', + 'title' => 'getTitle', + 'forCorporation' => 'getForCorporation', + 'availability' => 'getAvailability', + 'dateIssued' => 'getDateIssued', + 'dateExpired' => 'getDateExpired', + 'dateAccepted' => 'getDateAccepted', + 'daysToComplete' => 'getDaysToComplete', + 'dateCompleted' => 'getDateCompleted', + 'price' => 'getPrice', + 'reward' => 'getReward', + 'collateral' => 'getCollateral', + 'buyout' => 'getBuyout', + 'volume' => 'getVolume' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const TYPE_UNKNOWN = 'unknown'; + const TYPE_ITEM_EXCHANGE = 'item_exchange'; + const TYPE_AUCTION = 'auction'; + const TYPE_COURIER = 'courier'; + const TYPE_LOAN = 'loan'; + const STATUS_OUTSTANDING = 'outstanding'; + const STATUS_IN_PROGRESS = 'in_progress'; + const STATUS_FINISHED_ISSUER = 'finished_issuer'; + const STATUS_FINISHED_CONTRACTOR = 'finished_contractor'; + const STATUS_FINISHED = 'finished'; + const STATUS_CANCELLED = 'cancelled'; + const STATUS_REJECTED = 'rejected'; + const STATUS_FAILED = 'failed'; + const STATUS_DELETED = 'deleted'; + const STATUS_REVERSED = 'reversed'; + const AVAILABILITY__PUBLIC = 'public'; + const AVAILABILITY_PERSONAL = 'personal'; + const AVAILABILITY_CORPORATION = 'corporation'; + const AVAILABILITY_ALLIANCE = 'alliance'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_UNKNOWN, + self::TYPE_ITEM_EXCHANGE, + self::TYPE_AUCTION, + self::TYPE_COURIER, + self::TYPE_LOAN, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getStatusAllowableValues() + { + return [ + self::STATUS_OUTSTANDING, + self::STATUS_IN_PROGRESS, + self::STATUS_FINISHED_ISSUER, + self::STATUS_FINISHED_CONTRACTOR, + self::STATUS_FINISHED, + self::STATUS_CANCELLED, + self::STATUS_REJECTED, + self::STATUS_FAILED, + self::STATUS_DELETED, + self::STATUS_REVERSED, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getAvailabilityAllowableValues() + { + return [ + self::AVAILABILITY__PUBLIC, + self::AVAILABILITY_PERSONAL, + self::AVAILABILITY_CORPORATION, + self::AVAILABILITY_ALLIANCE, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['contractId'] = isset($data['contractId']) ? $data['contractId'] : null; + $this->container['issuerId'] = isset($data['issuerId']) ? $data['issuerId'] : null; + $this->container['issuerCorporationId'] = isset($data['issuerCorporationId']) ? $data['issuerCorporationId'] : null; + $this->container['assigneeId'] = isset($data['assigneeId']) ? $data['assigneeId'] : null; + $this->container['acceptorId'] = isset($data['acceptorId']) ? $data['acceptorId'] : null; + $this->container['startLocationId'] = isset($data['startLocationId']) ? $data['startLocationId'] : null; + $this->container['endLocationId'] = isset($data['endLocationId']) ? $data['endLocationId'] : null; + $this->container['type'] = isset($data['type']) ? $data['type'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['title'] = isset($data['title']) ? $data['title'] : null; + $this->container['forCorporation'] = isset($data['forCorporation']) ? $data['forCorporation'] : null; + $this->container['availability'] = isset($data['availability']) ? $data['availability'] : null; + $this->container['dateIssued'] = isset($data['dateIssued']) ? $data['dateIssued'] : null; + $this->container['dateExpired'] = isset($data['dateExpired']) ? $data['dateExpired'] : null; + $this->container['dateAccepted'] = isset($data['dateAccepted']) ? $data['dateAccepted'] : null; + $this->container['daysToComplete'] = isset($data['daysToComplete']) ? $data['daysToComplete'] : null; + $this->container['dateCompleted'] = isset($data['dateCompleted']) ? $data['dateCompleted'] : null; + $this->container['price'] = isset($data['price']) ? $data['price'] : null; + $this->container['reward'] = isset($data['reward']) ? $data['reward'] : null; + $this->container['collateral'] = isset($data['collateral']) ? $data['collateral'] : null; + $this->container['buyout'] = isset($data['buyout']) ? $data['buyout'] : null; + $this->container['volume'] = isset($data['volume']) ? $data['volume'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['contractId'] === null) { + $invalidProperties[] = "'contractId' can't be null"; + } + if ($this->container['issuerId'] === null) { + $invalidProperties[] = "'issuerId' can't be null"; + } + if ($this->container['issuerCorporationId'] === null) { + $invalidProperties[] = "'issuerCorporationId' can't be null"; + } + if ($this->container['assigneeId'] === null) { + $invalidProperties[] = "'assigneeId' can't be null"; + } + if ($this->container['acceptorId'] === null) { + $invalidProperties[] = "'acceptorId' can't be null"; + } + if ($this->container['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($this->container['type'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['status'] === null) { + $invalidProperties[] = "'status' can't be null"; + } + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($this->container['status'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'status', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['forCorporation'] === null) { + $invalidProperties[] = "'forCorporation' can't be null"; + } + if ($this->container['availability'] === null) { + $invalidProperties[] = "'availability' can't be null"; + } + $allowedValues = $this->getAvailabilityAllowableValues(); + if (!in_array($this->container['availability'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'availability', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['dateIssued'] === null) { + $invalidProperties[] = "'dateIssued' can't be null"; + } + if ($this->container['dateExpired'] === null) { + $invalidProperties[] = "'dateExpired' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['contractId'] === null) { + return false; + } + if ($this->container['issuerId'] === null) { + return false; + } + if ($this->container['issuerCorporationId'] === null) { + return false; + } + if ($this->container['assigneeId'] === null) { + return false; + } + if ($this->container['acceptorId'] === null) { + return false; + } + if ($this->container['type'] === null) { + return false; + } + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($this->container['type'], $allowedValues)) { + return false; + } + if ($this->container['status'] === null) { + return false; + } + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($this->container['status'], $allowedValues)) { + return false; + } + if ($this->container['forCorporation'] === null) { + return false; + } + if ($this->container['availability'] === null) { + return false; + } + $allowedValues = $this->getAvailabilityAllowableValues(); + if (!in_array($this->container['availability'], $allowedValues)) { + return false; + } + if ($this->container['dateIssued'] === null) { + return false; + } + if ($this->container['dateExpired'] === null) { + return false; + } + return true; + } + + + /** + * Gets contractId + * + * @return int + */ + public function getContractId() + { + return $this->container['contractId']; + } + + /** + * Sets contractId + * + * @param int $contractId contract_id integer + * + * @return $this + */ + public function setContractId($contractId) + { + $this->container['contractId'] = $contractId; + + return $this; + } + + /** + * Gets issuerId + * + * @return int + */ + public function getIssuerId() + { + return $this->container['issuerId']; + } + + /** + * Sets issuerId + * + * @param int $issuerId Character ID for the issuer + * + * @return $this + */ + public function setIssuerId($issuerId) + { + $this->container['issuerId'] = $issuerId; + + return $this; + } + + /** + * Gets issuerCorporationId + * + * @return int + */ + public function getIssuerCorporationId() + { + return $this->container['issuerCorporationId']; + } + + /** + * Sets issuerCorporationId + * + * @param int $issuerCorporationId Character's corporation ID for the issuer + * + * @return $this + */ + public function setIssuerCorporationId($issuerCorporationId) + { + $this->container['issuerCorporationId'] = $issuerCorporationId; + + return $this; + } + + /** + * Gets assigneeId + * + * @return int + */ + public function getAssigneeId() + { + return $this->container['assigneeId']; + } + + /** + * Sets assigneeId + * + * @param int $assigneeId ID to whom the contract is assigned, can be corporation or character ID + * + * @return $this + */ + public function setAssigneeId($assigneeId) + { + $this->container['assigneeId'] = $assigneeId; + + return $this; + } + + /** + * Gets acceptorId + * + * @return int + */ + public function getAcceptorId() + { + return $this->container['acceptorId']; + } + + /** + * Sets acceptorId + * + * @param int $acceptorId Who will accept the contract + * + * @return $this + */ + public function setAcceptorId($acceptorId) + { + $this->container['acceptorId'] = $acceptorId; + + return $this; + } + + /** + * Gets startLocationId + * + * @return int + */ + public function getStartLocationId() + { + return $this->container['startLocationId']; + } + + /** + * Sets startLocationId + * + * @param int $startLocationId Start location ID (for Couriers contract) + * + * @return $this + */ + public function setStartLocationId($startLocationId) + { + $this->container['startLocationId'] = $startLocationId; + + return $this; + } + + /** + * Gets endLocationId + * + * @return int + */ + public function getEndLocationId() + { + return $this->container['endLocationId']; + } + + /** + * Sets endLocationId + * + * @param int $endLocationId End location ID (for Couriers contract) + * + * @return $this + */ + public function setEndLocationId($endLocationId) + { + $this->container['endLocationId'] = $endLocationId; + + return $this; + } + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type Type of the contract + * + * @return $this + */ + public function setType($type) + { + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($type, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status Status of the the contract + * + * @return $this + */ + public function setStatus($status) + { + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($status, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'status', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets title + * + * @return string + */ + public function getTitle() + { + return $this->container['title']; + } + + /** + * Sets title + * + * @param string $title Title of the contract + * + * @return $this + */ + public function setTitle($title) + { + $this->container['title'] = $title; + + return $this; + } + + /** + * Gets forCorporation + * + * @return bool + */ + public function getForCorporation() + { + return $this->container['forCorporation']; + } + + /** + * Sets forCorporation + * + * @param bool $forCorporation true if the contract was issued on behalf of the issuer's corporation + * + * @return $this + */ + public function setForCorporation($forCorporation) + { + $this->container['forCorporation'] = $forCorporation; + + return $this; + } + + /** + * Gets availability + * + * @return string + */ + public function getAvailability() + { + return $this->container['availability']; + } + + /** + * Sets availability + * + * @param string $availability To whom the contract is available + * + * @return $this + */ + public function setAvailability($availability) + { + $allowedValues = $this->getAvailabilityAllowableValues(); + if (!in_array($availability, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'availability', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['availability'] = $availability; + + return $this; + } + + /** + * Gets dateIssued + * + * @return \DateTime + */ + public function getDateIssued() + { + return $this->container['dateIssued']; + } + + /** + * Sets dateIssued + * + * @param \DateTime $dateIssued Сreation date of the contract + * + * @return $this + */ + public function setDateIssued($dateIssued) + { + $this->container['dateIssued'] = $dateIssued; + + return $this; + } + + /** + * Gets dateExpired + * + * @return \DateTime + */ + public function getDateExpired() + { + return $this->container['dateExpired']; + } + + /** + * Sets dateExpired + * + * @param \DateTime $dateExpired Expiration date of the contract + * + * @return $this + */ + public function setDateExpired($dateExpired) + { + $this->container['dateExpired'] = $dateExpired; + + return $this; + } + + /** + * Gets dateAccepted + * + * @return \DateTime + */ + public function getDateAccepted() + { + return $this->container['dateAccepted']; + } + + /** + * Sets dateAccepted + * + * @param \DateTime $dateAccepted Date of confirmation of contract + * + * @return $this + */ + public function setDateAccepted($dateAccepted) + { + $this->container['dateAccepted'] = $dateAccepted; + + return $this; + } + + /** + * Gets daysToComplete + * + * @return int + */ + public function getDaysToComplete() + { + return $this->container['daysToComplete']; + } + + /** + * Sets daysToComplete + * + * @param int $daysToComplete Number of days to perform the contract + * + * @return $this + */ + public function setDaysToComplete($daysToComplete) + { + $this->container['daysToComplete'] = $daysToComplete; + + return $this; + } + + /** + * Gets dateCompleted + * + * @return \DateTime + */ + public function getDateCompleted() + { + return $this->container['dateCompleted']; + } + + /** + * Sets dateCompleted + * + * @param \DateTime $dateCompleted Date of completed of contract + * + * @return $this + */ + public function setDateCompleted($dateCompleted) + { + $this->container['dateCompleted'] = $dateCompleted; + + return $this; + } + + /** + * Gets price + * + * @return double + */ + public function getPrice() + { + return $this->container['price']; + } + + /** + * Sets price + * + * @param double $price Price of contract (for ItemsExchange and Auctions) + * + * @return $this + */ + public function setPrice($price) + { + $this->container['price'] = $price; + + return $this; + } + + /** + * Gets reward + * + * @return double + */ + public function getReward() + { + return $this->container['reward']; + } + + /** + * Sets reward + * + * @param double $reward Remuneration for contract (for Couriers only) + * + * @return $this + */ + public function setReward($reward) + { + $this->container['reward'] = $reward; + + return $this; + } + + /** + * Gets collateral + * + * @return double + */ + public function getCollateral() + { + return $this->container['collateral']; + } + + /** + * Sets collateral + * + * @param double $collateral Collateral price (for Couriers only) + * + * @return $this + */ + public function setCollateral($collateral) + { + $this->container['collateral'] = $collateral; + + return $this; + } + + /** + * Gets buyout + * + * @return double + */ + public function getBuyout() + { + return $this->container['buyout']; + } + + /** + * Sets buyout + * + * @param double $buyout Buyout price (for Auctions only) + * + * @return $this + */ + public function setBuyout($buyout) + { + $this->container['buyout'] = $buyout; + + return $this; + } + + /** + * Gets volume + * + * @return float + */ + public function getVolume() + { + return $this->container['volume']; + } + + /** + * Sets volume + * + * @param float $volume Volume of items in the contract + * + * @return $this + */ + public function setVolume($volume) + { + $this->container['volume'] = $volume; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdContractsContractIdBids200Ok.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdContractsContractIdBids200Ok.php new file mode 100644 index 0000000..407dabb --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdContractsContractIdBids200Ok.php @@ -0,0 +1,417 @@ + 'int', + 'bidderId' => 'int', + 'dateBid' => '\DateTime', + 'amount' => 'float' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'bidId' => 'int32', + 'bidderId' => 'int32', + 'dateBid' => 'date-time', + 'amount' => 'float' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'bidId' => 'bid_id', + 'bidderId' => 'bidder_id', + 'dateBid' => 'date_bid', + 'amount' => 'amount' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'bidId' => 'setBidId', + 'bidderId' => 'setBidderId', + 'dateBid' => 'setDateBid', + 'amount' => 'setAmount' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'bidId' => 'getBidId', + 'bidderId' => 'getBidderId', + 'dateBid' => 'getDateBid', + 'amount' => 'getAmount' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['bidId'] = isset($data['bidId']) ? $data['bidId'] : null; + $this->container['bidderId'] = isset($data['bidderId']) ? $data['bidderId'] : null; + $this->container['dateBid'] = isset($data['dateBid']) ? $data['dateBid'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['bidId'] === null) { + $invalidProperties[] = "'bidId' can't be null"; + } + if ($this->container['bidderId'] === null) { + $invalidProperties[] = "'bidderId' can't be null"; + } + if ($this->container['dateBid'] === null) { + $invalidProperties[] = "'dateBid' can't be null"; + } + if ($this->container['amount'] === null) { + $invalidProperties[] = "'amount' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['bidId'] === null) { + return false; + } + if ($this->container['bidderId'] === null) { + return false; + } + if ($this->container['dateBid'] === null) { + return false; + } + if ($this->container['amount'] === null) { + return false; + } + return true; + } + + + /** + * Gets bidId + * + * @return int + */ + public function getBidId() + { + return $this->container['bidId']; + } + + /** + * Sets bidId + * + * @param int $bidId Unique ID for the bid + * + * @return $this + */ + public function setBidId($bidId) + { + $this->container['bidId'] = $bidId; + + return $this; + } + + /** + * Gets bidderId + * + * @return int + */ + public function getBidderId() + { + return $this->container['bidderId']; + } + + /** + * Sets bidderId + * + * @param int $bidderId Character ID of the bidder + * + * @return $this + */ + public function setBidderId($bidderId) + { + $this->container['bidderId'] = $bidderId; + + return $this; + } + + /** + * Gets dateBid + * + * @return \DateTime + */ + public function getDateBid() + { + return $this->container['dateBid']; + } + + /** + * Sets dateBid + * + * @param \DateTime $dateBid Datetime when the bid was placed + * + * @return $this + */ + public function setDateBid($dateBid) + { + $this->container['dateBid'] = $dateBid; + + return $this; + } + + /** + * Gets amount + * + * @return float + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param float $amount The amount bid, in ISK + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdContractsContractIdItems200Ok.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdContractsContractIdItems200Ok.php new file mode 100644 index 0000000..4a2d684 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdContractsContractIdItems200Ok.php @@ -0,0 +1,483 @@ + 'int', + 'typeId' => 'int', + 'quantity' => 'int', + 'rawQuantity' => 'int', + 'isSingleton' => 'bool', + 'isIncluded' => 'bool' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'recordId' => 'int64', + 'typeId' => 'int32', + 'quantity' => 'int32', + 'rawQuantity' => 'int32', + 'isSingleton' => null, + 'isIncluded' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'recordId' => 'record_id', + 'typeId' => 'type_id', + 'quantity' => 'quantity', + 'rawQuantity' => 'raw_quantity', + 'isSingleton' => 'is_singleton', + 'isIncluded' => 'is_included' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'recordId' => 'setRecordId', + 'typeId' => 'setTypeId', + 'quantity' => 'setQuantity', + 'rawQuantity' => 'setRawQuantity', + 'isSingleton' => 'setIsSingleton', + 'isIncluded' => 'setIsIncluded' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'recordId' => 'getRecordId', + 'typeId' => 'getTypeId', + 'quantity' => 'getQuantity', + 'rawQuantity' => 'getRawQuantity', + 'isSingleton' => 'getIsSingleton', + 'isIncluded' => 'getIsIncluded' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['recordId'] = isset($data['recordId']) ? $data['recordId'] : null; + $this->container['typeId'] = isset($data['typeId']) ? $data['typeId'] : null; + $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null; + $this->container['rawQuantity'] = isset($data['rawQuantity']) ? $data['rawQuantity'] : null; + $this->container['isSingleton'] = isset($data['isSingleton']) ? $data['isSingleton'] : null; + $this->container['isIncluded'] = isset($data['isIncluded']) ? $data['isIncluded'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['recordId'] === null) { + $invalidProperties[] = "'recordId' can't be null"; + } + if ($this->container['typeId'] === null) { + $invalidProperties[] = "'typeId' can't be null"; + } + if ($this->container['quantity'] === null) { + $invalidProperties[] = "'quantity' can't be null"; + } + if ($this->container['isSingleton'] === null) { + $invalidProperties[] = "'isSingleton' can't be null"; + } + if ($this->container['isIncluded'] === null) { + $invalidProperties[] = "'isIncluded' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['recordId'] === null) { + return false; + } + if ($this->container['typeId'] === null) { + return false; + } + if ($this->container['quantity'] === null) { + return false; + } + if ($this->container['isSingleton'] === null) { + return false; + } + if ($this->container['isIncluded'] === null) { + return false; + } + return true; + } + + + /** + * Gets recordId + * + * @return int + */ + public function getRecordId() + { + return $this->container['recordId']; + } + + /** + * Sets recordId + * + * @param int $recordId Unique ID for the item + * + * @return $this + */ + public function setRecordId($recordId) + { + $this->container['recordId'] = $recordId; + + return $this; + } + + /** + * Gets typeId + * + * @return int + */ + public function getTypeId() + { + return $this->container['typeId']; + } + + /** + * Sets typeId + * + * @param int $typeId Type ID for item + * + * @return $this + */ + public function setTypeId($typeId) + { + $this->container['typeId'] = $typeId; + + return $this; + } + + /** + * Gets quantity + * + * @return int + */ + public function getQuantity() + { + return $this->container['quantity']; + } + + /** + * Sets quantity + * + * @param int $quantity Number of items in the stack + * + * @return $this + */ + public function setQuantity($quantity) + { + $this->container['quantity'] = $quantity; + + return $this; + } + + /** + * Gets rawQuantity + * + * @return int + */ + public function getRawQuantity() + { + return $this->container['rawQuantity']; + } + + /** + * Sets rawQuantity + * + * @param int $rawQuantity -1 indicates that the item is a singleton (non-stackable). If the item happens to be a Blueprint, -1 is an Original and -2 is a Blueprint Copy + * + * @return $this + */ + public function setRawQuantity($rawQuantity) + { + $this->container['rawQuantity'] = $rawQuantity; + + return $this; + } + + /** + * Gets isSingleton + * + * @return bool + */ + public function getIsSingleton() + { + return $this->container['isSingleton']; + } + + /** + * Sets isSingleton + * + * @param bool $isSingleton is_singleton boolean + * + * @return $this + */ + public function setIsSingleton($isSingleton) + { + $this->container['isSingleton'] = $isSingleton; + + return $this; + } + + /** + * Gets isIncluded + * + * @return bool + */ + public function getIsIncluded() + { + return $this->container['isIncluded']; + } + + /** + * Sets isIncluded + * + * @param bool $isIncluded true if the contract issuer has submitted this item with the contract, false if the isser is asking for this item in the contract. + * + * @return $this + */ + public function setIsIncluded($isIncluded) + { + $this->container['isIncluded'] = $isIncluded; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdCustomsOffices200Ok.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdCustomsOffices200Ok.php new file mode 100644 index 0000000..50c37a9 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdCustomsOffices200Ok.php @@ -0,0 +1,815 @@ + 'int', + 'systemId' => 'int', + 'reinforceExitStart' => 'int', + 'reinforceExitEnd' => 'int', + 'corporationTaxRate' => 'float', + 'allowAllianceAccess' => 'bool', + 'allianceTaxRate' => 'float', + 'allowAccessWithStandings' => 'bool', + 'standingLevel' => 'string', + 'excellentStandingTaxRate' => 'float', + 'goodStandingTaxRate' => 'float', + 'neutralStandingTaxRate' => 'float', + 'badStandingTaxRate' => 'float', + 'terribleStandingTaxRate' => 'float' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'officeId' => 'int64', + 'systemId' => 'int32', + 'reinforceExitStart' => 'int32', + 'reinforceExitEnd' => 'int32', + 'corporationTaxRate' => 'float', + 'allowAllianceAccess' => null, + 'allianceTaxRate' => 'float', + 'allowAccessWithStandings' => null, + 'standingLevel' => null, + 'excellentStandingTaxRate' => 'float', + 'goodStandingTaxRate' => 'float', + 'neutralStandingTaxRate' => 'float', + 'badStandingTaxRate' => 'float', + 'terribleStandingTaxRate' => 'float' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'officeId' => 'office_id', + 'systemId' => 'system_id', + 'reinforceExitStart' => 'reinforce_exit_start', + 'reinforceExitEnd' => 'reinforce_exit_end', + 'corporationTaxRate' => 'corporation_tax_rate', + 'allowAllianceAccess' => 'allow_alliance_access', + 'allianceTaxRate' => 'alliance_tax_rate', + 'allowAccessWithStandings' => 'allow_access_with_standings', + 'standingLevel' => 'standing_level', + 'excellentStandingTaxRate' => 'excellent_standing_tax_rate', + 'goodStandingTaxRate' => 'good_standing_tax_rate', + 'neutralStandingTaxRate' => 'neutral_standing_tax_rate', + 'badStandingTaxRate' => 'bad_standing_tax_rate', + 'terribleStandingTaxRate' => 'terrible_standing_tax_rate' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'officeId' => 'setOfficeId', + 'systemId' => 'setSystemId', + 'reinforceExitStart' => 'setReinforceExitStart', + 'reinforceExitEnd' => 'setReinforceExitEnd', + 'corporationTaxRate' => 'setCorporationTaxRate', + 'allowAllianceAccess' => 'setAllowAllianceAccess', + 'allianceTaxRate' => 'setAllianceTaxRate', + 'allowAccessWithStandings' => 'setAllowAccessWithStandings', + 'standingLevel' => 'setStandingLevel', + 'excellentStandingTaxRate' => 'setExcellentStandingTaxRate', + 'goodStandingTaxRate' => 'setGoodStandingTaxRate', + 'neutralStandingTaxRate' => 'setNeutralStandingTaxRate', + 'badStandingTaxRate' => 'setBadStandingTaxRate', + 'terribleStandingTaxRate' => 'setTerribleStandingTaxRate' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'officeId' => 'getOfficeId', + 'systemId' => 'getSystemId', + 'reinforceExitStart' => 'getReinforceExitStart', + 'reinforceExitEnd' => 'getReinforceExitEnd', + 'corporationTaxRate' => 'getCorporationTaxRate', + 'allowAllianceAccess' => 'getAllowAllianceAccess', + 'allianceTaxRate' => 'getAllianceTaxRate', + 'allowAccessWithStandings' => 'getAllowAccessWithStandings', + 'standingLevel' => 'getStandingLevel', + 'excellentStandingTaxRate' => 'getExcellentStandingTaxRate', + 'goodStandingTaxRate' => 'getGoodStandingTaxRate', + 'neutralStandingTaxRate' => 'getNeutralStandingTaxRate', + 'badStandingTaxRate' => 'getBadStandingTaxRate', + 'terribleStandingTaxRate' => 'getTerribleStandingTaxRate' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const STANDING_LEVEL_BAD = 'bad'; + const STANDING_LEVEL_EXCELLENT = 'excellent'; + const STANDING_LEVEL_GOOD = 'good'; + const STANDING_LEVEL_NEUTRAL = 'neutral'; + const STANDING_LEVEL_TERRIBLE = 'terrible'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getStandingLevelAllowableValues() + { + return [ + self::STANDING_LEVEL_BAD, + self::STANDING_LEVEL_EXCELLENT, + self::STANDING_LEVEL_GOOD, + self::STANDING_LEVEL_NEUTRAL, + self::STANDING_LEVEL_TERRIBLE, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['officeId'] = isset($data['officeId']) ? $data['officeId'] : null; + $this->container['systemId'] = isset($data['systemId']) ? $data['systemId'] : null; + $this->container['reinforceExitStart'] = isset($data['reinforceExitStart']) ? $data['reinforceExitStart'] : null; + $this->container['reinforceExitEnd'] = isset($data['reinforceExitEnd']) ? $data['reinforceExitEnd'] : null; + $this->container['corporationTaxRate'] = isset($data['corporationTaxRate']) ? $data['corporationTaxRate'] : null; + $this->container['allowAllianceAccess'] = isset($data['allowAllianceAccess']) ? $data['allowAllianceAccess'] : null; + $this->container['allianceTaxRate'] = isset($data['allianceTaxRate']) ? $data['allianceTaxRate'] : null; + $this->container['allowAccessWithStandings'] = isset($data['allowAccessWithStandings']) ? $data['allowAccessWithStandings'] : null; + $this->container['standingLevel'] = isset($data['standingLevel']) ? $data['standingLevel'] : null; + $this->container['excellentStandingTaxRate'] = isset($data['excellentStandingTaxRate']) ? $data['excellentStandingTaxRate'] : null; + $this->container['goodStandingTaxRate'] = isset($data['goodStandingTaxRate']) ? $data['goodStandingTaxRate'] : null; + $this->container['neutralStandingTaxRate'] = isset($data['neutralStandingTaxRate']) ? $data['neutralStandingTaxRate'] : null; + $this->container['badStandingTaxRate'] = isset($data['badStandingTaxRate']) ? $data['badStandingTaxRate'] : null; + $this->container['terribleStandingTaxRate'] = isset($data['terribleStandingTaxRate']) ? $data['terribleStandingTaxRate'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['officeId'] === null) { + $invalidProperties[] = "'officeId' can't be null"; + } + if ($this->container['systemId'] === null) { + $invalidProperties[] = "'systemId' can't be null"; + } + if ($this->container['reinforceExitStart'] === null) { + $invalidProperties[] = "'reinforceExitStart' can't be null"; + } + if (($this->container['reinforceExitStart'] > 23)) { + $invalidProperties[] = "invalid value for 'reinforceExitStart', must be smaller than or equal to 23."; + } + + if (($this->container['reinforceExitStart'] < 0)) { + $invalidProperties[] = "invalid value for 'reinforceExitStart', must be bigger than or equal to 0."; + } + + if ($this->container['reinforceExitEnd'] === null) { + $invalidProperties[] = "'reinforceExitEnd' can't be null"; + } + if (($this->container['reinforceExitEnd'] > 23)) { + $invalidProperties[] = "invalid value for 'reinforceExitEnd', must be smaller than or equal to 23."; + } + + if (($this->container['reinforceExitEnd'] < 0)) { + $invalidProperties[] = "invalid value for 'reinforceExitEnd', must be bigger than or equal to 0."; + } + + if ($this->container['allowAllianceAccess'] === null) { + $invalidProperties[] = "'allowAllianceAccess' can't be null"; + } + if ($this->container['allowAccessWithStandings'] === null) { + $invalidProperties[] = "'allowAccessWithStandings' can't be null"; + } + $allowedValues = $this->getStandingLevelAllowableValues(); + if (!in_array($this->container['standingLevel'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'standingLevel', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['officeId'] === null) { + return false; + } + if ($this->container['systemId'] === null) { + return false; + } + if ($this->container['reinforceExitStart'] === null) { + return false; + } + if ($this->container['reinforceExitStart'] > 23) { + return false; + } + if ($this->container['reinforceExitStart'] < 0) { + return false; + } + if ($this->container['reinforceExitEnd'] === null) { + return false; + } + if ($this->container['reinforceExitEnd'] > 23) { + return false; + } + if ($this->container['reinforceExitEnd'] < 0) { + return false; + } + if ($this->container['allowAllianceAccess'] === null) { + return false; + } + if ($this->container['allowAccessWithStandings'] === null) { + return false; + } + $allowedValues = $this->getStandingLevelAllowableValues(); + if (!in_array($this->container['standingLevel'], $allowedValues)) { + return false; + } + return true; + } + + + /** + * Gets officeId + * + * @return int + */ + public function getOfficeId() + { + return $this->container['officeId']; + } + + /** + * Sets officeId + * + * @param int $officeId unique ID of this customs office + * + * @return $this + */ + public function setOfficeId($officeId) + { + $this->container['officeId'] = $officeId; + + return $this; + } + + /** + * Gets systemId + * + * @return int + */ + public function getSystemId() + { + return $this->container['systemId']; + } + + /** + * Sets systemId + * + * @param int $systemId ID of the solar system this customs office is located in + * + * @return $this + */ + public function setSystemId($systemId) + { + $this->container['systemId'] = $systemId; + + return $this; + } + + /** + * Gets reinforceExitStart + * + * @return int + */ + public function getReinforceExitStart() + { + return $this->container['reinforceExitStart']; + } + + /** + * Sets reinforceExitStart + * + * @param int $reinforceExitStart Together with reinforce_exit_end, marks a 2-hour period where this customs office could exit reinforcement mode during the day after initial attack + * + * @return $this + */ + public function setReinforceExitStart($reinforceExitStart) + { + + if (($reinforceExitStart > 23)) { + throw new \InvalidArgumentException('invalid value for $reinforceExitStart when calling GetCorporationsCorporationIdCustomsOffices200Ok., must be smaller than or equal to 23.'); + } + if (($reinforceExitStart < 0)) { + throw new \InvalidArgumentException('invalid value for $reinforceExitStart when calling GetCorporationsCorporationIdCustomsOffices200Ok., must be bigger than or equal to 0.'); + } + + $this->container['reinforceExitStart'] = $reinforceExitStart; + + return $this; + } + + /** + * Gets reinforceExitEnd + * + * @return int + */ + public function getReinforceExitEnd() + { + return $this->container['reinforceExitEnd']; + } + + /** + * Sets reinforceExitEnd + * + * @param int $reinforceExitEnd reinforce_exit_end integer + * + * @return $this + */ + public function setReinforceExitEnd($reinforceExitEnd) + { + + if (($reinforceExitEnd > 23)) { + throw new \InvalidArgumentException('invalid value for $reinforceExitEnd when calling GetCorporationsCorporationIdCustomsOffices200Ok., must be smaller than or equal to 23.'); + } + if (($reinforceExitEnd < 0)) { + throw new \InvalidArgumentException('invalid value for $reinforceExitEnd when calling GetCorporationsCorporationIdCustomsOffices200Ok., must be bigger than or equal to 0.'); + } + + $this->container['reinforceExitEnd'] = $reinforceExitEnd; + + return $this; + } + + /** + * Gets corporationTaxRate + * + * @return float + */ + public function getCorporationTaxRate() + { + return $this->container['corporationTaxRate']; + } + + /** + * Sets corporationTaxRate + * + * @param float $corporationTaxRate corporation_tax_rate number + * + * @return $this + */ + public function setCorporationTaxRate($corporationTaxRate) + { + $this->container['corporationTaxRate'] = $corporationTaxRate; + + return $this; + } + + /** + * Gets allowAllianceAccess + * + * @return bool + */ + public function getAllowAllianceAccess() + { + return $this->container['allowAllianceAccess']; + } + + /** + * Sets allowAllianceAccess + * + * @param bool $allowAllianceAccess allow_alliance_access boolean + * + * @return $this + */ + public function setAllowAllianceAccess($allowAllianceAccess) + { + $this->container['allowAllianceAccess'] = $allowAllianceAccess; + + return $this; + } + + /** + * Gets allianceTaxRate + * + * @return float + */ + public function getAllianceTaxRate() + { + return $this->container['allianceTaxRate']; + } + + /** + * Sets allianceTaxRate + * + * @param float $allianceTaxRate Only present if alliance access is allowed + * + * @return $this + */ + public function setAllianceTaxRate($allianceTaxRate) + { + $this->container['allianceTaxRate'] = $allianceTaxRate; + + return $this; + } + + /** + * Gets allowAccessWithStandings + * + * @return bool + */ + public function getAllowAccessWithStandings() + { + return $this->container['allowAccessWithStandings']; + } + + /** + * Sets allowAccessWithStandings + * + * @param bool $allowAccessWithStandings standing_level and any standing related tax rate only present when this is true + * + * @return $this + */ + public function setAllowAccessWithStandings($allowAccessWithStandings) + { + $this->container['allowAccessWithStandings'] = $allowAccessWithStandings; + + return $this; + } + + /** + * Gets standingLevel + * + * @return string + */ + public function getStandingLevel() + { + return $this->container['standingLevel']; + } + + /** + * Sets standingLevel + * + * @param string $standingLevel Access is allowed only for entities with this level of standing or better + * + * @return $this + */ + public function setStandingLevel($standingLevel) + { + $allowedValues = $this->getStandingLevelAllowableValues(); + if (!is_null($standingLevel) && !in_array($standingLevel, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'standingLevel', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['standingLevel'] = $standingLevel; + + return $this; + } + + /** + * Gets excellentStandingTaxRate + * + * @return float + */ + public function getExcellentStandingTaxRate() + { + return $this->container['excellentStandingTaxRate']; + } + + /** + * Sets excellentStandingTaxRate + * + * @param float $excellentStandingTaxRate Tax rate for entities with excellent level of standing, only present if this level is allowed, same for all other standing related tax rates + * + * @return $this + */ + public function setExcellentStandingTaxRate($excellentStandingTaxRate) + { + $this->container['excellentStandingTaxRate'] = $excellentStandingTaxRate; + + return $this; + } + + /** + * Gets goodStandingTaxRate + * + * @return float + */ + public function getGoodStandingTaxRate() + { + return $this->container['goodStandingTaxRate']; + } + + /** + * Sets goodStandingTaxRate + * + * @param float $goodStandingTaxRate good_standing_tax_rate number + * + * @return $this + */ + public function setGoodStandingTaxRate($goodStandingTaxRate) + { + $this->container['goodStandingTaxRate'] = $goodStandingTaxRate; + + return $this; + } + + /** + * Gets neutralStandingTaxRate + * + * @return float + */ + public function getNeutralStandingTaxRate() + { + return $this->container['neutralStandingTaxRate']; + } + + /** + * Sets neutralStandingTaxRate + * + * @param float $neutralStandingTaxRate neutral_standing_tax_rate number + * + * @return $this + */ + public function setNeutralStandingTaxRate($neutralStandingTaxRate) + { + $this->container['neutralStandingTaxRate'] = $neutralStandingTaxRate; + + return $this; + } + + /** + * Gets badStandingTaxRate + * + * @return float + */ + public function getBadStandingTaxRate() + { + return $this->container['badStandingTaxRate']; + } + + /** + * Sets badStandingTaxRate + * + * @param float $badStandingTaxRate bad_standing_tax_rate number + * + * @return $this + */ + public function setBadStandingTaxRate($badStandingTaxRate) + { + $this->container['badStandingTaxRate'] = $badStandingTaxRate; + + return $this; + } + + /** + * Gets terribleStandingTaxRate + * + * @return float + */ + public function getTerribleStandingTaxRate() + { + return $this->container['terribleStandingTaxRate']; + } + + /** + * Sets terribleStandingTaxRate + * + * @param float $terribleStandingTaxRate terrible_standing_tax_rate number + * + * @return $this + */ + public function setTerribleStandingTaxRate($terribleStandingTaxRate) + { + $this->container['terribleStandingTaxRate'] = $terribleStandingTaxRate; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdDivisionsHangar.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdDivisionsHangar.php new file mode 100644 index 0000000..fced0a6 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdDivisionsHangar.php @@ -0,0 +1,366 @@ + 'int', + 'name' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'division' => 'int32', + 'name' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'division' => 'division', + 'name' => 'name' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'division' => 'setDivision', + 'name' => 'setName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'division' => 'getDivision', + 'name' => 'getName' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['division'] = isset($data['division']) ? $data['division'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if (!is_null($this->container['division']) && ($this->container['division'] > 7)) { + $invalidProperties[] = "invalid value for 'division', must be smaller than or equal to 7."; + } + + if (!is_null($this->container['division']) && ($this->container['division'] < 1)) { + $invalidProperties[] = "invalid value for 'division', must be bigger than or equal to 1."; + } + + if (!is_null($this->container['name']) && (strlen($this->container['name']) > 50)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 50."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['division'] > 7) { + return false; + } + if ($this->container['division'] < 1) { + return false; + } + if (strlen($this->container['name']) > 50) { + return false; + } + return true; + } + + + /** + * Gets division + * + * @return int + */ + public function getDivision() + { + return $this->container['division']; + } + + /** + * Sets division + * + * @param int $division division integer + * + * @return $this + */ + public function setDivision($division) + { + + if (!is_null($division) && ($division > 7)) { + throw new \InvalidArgumentException('invalid value for $division when calling GetCorporationsCorporationIdDivisionsHangar., must be smaller than or equal to 7.'); + } + if (!is_null($division) && ($division < 1)) { + throw new \InvalidArgumentException('invalid value for $division when calling GetCorporationsCorporationIdDivisionsHangar., must be bigger than or equal to 1.'); + } + + $this->container['division'] = $division; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + if (!is_null($name) && (strlen($name) > 50)) { + throw new \InvalidArgumentException('invalid length for $name when calling GetCorporationsCorporationIdDivisionsHangar., must be smaller than or equal to 50.'); + } + + $this->container['name'] = $name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdDivisionsOk.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdDivisionsOk.php new file mode 100644 index 0000000..b54f916 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdDivisionsOk.php @@ -0,0 +1,333 @@ + '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdDivisionsHangar[]', + 'wallet' => '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdDivisionsWallet[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'hangar' => null, + 'wallet' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'hangar' => 'hangar', + 'wallet' => 'wallet' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'hangar' => 'setHangar', + 'wallet' => 'setWallet' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'hangar' => 'getHangar', + 'wallet' => 'getWallet' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['hangar'] = isset($data['hangar']) ? $data['hangar'] : null; + $this->container['wallet'] = isset($data['wallet']) ? $data['wallet'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets hangar + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdDivisionsHangar[] + */ + public function getHangar() + { + return $this->container['hangar']; + } + + /** + * Sets hangar + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdDivisionsHangar[] $hangar hangar array + * + * @return $this + */ + public function setHangar($hangar) + { + $this->container['hangar'] = $hangar; + + return $this; + } + + /** + * Gets wallet + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdDivisionsWallet[] + */ + public function getWallet() + { + return $this->container['wallet']; + } + + /** + * Sets wallet + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdDivisionsWallet[] $wallet wallet array + * + * @return $this + */ + public function setWallet($wallet) + { + $this->container['wallet'] = $wallet; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdDivisionsWallet.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdDivisionsWallet.php new file mode 100644 index 0000000..30b56c7 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdDivisionsWallet.php @@ -0,0 +1,366 @@ + 'int', + 'name' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'division' => 'int32', + 'name' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'division' => 'division', + 'name' => 'name' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'division' => 'setDivision', + 'name' => 'setName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'division' => 'getDivision', + 'name' => 'getName' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['division'] = isset($data['division']) ? $data['division'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if (!is_null($this->container['division']) && ($this->container['division'] > 7)) { + $invalidProperties[] = "invalid value for 'division', must be smaller than or equal to 7."; + } + + if (!is_null($this->container['division']) && ($this->container['division'] < 1)) { + $invalidProperties[] = "invalid value for 'division', must be bigger than or equal to 1."; + } + + if (!is_null($this->container['name']) && (strlen($this->container['name']) > 50)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 50."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['division'] > 7) { + return false; + } + if ($this->container['division'] < 1) { + return false; + } + if (strlen($this->container['name']) > 50) { + return false; + } + return true; + } + + + /** + * Gets division + * + * @return int + */ + public function getDivision() + { + return $this->container['division']; + } + + /** + * Sets division + * + * @param int $division division integer + * + * @return $this + */ + public function setDivision($division) + { + + if (!is_null($division) && ($division > 7)) { + throw new \InvalidArgumentException('invalid value for $division when calling GetCorporationsCorporationIdDivisionsWallet., must be smaller than or equal to 7.'); + } + if (!is_null($division) && ($division < 1)) { + throw new \InvalidArgumentException('invalid value for $division when calling GetCorporationsCorporationIdDivisionsWallet., must be bigger than or equal to 1.'); + } + + $this->container['division'] = $division; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + if (!is_null($name) && (strlen($name) > 50)) { + throw new \InvalidArgumentException('invalid length for $name when calling GetCorporationsCorporationIdDivisionsWallet., must be smaller than or equal to 50.'); + } + + $this->container['name'] = $name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdFacilities200Ok.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdFacilities200Ok.php new file mode 100644 index 0000000..40c5c09 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdFacilities200Ok.php @@ -0,0 +1,381 @@ + 'int', + 'typeId' => 'int', + 'systemId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'facilityId' => 'int64', + 'typeId' => 'int32', + 'systemId' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'facilityId' => 'facility_id', + 'typeId' => 'type_id', + 'systemId' => 'system_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'facilityId' => 'setFacilityId', + 'typeId' => 'setTypeId', + 'systemId' => 'setSystemId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'facilityId' => 'getFacilityId', + 'typeId' => 'getTypeId', + 'systemId' => 'getSystemId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['facilityId'] = isset($data['facilityId']) ? $data['facilityId'] : null; + $this->container['typeId'] = isset($data['typeId']) ? $data['typeId'] : null; + $this->container['systemId'] = isset($data['systemId']) ? $data['systemId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['facilityId'] === null) { + $invalidProperties[] = "'facilityId' can't be null"; + } + if ($this->container['typeId'] === null) { + $invalidProperties[] = "'typeId' can't be null"; + } + if ($this->container['systemId'] === null) { + $invalidProperties[] = "'systemId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['facilityId'] === null) { + return false; + } + if ($this->container['typeId'] === null) { + return false; + } + if ($this->container['systemId'] === null) { + return false; + } + return true; + } + + + /** + * Gets facilityId + * + * @return int + */ + public function getFacilityId() + { + return $this->container['facilityId']; + } + + /** + * Sets facilityId + * + * @param int $facilityId facility_id integer + * + * @return $this + */ + public function setFacilityId($facilityId) + { + $this->container['facilityId'] = $facilityId; + + return $this; + } + + /** + * Gets typeId + * + * @return int + */ + public function getTypeId() + { + return $this->container['typeId']; + } + + /** + * Sets typeId + * + * @param int $typeId type_id integer + * + * @return $this + */ + public function setTypeId($typeId) + { + $this->container['typeId'] = $typeId; + + return $this; + } + + /** + * Gets systemId + * + * @return int + */ + public function getSystemId() + { + return $this->container['systemId']; + } + + /** + * Sets systemId + * + * @param int $systemId system_id integer + * + * @return $this + */ + public function setSystemId($systemId) + { + $this->container['systemId'] = $systemId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdFwStatsKills.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdFwStatsKills.php new file mode 100644 index 0000000..98e4a33 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdFwStatsKills.php @@ -0,0 +1,381 @@ + 'int', + 'lastWeek' => 'int', + 'total' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'yesterday' => 'int32', + 'lastWeek' => 'int32', + 'total' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'yesterday' => 'yesterday', + 'lastWeek' => 'last_week', + 'total' => 'total' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'yesterday' => 'setYesterday', + 'lastWeek' => 'setLastWeek', + 'total' => 'setTotal' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'yesterday' => 'getYesterday', + 'lastWeek' => 'getLastWeek', + 'total' => 'getTotal' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['yesterday'] = isset($data['yesterday']) ? $data['yesterday'] : null; + $this->container['lastWeek'] = isset($data['lastWeek']) ? $data['lastWeek'] : null; + $this->container['total'] = isset($data['total']) ? $data['total'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['yesterday'] === null) { + $invalidProperties[] = "'yesterday' can't be null"; + } + if ($this->container['lastWeek'] === null) { + $invalidProperties[] = "'lastWeek' can't be null"; + } + if ($this->container['total'] === null) { + $invalidProperties[] = "'total' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['yesterday'] === null) { + return false; + } + if ($this->container['lastWeek'] === null) { + return false; + } + if ($this->container['total'] === null) { + return false; + } + return true; + } + + + /** + * Gets yesterday + * + * @return int + */ + public function getYesterday() + { + return $this->container['yesterday']; + } + + /** + * Sets yesterday + * + * @param int $yesterday Yesterday's total number of kills by members of the given corporation against enemy factions + * + * @return $this + */ + public function setYesterday($yesterday) + { + $this->container['yesterday'] = $yesterday; + + return $this; + } + + /** + * Gets lastWeek + * + * @return int + */ + public function getLastWeek() + { + return $this->container['lastWeek']; + } + + /** + * Sets lastWeek + * + * @param int $lastWeek Last week's total number of kills by members of the given corporation against enemy factions + * + * @return $this + */ + public function setLastWeek($lastWeek) + { + $this->container['lastWeek'] = $lastWeek; + + return $this; + } + + /** + * Gets total + * + * @return int + */ + public function getTotal() + { + return $this->container['total']; + } + + /** + * Sets total + * + * @param int $total Total number of kills by members of the given corporation against enemy factions since the corporation enlisted + * + * @return $this + */ + public function setTotal($total) + { + $this->container['total'] = $total; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdFwStatsOk.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdFwStatsOk.php new file mode 100644 index 0000000..3d3fed1 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdFwStatsOk.php @@ -0,0 +1,435 @@ + 'int', + 'enlistedOn' => '\DateTime', + 'pilots' => 'int', + 'kills' => '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdFwStatsKills', + 'victoryPoints' => '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdFwStatsVictoryPoints' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'factionId' => 'int32', + 'enlistedOn' => 'date-time', + 'pilots' => 'int32', + 'kills' => null, + 'victoryPoints' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'factionId' => 'faction_id', + 'enlistedOn' => 'enlisted_on', + 'pilots' => 'pilots', + 'kills' => 'kills', + 'victoryPoints' => 'victory_points' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'factionId' => 'setFactionId', + 'enlistedOn' => 'setEnlistedOn', + 'pilots' => 'setPilots', + 'kills' => 'setKills', + 'victoryPoints' => 'setVictoryPoints' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'factionId' => 'getFactionId', + 'enlistedOn' => 'getEnlistedOn', + 'pilots' => 'getPilots', + 'kills' => 'getKills', + 'victoryPoints' => 'getVictoryPoints' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['factionId'] = isset($data['factionId']) ? $data['factionId'] : null; + $this->container['enlistedOn'] = isset($data['enlistedOn']) ? $data['enlistedOn'] : null; + $this->container['pilots'] = isset($data['pilots']) ? $data['pilots'] : null; + $this->container['kills'] = isset($data['kills']) ? $data['kills'] : null; + $this->container['victoryPoints'] = isset($data['victoryPoints']) ? $data['victoryPoints'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['kills'] === null) { + $invalidProperties[] = "'kills' can't be null"; + } + if ($this->container['victoryPoints'] === null) { + $invalidProperties[] = "'victoryPoints' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['kills'] === null) { + return false; + } + if ($this->container['victoryPoints'] === null) { + return false; + } + return true; + } + + + /** + * Gets factionId + * + * @return int + */ + public function getFactionId() + { + return $this->container['factionId']; + } + + /** + * Sets factionId + * + * @param int $factionId The faction the given corporation is enlisted to fight for. Will not be included if corporation is not enlisted in faction warfare + * + * @return $this + */ + public function setFactionId($factionId) + { + $this->container['factionId'] = $factionId; + + return $this; + } + + /** + * Gets enlistedOn + * + * @return \DateTime + */ + public function getEnlistedOn() + { + return $this->container['enlistedOn']; + } + + /** + * Sets enlistedOn + * + * @param \DateTime $enlistedOn The enlistment date of the given corporation into faction warfare. Will not be included if corporation is not enlisted in faction warfare + * + * @return $this + */ + public function setEnlistedOn($enlistedOn) + { + $this->container['enlistedOn'] = $enlistedOn; + + return $this; + } + + /** + * Gets pilots + * + * @return int + */ + public function getPilots() + { + return $this->container['pilots']; + } + + /** + * Sets pilots + * + * @param int $pilots How many pilots the enlisted corporation has. Will not be included if corporation is not enlisted in faction warfare + * + * @return $this + */ + public function setPilots($pilots) + { + $this->container['pilots'] = $pilots; + + return $this; + } + + /** + * Gets kills + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdFwStatsKills + */ + public function getKills() + { + return $this->container['kills']; + } + + /** + * Sets kills + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdFwStatsKills $kills kills + * + * @return $this + */ + public function setKills($kills) + { + $this->container['kills'] = $kills; + + return $this; + } + + /** + * Gets victoryPoints + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdFwStatsVictoryPoints + */ + public function getVictoryPoints() + { + return $this->container['victoryPoints']; + } + + /** + * Sets victoryPoints + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdFwStatsVictoryPoints $victoryPoints victoryPoints + * + * @return $this + */ + public function setVictoryPoints($victoryPoints) + { + $this->container['victoryPoints'] = $victoryPoints; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdFwStatsVictoryPoints.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdFwStatsVictoryPoints.php new file mode 100644 index 0000000..def73d6 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdFwStatsVictoryPoints.php @@ -0,0 +1,381 @@ + 'int', + 'lastWeek' => 'int', + 'total' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'yesterday' => 'int32', + 'lastWeek' => 'int32', + 'total' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'yesterday' => 'yesterday', + 'lastWeek' => 'last_week', + 'total' => 'total' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'yesterday' => 'setYesterday', + 'lastWeek' => 'setLastWeek', + 'total' => 'setTotal' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'yesterday' => 'getYesterday', + 'lastWeek' => 'getLastWeek', + 'total' => 'getTotal' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['yesterday'] = isset($data['yesterday']) ? $data['yesterday'] : null; + $this->container['lastWeek'] = isset($data['lastWeek']) ? $data['lastWeek'] : null; + $this->container['total'] = isset($data['total']) ? $data['total'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['yesterday'] === null) { + $invalidProperties[] = "'yesterday' can't be null"; + } + if ($this->container['lastWeek'] === null) { + $invalidProperties[] = "'lastWeek' can't be null"; + } + if ($this->container['total'] === null) { + $invalidProperties[] = "'total' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['yesterday'] === null) { + return false; + } + if ($this->container['lastWeek'] === null) { + return false; + } + if ($this->container['total'] === null) { + return false; + } + return true; + } + + + /** + * Gets yesterday + * + * @return int + */ + public function getYesterday() + { + return $this->container['yesterday']; + } + + /** + * Sets yesterday + * + * @param int $yesterday Yesterday's victory points gained by members of the given corporation + * + * @return $this + */ + public function setYesterday($yesterday) + { + $this->container['yesterday'] = $yesterday; + + return $this; + } + + /** + * Gets lastWeek + * + * @return int + */ + public function getLastWeek() + { + return $this->container['lastWeek']; + } + + /** + * Sets lastWeek + * + * @param int $lastWeek Last week's victory points gained by members of the given corporation + * + * @return $this + */ + public function setLastWeek($lastWeek) + { + $this->container['lastWeek'] = $lastWeek; + + return $this; + } + + /** + * Gets total + * + * @return int + */ + public function getTotal() + { + return $this->container['total']; + } + + /** + * Sets total + * + * @param int $total Total victory points gained since the given corporation enlisted + * + * @return $this + */ + public function setTotal($total) + { + $this->container['total'] = $total; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdIconsNotFound.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdIconsNotFound.php new file mode 100644 index 0000000..ad6422f --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdIconsNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error error message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdIconsOk.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdIconsOk.php new file mode 100644 index 0000000..23bd98a --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdIconsOk.php @@ -0,0 +1,363 @@ + 'string', + 'px128x128' => 'string', + 'px256x256' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'px64x64' => null, + 'px128x128' => null, + 'px256x256' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'px64x64' => 'px64x64', + 'px128x128' => 'px128x128', + 'px256x256' => 'px256x256' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'px64x64' => 'setPx64x64', + 'px128x128' => 'setPx128x128', + 'px256x256' => 'setPx256x256' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'px64x64' => 'getPx64x64', + 'px128x128' => 'getPx128x128', + 'px256x256' => 'getPx256x256' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['px64x64'] = isset($data['px64x64']) ? $data['px64x64'] : null; + $this->container['px128x128'] = isset($data['px128x128']) ? $data['px128x128'] : null; + $this->container['px256x256'] = isset($data['px256x256']) ? $data['px256x256'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets px64x64 + * + * @return string + */ + public function getPx64x64() + { + return $this->container['px64x64']; + } + + /** + * Sets px64x64 + * + * @param string $px64x64 px64x64 string + * + * @return $this + */ + public function setPx64x64($px64x64) + { + $this->container['px64x64'] = $px64x64; + + return $this; + } + + /** + * Gets px128x128 + * + * @return string + */ + public function getPx128x128() + { + return $this->container['px128x128']; + } + + /** + * Sets px128x128 + * + * @param string $px128x128 px128x128 string + * + * @return $this + */ + public function setPx128x128($px128x128) + { + $this->container['px128x128'] = $px128x128; + + return $this; + } + + /** + * Gets px256x256 + * + * @return string + */ + public function getPx256x256() + { + return $this->container['px256x256']; + } + + /** + * Sets px256x256 + * + * @param string $px256x256 px256x256 string + * + * @return $this + */ + public function setPx256x256($px256x256) + { + $this->container['px256x256'] = $px256x256; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdIndustryJobs200Ok.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdIndustryJobs200Ok.php new file mode 100644 index 0000000..8888b66 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdIndustryJobs200Ok.php @@ -0,0 +1,1061 @@ + 'int', + 'installerId' => 'int', + 'facilityId' => 'int', + 'locationId' => 'int', + 'activityId' => 'int', + 'blueprintId' => 'int', + 'blueprintTypeId' => 'int', + 'blueprintLocationId' => 'int', + 'outputLocationId' => 'int', + 'runs' => 'int', + 'cost' => 'double', + 'licensedRuns' => 'int', + 'probability' => 'float', + 'productTypeId' => 'int', + 'status' => 'string', + 'duration' => 'int', + 'startDate' => '\DateTime', + 'endDate' => '\DateTime', + 'pauseDate' => '\DateTime', + 'completedDate' => '\DateTime', + 'completedCharacterId' => 'int', + 'successfulRuns' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'jobId' => 'int32', + 'installerId' => 'int32', + 'facilityId' => 'int64', + 'locationId' => 'int64', + 'activityId' => 'int32', + 'blueprintId' => 'int64', + 'blueprintTypeId' => 'int32', + 'blueprintLocationId' => 'int64', + 'outputLocationId' => 'int64', + 'runs' => 'int32', + 'cost' => 'double', + 'licensedRuns' => 'int32', + 'probability' => 'float', + 'productTypeId' => 'int32', + 'status' => null, + 'duration' => 'int32', + 'startDate' => 'date-time', + 'endDate' => 'date-time', + 'pauseDate' => 'date-time', + 'completedDate' => 'date-time', + 'completedCharacterId' => 'int32', + 'successfulRuns' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'jobId' => 'job_id', + 'installerId' => 'installer_id', + 'facilityId' => 'facility_id', + 'locationId' => 'location_id', + 'activityId' => 'activity_id', + 'blueprintId' => 'blueprint_id', + 'blueprintTypeId' => 'blueprint_type_id', + 'blueprintLocationId' => 'blueprint_location_id', + 'outputLocationId' => 'output_location_id', + 'runs' => 'runs', + 'cost' => 'cost', + 'licensedRuns' => 'licensed_runs', + 'probability' => 'probability', + 'productTypeId' => 'product_type_id', + 'status' => 'status', + 'duration' => 'duration', + 'startDate' => 'start_date', + 'endDate' => 'end_date', + 'pauseDate' => 'pause_date', + 'completedDate' => 'completed_date', + 'completedCharacterId' => 'completed_character_id', + 'successfulRuns' => 'successful_runs' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'jobId' => 'setJobId', + 'installerId' => 'setInstallerId', + 'facilityId' => 'setFacilityId', + 'locationId' => 'setLocationId', + 'activityId' => 'setActivityId', + 'blueprintId' => 'setBlueprintId', + 'blueprintTypeId' => 'setBlueprintTypeId', + 'blueprintLocationId' => 'setBlueprintLocationId', + 'outputLocationId' => 'setOutputLocationId', + 'runs' => 'setRuns', + 'cost' => 'setCost', + 'licensedRuns' => 'setLicensedRuns', + 'probability' => 'setProbability', + 'productTypeId' => 'setProductTypeId', + 'status' => 'setStatus', + 'duration' => 'setDuration', + 'startDate' => 'setStartDate', + 'endDate' => 'setEndDate', + 'pauseDate' => 'setPauseDate', + 'completedDate' => 'setCompletedDate', + 'completedCharacterId' => 'setCompletedCharacterId', + 'successfulRuns' => 'setSuccessfulRuns' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'jobId' => 'getJobId', + 'installerId' => 'getInstallerId', + 'facilityId' => 'getFacilityId', + 'locationId' => 'getLocationId', + 'activityId' => 'getActivityId', + 'blueprintId' => 'getBlueprintId', + 'blueprintTypeId' => 'getBlueprintTypeId', + 'blueprintLocationId' => 'getBlueprintLocationId', + 'outputLocationId' => 'getOutputLocationId', + 'runs' => 'getRuns', + 'cost' => 'getCost', + 'licensedRuns' => 'getLicensedRuns', + 'probability' => 'getProbability', + 'productTypeId' => 'getProductTypeId', + 'status' => 'getStatus', + 'duration' => 'getDuration', + 'startDate' => 'getStartDate', + 'endDate' => 'getEndDate', + 'pauseDate' => 'getPauseDate', + 'completedDate' => 'getCompletedDate', + 'completedCharacterId' => 'getCompletedCharacterId', + 'successfulRuns' => 'getSuccessfulRuns' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const STATUS_ACTIVE = 'active'; + const STATUS_CANCELLED = 'cancelled'; + const STATUS_DELIVERED = 'delivered'; + const STATUS_PAUSED = 'paused'; + const STATUS_READY = 'ready'; + const STATUS_REVERTED = 'reverted'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getStatusAllowableValues() + { + return [ + self::STATUS_ACTIVE, + self::STATUS_CANCELLED, + self::STATUS_DELIVERED, + self::STATUS_PAUSED, + self::STATUS_READY, + self::STATUS_REVERTED, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['jobId'] = isset($data['jobId']) ? $data['jobId'] : null; + $this->container['installerId'] = isset($data['installerId']) ? $data['installerId'] : null; + $this->container['facilityId'] = isset($data['facilityId']) ? $data['facilityId'] : null; + $this->container['locationId'] = isset($data['locationId']) ? $data['locationId'] : null; + $this->container['activityId'] = isset($data['activityId']) ? $data['activityId'] : null; + $this->container['blueprintId'] = isset($data['blueprintId']) ? $data['blueprintId'] : null; + $this->container['blueprintTypeId'] = isset($data['blueprintTypeId']) ? $data['blueprintTypeId'] : null; + $this->container['blueprintLocationId'] = isset($data['blueprintLocationId']) ? $data['blueprintLocationId'] : null; + $this->container['outputLocationId'] = isset($data['outputLocationId']) ? $data['outputLocationId'] : null; + $this->container['runs'] = isset($data['runs']) ? $data['runs'] : null; + $this->container['cost'] = isset($data['cost']) ? $data['cost'] : null; + $this->container['licensedRuns'] = isset($data['licensedRuns']) ? $data['licensedRuns'] : null; + $this->container['probability'] = isset($data['probability']) ? $data['probability'] : null; + $this->container['productTypeId'] = isset($data['productTypeId']) ? $data['productTypeId'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['duration'] = isset($data['duration']) ? $data['duration'] : null; + $this->container['startDate'] = isset($data['startDate']) ? $data['startDate'] : null; + $this->container['endDate'] = isset($data['endDate']) ? $data['endDate'] : null; + $this->container['pauseDate'] = isset($data['pauseDate']) ? $data['pauseDate'] : null; + $this->container['completedDate'] = isset($data['completedDate']) ? $data['completedDate'] : null; + $this->container['completedCharacterId'] = isset($data['completedCharacterId']) ? $data['completedCharacterId'] : null; + $this->container['successfulRuns'] = isset($data['successfulRuns']) ? $data['successfulRuns'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['jobId'] === null) { + $invalidProperties[] = "'jobId' can't be null"; + } + if ($this->container['installerId'] === null) { + $invalidProperties[] = "'installerId' can't be null"; + } + if ($this->container['facilityId'] === null) { + $invalidProperties[] = "'facilityId' can't be null"; + } + if ($this->container['locationId'] === null) { + $invalidProperties[] = "'locationId' can't be null"; + } + if ($this->container['activityId'] === null) { + $invalidProperties[] = "'activityId' can't be null"; + } + if ($this->container['blueprintId'] === null) { + $invalidProperties[] = "'blueprintId' can't be null"; + } + if ($this->container['blueprintTypeId'] === null) { + $invalidProperties[] = "'blueprintTypeId' can't be null"; + } + if ($this->container['blueprintLocationId'] === null) { + $invalidProperties[] = "'blueprintLocationId' can't be null"; + } + if ($this->container['outputLocationId'] === null) { + $invalidProperties[] = "'outputLocationId' can't be null"; + } + if ($this->container['runs'] === null) { + $invalidProperties[] = "'runs' can't be null"; + } + if ($this->container['status'] === null) { + $invalidProperties[] = "'status' can't be null"; + } + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($this->container['status'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'status', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['duration'] === null) { + $invalidProperties[] = "'duration' can't be null"; + } + if ($this->container['startDate'] === null) { + $invalidProperties[] = "'startDate' can't be null"; + } + if ($this->container['endDate'] === null) { + $invalidProperties[] = "'endDate' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['jobId'] === null) { + return false; + } + if ($this->container['installerId'] === null) { + return false; + } + if ($this->container['facilityId'] === null) { + return false; + } + if ($this->container['locationId'] === null) { + return false; + } + if ($this->container['activityId'] === null) { + return false; + } + if ($this->container['blueprintId'] === null) { + return false; + } + if ($this->container['blueprintTypeId'] === null) { + return false; + } + if ($this->container['blueprintLocationId'] === null) { + return false; + } + if ($this->container['outputLocationId'] === null) { + return false; + } + if ($this->container['runs'] === null) { + return false; + } + if ($this->container['status'] === null) { + return false; + } + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($this->container['status'], $allowedValues)) { + return false; + } + if ($this->container['duration'] === null) { + return false; + } + if ($this->container['startDate'] === null) { + return false; + } + if ($this->container['endDate'] === null) { + return false; + } + return true; + } + + + /** + * Gets jobId + * + * @return int + */ + public function getJobId() + { + return $this->container['jobId']; + } + + /** + * Sets jobId + * + * @param int $jobId Unique job ID + * + * @return $this + */ + public function setJobId($jobId) + { + $this->container['jobId'] = $jobId; + + return $this; + } + + /** + * Gets installerId + * + * @return int + */ + public function getInstallerId() + { + return $this->container['installerId']; + } + + /** + * Sets installerId + * + * @param int $installerId ID of the character which installed this job + * + * @return $this + */ + public function setInstallerId($installerId) + { + $this->container['installerId'] = $installerId; + + return $this; + } + + /** + * Gets facilityId + * + * @return int + */ + public function getFacilityId() + { + return $this->container['facilityId']; + } + + /** + * Sets facilityId + * + * @param int $facilityId ID of the facility where this job is running + * + * @return $this + */ + public function setFacilityId($facilityId) + { + $this->container['facilityId'] = $facilityId; + + return $this; + } + + /** + * Gets locationId + * + * @return int + */ + public function getLocationId() + { + return $this->container['locationId']; + } + + /** + * Sets locationId + * + * @param int $locationId ID of the location for the industry facility + * + * @return $this + */ + public function setLocationId($locationId) + { + $this->container['locationId'] = $locationId; + + return $this; + } + + /** + * Gets activityId + * + * @return int + */ + public function getActivityId() + { + return $this->container['activityId']; + } + + /** + * Sets activityId + * + * @param int $activityId Job activity ID + * + * @return $this + */ + public function setActivityId($activityId) + { + $this->container['activityId'] = $activityId; + + return $this; + } + + /** + * Gets blueprintId + * + * @return int + */ + public function getBlueprintId() + { + return $this->container['blueprintId']; + } + + /** + * Sets blueprintId + * + * @param int $blueprintId blueprint_id integer + * + * @return $this + */ + public function setBlueprintId($blueprintId) + { + $this->container['blueprintId'] = $blueprintId; + + return $this; + } + + /** + * Gets blueprintTypeId + * + * @return int + */ + public function getBlueprintTypeId() + { + return $this->container['blueprintTypeId']; + } + + /** + * Sets blueprintTypeId + * + * @param int $blueprintTypeId blueprint_type_id integer + * + * @return $this + */ + public function setBlueprintTypeId($blueprintTypeId) + { + $this->container['blueprintTypeId'] = $blueprintTypeId; + + return $this; + } + + /** + * Gets blueprintLocationId + * + * @return int + */ + public function getBlueprintLocationId() + { + return $this->container['blueprintLocationId']; + } + + /** + * Sets blueprintLocationId + * + * @param int $blueprintLocationId Location ID of the location from which the blueprint was installed. Normally a station ID, but can also be an asset (e.g. container) or corporation facility + * + * @return $this + */ + public function setBlueprintLocationId($blueprintLocationId) + { + $this->container['blueprintLocationId'] = $blueprintLocationId; + + return $this; + } + + /** + * Gets outputLocationId + * + * @return int + */ + public function getOutputLocationId() + { + return $this->container['outputLocationId']; + } + + /** + * Sets outputLocationId + * + * @param int $outputLocationId Location ID of the location to which the output of the job will be delivered. Normally a station ID, but can also be a corporation facility + * + * @return $this + */ + public function setOutputLocationId($outputLocationId) + { + $this->container['outputLocationId'] = $outputLocationId; + + return $this; + } + + /** + * Gets runs + * + * @return int + */ + public function getRuns() + { + return $this->container['runs']; + } + + /** + * Sets runs + * + * @param int $runs Number of runs for a manufacturing job, or number of copies to make for a blueprint copy + * + * @return $this + */ + public function setRuns($runs) + { + $this->container['runs'] = $runs; + + return $this; + } + + /** + * Gets cost + * + * @return double + */ + public function getCost() + { + return $this->container['cost']; + } + + /** + * Sets cost + * + * @param double $cost The sume of job installation fee and industry facility tax + * + * @return $this + */ + public function setCost($cost) + { + $this->container['cost'] = $cost; + + return $this; + } + + /** + * Gets licensedRuns + * + * @return int + */ + public function getLicensedRuns() + { + return $this->container['licensedRuns']; + } + + /** + * Sets licensedRuns + * + * @param int $licensedRuns Number of runs blueprint is licensed for + * + * @return $this + */ + public function setLicensedRuns($licensedRuns) + { + $this->container['licensedRuns'] = $licensedRuns; + + return $this; + } + + /** + * Gets probability + * + * @return float + */ + public function getProbability() + { + return $this->container['probability']; + } + + /** + * Sets probability + * + * @param float $probability Chance of success for invention + * + * @return $this + */ + public function setProbability($probability) + { + $this->container['probability'] = $probability; + + return $this; + } + + /** + * Gets productTypeId + * + * @return int + */ + public function getProductTypeId() + { + return $this->container['productTypeId']; + } + + /** + * Sets productTypeId + * + * @param int $productTypeId Type ID of product (manufactured, copied or invented) + * + * @return $this + */ + public function setProductTypeId($productTypeId) + { + $this->container['productTypeId'] = $productTypeId; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status status string + * + * @return $this + */ + public function setStatus($status) + { + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($status, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'status', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets duration + * + * @return int + */ + public function getDuration() + { + return $this->container['duration']; + } + + /** + * Sets duration + * + * @param int $duration Job duration in seconds + * + * @return $this + */ + public function setDuration($duration) + { + $this->container['duration'] = $duration; + + return $this; + } + + /** + * Gets startDate + * + * @return \DateTime + */ + public function getStartDate() + { + return $this->container['startDate']; + } + + /** + * Sets startDate + * + * @param \DateTime $startDate Date and time when this job started + * + * @return $this + */ + public function setStartDate($startDate) + { + $this->container['startDate'] = $startDate; + + return $this; + } + + /** + * Gets endDate + * + * @return \DateTime + */ + public function getEndDate() + { + return $this->container['endDate']; + } + + /** + * Sets endDate + * + * @param \DateTime $endDate Date and time when this job finished + * + * @return $this + */ + public function setEndDate($endDate) + { + $this->container['endDate'] = $endDate; + + return $this; + } + + /** + * Gets pauseDate + * + * @return \DateTime + */ + public function getPauseDate() + { + return $this->container['pauseDate']; + } + + /** + * Sets pauseDate + * + * @param \DateTime $pauseDate Date and time when this job was paused (i.e. time when the facility where this job was installed went offline) + * + * @return $this + */ + public function setPauseDate($pauseDate) + { + $this->container['pauseDate'] = $pauseDate; + + return $this; + } + + /** + * Gets completedDate + * + * @return \DateTime + */ + public function getCompletedDate() + { + return $this->container['completedDate']; + } + + /** + * Sets completedDate + * + * @param \DateTime $completedDate Date and time when this job was completed + * + * @return $this + */ + public function setCompletedDate($completedDate) + { + $this->container['completedDate'] = $completedDate; + + return $this; + } + + /** + * Gets completedCharacterId + * + * @return int + */ + public function getCompletedCharacterId() + { + return $this->container['completedCharacterId']; + } + + /** + * Sets completedCharacterId + * + * @param int $completedCharacterId ID of the character which completed this job + * + * @return $this + */ + public function setCompletedCharacterId($completedCharacterId) + { + $this->container['completedCharacterId'] = $completedCharacterId; + + return $this; + } + + /** + * Gets successfulRuns + * + * @return int + */ + public function getSuccessfulRuns() + { + return $this->container['successfulRuns']; + } + + /** + * Sets successfulRuns + * + * @param int $successfulRuns Number of successful runs for this job. Equal to runs unless this is an invention job + * + * @return $this + */ + public function setSuccessfulRuns($successfulRuns) + { + $this->container['successfulRuns'] = $successfulRuns; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdKillmailsRecent200Ok.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdKillmailsRecent200Ok.php new file mode 100644 index 0000000..8b6a261 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdKillmailsRecent200Ok.php @@ -0,0 +1,345 @@ + 'int', + 'killmailHash' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'killmailId' => 'int32', + 'killmailHash' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'killmailId' => 'killmail_id', + 'killmailHash' => 'killmail_hash' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'killmailId' => 'setKillmailId', + 'killmailHash' => 'setKillmailHash' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'killmailId' => 'getKillmailId', + 'killmailHash' => 'getKillmailHash' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['killmailId'] = isset($data['killmailId']) ? $data['killmailId'] : null; + $this->container['killmailHash'] = isset($data['killmailHash']) ? $data['killmailHash'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['killmailId'] === null) { + $invalidProperties[] = "'killmailId' can't be null"; + } + if ($this->container['killmailHash'] === null) { + $invalidProperties[] = "'killmailHash' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['killmailId'] === null) { + return false; + } + if ($this->container['killmailHash'] === null) { + return false; + } + return true; + } + + + /** + * Gets killmailId + * + * @return int + */ + public function getKillmailId() + { + return $this->container['killmailId']; + } + + /** + * Sets killmailId + * + * @param int $killmailId ID of this killmail + * + * @return $this + */ + public function setKillmailId($killmailId) + { + $this->container['killmailId'] = $killmailId; + + return $this; + } + + /** + * Gets killmailHash + * + * @return string + */ + public function getKillmailHash() + { + return $this->container['killmailHash']; + } + + /** + * Sets killmailHash + * + * @param string $killmailHash A hash of this killmail + * + * @return $this + */ + public function setKillmailHash($killmailHash) + { + $this->container['killmailHash'] = $killmailHash; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdMedals200Ok.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdMedals200Ok.php new file mode 100644 index 0000000..569c06e --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdMedals200Ok.php @@ -0,0 +1,475 @@ + 'int', + 'title' => 'string', + 'description' => 'string', + 'creatorId' => 'int', + 'createdAt' => '\DateTime' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'medalId' => 'int32', + 'title' => null, + 'description' => null, + 'creatorId' => 'int32', + 'createdAt' => 'date-time' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'medalId' => 'medal_id', + 'title' => 'title', + 'description' => 'description', + 'creatorId' => 'creator_id', + 'createdAt' => 'created_at' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'medalId' => 'setMedalId', + 'title' => 'setTitle', + 'description' => 'setDescription', + 'creatorId' => 'setCreatorId', + 'createdAt' => 'setCreatedAt' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'medalId' => 'getMedalId', + 'title' => 'getTitle', + 'description' => 'getDescription', + 'creatorId' => 'getCreatorId', + 'createdAt' => 'getCreatedAt' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['medalId'] = isset($data['medalId']) ? $data['medalId'] : null; + $this->container['title'] = isset($data['title']) ? $data['title'] : null; + $this->container['description'] = isset($data['description']) ? $data['description'] : null; + $this->container['creatorId'] = isset($data['creatorId']) ? $data['creatorId'] : null; + $this->container['createdAt'] = isset($data['createdAt']) ? $data['createdAt'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['medalId'] === null) { + $invalidProperties[] = "'medalId' can't be null"; + } + if ($this->container['title'] === null) { + $invalidProperties[] = "'title' can't be null"; + } + if ((strlen($this->container['title']) > 100)) { + $invalidProperties[] = "invalid value for 'title', the character length must be smaller than or equal to 100."; + } + + if ($this->container['description'] === null) { + $invalidProperties[] = "'description' can't be null"; + } + if ((strlen($this->container['description']) > 1000)) { + $invalidProperties[] = "invalid value for 'description', the character length must be smaller than or equal to 1000."; + } + + if ($this->container['creatorId'] === null) { + $invalidProperties[] = "'creatorId' can't be null"; + } + if ($this->container['createdAt'] === null) { + $invalidProperties[] = "'createdAt' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['medalId'] === null) { + return false; + } + if ($this->container['title'] === null) { + return false; + } + if (strlen($this->container['title']) > 100) { + return false; + } + if ($this->container['description'] === null) { + return false; + } + if (strlen($this->container['description']) > 1000) { + return false; + } + if ($this->container['creatorId'] === null) { + return false; + } + if ($this->container['createdAt'] === null) { + return false; + } + return true; + } + + + /** + * Gets medalId + * + * @return int + */ + public function getMedalId() + { + return $this->container['medalId']; + } + + /** + * Sets medalId + * + * @param int $medalId medal_id integer + * + * @return $this + */ + public function setMedalId($medalId) + { + $this->container['medalId'] = $medalId; + + return $this; + } + + /** + * Gets title + * + * @return string + */ + public function getTitle() + { + return $this->container['title']; + } + + /** + * Sets title + * + * @param string $title title string + * + * @return $this + */ + public function setTitle($title) + { + if ((strlen($title) > 100)) { + throw new \InvalidArgumentException('invalid length for $title when calling GetCorporationsCorporationIdMedals200Ok., must be smaller than or equal to 100.'); + } + + $this->container['title'] = $title; + + return $this; + } + + /** + * Gets description + * + * @return string + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string $description description string + * + * @return $this + */ + public function setDescription($description) + { + if ((strlen($description) > 1000)) { + throw new \InvalidArgumentException('invalid length for $description when calling GetCorporationsCorporationIdMedals200Ok., must be smaller than or equal to 1000.'); + } + + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets creatorId + * + * @return int + */ + public function getCreatorId() + { + return $this->container['creatorId']; + } + + /** + * Sets creatorId + * + * @param int $creatorId ID of the character who created this medal + * + * @return $this + */ + public function setCreatorId($creatorId) + { + $this->container['creatorId'] = $creatorId; + + return $this; + } + + /** + * Gets createdAt + * + * @return \DateTime + */ + public function getCreatedAt() + { + return $this->container['createdAt']; + } + + /** + * Sets createdAt + * + * @param \DateTime $createdAt created_at string + * + * @return $this + */ + public function setCreatedAt($createdAt) + { + $this->container['createdAt'] = $createdAt; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdMedalsIssued200Ok.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdMedalsIssued200Ok.php new file mode 100644 index 0000000..7b09d69 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdMedalsIssued200Ok.php @@ -0,0 +1,536 @@ + 'int', + 'characterId' => 'int', + 'reason' => 'string', + 'status' => 'string', + 'issuerId' => 'int', + 'issuedAt' => '\DateTime' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'medalId' => 'int32', + 'characterId' => 'int32', + 'reason' => null, + 'status' => null, + 'issuerId' => 'int32', + 'issuedAt' => 'date-time' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'medalId' => 'medal_id', + 'characterId' => 'character_id', + 'reason' => 'reason', + 'status' => 'status', + 'issuerId' => 'issuer_id', + 'issuedAt' => 'issued_at' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'medalId' => 'setMedalId', + 'characterId' => 'setCharacterId', + 'reason' => 'setReason', + 'status' => 'setStatus', + 'issuerId' => 'setIssuerId', + 'issuedAt' => 'setIssuedAt' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'medalId' => 'getMedalId', + 'characterId' => 'getCharacterId', + 'reason' => 'getReason', + 'status' => 'getStatus', + 'issuerId' => 'getIssuerId', + 'issuedAt' => 'getIssuedAt' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const STATUS__PRIVATE = 'private'; + const STATUS__PUBLIC = 'public'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getStatusAllowableValues() + { + return [ + self::STATUS__PRIVATE, + self::STATUS__PUBLIC, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['medalId'] = isset($data['medalId']) ? $data['medalId'] : null; + $this->container['characterId'] = isset($data['characterId']) ? $data['characterId'] : null; + $this->container['reason'] = isset($data['reason']) ? $data['reason'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['issuerId'] = isset($data['issuerId']) ? $data['issuerId'] : null; + $this->container['issuedAt'] = isset($data['issuedAt']) ? $data['issuedAt'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['medalId'] === null) { + $invalidProperties[] = "'medalId' can't be null"; + } + if ($this->container['characterId'] === null) { + $invalidProperties[] = "'characterId' can't be null"; + } + if ($this->container['reason'] === null) { + $invalidProperties[] = "'reason' can't be null"; + } + if ((strlen($this->container['reason']) > 1000)) { + $invalidProperties[] = "invalid value for 'reason', the character length must be smaller than or equal to 1000."; + } + + if ($this->container['status'] === null) { + $invalidProperties[] = "'status' can't be null"; + } + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($this->container['status'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'status', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['issuerId'] === null) { + $invalidProperties[] = "'issuerId' can't be null"; + } + if ($this->container['issuedAt'] === null) { + $invalidProperties[] = "'issuedAt' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['medalId'] === null) { + return false; + } + if ($this->container['characterId'] === null) { + return false; + } + if ($this->container['reason'] === null) { + return false; + } + if (strlen($this->container['reason']) > 1000) { + return false; + } + if ($this->container['status'] === null) { + return false; + } + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($this->container['status'], $allowedValues)) { + return false; + } + if ($this->container['issuerId'] === null) { + return false; + } + if ($this->container['issuedAt'] === null) { + return false; + } + return true; + } + + + /** + * Gets medalId + * + * @return int + */ + public function getMedalId() + { + return $this->container['medalId']; + } + + /** + * Sets medalId + * + * @param int $medalId medal_id integer + * + * @return $this + */ + public function setMedalId($medalId) + { + $this->container['medalId'] = $medalId; + + return $this; + } + + /** + * Gets characterId + * + * @return int + */ + public function getCharacterId() + { + return $this->container['characterId']; + } + + /** + * Sets characterId + * + * @param int $characterId ID of the character who was rewarded this medal + * + * @return $this + */ + public function setCharacterId($characterId) + { + $this->container['characterId'] = $characterId; + + return $this; + } + + /** + * Gets reason + * + * @return string + */ + public function getReason() + { + return $this->container['reason']; + } + + /** + * Sets reason + * + * @param string $reason reason string + * + * @return $this + */ + public function setReason($reason) + { + if ((strlen($reason) > 1000)) { + throw new \InvalidArgumentException('invalid length for $reason when calling GetCorporationsCorporationIdMedalsIssued200Ok., must be smaller than or equal to 1000.'); + } + + $this->container['reason'] = $reason; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status status string + * + * @return $this + */ + public function setStatus($status) + { + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($status, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'status', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets issuerId + * + * @return int + */ + public function getIssuerId() + { + return $this->container['issuerId']; + } + + /** + * Sets issuerId + * + * @param int $issuerId ID of the character who issued the medal + * + * @return $this + */ + public function setIssuerId($issuerId) + { + $this->container['issuerId'] = $issuerId; + + return $this; + } + + /** + * Gets issuedAt + * + * @return \DateTime + */ + public function getIssuedAt() + { + return $this->container['issuedAt']; + } + + /** + * Sets issuedAt + * + * @param \DateTime $issuedAt issued_at string + * + * @return $this + */ + public function setIssuedAt($issuedAt) + { + $this->container['issuedAt'] = $issuedAt; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdMembersTitles200Ok.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdMembersTitles200Ok.php new file mode 100644 index 0000000..0c60cdd --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdMembersTitles200Ok.php @@ -0,0 +1,345 @@ + 'int', + 'titles' => 'int[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'characterId' => 'int32', + 'titles' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'characterId' => 'character_id', + 'titles' => 'titles' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'characterId' => 'setCharacterId', + 'titles' => 'setTitles' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'characterId' => 'getCharacterId', + 'titles' => 'getTitles' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['characterId'] = isset($data['characterId']) ? $data['characterId'] : null; + $this->container['titles'] = isset($data['titles']) ? $data['titles'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['characterId'] === null) { + $invalidProperties[] = "'characterId' can't be null"; + } + if ($this->container['titles'] === null) { + $invalidProperties[] = "'titles' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['characterId'] === null) { + return false; + } + if ($this->container['titles'] === null) { + return false; + } + return true; + } + + + /** + * Gets characterId + * + * @return int + */ + public function getCharacterId() + { + return $this->container['characterId']; + } + + /** + * Sets characterId + * + * @param int $characterId character_id integer + * + * @return $this + */ + public function setCharacterId($characterId) + { + $this->container['characterId'] = $characterId; + + return $this; + } + + /** + * Gets titles + * + * @return int[] + */ + public function getTitles() + { + return $this->container['titles']; + } + + /** + * Sets titles + * + * @param int[] $titles A list of title_id + * + * @return $this + */ + public function setTitles($titles) + { + $this->container['titles'] = $titles; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdMembertracking200Ok.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdMembertracking200Ok.php new file mode 100644 index 0000000..e1c8479 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdMembertracking200Ok.php @@ -0,0 +1,489 @@ + 'int', + 'startDate' => '\DateTime', + 'baseId' => 'int', + 'logonDate' => '\DateTime', + 'logoffDate' => '\DateTime', + 'locationId' => 'int', + 'shipTypeId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'characterId' => 'int32', + 'startDate' => 'date-time', + 'baseId' => 'int32', + 'logonDate' => 'date-time', + 'logoffDate' => 'date-time', + 'locationId' => 'int64', + 'shipTypeId' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'characterId' => 'character_id', + 'startDate' => 'start_date', + 'baseId' => 'base_id', + 'logonDate' => 'logon_date', + 'logoffDate' => 'logoff_date', + 'locationId' => 'location_id', + 'shipTypeId' => 'ship_type_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'characterId' => 'setCharacterId', + 'startDate' => 'setStartDate', + 'baseId' => 'setBaseId', + 'logonDate' => 'setLogonDate', + 'logoffDate' => 'setLogoffDate', + 'locationId' => 'setLocationId', + 'shipTypeId' => 'setShipTypeId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'characterId' => 'getCharacterId', + 'startDate' => 'getStartDate', + 'baseId' => 'getBaseId', + 'logonDate' => 'getLogonDate', + 'logoffDate' => 'getLogoffDate', + 'locationId' => 'getLocationId', + 'shipTypeId' => 'getShipTypeId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['characterId'] = isset($data['characterId']) ? $data['characterId'] : null; + $this->container['startDate'] = isset($data['startDate']) ? $data['startDate'] : null; + $this->container['baseId'] = isset($data['baseId']) ? $data['baseId'] : null; + $this->container['logonDate'] = isset($data['logonDate']) ? $data['logonDate'] : null; + $this->container['logoffDate'] = isset($data['logoffDate']) ? $data['logoffDate'] : null; + $this->container['locationId'] = isset($data['locationId']) ? $data['locationId'] : null; + $this->container['shipTypeId'] = isset($data['shipTypeId']) ? $data['shipTypeId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['characterId'] === null) { + $invalidProperties[] = "'characterId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['characterId'] === null) { + return false; + } + return true; + } + + + /** + * Gets characterId + * + * @return int + */ + public function getCharacterId() + { + return $this->container['characterId']; + } + + /** + * Sets characterId + * + * @param int $characterId character_id integer + * + * @return $this + */ + public function setCharacterId($characterId) + { + $this->container['characterId'] = $characterId; + + return $this; + } + + /** + * Gets startDate + * + * @return \DateTime + */ + public function getStartDate() + { + return $this->container['startDate']; + } + + /** + * Sets startDate + * + * @param \DateTime $startDate start_date string + * + * @return $this + */ + public function setStartDate($startDate) + { + $this->container['startDate'] = $startDate; + + return $this; + } + + /** + * Gets baseId + * + * @return int + */ + public function getBaseId() + { + return $this->container['baseId']; + } + + /** + * Sets baseId + * + * @param int $baseId base_id integer + * + * @return $this + */ + public function setBaseId($baseId) + { + $this->container['baseId'] = $baseId; + + return $this; + } + + /** + * Gets logonDate + * + * @return \DateTime + */ + public function getLogonDate() + { + return $this->container['logonDate']; + } + + /** + * Sets logonDate + * + * @param \DateTime $logonDate logon_date string + * + * @return $this + */ + public function setLogonDate($logonDate) + { + $this->container['logonDate'] = $logonDate; + + return $this; + } + + /** + * Gets logoffDate + * + * @return \DateTime + */ + public function getLogoffDate() + { + return $this->container['logoffDate']; + } + + /** + * Sets logoffDate + * + * @param \DateTime $logoffDate logoff_date string + * + * @return $this + */ + public function setLogoffDate($logoffDate) + { + $this->container['logoffDate'] = $logoffDate; + + return $this; + } + + /** + * Gets locationId + * + * @return int + */ + public function getLocationId() + { + return $this->container['locationId']; + } + + /** + * Sets locationId + * + * @param int $locationId location_id integer + * + * @return $this + */ + public function setLocationId($locationId) + { + $this->container['locationId'] = $locationId; + + return $this; + } + + /** + * Gets shipTypeId + * + * @return int + */ + public function getShipTypeId() + { + return $this->container['shipTypeId']; + } + + /** + * Sets shipTypeId + * + * @param int $shipTypeId ship_type_id integer + * + * @return $this + */ + public function setShipTypeId($shipTypeId) + { + $this->container['shipTypeId'] = $shipTypeId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdNotFound.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdNotFound.php new file mode 100644 index 0000000..73950a7 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Not found message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdOk.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdOk.php new file mode 100644 index 0000000..c93f9d0 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdOk.php @@ -0,0 +1,721 @@ + 'string', + 'ticker' => 'string', + 'memberCount' => 'int', + 'ceoId' => 'int', + 'allianceId' => 'int', + 'description' => 'string', + 'taxRate' => 'float', + 'dateFounded' => '\DateTime', + 'creatorId' => 'int', + 'url' => 'string', + 'factionId' => 'int', + 'homeStationId' => 'int', + 'shares' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'name' => null, + 'ticker' => null, + 'memberCount' => 'int32', + 'ceoId' => 'int32', + 'allianceId' => 'int32', + 'description' => null, + 'taxRate' => 'float', + 'dateFounded' => 'date-time', + 'creatorId' => 'int32', + 'url' => null, + 'factionId' => 'int32', + 'homeStationId' => 'int32', + 'shares' => 'int64' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'name' => 'name', + 'ticker' => 'ticker', + 'memberCount' => 'member_count', + 'ceoId' => 'ceo_id', + 'allianceId' => 'alliance_id', + 'description' => 'description', + 'taxRate' => 'tax_rate', + 'dateFounded' => 'date_founded', + 'creatorId' => 'creator_id', + 'url' => 'url', + 'factionId' => 'faction_id', + 'homeStationId' => 'home_station_id', + 'shares' => 'shares' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'name' => 'setName', + 'ticker' => 'setTicker', + 'memberCount' => 'setMemberCount', + 'ceoId' => 'setCeoId', + 'allianceId' => 'setAllianceId', + 'description' => 'setDescription', + 'taxRate' => 'setTaxRate', + 'dateFounded' => 'setDateFounded', + 'creatorId' => 'setCreatorId', + 'url' => 'setUrl', + 'factionId' => 'setFactionId', + 'homeStationId' => 'setHomeStationId', + 'shares' => 'setShares' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'name' => 'getName', + 'ticker' => 'getTicker', + 'memberCount' => 'getMemberCount', + 'ceoId' => 'getCeoId', + 'allianceId' => 'getAllianceId', + 'description' => 'getDescription', + 'taxRate' => 'getTaxRate', + 'dateFounded' => 'getDateFounded', + 'creatorId' => 'getCreatorId', + 'url' => 'getUrl', + 'factionId' => 'getFactionId', + 'homeStationId' => 'getHomeStationId', + 'shares' => 'getShares' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['ticker'] = isset($data['ticker']) ? $data['ticker'] : null; + $this->container['memberCount'] = isset($data['memberCount']) ? $data['memberCount'] : null; + $this->container['ceoId'] = isset($data['ceoId']) ? $data['ceoId'] : null; + $this->container['allianceId'] = isset($data['allianceId']) ? $data['allianceId'] : null; + $this->container['description'] = isset($data['description']) ? $data['description'] : null; + $this->container['taxRate'] = isset($data['taxRate']) ? $data['taxRate'] : null; + $this->container['dateFounded'] = isset($data['dateFounded']) ? $data['dateFounded'] : null; + $this->container['creatorId'] = isset($data['creatorId']) ? $data['creatorId'] : null; + $this->container['url'] = isset($data['url']) ? $data['url'] : null; + $this->container['factionId'] = isset($data['factionId']) ? $data['factionId'] : null; + $this->container['homeStationId'] = isset($data['homeStationId']) ? $data['homeStationId'] : null; + $this->container['shares'] = isset($data['shares']) ? $data['shares'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ($this->container['ticker'] === null) { + $invalidProperties[] = "'ticker' can't be null"; + } + if ($this->container['memberCount'] === null) { + $invalidProperties[] = "'memberCount' can't be null"; + } + if ($this->container['ceoId'] === null) { + $invalidProperties[] = "'ceoId' can't be null"; + } + if ($this->container['taxRate'] === null) { + $invalidProperties[] = "'taxRate' can't be null"; + } + if (($this->container['taxRate'] > 1)) { + $invalidProperties[] = "invalid value for 'taxRate', must be smaller than or equal to 1."; + } + + if (($this->container['taxRate'] < 0)) { + $invalidProperties[] = "invalid value for 'taxRate', must be bigger than or equal to 0."; + } + + if ($this->container['creatorId'] === null) { + $invalidProperties[] = "'creatorId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['name'] === null) { + return false; + } + if ($this->container['ticker'] === null) { + return false; + } + if ($this->container['memberCount'] === null) { + return false; + } + if ($this->container['ceoId'] === null) { + return false; + } + if ($this->container['taxRate'] === null) { + return false; + } + if ($this->container['taxRate'] > 1) { + return false; + } + if ($this->container['taxRate'] < 0) { + return false; + } + if ($this->container['creatorId'] === null) { + return false; + } + return true; + } + + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name the full name of the corporation + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets ticker + * + * @return string + */ + public function getTicker() + { + return $this->container['ticker']; + } + + /** + * Sets ticker + * + * @param string $ticker the short name of the corporation + * + * @return $this + */ + public function setTicker($ticker) + { + $this->container['ticker'] = $ticker; + + return $this; + } + + /** + * Gets memberCount + * + * @return int + */ + public function getMemberCount() + { + return $this->container['memberCount']; + } + + /** + * Sets memberCount + * + * @param int $memberCount member_count integer + * + * @return $this + */ + public function setMemberCount($memberCount) + { + $this->container['memberCount'] = $memberCount; + + return $this; + } + + /** + * Gets ceoId + * + * @return int + */ + public function getCeoId() + { + return $this->container['ceoId']; + } + + /** + * Sets ceoId + * + * @param int $ceoId ceo_id integer + * + * @return $this + */ + public function setCeoId($ceoId) + { + $this->container['ceoId'] = $ceoId; + + return $this; + } + + /** + * Gets allianceId + * + * @return int + */ + public function getAllianceId() + { + return $this->container['allianceId']; + } + + /** + * Sets allianceId + * + * @param int $allianceId ID of the alliance that corporation is a member of, if any + * + * @return $this + */ + public function setAllianceId($allianceId) + { + $this->container['allianceId'] = $allianceId; + + return $this; + } + + /** + * Gets description + * + * @return string + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string $description description string + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets taxRate + * + * @return float + */ + public function getTaxRate() + { + return $this->container['taxRate']; + } + + /** + * Sets taxRate + * + * @param float $taxRate tax_rate number + * + * @return $this + */ + public function setTaxRate($taxRate) + { + + if (($taxRate > 1)) { + throw new \InvalidArgumentException('invalid value for $taxRate when calling GetCorporationsCorporationIdOk., must be smaller than or equal to 1.'); + } + if (($taxRate < 0)) { + throw new \InvalidArgumentException('invalid value for $taxRate when calling GetCorporationsCorporationIdOk., must be bigger than or equal to 0.'); + } + + $this->container['taxRate'] = $taxRate; + + return $this; + } + + /** + * Gets dateFounded + * + * @return \DateTime + */ + public function getDateFounded() + { + return $this->container['dateFounded']; + } + + /** + * Sets dateFounded + * + * @param \DateTime $dateFounded date_founded string + * + * @return $this + */ + public function setDateFounded($dateFounded) + { + $this->container['dateFounded'] = $dateFounded; + + return $this; + } + + /** + * Gets creatorId + * + * @return int + */ + public function getCreatorId() + { + return $this->container['creatorId']; + } + + /** + * Sets creatorId + * + * @param int $creatorId creator_id integer + * + * @return $this + */ + public function setCreatorId($creatorId) + { + $this->container['creatorId'] = $creatorId; + + return $this; + } + + /** + * Gets url + * + * @return string + */ + public function getUrl() + { + return $this->container['url']; + } + + /** + * Sets url + * + * @param string $url url string + * + * @return $this + */ + public function setUrl($url) + { + $this->container['url'] = $url; + + return $this; + } + + /** + * Gets factionId + * + * @return int + */ + public function getFactionId() + { + return $this->container['factionId']; + } + + /** + * Sets factionId + * + * @param int $factionId faction_id integer + * + * @return $this + */ + public function setFactionId($factionId) + { + $this->container['factionId'] = $factionId; + + return $this; + } + + /** + * Gets homeStationId + * + * @return int + */ + public function getHomeStationId() + { + return $this->container['homeStationId']; + } + + /** + * Sets homeStationId + * + * @param int $homeStationId home_station_id integer + * + * @return $this + */ + public function setHomeStationId($homeStationId) + { + $this->container['homeStationId'] = $homeStationId; + + return $this; + } + + /** + * Gets shares + * + * @return int + */ + public function getShares() + { + return $this->container['shares']; + } + + /** + * Sets shares + * + * @param int $shares shares integer + * + * @return $this + */ + public function setShares($shares) + { + $this->container['shares'] = $shares; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdOrders200Ok.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdOrders200Ok.php new file mode 100644 index 0000000..fe308c2 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdOrders200Ok.php @@ -0,0 +1,935 @@ + 'int', + 'typeId' => 'int', + 'regionId' => 'int', + 'locationId' => 'int', + 'range' => 'string', + 'isBuyOrder' => 'bool', + 'price' => 'double', + 'volumeTotal' => 'int', + 'volumeRemain' => 'int', + 'issued' => '\DateTime', + 'state' => 'string', + 'minVolume' => 'int', + 'walletDivision' => 'int', + 'duration' => 'int', + 'escrow' => 'double' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'orderId' => 'int64', + 'typeId' => 'int32', + 'regionId' => 'int32', + 'locationId' => 'int64', + 'range' => null, + 'isBuyOrder' => null, + 'price' => 'double', + 'volumeTotal' => 'int32', + 'volumeRemain' => 'int32', + 'issued' => 'date-time', + 'state' => null, + 'minVolume' => 'int32', + 'walletDivision' => 'int32', + 'duration' => 'int32', + 'escrow' => 'double' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'orderId' => 'order_id', + 'typeId' => 'type_id', + 'regionId' => 'region_id', + 'locationId' => 'location_id', + 'range' => 'range', + 'isBuyOrder' => 'is_buy_order', + 'price' => 'price', + 'volumeTotal' => 'volume_total', + 'volumeRemain' => 'volume_remain', + 'issued' => 'issued', + 'state' => 'state', + 'minVolume' => 'min_volume', + 'walletDivision' => 'wallet_division', + 'duration' => 'duration', + 'escrow' => 'escrow' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'orderId' => 'setOrderId', + 'typeId' => 'setTypeId', + 'regionId' => 'setRegionId', + 'locationId' => 'setLocationId', + 'range' => 'setRange', + 'isBuyOrder' => 'setIsBuyOrder', + 'price' => 'setPrice', + 'volumeTotal' => 'setVolumeTotal', + 'volumeRemain' => 'setVolumeRemain', + 'issued' => 'setIssued', + 'state' => 'setState', + 'minVolume' => 'setMinVolume', + 'walletDivision' => 'setWalletDivision', + 'duration' => 'setDuration', + 'escrow' => 'setEscrow' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'orderId' => 'getOrderId', + 'typeId' => 'getTypeId', + 'regionId' => 'getRegionId', + 'locationId' => 'getLocationId', + 'range' => 'getRange', + 'isBuyOrder' => 'getIsBuyOrder', + 'price' => 'getPrice', + 'volumeTotal' => 'getVolumeTotal', + 'volumeRemain' => 'getVolumeRemain', + 'issued' => 'getIssued', + 'state' => 'getState', + 'minVolume' => 'getMinVolume', + 'walletDivision' => 'getWalletDivision', + 'duration' => 'getDuration', + 'escrow' => 'getEscrow' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const RANGE__1 = '1'; + const RANGE__10 = '10'; + const RANGE__2 = '2'; + const RANGE__20 = '20'; + const RANGE__3 = '3'; + const RANGE__30 = '30'; + const RANGE__4 = '4'; + const RANGE__40 = '40'; + const RANGE__5 = '5'; + const RANGE_REGION = 'region'; + const RANGE_SOLARSYSTEM = 'solarsystem'; + const RANGE_STATION = 'station'; + const STATE_CANCELLED = 'cancelled'; + const STATE_CHARACTER_DELETED = 'character_deleted'; + const STATE_CLOSED = 'closed'; + const STATE_EXPIRED = 'expired'; + const STATE_OPEN = 'open'; + const STATE_PENDING = 'pending'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getRangeAllowableValues() + { + return [ + self::RANGE__1, + self::RANGE__10, + self::RANGE__2, + self::RANGE__20, + self::RANGE__3, + self::RANGE__30, + self::RANGE__4, + self::RANGE__40, + self::RANGE__5, + self::RANGE_REGION, + self::RANGE_SOLARSYSTEM, + self::RANGE_STATION, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getStateAllowableValues() + { + return [ + self::STATE_CANCELLED, + self::STATE_CHARACTER_DELETED, + self::STATE_CLOSED, + self::STATE_EXPIRED, + self::STATE_OPEN, + self::STATE_PENDING, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['orderId'] = isset($data['orderId']) ? $data['orderId'] : null; + $this->container['typeId'] = isset($data['typeId']) ? $data['typeId'] : null; + $this->container['regionId'] = isset($data['regionId']) ? $data['regionId'] : null; + $this->container['locationId'] = isset($data['locationId']) ? $data['locationId'] : null; + $this->container['range'] = isset($data['range']) ? $data['range'] : null; + $this->container['isBuyOrder'] = isset($data['isBuyOrder']) ? $data['isBuyOrder'] : null; + $this->container['price'] = isset($data['price']) ? $data['price'] : null; + $this->container['volumeTotal'] = isset($data['volumeTotal']) ? $data['volumeTotal'] : null; + $this->container['volumeRemain'] = isset($data['volumeRemain']) ? $data['volumeRemain'] : null; + $this->container['issued'] = isset($data['issued']) ? $data['issued'] : null; + $this->container['state'] = isset($data['state']) ? $data['state'] : null; + $this->container['minVolume'] = isset($data['minVolume']) ? $data['minVolume'] : null; + $this->container['walletDivision'] = isset($data['walletDivision']) ? $data['walletDivision'] : null; + $this->container['duration'] = isset($data['duration']) ? $data['duration'] : null; + $this->container['escrow'] = isset($data['escrow']) ? $data['escrow'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['orderId'] === null) { + $invalidProperties[] = "'orderId' can't be null"; + } + if ($this->container['typeId'] === null) { + $invalidProperties[] = "'typeId' can't be null"; + } + if ($this->container['regionId'] === null) { + $invalidProperties[] = "'regionId' can't be null"; + } + if ($this->container['locationId'] === null) { + $invalidProperties[] = "'locationId' can't be null"; + } + if ($this->container['range'] === null) { + $invalidProperties[] = "'range' can't be null"; + } + $allowedValues = $this->getRangeAllowableValues(); + if (!in_array($this->container['range'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'range', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['isBuyOrder'] === null) { + $invalidProperties[] = "'isBuyOrder' can't be null"; + } + if ($this->container['price'] === null) { + $invalidProperties[] = "'price' can't be null"; + } + if ($this->container['volumeTotal'] === null) { + $invalidProperties[] = "'volumeTotal' can't be null"; + } + if ($this->container['volumeRemain'] === null) { + $invalidProperties[] = "'volumeRemain' can't be null"; + } + if ($this->container['issued'] === null) { + $invalidProperties[] = "'issued' can't be null"; + } + if ($this->container['state'] === null) { + $invalidProperties[] = "'state' can't be null"; + } + $allowedValues = $this->getStateAllowableValues(); + if (!in_array($this->container['state'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'state', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['minVolume'] === null) { + $invalidProperties[] = "'minVolume' can't be null"; + } + if ($this->container['walletDivision'] === null) { + $invalidProperties[] = "'walletDivision' can't be null"; + } + if (($this->container['walletDivision'] > 7)) { + $invalidProperties[] = "invalid value for 'walletDivision', must be smaller than or equal to 7."; + } + + if (($this->container['walletDivision'] < 1)) { + $invalidProperties[] = "invalid value for 'walletDivision', must be bigger than or equal to 1."; + } + + if ($this->container['duration'] === null) { + $invalidProperties[] = "'duration' can't be null"; + } + if ($this->container['escrow'] === null) { + $invalidProperties[] = "'escrow' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['orderId'] === null) { + return false; + } + if ($this->container['typeId'] === null) { + return false; + } + if ($this->container['regionId'] === null) { + return false; + } + if ($this->container['locationId'] === null) { + return false; + } + if ($this->container['range'] === null) { + return false; + } + $allowedValues = $this->getRangeAllowableValues(); + if (!in_array($this->container['range'], $allowedValues)) { + return false; + } + if ($this->container['isBuyOrder'] === null) { + return false; + } + if ($this->container['price'] === null) { + return false; + } + if ($this->container['volumeTotal'] === null) { + return false; + } + if ($this->container['volumeRemain'] === null) { + return false; + } + if ($this->container['issued'] === null) { + return false; + } + if ($this->container['state'] === null) { + return false; + } + $allowedValues = $this->getStateAllowableValues(); + if (!in_array($this->container['state'], $allowedValues)) { + return false; + } + if ($this->container['minVolume'] === null) { + return false; + } + if ($this->container['walletDivision'] === null) { + return false; + } + if ($this->container['walletDivision'] > 7) { + return false; + } + if ($this->container['walletDivision'] < 1) { + return false; + } + if ($this->container['duration'] === null) { + return false; + } + if ($this->container['escrow'] === null) { + return false; + } + return true; + } + + + /** + * Gets orderId + * + * @return int + */ + public function getOrderId() + { + return $this->container['orderId']; + } + + /** + * Sets orderId + * + * @param int $orderId Unique order ID + * + * @return $this + */ + public function setOrderId($orderId) + { + $this->container['orderId'] = $orderId; + + return $this; + } + + /** + * Gets typeId + * + * @return int + */ + public function getTypeId() + { + return $this->container['typeId']; + } + + /** + * Sets typeId + * + * @param int $typeId The type ID of the item transacted in this order + * + * @return $this + */ + public function setTypeId($typeId) + { + $this->container['typeId'] = $typeId; + + return $this; + } + + /** + * Gets regionId + * + * @return int + */ + public function getRegionId() + { + return $this->container['regionId']; + } + + /** + * Sets regionId + * + * @param int $regionId ID of the region where order was placed + * + * @return $this + */ + public function setRegionId($regionId) + { + $this->container['regionId'] = $regionId; + + return $this; + } + + /** + * Gets locationId + * + * @return int + */ + public function getLocationId() + { + return $this->container['locationId']; + } + + /** + * Sets locationId + * + * @param int $locationId ID of the location where order was placed + * + * @return $this + */ + public function setLocationId($locationId) + { + $this->container['locationId'] = $locationId; + + return $this; + } + + /** + * Gets range + * + * @return string + */ + public function getRange() + { + return $this->container['range']; + } + + /** + * Sets range + * + * @param string $range Valid order range, numbers are ranges in jumps + * + * @return $this + */ + public function setRange($range) + { + $allowedValues = $this->getRangeAllowableValues(); + if (!in_array($range, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'range', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['range'] = $range; + + return $this; + } + + /** + * Gets isBuyOrder + * + * @return bool + */ + public function getIsBuyOrder() + { + return $this->container['isBuyOrder']; + } + + /** + * Sets isBuyOrder + * + * @param bool $isBuyOrder True for a bid (buy) order. False for an offer (sell) order + * + * @return $this + */ + public function setIsBuyOrder($isBuyOrder) + { + $this->container['isBuyOrder'] = $isBuyOrder; + + return $this; + } + + /** + * Gets price + * + * @return double + */ + public function getPrice() + { + return $this->container['price']; + } + + /** + * Sets price + * + * @param double $price Cost per unit for this order + * + * @return $this + */ + public function setPrice($price) + { + $this->container['price'] = $price; + + return $this; + } + + /** + * Gets volumeTotal + * + * @return int + */ + public function getVolumeTotal() + { + return $this->container['volumeTotal']; + } + + /** + * Sets volumeTotal + * + * @param int $volumeTotal Quantity of items required or offered at time order was placed + * + * @return $this + */ + public function setVolumeTotal($volumeTotal) + { + $this->container['volumeTotal'] = $volumeTotal; + + return $this; + } + + /** + * Gets volumeRemain + * + * @return int + */ + public function getVolumeRemain() + { + return $this->container['volumeRemain']; + } + + /** + * Sets volumeRemain + * + * @param int $volumeRemain Quantity of items still required or offered + * + * @return $this + */ + public function setVolumeRemain($volumeRemain) + { + $this->container['volumeRemain'] = $volumeRemain; + + return $this; + } + + /** + * Gets issued + * + * @return \DateTime + */ + public function getIssued() + { + return $this->container['issued']; + } + + /** + * Sets issued + * + * @param \DateTime $issued Date and time when this order was issued + * + * @return $this + */ + public function setIssued($issued) + { + $this->container['issued'] = $issued; + + return $this; + } + + /** + * Gets state + * + * @return string + */ + public function getState() + { + return $this->container['state']; + } + + /** + * Sets state + * + * @param string $state Current order state + * + * @return $this + */ + public function setState($state) + { + $allowedValues = $this->getStateAllowableValues(); + if (!in_array($state, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'state', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['state'] = $state; + + return $this; + } + + /** + * Gets minVolume + * + * @return int + */ + public function getMinVolume() + { + return $this->container['minVolume']; + } + + /** + * Sets minVolume + * + * @param int $minVolume For bids (buy orders), the minimum quantity that will be accepted in a matching offer (sell order) + * + * @return $this + */ + public function setMinVolume($minVolume) + { + $this->container['minVolume'] = $minVolume; + + return $this; + } + + /** + * Gets walletDivision + * + * @return int + */ + public function getWalletDivision() + { + return $this->container['walletDivision']; + } + + /** + * Sets walletDivision + * + * @param int $walletDivision Wallet division of which this order used + * + * @return $this + */ + public function setWalletDivision($walletDivision) + { + + if (($walletDivision > 7)) { + throw new \InvalidArgumentException('invalid value for $walletDivision when calling GetCorporationsCorporationIdOrders200Ok., must be smaller than or equal to 7.'); + } + if (($walletDivision < 1)) { + throw new \InvalidArgumentException('invalid value for $walletDivision when calling GetCorporationsCorporationIdOrders200Ok., must be bigger than or equal to 1.'); + } + + $this->container['walletDivision'] = $walletDivision; + + return $this; + } + + /** + * Gets duration + * + * @return int + */ + public function getDuration() + { + return $this->container['duration']; + } + + /** + * Sets duration + * + * @param int $duration Numer of days for which order is valid (starting from the issued date). An order expires at time issued + duration + * + * @return $this + */ + public function setDuration($duration) + { + $this->container['duration'] = $duration; + + return $this; + } + + /** + * Gets escrow + * + * @return double + */ + public function getEscrow() + { + return $this->container['escrow']; + } + + /** + * Sets escrow + * + * @param double $escrow For buy orders, the amount of ISK in escrow + * + * @return $this + */ + public function setEscrow($escrow) + { + $this->container['escrow'] = $escrow; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdOutpostsOutpostIdCoordinates.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdOutpostsOutpostIdCoordinates.php new file mode 100644 index 0000000..565bb20 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdOutpostsOutpostIdCoordinates.php @@ -0,0 +1,381 @@ + 'double', + 'y' => 'double', + 'z' => 'double' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'x' => 'double', + 'y' => 'double', + 'z' => 'double' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'x' => 'x', + 'y' => 'y', + 'z' => 'z' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'x' => 'setX', + 'y' => 'setY', + 'z' => 'setZ' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'x' => 'getX', + 'y' => 'getY', + 'z' => 'getZ' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['x'] = isset($data['x']) ? $data['x'] : null; + $this->container['y'] = isset($data['y']) ? $data['y'] : null; + $this->container['z'] = isset($data['z']) ? $data['z'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['x'] === null) { + $invalidProperties[] = "'x' can't be null"; + } + if ($this->container['y'] === null) { + $invalidProperties[] = "'y' can't be null"; + } + if ($this->container['z'] === null) { + $invalidProperties[] = "'z' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['x'] === null) { + return false; + } + if ($this->container['y'] === null) { + return false; + } + if ($this->container['z'] === null) { + return false; + } + return true; + } + + + /** + * Gets x + * + * @return double + */ + public function getX() + { + return $this->container['x']; + } + + /** + * Sets x + * + * @param double $x x number + * + * @return $this + */ + public function setX($x) + { + $this->container['x'] = $x; + + return $this; + } + + /** + * Gets y + * + * @return double + */ + public function getY() + { + return $this->container['y']; + } + + /** + * Sets y + * + * @param double $y y number + * + * @return $this + */ + public function setY($y) + { + $this->container['y'] = $y; + + return $this; + } + + /** + * Gets z + * + * @return double + */ + public function getZ() + { + return $this->container['z']; + } + + /** + * Sets z + * + * @param double $z z number + * + * @return $this + */ + public function setZ($z) + { + $this->container['z'] = $z; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdOutpostsOutpostIdOk.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdOutpostsOutpostIdOk.php new file mode 100644 index 0000000..f810b8d --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdOutpostsOutpostIdOk.php @@ -0,0 +1,633 @@ + 'int', + 'systemId' => 'int', + 'dockingCostPerShipVolume' => 'float', + 'officeRentalCost' => 'int', + 'typeId' => 'int', + 'reprocessingEfficiency' => 'float', + 'reprocessingStationTake' => 'float', + 'standingOwnerId' => 'int', + 'coordinates' => '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdOutpostsOutpostIdCoordinates', + 'services' => '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdOutpostsOutpostIdService[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'ownerId' => 'int32', + 'systemId' => 'int32', + 'dockingCostPerShipVolume' => 'float', + 'officeRentalCost' => 'int64', + 'typeId' => 'int32', + 'reprocessingEfficiency' => 'float', + 'reprocessingStationTake' => 'float', + 'standingOwnerId' => 'int32', + 'coordinates' => null, + 'services' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'ownerId' => 'owner_id', + 'systemId' => 'system_id', + 'dockingCostPerShipVolume' => 'docking_cost_per_ship_volume', + 'officeRentalCost' => 'office_rental_cost', + 'typeId' => 'type_id', + 'reprocessingEfficiency' => 'reprocessing_efficiency', + 'reprocessingStationTake' => 'reprocessing_station_take', + 'standingOwnerId' => 'standing_owner_id', + 'coordinates' => 'coordinates', + 'services' => 'services' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'ownerId' => 'setOwnerId', + 'systemId' => 'setSystemId', + 'dockingCostPerShipVolume' => 'setDockingCostPerShipVolume', + 'officeRentalCost' => 'setOfficeRentalCost', + 'typeId' => 'setTypeId', + 'reprocessingEfficiency' => 'setReprocessingEfficiency', + 'reprocessingStationTake' => 'setReprocessingStationTake', + 'standingOwnerId' => 'setStandingOwnerId', + 'coordinates' => 'setCoordinates', + 'services' => 'setServices' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'ownerId' => 'getOwnerId', + 'systemId' => 'getSystemId', + 'dockingCostPerShipVolume' => 'getDockingCostPerShipVolume', + 'officeRentalCost' => 'getOfficeRentalCost', + 'typeId' => 'getTypeId', + 'reprocessingEfficiency' => 'getReprocessingEfficiency', + 'reprocessingStationTake' => 'getReprocessingStationTake', + 'standingOwnerId' => 'getStandingOwnerId', + 'coordinates' => 'getCoordinates', + 'services' => 'getServices' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['ownerId'] = isset($data['ownerId']) ? $data['ownerId'] : null; + $this->container['systemId'] = isset($data['systemId']) ? $data['systemId'] : null; + $this->container['dockingCostPerShipVolume'] = isset($data['dockingCostPerShipVolume']) ? $data['dockingCostPerShipVolume'] : null; + $this->container['officeRentalCost'] = isset($data['officeRentalCost']) ? $data['officeRentalCost'] : null; + $this->container['typeId'] = isset($data['typeId']) ? $data['typeId'] : null; + $this->container['reprocessingEfficiency'] = isset($data['reprocessingEfficiency']) ? $data['reprocessingEfficiency'] : null; + $this->container['reprocessingStationTake'] = isset($data['reprocessingStationTake']) ? $data['reprocessingStationTake'] : null; + $this->container['standingOwnerId'] = isset($data['standingOwnerId']) ? $data['standingOwnerId'] : null; + $this->container['coordinates'] = isset($data['coordinates']) ? $data['coordinates'] : null; + $this->container['services'] = isset($data['services']) ? $data['services'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['ownerId'] === null) { + $invalidProperties[] = "'ownerId' can't be null"; + } + if ($this->container['systemId'] === null) { + $invalidProperties[] = "'systemId' can't be null"; + } + if ($this->container['dockingCostPerShipVolume'] === null) { + $invalidProperties[] = "'dockingCostPerShipVolume' can't be null"; + } + if ($this->container['officeRentalCost'] === null) { + $invalidProperties[] = "'officeRentalCost' can't be null"; + } + if ($this->container['typeId'] === null) { + $invalidProperties[] = "'typeId' can't be null"; + } + if ($this->container['reprocessingEfficiency'] === null) { + $invalidProperties[] = "'reprocessingEfficiency' can't be null"; + } + if ($this->container['reprocessingStationTake'] === null) { + $invalidProperties[] = "'reprocessingStationTake' can't be null"; + } + if ($this->container['standingOwnerId'] === null) { + $invalidProperties[] = "'standingOwnerId' can't be null"; + } + if ($this->container['coordinates'] === null) { + $invalidProperties[] = "'coordinates' can't be null"; + } + if ($this->container['services'] === null) { + $invalidProperties[] = "'services' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['ownerId'] === null) { + return false; + } + if ($this->container['systemId'] === null) { + return false; + } + if ($this->container['dockingCostPerShipVolume'] === null) { + return false; + } + if ($this->container['officeRentalCost'] === null) { + return false; + } + if ($this->container['typeId'] === null) { + return false; + } + if ($this->container['reprocessingEfficiency'] === null) { + return false; + } + if ($this->container['reprocessingStationTake'] === null) { + return false; + } + if ($this->container['standingOwnerId'] === null) { + return false; + } + if ($this->container['coordinates'] === null) { + return false; + } + if ($this->container['services'] === null) { + return false; + } + return true; + } + + + /** + * Gets ownerId + * + * @return int + */ + public function getOwnerId() + { + return $this->container['ownerId']; + } + + /** + * Sets ownerId + * + * @param int $ownerId The entity that owns the station (e.g. the entity whose logo is on the station services bar) + * + * @return $this + */ + public function setOwnerId($ownerId) + { + $this->container['ownerId'] = $ownerId; + + return $this; + } + + /** + * Gets systemId + * + * @return int + */ + public function getSystemId() + { + return $this->container['systemId']; + } + + /** + * Sets systemId + * + * @param int $systemId The ID of the solar system the outpost rests in + * + * @return $this + */ + public function setSystemId($systemId) + { + $this->container['systemId'] = $systemId; + + return $this; + } + + /** + * Gets dockingCostPerShipVolume + * + * @return float + */ + public function getDockingCostPerShipVolume() + { + return $this->container['dockingCostPerShipVolume']; + } + + /** + * Sets dockingCostPerShipVolume + * + * @param float $dockingCostPerShipVolume docking_cost_per_ship_volume number + * + * @return $this + */ + public function setDockingCostPerShipVolume($dockingCostPerShipVolume) + { + $this->container['dockingCostPerShipVolume'] = $dockingCostPerShipVolume; + + return $this; + } + + /** + * Gets officeRentalCost + * + * @return int + */ + public function getOfficeRentalCost() + { + return $this->container['officeRentalCost']; + } + + /** + * Sets officeRentalCost + * + * @param int $officeRentalCost office_rental_cost integer + * + * @return $this + */ + public function setOfficeRentalCost($officeRentalCost) + { + $this->container['officeRentalCost'] = $officeRentalCost; + + return $this; + } + + /** + * Gets typeId + * + * @return int + */ + public function getTypeId() + { + return $this->container['typeId']; + } + + /** + * Sets typeId + * + * @param int $typeId The type ID of the given outpost + * + * @return $this + */ + public function setTypeId($typeId) + { + $this->container['typeId'] = $typeId; + + return $this; + } + + /** + * Gets reprocessingEfficiency + * + * @return float + */ + public function getReprocessingEfficiency() + { + return $this->container['reprocessingEfficiency']; + } + + /** + * Sets reprocessingEfficiency + * + * @param float $reprocessingEfficiency reprocessing_efficiency number + * + * @return $this + */ + public function setReprocessingEfficiency($reprocessingEfficiency) + { + $this->container['reprocessingEfficiency'] = $reprocessingEfficiency; + + return $this; + } + + /** + * Gets reprocessingStationTake + * + * @return float + */ + public function getReprocessingStationTake() + { + return $this->container['reprocessingStationTake']; + } + + /** + * Sets reprocessingStationTake + * + * @param float $reprocessingStationTake reprocessing_station_take number + * + * @return $this + */ + public function setReprocessingStationTake($reprocessingStationTake) + { + $this->container['reprocessingStationTake'] = $reprocessingStationTake; + + return $this; + } + + /** + * Gets standingOwnerId + * + * @return int + */ + public function getStandingOwnerId() + { + return $this->container['standingOwnerId']; + } + + /** + * Sets standingOwnerId + * + * @param int $standingOwnerId The owner ID that sets the ability for someone to dock based on standings. + * + * @return $this + */ + public function setStandingOwnerId($standingOwnerId) + { + $this->container['standingOwnerId'] = $standingOwnerId; + + return $this; + } + + /** + * Gets coordinates + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdOutpostsOutpostIdCoordinates + */ + public function getCoordinates() + { + return $this->container['coordinates']; + } + + /** + * Sets coordinates + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdOutpostsOutpostIdCoordinates $coordinates coordinates + * + * @return $this + */ + public function setCoordinates($coordinates) + { + $this->container['coordinates'] = $coordinates; + + return $this; + } + + /** + * Gets services + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdOutpostsOutpostIdService[] + */ + public function getServices() + { + return $this->container['services']; + } + + /** + * Sets services + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdOutpostsOutpostIdService[] $services A list of services the given outpost provides + * + * @return $this + */ + public function setServices($services) + { + $this->container['services'] = $services; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdOutpostsOutpostIdService.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdOutpostsOutpostIdService.php new file mode 100644 index 0000000..e92ed32 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdOutpostsOutpostIdService.php @@ -0,0 +1,503 @@ + 'string', + 'minimumStanding' => 'double', + 'surchargePerBadStanding' => 'double', + 'discountPerGoodStanding' => 'double' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'serviceName' => null, + 'minimumStanding' => 'double', + 'surchargePerBadStanding' => 'double', + 'discountPerGoodStanding' => 'double' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'serviceName' => 'service_name', + 'minimumStanding' => 'minimum_standing', + 'surchargePerBadStanding' => 'surcharge_per_bad_standing', + 'discountPerGoodStanding' => 'discount_per_good_standing' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'serviceName' => 'setServiceName', + 'minimumStanding' => 'setMinimumStanding', + 'surchargePerBadStanding' => 'setSurchargePerBadStanding', + 'discountPerGoodStanding' => 'setDiscountPerGoodStanding' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'serviceName' => 'getServiceName', + 'minimumStanding' => 'getMinimumStanding', + 'surchargePerBadStanding' => 'getSurchargePerBadStanding', + 'discountPerGoodStanding' => 'getDiscountPerGoodStanding' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const SERVICE_NAME_BOUNTY_MISSIONS = 'Bounty Missions'; + const SERVICE_NAME_ASSASSINATION_MISSIONS = 'Assassination Missions'; + const SERVICE_NAME_COURIER_MISSIONS = 'Courier Missions'; + const SERVICE_NAME_INTERBUS = 'Interbus'; + const SERVICE_NAME_REPROCESSING_PLANT = 'Reprocessing Plant'; + const SERVICE_NAME_REFINERY = 'Refinery'; + const SERVICE_NAME_MARKET = 'Market'; + const SERVICE_NAME_BLACK_MARKET = 'Black Market'; + const SERVICE_NAME_STOCK_EXCHANGE = 'Stock Exchange'; + const SERVICE_NAME_CLONING = 'Cloning'; + const SERVICE_NAME_SURGERY = 'Surgery'; + const SERVICE_NAME_DNA_THERAPY = 'DNA Therapy'; + const SERVICE_NAME_REPAIR_FACILITIES = 'Repair Facilities'; + const SERVICE_NAME_FACTORY = 'Factory'; + const SERVICE_NAME_LABORATORY = 'Laboratory'; + const SERVICE_NAME_GAMBLING = 'Gambling'; + const SERVICE_NAME_FITTING = 'Fitting'; + const SERVICE_NAME_PAINTSHOP = 'Paintshop'; + const SERVICE_NAME_NEWS = 'News'; + const SERVICE_NAME_STORAGE = 'Storage'; + const SERVICE_NAME_INSURANCE = 'Insurance'; + const SERVICE_NAME_DOCKING = 'Docking'; + const SERVICE_NAME_OFFICE_RENTAL = 'Office Rental'; + const SERVICE_NAME_JUMP_CLONE_FACILITY = 'Jump Clone Facility'; + const SERVICE_NAME_LOYALTY_POINT_STORE = 'Loyalty Point Store'; + const SERVICE_NAME_NAVY_OFFICES = 'Navy Offices'; + const SERVICE_NAME_SECURITY_OFFICE = 'Security Office'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getServiceNameAllowableValues() + { + return [ + self::SERVICE_NAME_BOUNTY_MISSIONS, + self::SERVICE_NAME_ASSASSINATION_MISSIONS, + self::SERVICE_NAME_COURIER_MISSIONS, + self::SERVICE_NAME_INTERBUS, + self::SERVICE_NAME_REPROCESSING_PLANT, + self::SERVICE_NAME_REFINERY, + self::SERVICE_NAME_MARKET, + self::SERVICE_NAME_BLACK_MARKET, + self::SERVICE_NAME_STOCK_EXCHANGE, + self::SERVICE_NAME_CLONING, + self::SERVICE_NAME_SURGERY, + self::SERVICE_NAME_DNA_THERAPY, + self::SERVICE_NAME_REPAIR_FACILITIES, + self::SERVICE_NAME_FACTORY, + self::SERVICE_NAME_LABORATORY, + self::SERVICE_NAME_GAMBLING, + self::SERVICE_NAME_FITTING, + self::SERVICE_NAME_PAINTSHOP, + self::SERVICE_NAME_NEWS, + self::SERVICE_NAME_STORAGE, + self::SERVICE_NAME_INSURANCE, + self::SERVICE_NAME_DOCKING, + self::SERVICE_NAME_OFFICE_RENTAL, + self::SERVICE_NAME_JUMP_CLONE_FACILITY, + self::SERVICE_NAME_LOYALTY_POINT_STORE, + self::SERVICE_NAME_NAVY_OFFICES, + self::SERVICE_NAME_SECURITY_OFFICE, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['serviceName'] = isset($data['serviceName']) ? $data['serviceName'] : null; + $this->container['minimumStanding'] = isset($data['minimumStanding']) ? $data['minimumStanding'] : null; + $this->container['surchargePerBadStanding'] = isset($data['surchargePerBadStanding']) ? $data['surchargePerBadStanding'] : null; + $this->container['discountPerGoodStanding'] = isset($data['discountPerGoodStanding']) ? $data['discountPerGoodStanding'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['serviceName'] === null) { + $invalidProperties[] = "'serviceName' can't be null"; + } + $allowedValues = $this->getServiceNameAllowableValues(); + if (!in_array($this->container['serviceName'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'serviceName', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['minimumStanding'] === null) { + $invalidProperties[] = "'minimumStanding' can't be null"; + } + if ($this->container['surchargePerBadStanding'] === null) { + $invalidProperties[] = "'surchargePerBadStanding' can't be null"; + } + if ($this->container['discountPerGoodStanding'] === null) { + $invalidProperties[] = "'discountPerGoodStanding' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['serviceName'] === null) { + return false; + } + $allowedValues = $this->getServiceNameAllowableValues(); + if (!in_array($this->container['serviceName'], $allowedValues)) { + return false; + } + if ($this->container['minimumStanding'] === null) { + return false; + } + if ($this->container['surchargePerBadStanding'] === null) { + return false; + } + if ($this->container['discountPerGoodStanding'] === null) { + return false; + } + return true; + } + + + /** + * Gets serviceName + * + * @return string + */ + public function getServiceName() + { + return $this->container['serviceName']; + } + + /** + * Sets serviceName + * + * @param string $serviceName service_name string + * + * @return $this + */ + public function setServiceName($serviceName) + { + $allowedValues = $this->getServiceNameAllowableValues(); + if (!in_array($serviceName, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'serviceName', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['serviceName'] = $serviceName; + + return $this; + } + + /** + * Gets minimumStanding + * + * @return double + */ + public function getMinimumStanding() + { + return $this->container['minimumStanding']; + } + + /** + * Sets minimumStanding + * + * @param double $minimumStanding minimum_standing number + * + * @return $this + */ + public function setMinimumStanding($minimumStanding) + { + $this->container['minimumStanding'] = $minimumStanding; + + return $this; + } + + /** + * Gets surchargePerBadStanding + * + * @return double + */ + public function getSurchargePerBadStanding() + { + return $this->container['surchargePerBadStanding']; + } + + /** + * Sets surchargePerBadStanding + * + * @param double $surchargePerBadStanding surcharge_per_bad_standing number + * + * @return $this + */ + public function setSurchargePerBadStanding($surchargePerBadStanding) + { + $this->container['surchargePerBadStanding'] = $surchargePerBadStanding; + + return $this; + } + + /** + * Gets discountPerGoodStanding + * + * @return double + */ + public function getDiscountPerGoodStanding() + { + return $this->container['discountPerGoodStanding']; + } + + /** + * Sets discountPerGoodStanding + * + * @param double $discountPerGoodStanding discount_per_good_standing number + * + * @return $this + */ + public function setDiscountPerGoodStanding($discountPerGoodStanding) + { + $this->container['discountPerGoodStanding'] = $discountPerGoodStanding; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdRoles200Ok.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdRoles200Ok.php new file mode 100644 index 0000000..c816151 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdRoles200Ok.php @@ -0,0 +1,1509 @@ + 'int', + 'roles' => 'string[]', + 'grantableRoles' => 'string[]', + 'rolesAtHq' => 'string[]', + 'grantableRolesAtHq' => 'string[]', + 'rolesAtBase' => 'string[]', + 'grantableRolesAtBase' => 'string[]', + 'rolesAtOther' => 'string[]', + 'grantableRolesAtOther' => 'string[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'characterId' => 'int32', + 'roles' => null, + 'grantableRoles' => null, + 'rolesAtHq' => null, + 'grantableRolesAtHq' => null, + 'rolesAtBase' => null, + 'grantableRolesAtBase' => null, + 'rolesAtOther' => null, + 'grantableRolesAtOther' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'characterId' => 'character_id', + 'roles' => 'roles', + 'grantableRoles' => 'grantable_roles', + 'rolesAtHq' => 'roles_at_hq', + 'grantableRolesAtHq' => 'grantable_roles_at_hq', + 'rolesAtBase' => 'roles_at_base', + 'grantableRolesAtBase' => 'grantable_roles_at_base', + 'rolesAtOther' => 'roles_at_other', + 'grantableRolesAtOther' => 'grantable_roles_at_other' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'characterId' => 'setCharacterId', + 'roles' => 'setRoles', + 'grantableRoles' => 'setGrantableRoles', + 'rolesAtHq' => 'setRolesAtHq', + 'grantableRolesAtHq' => 'setGrantableRolesAtHq', + 'rolesAtBase' => 'setRolesAtBase', + 'grantableRolesAtBase' => 'setGrantableRolesAtBase', + 'rolesAtOther' => 'setRolesAtOther', + 'grantableRolesAtOther' => 'setGrantableRolesAtOther' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'characterId' => 'getCharacterId', + 'roles' => 'getRoles', + 'grantableRoles' => 'getGrantableRoles', + 'rolesAtHq' => 'getRolesAtHq', + 'grantableRolesAtHq' => 'getGrantableRolesAtHq', + 'rolesAtBase' => 'getRolesAtBase', + 'grantableRolesAtBase' => 'getGrantableRolesAtBase', + 'rolesAtOther' => 'getRolesAtOther', + 'grantableRolesAtOther' => 'getGrantableRolesAtOther' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const ROLES_ACCOUNT_TAKE_1 = 'Account_Take_1'; + const ROLES_ACCOUNT_TAKE_2 = 'Account_Take_2'; + const ROLES_ACCOUNT_TAKE_3 = 'Account_Take_3'; + const ROLES_ACCOUNT_TAKE_4 = 'Account_Take_4'; + const ROLES_ACCOUNT_TAKE_5 = 'Account_Take_5'; + const ROLES_ACCOUNT_TAKE_6 = 'Account_Take_6'; + const ROLES_ACCOUNT_TAKE_7 = 'Account_Take_7'; + const ROLES_ACCOUNTANT = 'Accountant'; + const ROLES_AUDITOR = 'Auditor'; + const ROLES_COMMUNICATIONS_OFFICER = 'Communications_Officer'; + const ROLES_CONFIG_EQUIPMENT = 'Config_Equipment'; + const ROLES_CONFIG_STARBASE_EQUIPMENT = 'Config_Starbase_Equipment'; + const ROLES_CONTAINER_TAKE_1 = 'Container_Take_1'; + const ROLES_CONTAINER_TAKE_2 = 'Container_Take_2'; + const ROLES_CONTAINER_TAKE_3 = 'Container_Take_3'; + const ROLES_CONTAINER_TAKE_4 = 'Container_Take_4'; + const ROLES_CONTAINER_TAKE_5 = 'Container_Take_5'; + const ROLES_CONTAINER_TAKE_6 = 'Container_Take_6'; + const ROLES_CONTAINER_TAKE_7 = 'Container_Take_7'; + const ROLES_CONTRACT_MANAGER = 'Contract_Manager'; + const ROLES_DIPLOMAT = 'Diplomat'; + const ROLES_DIRECTOR = 'Director'; + const ROLES_FACTORY_MANAGER = 'Factory_Manager'; + const ROLES_FITTING_MANAGER = 'Fitting_Manager'; + const ROLES_HANGAR_QUERY_1 = 'Hangar_Query_1'; + const ROLES_HANGAR_QUERY_2 = 'Hangar_Query_2'; + const ROLES_HANGAR_QUERY_3 = 'Hangar_Query_3'; + const ROLES_HANGAR_QUERY_4 = 'Hangar_Query_4'; + const ROLES_HANGAR_QUERY_5 = 'Hangar_Query_5'; + const ROLES_HANGAR_QUERY_6 = 'Hangar_Query_6'; + const ROLES_HANGAR_QUERY_7 = 'Hangar_Query_7'; + const ROLES_HANGAR_TAKE_1 = 'Hangar_Take_1'; + const ROLES_HANGAR_TAKE_2 = 'Hangar_Take_2'; + const ROLES_HANGAR_TAKE_3 = 'Hangar_Take_3'; + const ROLES_HANGAR_TAKE_4 = 'Hangar_Take_4'; + const ROLES_HANGAR_TAKE_5 = 'Hangar_Take_5'; + const ROLES_HANGAR_TAKE_6 = 'Hangar_Take_6'; + const ROLES_HANGAR_TAKE_7 = 'Hangar_Take_7'; + const ROLES_JUNIOR_ACCOUNTANT = 'Junior_Accountant'; + const ROLES_PERSONNEL_MANAGER = 'Personnel_Manager'; + const ROLES_RENT_FACTORY_FACILITY = 'Rent_Factory_Facility'; + const ROLES_RENT_OFFICE = 'Rent_Office'; + const ROLES_RENT_RESEARCH_FACILITY = 'Rent_Research_Facility'; + const ROLES_SECURITY_OFFICER = 'Security_Officer'; + const ROLES_STARBASE_DEFENSE_OPERATOR = 'Starbase_Defense_Operator'; + const ROLES_STARBASE_FUEL_TECHNICIAN = 'Starbase_Fuel_Technician'; + const ROLES_STATION_MANAGER = 'Station_Manager'; + const ROLES_TERRESTRIAL_COMBAT_OFFICER = 'Terrestrial_Combat_Officer'; + const ROLES_TERRESTRIAL_LOGISTICS_OFFICER = 'Terrestrial_Logistics_Officer'; + const ROLES_TRADER = 'Trader'; + const GRANTABLE_ROLES_ACCOUNT_TAKE_1 = 'Account_Take_1'; + const GRANTABLE_ROLES_ACCOUNT_TAKE_2 = 'Account_Take_2'; + const GRANTABLE_ROLES_ACCOUNT_TAKE_3 = 'Account_Take_3'; + const GRANTABLE_ROLES_ACCOUNT_TAKE_4 = 'Account_Take_4'; + const GRANTABLE_ROLES_ACCOUNT_TAKE_5 = 'Account_Take_5'; + const GRANTABLE_ROLES_ACCOUNT_TAKE_6 = 'Account_Take_6'; + const GRANTABLE_ROLES_ACCOUNT_TAKE_7 = 'Account_Take_7'; + const GRANTABLE_ROLES_ACCOUNTANT = 'Accountant'; + const GRANTABLE_ROLES_AUDITOR = 'Auditor'; + const GRANTABLE_ROLES_COMMUNICATIONS_OFFICER = 'Communications_Officer'; + const GRANTABLE_ROLES_CONFIG_EQUIPMENT = 'Config_Equipment'; + const GRANTABLE_ROLES_CONFIG_STARBASE_EQUIPMENT = 'Config_Starbase_Equipment'; + const GRANTABLE_ROLES_CONTAINER_TAKE_1 = 'Container_Take_1'; + const GRANTABLE_ROLES_CONTAINER_TAKE_2 = 'Container_Take_2'; + const GRANTABLE_ROLES_CONTAINER_TAKE_3 = 'Container_Take_3'; + const GRANTABLE_ROLES_CONTAINER_TAKE_4 = 'Container_Take_4'; + const GRANTABLE_ROLES_CONTAINER_TAKE_5 = 'Container_Take_5'; + const GRANTABLE_ROLES_CONTAINER_TAKE_6 = 'Container_Take_6'; + const GRANTABLE_ROLES_CONTAINER_TAKE_7 = 'Container_Take_7'; + const GRANTABLE_ROLES_CONTRACT_MANAGER = 'Contract_Manager'; + const GRANTABLE_ROLES_DIPLOMAT = 'Diplomat'; + const GRANTABLE_ROLES_DIRECTOR = 'Director'; + const GRANTABLE_ROLES_FACTORY_MANAGER = 'Factory_Manager'; + const GRANTABLE_ROLES_FITTING_MANAGER = 'Fitting_Manager'; + const GRANTABLE_ROLES_HANGAR_QUERY_1 = 'Hangar_Query_1'; + const GRANTABLE_ROLES_HANGAR_QUERY_2 = 'Hangar_Query_2'; + const GRANTABLE_ROLES_HANGAR_QUERY_3 = 'Hangar_Query_3'; + const GRANTABLE_ROLES_HANGAR_QUERY_4 = 'Hangar_Query_4'; + const GRANTABLE_ROLES_HANGAR_QUERY_5 = 'Hangar_Query_5'; + const GRANTABLE_ROLES_HANGAR_QUERY_6 = 'Hangar_Query_6'; + const GRANTABLE_ROLES_HANGAR_QUERY_7 = 'Hangar_Query_7'; + const GRANTABLE_ROLES_HANGAR_TAKE_1 = 'Hangar_Take_1'; + const GRANTABLE_ROLES_HANGAR_TAKE_2 = 'Hangar_Take_2'; + const GRANTABLE_ROLES_HANGAR_TAKE_3 = 'Hangar_Take_3'; + const GRANTABLE_ROLES_HANGAR_TAKE_4 = 'Hangar_Take_4'; + const GRANTABLE_ROLES_HANGAR_TAKE_5 = 'Hangar_Take_5'; + const GRANTABLE_ROLES_HANGAR_TAKE_6 = 'Hangar_Take_6'; + const GRANTABLE_ROLES_HANGAR_TAKE_7 = 'Hangar_Take_7'; + const GRANTABLE_ROLES_JUNIOR_ACCOUNTANT = 'Junior_Accountant'; + const GRANTABLE_ROLES_PERSONNEL_MANAGER = 'Personnel_Manager'; + const GRANTABLE_ROLES_RENT_FACTORY_FACILITY = 'Rent_Factory_Facility'; + const GRANTABLE_ROLES_RENT_OFFICE = 'Rent_Office'; + const GRANTABLE_ROLES_RENT_RESEARCH_FACILITY = 'Rent_Research_Facility'; + const GRANTABLE_ROLES_SECURITY_OFFICER = 'Security_Officer'; + const GRANTABLE_ROLES_STARBASE_DEFENSE_OPERATOR = 'Starbase_Defense_Operator'; + const GRANTABLE_ROLES_STARBASE_FUEL_TECHNICIAN = 'Starbase_Fuel_Technician'; + const GRANTABLE_ROLES_STATION_MANAGER = 'Station_Manager'; + const GRANTABLE_ROLES_TERRESTRIAL_COMBAT_OFFICER = 'Terrestrial_Combat_Officer'; + const GRANTABLE_ROLES_TERRESTRIAL_LOGISTICS_OFFICER = 'Terrestrial_Logistics_Officer'; + const GRANTABLE_ROLES_TRADER = 'Trader'; + const ROLES_AT_HQ_ACCOUNT_TAKE_1 = 'Account_Take_1'; + const ROLES_AT_HQ_ACCOUNT_TAKE_2 = 'Account_Take_2'; + const ROLES_AT_HQ_ACCOUNT_TAKE_3 = 'Account_Take_3'; + const ROLES_AT_HQ_ACCOUNT_TAKE_4 = 'Account_Take_4'; + const ROLES_AT_HQ_ACCOUNT_TAKE_5 = 'Account_Take_5'; + const ROLES_AT_HQ_ACCOUNT_TAKE_6 = 'Account_Take_6'; + const ROLES_AT_HQ_ACCOUNT_TAKE_7 = 'Account_Take_7'; + const ROLES_AT_HQ_ACCOUNTANT = 'Accountant'; + const ROLES_AT_HQ_AUDITOR = 'Auditor'; + const ROLES_AT_HQ_COMMUNICATIONS_OFFICER = 'Communications_Officer'; + const ROLES_AT_HQ_CONFIG_EQUIPMENT = 'Config_Equipment'; + const ROLES_AT_HQ_CONFIG_STARBASE_EQUIPMENT = 'Config_Starbase_Equipment'; + const ROLES_AT_HQ_CONTAINER_TAKE_1 = 'Container_Take_1'; + const ROLES_AT_HQ_CONTAINER_TAKE_2 = 'Container_Take_2'; + const ROLES_AT_HQ_CONTAINER_TAKE_3 = 'Container_Take_3'; + const ROLES_AT_HQ_CONTAINER_TAKE_4 = 'Container_Take_4'; + const ROLES_AT_HQ_CONTAINER_TAKE_5 = 'Container_Take_5'; + const ROLES_AT_HQ_CONTAINER_TAKE_6 = 'Container_Take_6'; + const ROLES_AT_HQ_CONTAINER_TAKE_7 = 'Container_Take_7'; + const ROLES_AT_HQ_CONTRACT_MANAGER = 'Contract_Manager'; + const ROLES_AT_HQ_DIPLOMAT = 'Diplomat'; + const ROLES_AT_HQ_DIRECTOR = 'Director'; + const ROLES_AT_HQ_FACTORY_MANAGER = 'Factory_Manager'; + const ROLES_AT_HQ_FITTING_MANAGER = 'Fitting_Manager'; + const ROLES_AT_HQ_HANGAR_QUERY_1 = 'Hangar_Query_1'; + const ROLES_AT_HQ_HANGAR_QUERY_2 = 'Hangar_Query_2'; + const ROLES_AT_HQ_HANGAR_QUERY_3 = 'Hangar_Query_3'; + const ROLES_AT_HQ_HANGAR_QUERY_4 = 'Hangar_Query_4'; + const ROLES_AT_HQ_HANGAR_QUERY_5 = 'Hangar_Query_5'; + const ROLES_AT_HQ_HANGAR_QUERY_6 = 'Hangar_Query_6'; + const ROLES_AT_HQ_HANGAR_QUERY_7 = 'Hangar_Query_7'; + const ROLES_AT_HQ_HANGAR_TAKE_1 = 'Hangar_Take_1'; + const ROLES_AT_HQ_HANGAR_TAKE_2 = 'Hangar_Take_2'; + const ROLES_AT_HQ_HANGAR_TAKE_3 = 'Hangar_Take_3'; + const ROLES_AT_HQ_HANGAR_TAKE_4 = 'Hangar_Take_4'; + const ROLES_AT_HQ_HANGAR_TAKE_5 = 'Hangar_Take_5'; + const ROLES_AT_HQ_HANGAR_TAKE_6 = 'Hangar_Take_6'; + const ROLES_AT_HQ_HANGAR_TAKE_7 = 'Hangar_Take_7'; + const ROLES_AT_HQ_JUNIOR_ACCOUNTANT = 'Junior_Accountant'; + const ROLES_AT_HQ_PERSONNEL_MANAGER = 'Personnel_Manager'; + const ROLES_AT_HQ_RENT_FACTORY_FACILITY = 'Rent_Factory_Facility'; + const ROLES_AT_HQ_RENT_OFFICE = 'Rent_Office'; + const ROLES_AT_HQ_RENT_RESEARCH_FACILITY = 'Rent_Research_Facility'; + const ROLES_AT_HQ_SECURITY_OFFICER = 'Security_Officer'; + const ROLES_AT_HQ_STARBASE_DEFENSE_OPERATOR = 'Starbase_Defense_Operator'; + const ROLES_AT_HQ_STARBASE_FUEL_TECHNICIAN = 'Starbase_Fuel_Technician'; + const ROLES_AT_HQ_STATION_MANAGER = 'Station_Manager'; + const ROLES_AT_HQ_TERRESTRIAL_COMBAT_OFFICER = 'Terrestrial_Combat_Officer'; + const ROLES_AT_HQ_TERRESTRIAL_LOGISTICS_OFFICER = 'Terrestrial_Logistics_Officer'; + const ROLES_AT_HQ_TRADER = 'Trader'; + const GRANTABLE_ROLES_AT_HQ_ACCOUNT_TAKE_1 = 'Account_Take_1'; + const GRANTABLE_ROLES_AT_HQ_ACCOUNT_TAKE_2 = 'Account_Take_2'; + const GRANTABLE_ROLES_AT_HQ_ACCOUNT_TAKE_3 = 'Account_Take_3'; + const GRANTABLE_ROLES_AT_HQ_ACCOUNT_TAKE_4 = 'Account_Take_4'; + const GRANTABLE_ROLES_AT_HQ_ACCOUNT_TAKE_5 = 'Account_Take_5'; + const GRANTABLE_ROLES_AT_HQ_ACCOUNT_TAKE_6 = 'Account_Take_6'; + const GRANTABLE_ROLES_AT_HQ_ACCOUNT_TAKE_7 = 'Account_Take_7'; + const GRANTABLE_ROLES_AT_HQ_ACCOUNTANT = 'Accountant'; + const GRANTABLE_ROLES_AT_HQ_AUDITOR = 'Auditor'; + const GRANTABLE_ROLES_AT_HQ_COMMUNICATIONS_OFFICER = 'Communications_Officer'; + const GRANTABLE_ROLES_AT_HQ_CONFIG_EQUIPMENT = 'Config_Equipment'; + const GRANTABLE_ROLES_AT_HQ_CONFIG_STARBASE_EQUIPMENT = 'Config_Starbase_Equipment'; + const GRANTABLE_ROLES_AT_HQ_CONTAINER_TAKE_1 = 'Container_Take_1'; + const GRANTABLE_ROLES_AT_HQ_CONTAINER_TAKE_2 = 'Container_Take_2'; + const GRANTABLE_ROLES_AT_HQ_CONTAINER_TAKE_3 = 'Container_Take_3'; + const GRANTABLE_ROLES_AT_HQ_CONTAINER_TAKE_4 = 'Container_Take_4'; + const GRANTABLE_ROLES_AT_HQ_CONTAINER_TAKE_5 = 'Container_Take_5'; + const GRANTABLE_ROLES_AT_HQ_CONTAINER_TAKE_6 = 'Container_Take_6'; + const GRANTABLE_ROLES_AT_HQ_CONTAINER_TAKE_7 = 'Container_Take_7'; + const GRANTABLE_ROLES_AT_HQ_CONTRACT_MANAGER = 'Contract_Manager'; + const GRANTABLE_ROLES_AT_HQ_DIPLOMAT = 'Diplomat'; + const GRANTABLE_ROLES_AT_HQ_DIRECTOR = 'Director'; + const GRANTABLE_ROLES_AT_HQ_FACTORY_MANAGER = 'Factory_Manager'; + const GRANTABLE_ROLES_AT_HQ_FITTING_MANAGER = 'Fitting_Manager'; + const GRANTABLE_ROLES_AT_HQ_HANGAR_QUERY_1 = 'Hangar_Query_1'; + const GRANTABLE_ROLES_AT_HQ_HANGAR_QUERY_2 = 'Hangar_Query_2'; + const GRANTABLE_ROLES_AT_HQ_HANGAR_QUERY_3 = 'Hangar_Query_3'; + const GRANTABLE_ROLES_AT_HQ_HANGAR_QUERY_4 = 'Hangar_Query_4'; + const GRANTABLE_ROLES_AT_HQ_HANGAR_QUERY_5 = 'Hangar_Query_5'; + const GRANTABLE_ROLES_AT_HQ_HANGAR_QUERY_6 = 'Hangar_Query_6'; + const GRANTABLE_ROLES_AT_HQ_HANGAR_QUERY_7 = 'Hangar_Query_7'; + const GRANTABLE_ROLES_AT_HQ_HANGAR_TAKE_1 = 'Hangar_Take_1'; + const GRANTABLE_ROLES_AT_HQ_HANGAR_TAKE_2 = 'Hangar_Take_2'; + const GRANTABLE_ROLES_AT_HQ_HANGAR_TAKE_3 = 'Hangar_Take_3'; + const GRANTABLE_ROLES_AT_HQ_HANGAR_TAKE_4 = 'Hangar_Take_4'; + const GRANTABLE_ROLES_AT_HQ_HANGAR_TAKE_5 = 'Hangar_Take_5'; + const GRANTABLE_ROLES_AT_HQ_HANGAR_TAKE_6 = 'Hangar_Take_6'; + const GRANTABLE_ROLES_AT_HQ_HANGAR_TAKE_7 = 'Hangar_Take_7'; + const GRANTABLE_ROLES_AT_HQ_JUNIOR_ACCOUNTANT = 'Junior_Accountant'; + const GRANTABLE_ROLES_AT_HQ_PERSONNEL_MANAGER = 'Personnel_Manager'; + const GRANTABLE_ROLES_AT_HQ_RENT_FACTORY_FACILITY = 'Rent_Factory_Facility'; + const GRANTABLE_ROLES_AT_HQ_RENT_OFFICE = 'Rent_Office'; + const GRANTABLE_ROLES_AT_HQ_RENT_RESEARCH_FACILITY = 'Rent_Research_Facility'; + const GRANTABLE_ROLES_AT_HQ_SECURITY_OFFICER = 'Security_Officer'; + const GRANTABLE_ROLES_AT_HQ_STARBASE_DEFENSE_OPERATOR = 'Starbase_Defense_Operator'; + const GRANTABLE_ROLES_AT_HQ_STARBASE_FUEL_TECHNICIAN = 'Starbase_Fuel_Technician'; + const GRANTABLE_ROLES_AT_HQ_STATION_MANAGER = 'Station_Manager'; + const GRANTABLE_ROLES_AT_HQ_TERRESTRIAL_COMBAT_OFFICER = 'Terrestrial_Combat_Officer'; + const GRANTABLE_ROLES_AT_HQ_TERRESTRIAL_LOGISTICS_OFFICER = 'Terrestrial_Logistics_Officer'; + const GRANTABLE_ROLES_AT_HQ_TRADER = 'Trader'; + const ROLES_AT_BASE_ACCOUNT_TAKE_1 = 'Account_Take_1'; + const ROLES_AT_BASE_ACCOUNT_TAKE_2 = 'Account_Take_2'; + const ROLES_AT_BASE_ACCOUNT_TAKE_3 = 'Account_Take_3'; + const ROLES_AT_BASE_ACCOUNT_TAKE_4 = 'Account_Take_4'; + const ROLES_AT_BASE_ACCOUNT_TAKE_5 = 'Account_Take_5'; + const ROLES_AT_BASE_ACCOUNT_TAKE_6 = 'Account_Take_6'; + const ROLES_AT_BASE_ACCOUNT_TAKE_7 = 'Account_Take_7'; + const ROLES_AT_BASE_ACCOUNTANT = 'Accountant'; + const ROLES_AT_BASE_AUDITOR = 'Auditor'; + const ROLES_AT_BASE_COMMUNICATIONS_OFFICER = 'Communications_Officer'; + const ROLES_AT_BASE_CONFIG_EQUIPMENT = 'Config_Equipment'; + const ROLES_AT_BASE_CONFIG_STARBASE_EQUIPMENT = 'Config_Starbase_Equipment'; + const ROLES_AT_BASE_CONTAINER_TAKE_1 = 'Container_Take_1'; + const ROLES_AT_BASE_CONTAINER_TAKE_2 = 'Container_Take_2'; + const ROLES_AT_BASE_CONTAINER_TAKE_3 = 'Container_Take_3'; + const ROLES_AT_BASE_CONTAINER_TAKE_4 = 'Container_Take_4'; + const ROLES_AT_BASE_CONTAINER_TAKE_5 = 'Container_Take_5'; + const ROLES_AT_BASE_CONTAINER_TAKE_6 = 'Container_Take_6'; + const ROLES_AT_BASE_CONTAINER_TAKE_7 = 'Container_Take_7'; + const ROLES_AT_BASE_CONTRACT_MANAGER = 'Contract_Manager'; + const ROLES_AT_BASE_DIPLOMAT = 'Diplomat'; + const ROLES_AT_BASE_DIRECTOR = 'Director'; + const ROLES_AT_BASE_FACTORY_MANAGER = 'Factory_Manager'; + const ROLES_AT_BASE_FITTING_MANAGER = 'Fitting_Manager'; + const ROLES_AT_BASE_HANGAR_QUERY_1 = 'Hangar_Query_1'; + const ROLES_AT_BASE_HANGAR_QUERY_2 = 'Hangar_Query_2'; + const ROLES_AT_BASE_HANGAR_QUERY_3 = 'Hangar_Query_3'; + const ROLES_AT_BASE_HANGAR_QUERY_4 = 'Hangar_Query_4'; + const ROLES_AT_BASE_HANGAR_QUERY_5 = 'Hangar_Query_5'; + const ROLES_AT_BASE_HANGAR_QUERY_6 = 'Hangar_Query_6'; + const ROLES_AT_BASE_HANGAR_QUERY_7 = 'Hangar_Query_7'; + const ROLES_AT_BASE_HANGAR_TAKE_1 = 'Hangar_Take_1'; + const ROLES_AT_BASE_HANGAR_TAKE_2 = 'Hangar_Take_2'; + const ROLES_AT_BASE_HANGAR_TAKE_3 = 'Hangar_Take_3'; + const ROLES_AT_BASE_HANGAR_TAKE_4 = 'Hangar_Take_4'; + const ROLES_AT_BASE_HANGAR_TAKE_5 = 'Hangar_Take_5'; + const ROLES_AT_BASE_HANGAR_TAKE_6 = 'Hangar_Take_6'; + const ROLES_AT_BASE_HANGAR_TAKE_7 = 'Hangar_Take_7'; + const ROLES_AT_BASE_JUNIOR_ACCOUNTANT = 'Junior_Accountant'; + const ROLES_AT_BASE_PERSONNEL_MANAGER = 'Personnel_Manager'; + const ROLES_AT_BASE_RENT_FACTORY_FACILITY = 'Rent_Factory_Facility'; + const ROLES_AT_BASE_RENT_OFFICE = 'Rent_Office'; + const ROLES_AT_BASE_RENT_RESEARCH_FACILITY = 'Rent_Research_Facility'; + const ROLES_AT_BASE_SECURITY_OFFICER = 'Security_Officer'; + const ROLES_AT_BASE_STARBASE_DEFENSE_OPERATOR = 'Starbase_Defense_Operator'; + const ROLES_AT_BASE_STARBASE_FUEL_TECHNICIAN = 'Starbase_Fuel_Technician'; + const ROLES_AT_BASE_STATION_MANAGER = 'Station_Manager'; + const ROLES_AT_BASE_TERRESTRIAL_COMBAT_OFFICER = 'Terrestrial_Combat_Officer'; + const ROLES_AT_BASE_TERRESTRIAL_LOGISTICS_OFFICER = 'Terrestrial_Logistics_Officer'; + const ROLES_AT_BASE_TRADER = 'Trader'; + const GRANTABLE_ROLES_AT_BASE_ACCOUNT_TAKE_1 = 'Account_Take_1'; + const GRANTABLE_ROLES_AT_BASE_ACCOUNT_TAKE_2 = 'Account_Take_2'; + const GRANTABLE_ROLES_AT_BASE_ACCOUNT_TAKE_3 = 'Account_Take_3'; + const GRANTABLE_ROLES_AT_BASE_ACCOUNT_TAKE_4 = 'Account_Take_4'; + const GRANTABLE_ROLES_AT_BASE_ACCOUNT_TAKE_5 = 'Account_Take_5'; + const GRANTABLE_ROLES_AT_BASE_ACCOUNT_TAKE_6 = 'Account_Take_6'; + const GRANTABLE_ROLES_AT_BASE_ACCOUNT_TAKE_7 = 'Account_Take_7'; + const GRANTABLE_ROLES_AT_BASE_ACCOUNTANT = 'Accountant'; + const GRANTABLE_ROLES_AT_BASE_AUDITOR = 'Auditor'; + const GRANTABLE_ROLES_AT_BASE_COMMUNICATIONS_OFFICER = 'Communications_Officer'; + const GRANTABLE_ROLES_AT_BASE_CONFIG_EQUIPMENT = 'Config_Equipment'; + const GRANTABLE_ROLES_AT_BASE_CONFIG_STARBASE_EQUIPMENT = 'Config_Starbase_Equipment'; + const GRANTABLE_ROLES_AT_BASE_CONTAINER_TAKE_1 = 'Container_Take_1'; + const GRANTABLE_ROLES_AT_BASE_CONTAINER_TAKE_2 = 'Container_Take_2'; + const GRANTABLE_ROLES_AT_BASE_CONTAINER_TAKE_3 = 'Container_Take_3'; + const GRANTABLE_ROLES_AT_BASE_CONTAINER_TAKE_4 = 'Container_Take_4'; + const GRANTABLE_ROLES_AT_BASE_CONTAINER_TAKE_5 = 'Container_Take_5'; + const GRANTABLE_ROLES_AT_BASE_CONTAINER_TAKE_6 = 'Container_Take_6'; + const GRANTABLE_ROLES_AT_BASE_CONTAINER_TAKE_7 = 'Container_Take_7'; + const GRANTABLE_ROLES_AT_BASE_CONTRACT_MANAGER = 'Contract_Manager'; + const GRANTABLE_ROLES_AT_BASE_DIPLOMAT = 'Diplomat'; + const GRANTABLE_ROLES_AT_BASE_DIRECTOR = 'Director'; + const GRANTABLE_ROLES_AT_BASE_FACTORY_MANAGER = 'Factory_Manager'; + const GRANTABLE_ROLES_AT_BASE_FITTING_MANAGER = 'Fitting_Manager'; + const GRANTABLE_ROLES_AT_BASE_HANGAR_QUERY_1 = 'Hangar_Query_1'; + const GRANTABLE_ROLES_AT_BASE_HANGAR_QUERY_2 = 'Hangar_Query_2'; + const GRANTABLE_ROLES_AT_BASE_HANGAR_QUERY_3 = 'Hangar_Query_3'; + const GRANTABLE_ROLES_AT_BASE_HANGAR_QUERY_4 = 'Hangar_Query_4'; + const GRANTABLE_ROLES_AT_BASE_HANGAR_QUERY_5 = 'Hangar_Query_5'; + const GRANTABLE_ROLES_AT_BASE_HANGAR_QUERY_6 = 'Hangar_Query_6'; + const GRANTABLE_ROLES_AT_BASE_HANGAR_QUERY_7 = 'Hangar_Query_7'; + const GRANTABLE_ROLES_AT_BASE_HANGAR_TAKE_1 = 'Hangar_Take_1'; + const GRANTABLE_ROLES_AT_BASE_HANGAR_TAKE_2 = 'Hangar_Take_2'; + const GRANTABLE_ROLES_AT_BASE_HANGAR_TAKE_3 = 'Hangar_Take_3'; + const GRANTABLE_ROLES_AT_BASE_HANGAR_TAKE_4 = 'Hangar_Take_4'; + const GRANTABLE_ROLES_AT_BASE_HANGAR_TAKE_5 = 'Hangar_Take_5'; + const GRANTABLE_ROLES_AT_BASE_HANGAR_TAKE_6 = 'Hangar_Take_6'; + const GRANTABLE_ROLES_AT_BASE_HANGAR_TAKE_7 = 'Hangar_Take_7'; + const GRANTABLE_ROLES_AT_BASE_JUNIOR_ACCOUNTANT = 'Junior_Accountant'; + const GRANTABLE_ROLES_AT_BASE_PERSONNEL_MANAGER = 'Personnel_Manager'; + const GRANTABLE_ROLES_AT_BASE_RENT_FACTORY_FACILITY = 'Rent_Factory_Facility'; + const GRANTABLE_ROLES_AT_BASE_RENT_OFFICE = 'Rent_Office'; + const GRANTABLE_ROLES_AT_BASE_RENT_RESEARCH_FACILITY = 'Rent_Research_Facility'; + const GRANTABLE_ROLES_AT_BASE_SECURITY_OFFICER = 'Security_Officer'; + const GRANTABLE_ROLES_AT_BASE_STARBASE_DEFENSE_OPERATOR = 'Starbase_Defense_Operator'; + const GRANTABLE_ROLES_AT_BASE_STARBASE_FUEL_TECHNICIAN = 'Starbase_Fuel_Technician'; + const GRANTABLE_ROLES_AT_BASE_STATION_MANAGER = 'Station_Manager'; + const GRANTABLE_ROLES_AT_BASE_TERRESTRIAL_COMBAT_OFFICER = 'Terrestrial_Combat_Officer'; + const GRANTABLE_ROLES_AT_BASE_TERRESTRIAL_LOGISTICS_OFFICER = 'Terrestrial_Logistics_Officer'; + const GRANTABLE_ROLES_AT_BASE_TRADER = 'Trader'; + const ROLES_AT_OTHER_ACCOUNT_TAKE_1 = 'Account_Take_1'; + const ROLES_AT_OTHER_ACCOUNT_TAKE_2 = 'Account_Take_2'; + const ROLES_AT_OTHER_ACCOUNT_TAKE_3 = 'Account_Take_3'; + const ROLES_AT_OTHER_ACCOUNT_TAKE_4 = 'Account_Take_4'; + const ROLES_AT_OTHER_ACCOUNT_TAKE_5 = 'Account_Take_5'; + const ROLES_AT_OTHER_ACCOUNT_TAKE_6 = 'Account_Take_6'; + const ROLES_AT_OTHER_ACCOUNT_TAKE_7 = 'Account_Take_7'; + const ROLES_AT_OTHER_ACCOUNTANT = 'Accountant'; + const ROLES_AT_OTHER_AUDITOR = 'Auditor'; + const ROLES_AT_OTHER_COMMUNICATIONS_OFFICER = 'Communications_Officer'; + const ROLES_AT_OTHER_CONFIG_EQUIPMENT = 'Config_Equipment'; + const ROLES_AT_OTHER_CONFIG_STARBASE_EQUIPMENT = 'Config_Starbase_Equipment'; + const ROLES_AT_OTHER_CONTAINER_TAKE_1 = 'Container_Take_1'; + const ROLES_AT_OTHER_CONTAINER_TAKE_2 = 'Container_Take_2'; + const ROLES_AT_OTHER_CONTAINER_TAKE_3 = 'Container_Take_3'; + const ROLES_AT_OTHER_CONTAINER_TAKE_4 = 'Container_Take_4'; + const ROLES_AT_OTHER_CONTAINER_TAKE_5 = 'Container_Take_5'; + const ROLES_AT_OTHER_CONTAINER_TAKE_6 = 'Container_Take_6'; + const ROLES_AT_OTHER_CONTAINER_TAKE_7 = 'Container_Take_7'; + const ROLES_AT_OTHER_CONTRACT_MANAGER = 'Contract_Manager'; + const ROLES_AT_OTHER_DIPLOMAT = 'Diplomat'; + const ROLES_AT_OTHER_DIRECTOR = 'Director'; + const ROLES_AT_OTHER_FACTORY_MANAGER = 'Factory_Manager'; + const ROLES_AT_OTHER_FITTING_MANAGER = 'Fitting_Manager'; + const ROLES_AT_OTHER_HANGAR_QUERY_1 = 'Hangar_Query_1'; + const ROLES_AT_OTHER_HANGAR_QUERY_2 = 'Hangar_Query_2'; + const ROLES_AT_OTHER_HANGAR_QUERY_3 = 'Hangar_Query_3'; + const ROLES_AT_OTHER_HANGAR_QUERY_4 = 'Hangar_Query_4'; + const ROLES_AT_OTHER_HANGAR_QUERY_5 = 'Hangar_Query_5'; + const ROLES_AT_OTHER_HANGAR_QUERY_6 = 'Hangar_Query_6'; + const ROLES_AT_OTHER_HANGAR_QUERY_7 = 'Hangar_Query_7'; + const ROLES_AT_OTHER_HANGAR_TAKE_1 = 'Hangar_Take_1'; + const ROLES_AT_OTHER_HANGAR_TAKE_2 = 'Hangar_Take_2'; + const ROLES_AT_OTHER_HANGAR_TAKE_3 = 'Hangar_Take_3'; + const ROLES_AT_OTHER_HANGAR_TAKE_4 = 'Hangar_Take_4'; + const ROLES_AT_OTHER_HANGAR_TAKE_5 = 'Hangar_Take_5'; + const ROLES_AT_OTHER_HANGAR_TAKE_6 = 'Hangar_Take_6'; + const ROLES_AT_OTHER_HANGAR_TAKE_7 = 'Hangar_Take_7'; + const ROLES_AT_OTHER_JUNIOR_ACCOUNTANT = 'Junior_Accountant'; + const ROLES_AT_OTHER_PERSONNEL_MANAGER = 'Personnel_Manager'; + const ROLES_AT_OTHER_RENT_FACTORY_FACILITY = 'Rent_Factory_Facility'; + const ROLES_AT_OTHER_RENT_OFFICE = 'Rent_Office'; + const ROLES_AT_OTHER_RENT_RESEARCH_FACILITY = 'Rent_Research_Facility'; + const ROLES_AT_OTHER_SECURITY_OFFICER = 'Security_Officer'; + const ROLES_AT_OTHER_STARBASE_DEFENSE_OPERATOR = 'Starbase_Defense_Operator'; + const ROLES_AT_OTHER_STARBASE_FUEL_TECHNICIAN = 'Starbase_Fuel_Technician'; + const ROLES_AT_OTHER_STATION_MANAGER = 'Station_Manager'; + const ROLES_AT_OTHER_TERRESTRIAL_COMBAT_OFFICER = 'Terrestrial_Combat_Officer'; + const ROLES_AT_OTHER_TERRESTRIAL_LOGISTICS_OFFICER = 'Terrestrial_Logistics_Officer'; + const ROLES_AT_OTHER_TRADER = 'Trader'; + const GRANTABLE_ROLES_AT_OTHER_ACCOUNT_TAKE_1 = 'Account_Take_1'; + const GRANTABLE_ROLES_AT_OTHER_ACCOUNT_TAKE_2 = 'Account_Take_2'; + const GRANTABLE_ROLES_AT_OTHER_ACCOUNT_TAKE_3 = 'Account_Take_3'; + const GRANTABLE_ROLES_AT_OTHER_ACCOUNT_TAKE_4 = 'Account_Take_4'; + const GRANTABLE_ROLES_AT_OTHER_ACCOUNT_TAKE_5 = 'Account_Take_5'; + const GRANTABLE_ROLES_AT_OTHER_ACCOUNT_TAKE_6 = 'Account_Take_6'; + const GRANTABLE_ROLES_AT_OTHER_ACCOUNT_TAKE_7 = 'Account_Take_7'; + const GRANTABLE_ROLES_AT_OTHER_ACCOUNTANT = 'Accountant'; + const GRANTABLE_ROLES_AT_OTHER_AUDITOR = 'Auditor'; + const GRANTABLE_ROLES_AT_OTHER_COMMUNICATIONS_OFFICER = 'Communications_Officer'; + const GRANTABLE_ROLES_AT_OTHER_CONFIG_EQUIPMENT = 'Config_Equipment'; + const GRANTABLE_ROLES_AT_OTHER_CONFIG_STARBASE_EQUIPMENT = 'Config_Starbase_Equipment'; + const GRANTABLE_ROLES_AT_OTHER_CONTAINER_TAKE_1 = 'Container_Take_1'; + const GRANTABLE_ROLES_AT_OTHER_CONTAINER_TAKE_2 = 'Container_Take_2'; + const GRANTABLE_ROLES_AT_OTHER_CONTAINER_TAKE_3 = 'Container_Take_3'; + const GRANTABLE_ROLES_AT_OTHER_CONTAINER_TAKE_4 = 'Container_Take_4'; + const GRANTABLE_ROLES_AT_OTHER_CONTAINER_TAKE_5 = 'Container_Take_5'; + const GRANTABLE_ROLES_AT_OTHER_CONTAINER_TAKE_6 = 'Container_Take_6'; + const GRANTABLE_ROLES_AT_OTHER_CONTAINER_TAKE_7 = 'Container_Take_7'; + const GRANTABLE_ROLES_AT_OTHER_CONTRACT_MANAGER = 'Contract_Manager'; + const GRANTABLE_ROLES_AT_OTHER_DIPLOMAT = 'Diplomat'; + const GRANTABLE_ROLES_AT_OTHER_DIRECTOR = 'Director'; + const GRANTABLE_ROLES_AT_OTHER_FACTORY_MANAGER = 'Factory_Manager'; + const GRANTABLE_ROLES_AT_OTHER_FITTING_MANAGER = 'Fitting_Manager'; + const GRANTABLE_ROLES_AT_OTHER_HANGAR_QUERY_1 = 'Hangar_Query_1'; + const GRANTABLE_ROLES_AT_OTHER_HANGAR_QUERY_2 = 'Hangar_Query_2'; + const GRANTABLE_ROLES_AT_OTHER_HANGAR_QUERY_3 = 'Hangar_Query_3'; + const GRANTABLE_ROLES_AT_OTHER_HANGAR_QUERY_4 = 'Hangar_Query_4'; + const GRANTABLE_ROLES_AT_OTHER_HANGAR_QUERY_5 = 'Hangar_Query_5'; + const GRANTABLE_ROLES_AT_OTHER_HANGAR_QUERY_6 = 'Hangar_Query_6'; + const GRANTABLE_ROLES_AT_OTHER_HANGAR_QUERY_7 = 'Hangar_Query_7'; + const GRANTABLE_ROLES_AT_OTHER_HANGAR_TAKE_1 = 'Hangar_Take_1'; + const GRANTABLE_ROLES_AT_OTHER_HANGAR_TAKE_2 = 'Hangar_Take_2'; + const GRANTABLE_ROLES_AT_OTHER_HANGAR_TAKE_3 = 'Hangar_Take_3'; + const GRANTABLE_ROLES_AT_OTHER_HANGAR_TAKE_4 = 'Hangar_Take_4'; + const GRANTABLE_ROLES_AT_OTHER_HANGAR_TAKE_5 = 'Hangar_Take_5'; + const GRANTABLE_ROLES_AT_OTHER_HANGAR_TAKE_6 = 'Hangar_Take_6'; + const GRANTABLE_ROLES_AT_OTHER_HANGAR_TAKE_7 = 'Hangar_Take_7'; + const GRANTABLE_ROLES_AT_OTHER_JUNIOR_ACCOUNTANT = 'Junior_Accountant'; + const GRANTABLE_ROLES_AT_OTHER_PERSONNEL_MANAGER = 'Personnel_Manager'; + const GRANTABLE_ROLES_AT_OTHER_RENT_FACTORY_FACILITY = 'Rent_Factory_Facility'; + const GRANTABLE_ROLES_AT_OTHER_RENT_OFFICE = 'Rent_Office'; + const GRANTABLE_ROLES_AT_OTHER_RENT_RESEARCH_FACILITY = 'Rent_Research_Facility'; + const GRANTABLE_ROLES_AT_OTHER_SECURITY_OFFICER = 'Security_Officer'; + const GRANTABLE_ROLES_AT_OTHER_STARBASE_DEFENSE_OPERATOR = 'Starbase_Defense_Operator'; + const GRANTABLE_ROLES_AT_OTHER_STARBASE_FUEL_TECHNICIAN = 'Starbase_Fuel_Technician'; + const GRANTABLE_ROLES_AT_OTHER_STATION_MANAGER = 'Station_Manager'; + const GRANTABLE_ROLES_AT_OTHER_TERRESTRIAL_COMBAT_OFFICER = 'Terrestrial_Combat_Officer'; + const GRANTABLE_ROLES_AT_OTHER_TERRESTRIAL_LOGISTICS_OFFICER = 'Terrestrial_Logistics_Officer'; + const GRANTABLE_ROLES_AT_OTHER_TRADER = 'Trader'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getRolesAllowableValues() + { + return [ + self::ROLES_ACCOUNT_TAKE_1, + self::ROLES_ACCOUNT_TAKE_2, + self::ROLES_ACCOUNT_TAKE_3, + self::ROLES_ACCOUNT_TAKE_4, + self::ROLES_ACCOUNT_TAKE_5, + self::ROLES_ACCOUNT_TAKE_6, + self::ROLES_ACCOUNT_TAKE_7, + self::ROLES_ACCOUNTANT, + self::ROLES_AUDITOR, + self::ROLES_COMMUNICATIONS_OFFICER, + self::ROLES_CONFIG_EQUIPMENT, + self::ROLES_CONFIG_STARBASE_EQUIPMENT, + self::ROLES_CONTAINER_TAKE_1, + self::ROLES_CONTAINER_TAKE_2, + self::ROLES_CONTAINER_TAKE_3, + self::ROLES_CONTAINER_TAKE_4, + self::ROLES_CONTAINER_TAKE_5, + self::ROLES_CONTAINER_TAKE_6, + self::ROLES_CONTAINER_TAKE_7, + self::ROLES_CONTRACT_MANAGER, + self::ROLES_DIPLOMAT, + self::ROLES_DIRECTOR, + self::ROLES_FACTORY_MANAGER, + self::ROLES_FITTING_MANAGER, + self::ROLES_HANGAR_QUERY_1, + self::ROLES_HANGAR_QUERY_2, + self::ROLES_HANGAR_QUERY_3, + self::ROLES_HANGAR_QUERY_4, + self::ROLES_HANGAR_QUERY_5, + self::ROLES_HANGAR_QUERY_6, + self::ROLES_HANGAR_QUERY_7, + self::ROLES_HANGAR_TAKE_1, + self::ROLES_HANGAR_TAKE_2, + self::ROLES_HANGAR_TAKE_3, + self::ROLES_HANGAR_TAKE_4, + self::ROLES_HANGAR_TAKE_5, + self::ROLES_HANGAR_TAKE_6, + self::ROLES_HANGAR_TAKE_7, + self::ROLES_JUNIOR_ACCOUNTANT, + self::ROLES_PERSONNEL_MANAGER, + self::ROLES_RENT_FACTORY_FACILITY, + self::ROLES_RENT_OFFICE, + self::ROLES_RENT_RESEARCH_FACILITY, + self::ROLES_SECURITY_OFFICER, + self::ROLES_STARBASE_DEFENSE_OPERATOR, + self::ROLES_STARBASE_FUEL_TECHNICIAN, + self::ROLES_STATION_MANAGER, + self::ROLES_TERRESTRIAL_COMBAT_OFFICER, + self::ROLES_TERRESTRIAL_LOGISTICS_OFFICER, + self::ROLES_TRADER, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getGrantableRolesAllowableValues() + { + return [ + self::GRANTABLE_ROLES_ACCOUNT_TAKE_1, + self::GRANTABLE_ROLES_ACCOUNT_TAKE_2, + self::GRANTABLE_ROLES_ACCOUNT_TAKE_3, + self::GRANTABLE_ROLES_ACCOUNT_TAKE_4, + self::GRANTABLE_ROLES_ACCOUNT_TAKE_5, + self::GRANTABLE_ROLES_ACCOUNT_TAKE_6, + self::GRANTABLE_ROLES_ACCOUNT_TAKE_7, + self::GRANTABLE_ROLES_ACCOUNTANT, + self::GRANTABLE_ROLES_AUDITOR, + self::GRANTABLE_ROLES_COMMUNICATIONS_OFFICER, + self::GRANTABLE_ROLES_CONFIG_EQUIPMENT, + self::GRANTABLE_ROLES_CONFIG_STARBASE_EQUIPMENT, + self::GRANTABLE_ROLES_CONTAINER_TAKE_1, + self::GRANTABLE_ROLES_CONTAINER_TAKE_2, + self::GRANTABLE_ROLES_CONTAINER_TAKE_3, + self::GRANTABLE_ROLES_CONTAINER_TAKE_4, + self::GRANTABLE_ROLES_CONTAINER_TAKE_5, + self::GRANTABLE_ROLES_CONTAINER_TAKE_6, + self::GRANTABLE_ROLES_CONTAINER_TAKE_7, + self::GRANTABLE_ROLES_CONTRACT_MANAGER, + self::GRANTABLE_ROLES_DIPLOMAT, + self::GRANTABLE_ROLES_DIRECTOR, + self::GRANTABLE_ROLES_FACTORY_MANAGER, + self::GRANTABLE_ROLES_FITTING_MANAGER, + self::GRANTABLE_ROLES_HANGAR_QUERY_1, + self::GRANTABLE_ROLES_HANGAR_QUERY_2, + self::GRANTABLE_ROLES_HANGAR_QUERY_3, + self::GRANTABLE_ROLES_HANGAR_QUERY_4, + self::GRANTABLE_ROLES_HANGAR_QUERY_5, + self::GRANTABLE_ROLES_HANGAR_QUERY_6, + self::GRANTABLE_ROLES_HANGAR_QUERY_7, + self::GRANTABLE_ROLES_HANGAR_TAKE_1, + self::GRANTABLE_ROLES_HANGAR_TAKE_2, + self::GRANTABLE_ROLES_HANGAR_TAKE_3, + self::GRANTABLE_ROLES_HANGAR_TAKE_4, + self::GRANTABLE_ROLES_HANGAR_TAKE_5, + self::GRANTABLE_ROLES_HANGAR_TAKE_6, + self::GRANTABLE_ROLES_HANGAR_TAKE_7, + self::GRANTABLE_ROLES_JUNIOR_ACCOUNTANT, + self::GRANTABLE_ROLES_PERSONNEL_MANAGER, + self::GRANTABLE_ROLES_RENT_FACTORY_FACILITY, + self::GRANTABLE_ROLES_RENT_OFFICE, + self::GRANTABLE_ROLES_RENT_RESEARCH_FACILITY, + self::GRANTABLE_ROLES_SECURITY_OFFICER, + self::GRANTABLE_ROLES_STARBASE_DEFENSE_OPERATOR, + self::GRANTABLE_ROLES_STARBASE_FUEL_TECHNICIAN, + self::GRANTABLE_ROLES_STATION_MANAGER, + self::GRANTABLE_ROLES_TERRESTRIAL_COMBAT_OFFICER, + self::GRANTABLE_ROLES_TERRESTRIAL_LOGISTICS_OFFICER, + self::GRANTABLE_ROLES_TRADER, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getRolesAtHqAllowableValues() + { + return [ + self::ROLES_AT_HQ_ACCOUNT_TAKE_1, + self::ROLES_AT_HQ_ACCOUNT_TAKE_2, + self::ROLES_AT_HQ_ACCOUNT_TAKE_3, + self::ROLES_AT_HQ_ACCOUNT_TAKE_4, + self::ROLES_AT_HQ_ACCOUNT_TAKE_5, + self::ROLES_AT_HQ_ACCOUNT_TAKE_6, + self::ROLES_AT_HQ_ACCOUNT_TAKE_7, + self::ROLES_AT_HQ_ACCOUNTANT, + self::ROLES_AT_HQ_AUDITOR, + self::ROLES_AT_HQ_COMMUNICATIONS_OFFICER, + self::ROLES_AT_HQ_CONFIG_EQUIPMENT, + self::ROLES_AT_HQ_CONFIG_STARBASE_EQUIPMENT, + self::ROLES_AT_HQ_CONTAINER_TAKE_1, + self::ROLES_AT_HQ_CONTAINER_TAKE_2, + self::ROLES_AT_HQ_CONTAINER_TAKE_3, + self::ROLES_AT_HQ_CONTAINER_TAKE_4, + self::ROLES_AT_HQ_CONTAINER_TAKE_5, + self::ROLES_AT_HQ_CONTAINER_TAKE_6, + self::ROLES_AT_HQ_CONTAINER_TAKE_7, + self::ROLES_AT_HQ_CONTRACT_MANAGER, + self::ROLES_AT_HQ_DIPLOMAT, + self::ROLES_AT_HQ_DIRECTOR, + self::ROLES_AT_HQ_FACTORY_MANAGER, + self::ROLES_AT_HQ_FITTING_MANAGER, + self::ROLES_AT_HQ_HANGAR_QUERY_1, + self::ROLES_AT_HQ_HANGAR_QUERY_2, + self::ROLES_AT_HQ_HANGAR_QUERY_3, + self::ROLES_AT_HQ_HANGAR_QUERY_4, + self::ROLES_AT_HQ_HANGAR_QUERY_5, + self::ROLES_AT_HQ_HANGAR_QUERY_6, + self::ROLES_AT_HQ_HANGAR_QUERY_7, + self::ROLES_AT_HQ_HANGAR_TAKE_1, + self::ROLES_AT_HQ_HANGAR_TAKE_2, + self::ROLES_AT_HQ_HANGAR_TAKE_3, + self::ROLES_AT_HQ_HANGAR_TAKE_4, + self::ROLES_AT_HQ_HANGAR_TAKE_5, + self::ROLES_AT_HQ_HANGAR_TAKE_6, + self::ROLES_AT_HQ_HANGAR_TAKE_7, + self::ROLES_AT_HQ_JUNIOR_ACCOUNTANT, + self::ROLES_AT_HQ_PERSONNEL_MANAGER, + self::ROLES_AT_HQ_RENT_FACTORY_FACILITY, + self::ROLES_AT_HQ_RENT_OFFICE, + self::ROLES_AT_HQ_RENT_RESEARCH_FACILITY, + self::ROLES_AT_HQ_SECURITY_OFFICER, + self::ROLES_AT_HQ_STARBASE_DEFENSE_OPERATOR, + self::ROLES_AT_HQ_STARBASE_FUEL_TECHNICIAN, + self::ROLES_AT_HQ_STATION_MANAGER, + self::ROLES_AT_HQ_TERRESTRIAL_COMBAT_OFFICER, + self::ROLES_AT_HQ_TERRESTRIAL_LOGISTICS_OFFICER, + self::ROLES_AT_HQ_TRADER, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getGrantableRolesAtHqAllowableValues() + { + return [ + self::GRANTABLE_ROLES_AT_HQ_ACCOUNT_TAKE_1, + self::GRANTABLE_ROLES_AT_HQ_ACCOUNT_TAKE_2, + self::GRANTABLE_ROLES_AT_HQ_ACCOUNT_TAKE_3, + self::GRANTABLE_ROLES_AT_HQ_ACCOUNT_TAKE_4, + self::GRANTABLE_ROLES_AT_HQ_ACCOUNT_TAKE_5, + self::GRANTABLE_ROLES_AT_HQ_ACCOUNT_TAKE_6, + self::GRANTABLE_ROLES_AT_HQ_ACCOUNT_TAKE_7, + self::GRANTABLE_ROLES_AT_HQ_ACCOUNTANT, + self::GRANTABLE_ROLES_AT_HQ_AUDITOR, + self::GRANTABLE_ROLES_AT_HQ_COMMUNICATIONS_OFFICER, + self::GRANTABLE_ROLES_AT_HQ_CONFIG_EQUIPMENT, + self::GRANTABLE_ROLES_AT_HQ_CONFIG_STARBASE_EQUIPMENT, + self::GRANTABLE_ROLES_AT_HQ_CONTAINER_TAKE_1, + self::GRANTABLE_ROLES_AT_HQ_CONTAINER_TAKE_2, + self::GRANTABLE_ROLES_AT_HQ_CONTAINER_TAKE_3, + self::GRANTABLE_ROLES_AT_HQ_CONTAINER_TAKE_4, + self::GRANTABLE_ROLES_AT_HQ_CONTAINER_TAKE_5, + self::GRANTABLE_ROLES_AT_HQ_CONTAINER_TAKE_6, + self::GRANTABLE_ROLES_AT_HQ_CONTAINER_TAKE_7, + self::GRANTABLE_ROLES_AT_HQ_CONTRACT_MANAGER, + self::GRANTABLE_ROLES_AT_HQ_DIPLOMAT, + self::GRANTABLE_ROLES_AT_HQ_DIRECTOR, + self::GRANTABLE_ROLES_AT_HQ_FACTORY_MANAGER, + self::GRANTABLE_ROLES_AT_HQ_FITTING_MANAGER, + self::GRANTABLE_ROLES_AT_HQ_HANGAR_QUERY_1, + self::GRANTABLE_ROLES_AT_HQ_HANGAR_QUERY_2, + self::GRANTABLE_ROLES_AT_HQ_HANGAR_QUERY_3, + self::GRANTABLE_ROLES_AT_HQ_HANGAR_QUERY_4, + self::GRANTABLE_ROLES_AT_HQ_HANGAR_QUERY_5, + self::GRANTABLE_ROLES_AT_HQ_HANGAR_QUERY_6, + self::GRANTABLE_ROLES_AT_HQ_HANGAR_QUERY_7, + self::GRANTABLE_ROLES_AT_HQ_HANGAR_TAKE_1, + self::GRANTABLE_ROLES_AT_HQ_HANGAR_TAKE_2, + self::GRANTABLE_ROLES_AT_HQ_HANGAR_TAKE_3, + self::GRANTABLE_ROLES_AT_HQ_HANGAR_TAKE_4, + self::GRANTABLE_ROLES_AT_HQ_HANGAR_TAKE_5, + self::GRANTABLE_ROLES_AT_HQ_HANGAR_TAKE_6, + self::GRANTABLE_ROLES_AT_HQ_HANGAR_TAKE_7, + self::GRANTABLE_ROLES_AT_HQ_JUNIOR_ACCOUNTANT, + self::GRANTABLE_ROLES_AT_HQ_PERSONNEL_MANAGER, + self::GRANTABLE_ROLES_AT_HQ_RENT_FACTORY_FACILITY, + self::GRANTABLE_ROLES_AT_HQ_RENT_OFFICE, + self::GRANTABLE_ROLES_AT_HQ_RENT_RESEARCH_FACILITY, + self::GRANTABLE_ROLES_AT_HQ_SECURITY_OFFICER, + self::GRANTABLE_ROLES_AT_HQ_STARBASE_DEFENSE_OPERATOR, + self::GRANTABLE_ROLES_AT_HQ_STARBASE_FUEL_TECHNICIAN, + self::GRANTABLE_ROLES_AT_HQ_STATION_MANAGER, + self::GRANTABLE_ROLES_AT_HQ_TERRESTRIAL_COMBAT_OFFICER, + self::GRANTABLE_ROLES_AT_HQ_TERRESTRIAL_LOGISTICS_OFFICER, + self::GRANTABLE_ROLES_AT_HQ_TRADER, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getRolesAtBaseAllowableValues() + { + return [ + self::ROLES_AT_BASE_ACCOUNT_TAKE_1, + self::ROLES_AT_BASE_ACCOUNT_TAKE_2, + self::ROLES_AT_BASE_ACCOUNT_TAKE_3, + self::ROLES_AT_BASE_ACCOUNT_TAKE_4, + self::ROLES_AT_BASE_ACCOUNT_TAKE_5, + self::ROLES_AT_BASE_ACCOUNT_TAKE_6, + self::ROLES_AT_BASE_ACCOUNT_TAKE_7, + self::ROLES_AT_BASE_ACCOUNTANT, + self::ROLES_AT_BASE_AUDITOR, + self::ROLES_AT_BASE_COMMUNICATIONS_OFFICER, + self::ROLES_AT_BASE_CONFIG_EQUIPMENT, + self::ROLES_AT_BASE_CONFIG_STARBASE_EQUIPMENT, + self::ROLES_AT_BASE_CONTAINER_TAKE_1, + self::ROLES_AT_BASE_CONTAINER_TAKE_2, + self::ROLES_AT_BASE_CONTAINER_TAKE_3, + self::ROLES_AT_BASE_CONTAINER_TAKE_4, + self::ROLES_AT_BASE_CONTAINER_TAKE_5, + self::ROLES_AT_BASE_CONTAINER_TAKE_6, + self::ROLES_AT_BASE_CONTAINER_TAKE_7, + self::ROLES_AT_BASE_CONTRACT_MANAGER, + self::ROLES_AT_BASE_DIPLOMAT, + self::ROLES_AT_BASE_DIRECTOR, + self::ROLES_AT_BASE_FACTORY_MANAGER, + self::ROLES_AT_BASE_FITTING_MANAGER, + self::ROLES_AT_BASE_HANGAR_QUERY_1, + self::ROLES_AT_BASE_HANGAR_QUERY_2, + self::ROLES_AT_BASE_HANGAR_QUERY_3, + self::ROLES_AT_BASE_HANGAR_QUERY_4, + self::ROLES_AT_BASE_HANGAR_QUERY_5, + self::ROLES_AT_BASE_HANGAR_QUERY_6, + self::ROLES_AT_BASE_HANGAR_QUERY_7, + self::ROLES_AT_BASE_HANGAR_TAKE_1, + self::ROLES_AT_BASE_HANGAR_TAKE_2, + self::ROLES_AT_BASE_HANGAR_TAKE_3, + self::ROLES_AT_BASE_HANGAR_TAKE_4, + self::ROLES_AT_BASE_HANGAR_TAKE_5, + self::ROLES_AT_BASE_HANGAR_TAKE_6, + self::ROLES_AT_BASE_HANGAR_TAKE_7, + self::ROLES_AT_BASE_JUNIOR_ACCOUNTANT, + self::ROLES_AT_BASE_PERSONNEL_MANAGER, + self::ROLES_AT_BASE_RENT_FACTORY_FACILITY, + self::ROLES_AT_BASE_RENT_OFFICE, + self::ROLES_AT_BASE_RENT_RESEARCH_FACILITY, + self::ROLES_AT_BASE_SECURITY_OFFICER, + self::ROLES_AT_BASE_STARBASE_DEFENSE_OPERATOR, + self::ROLES_AT_BASE_STARBASE_FUEL_TECHNICIAN, + self::ROLES_AT_BASE_STATION_MANAGER, + self::ROLES_AT_BASE_TERRESTRIAL_COMBAT_OFFICER, + self::ROLES_AT_BASE_TERRESTRIAL_LOGISTICS_OFFICER, + self::ROLES_AT_BASE_TRADER, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getGrantableRolesAtBaseAllowableValues() + { + return [ + self::GRANTABLE_ROLES_AT_BASE_ACCOUNT_TAKE_1, + self::GRANTABLE_ROLES_AT_BASE_ACCOUNT_TAKE_2, + self::GRANTABLE_ROLES_AT_BASE_ACCOUNT_TAKE_3, + self::GRANTABLE_ROLES_AT_BASE_ACCOUNT_TAKE_4, + self::GRANTABLE_ROLES_AT_BASE_ACCOUNT_TAKE_5, + self::GRANTABLE_ROLES_AT_BASE_ACCOUNT_TAKE_6, + self::GRANTABLE_ROLES_AT_BASE_ACCOUNT_TAKE_7, + self::GRANTABLE_ROLES_AT_BASE_ACCOUNTANT, + self::GRANTABLE_ROLES_AT_BASE_AUDITOR, + self::GRANTABLE_ROLES_AT_BASE_COMMUNICATIONS_OFFICER, + self::GRANTABLE_ROLES_AT_BASE_CONFIG_EQUIPMENT, + self::GRANTABLE_ROLES_AT_BASE_CONFIG_STARBASE_EQUIPMENT, + self::GRANTABLE_ROLES_AT_BASE_CONTAINER_TAKE_1, + self::GRANTABLE_ROLES_AT_BASE_CONTAINER_TAKE_2, + self::GRANTABLE_ROLES_AT_BASE_CONTAINER_TAKE_3, + self::GRANTABLE_ROLES_AT_BASE_CONTAINER_TAKE_4, + self::GRANTABLE_ROLES_AT_BASE_CONTAINER_TAKE_5, + self::GRANTABLE_ROLES_AT_BASE_CONTAINER_TAKE_6, + self::GRANTABLE_ROLES_AT_BASE_CONTAINER_TAKE_7, + self::GRANTABLE_ROLES_AT_BASE_CONTRACT_MANAGER, + self::GRANTABLE_ROLES_AT_BASE_DIPLOMAT, + self::GRANTABLE_ROLES_AT_BASE_DIRECTOR, + self::GRANTABLE_ROLES_AT_BASE_FACTORY_MANAGER, + self::GRANTABLE_ROLES_AT_BASE_FITTING_MANAGER, + self::GRANTABLE_ROLES_AT_BASE_HANGAR_QUERY_1, + self::GRANTABLE_ROLES_AT_BASE_HANGAR_QUERY_2, + self::GRANTABLE_ROLES_AT_BASE_HANGAR_QUERY_3, + self::GRANTABLE_ROLES_AT_BASE_HANGAR_QUERY_4, + self::GRANTABLE_ROLES_AT_BASE_HANGAR_QUERY_5, + self::GRANTABLE_ROLES_AT_BASE_HANGAR_QUERY_6, + self::GRANTABLE_ROLES_AT_BASE_HANGAR_QUERY_7, + self::GRANTABLE_ROLES_AT_BASE_HANGAR_TAKE_1, + self::GRANTABLE_ROLES_AT_BASE_HANGAR_TAKE_2, + self::GRANTABLE_ROLES_AT_BASE_HANGAR_TAKE_3, + self::GRANTABLE_ROLES_AT_BASE_HANGAR_TAKE_4, + self::GRANTABLE_ROLES_AT_BASE_HANGAR_TAKE_5, + self::GRANTABLE_ROLES_AT_BASE_HANGAR_TAKE_6, + self::GRANTABLE_ROLES_AT_BASE_HANGAR_TAKE_7, + self::GRANTABLE_ROLES_AT_BASE_JUNIOR_ACCOUNTANT, + self::GRANTABLE_ROLES_AT_BASE_PERSONNEL_MANAGER, + self::GRANTABLE_ROLES_AT_BASE_RENT_FACTORY_FACILITY, + self::GRANTABLE_ROLES_AT_BASE_RENT_OFFICE, + self::GRANTABLE_ROLES_AT_BASE_RENT_RESEARCH_FACILITY, + self::GRANTABLE_ROLES_AT_BASE_SECURITY_OFFICER, + self::GRANTABLE_ROLES_AT_BASE_STARBASE_DEFENSE_OPERATOR, + self::GRANTABLE_ROLES_AT_BASE_STARBASE_FUEL_TECHNICIAN, + self::GRANTABLE_ROLES_AT_BASE_STATION_MANAGER, + self::GRANTABLE_ROLES_AT_BASE_TERRESTRIAL_COMBAT_OFFICER, + self::GRANTABLE_ROLES_AT_BASE_TERRESTRIAL_LOGISTICS_OFFICER, + self::GRANTABLE_ROLES_AT_BASE_TRADER, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getRolesAtOtherAllowableValues() + { + return [ + self::ROLES_AT_OTHER_ACCOUNT_TAKE_1, + self::ROLES_AT_OTHER_ACCOUNT_TAKE_2, + self::ROLES_AT_OTHER_ACCOUNT_TAKE_3, + self::ROLES_AT_OTHER_ACCOUNT_TAKE_4, + self::ROLES_AT_OTHER_ACCOUNT_TAKE_5, + self::ROLES_AT_OTHER_ACCOUNT_TAKE_6, + self::ROLES_AT_OTHER_ACCOUNT_TAKE_7, + self::ROLES_AT_OTHER_ACCOUNTANT, + self::ROLES_AT_OTHER_AUDITOR, + self::ROLES_AT_OTHER_COMMUNICATIONS_OFFICER, + self::ROLES_AT_OTHER_CONFIG_EQUIPMENT, + self::ROLES_AT_OTHER_CONFIG_STARBASE_EQUIPMENT, + self::ROLES_AT_OTHER_CONTAINER_TAKE_1, + self::ROLES_AT_OTHER_CONTAINER_TAKE_2, + self::ROLES_AT_OTHER_CONTAINER_TAKE_3, + self::ROLES_AT_OTHER_CONTAINER_TAKE_4, + self::ROLES_AT_OTHER_CONTAINER_TAKE_5, + self::ROLES_AT_OTHER_CONTAINER_TAKE_6, + self::ROLES_AT_OTHER_CONTAINER_TAKE_7, + self::ROLES_AT_OTHER_CONTRACT_MANAGER, + self::ROLES_AT_OTHER_DIPLOMAT, + self::ROLES_AT_OTHER_DIRECTOR, + self::ROLES_AT_OTHER_FACTORY_MANAGER, + self::ROLES_AT_OTHER_FITTING_MANAGER, + self::ROLES_AT_OTHER_HANGAR_QUERY_1, + self::ROLES_AT_OTHER_HANGAR_QUERY_2, + self::ROLES_AT_OTHER_HANGAR_QUERY_3, + self::ROLES_AT_OTHER_HANGAR_QUERY_4, + self::ROLES_AT_OTHER_HANGAR_QUERY_5, + self::ROLES_AT_OTHER_HANGAR_QUERY_6, + self::ROLES_AT_OTHER_HANGAR_QUERY_7, + self::ROLES_AT_OTHER_HANGAR_TAKE_1, + self::ROLES_AT_OTHER_HANGAR_TAKE_2, + self::ROLES_AT_OTHER_HANGAR_TAKE_3, + self::ROLES_AT_OTHER_HANGAR_TAKE_4, + self::ROLES_AT_OTHER_HANGAR_TAKE_5, + self::ROLES_AT_OTHER_HANGAR_TAKE_6, + self::ROLES_AT_OTHER_HANGAR_TAKE_7, + self::ROLES_AT_OTHER_JUNIOR_ACCOUNTANT, + self::ROLES_AT_OTHER_PERSONNEL_MANAGER, + self::ROLES_AT_OTHER_RENT_FACTORY_FACILITY, + self::ROLES_AT_OTHER_RENT_OFFICE, + self::ROLES_AT_OTHER_RENT_RESEARCH_FACILITY, + self::ROLES_AT_OTHER_SECURITY_OFFICER, + self::ROLES_AT_OTHER_STARBASE_DEFENSE_OPERATOR, + self::ROLES_AT_OTHER_STARBASE_FUEL_TECHNICIAN, + self::ROLES_AT_OTHER_STATION_MANAGER, + self::ROLES_AT_OTHER_TERRESTRIAL_COMBAT_OFFICER, + self::ROLES_AT_OTHER_TERRESTRIAL_LOGISTICS_OFFICER, + self::ROLES_AT_OTHER_TRADER, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getGrantableRolesAtOtherAllowableValues() + { + return [ + self::GRANTABLE_ROLES_AT_OTHER_ACCOUNT_TAKE_1, + self::GRANTABLE_ROLES_AT_OTHER_ACCOUNT_TAKE_2, + self::GRANTABLE_ROLES_AT_OTHER_ACCOUNT_TAKE_3, + self::GRANTABLE_ROLES_AT_OTHER_ACCOUNT_TAKE_4, + self::GRANTABLE_ROLES_AT_OTHER_ACCOUNT_TAKE_5, + self::GRANTABLE_ROLES_AT_OTHER_ACCOUNT_TAKE_6, + self::GRANTABLE_ROLES_AT_OTHER_ACCOUNT_TAKE_7, + self::GRANTABLE_ROLES_AT_OTHER_ACCOUNTANT, + self::GRANTABLE_ROLES_AT_OTHER_AUDITOR, + self::GRANTABLE_ROLES_AT_OTHER_COMMUNICATIONS_OFFICER, + self::GRANTABLE_ROLES_AT_OTHER_CONFIG_EQUIPMENT, + self::GRANTABLE_ROLES_AT_OTHER_CONFIG_STARBASE_EQUIPMENT, + self::GRANTABLE_ROLES_AT_OTHER_CONTAINER_TAKE_1, + self::GRANTABLE_ROLES_AT_OTHER_CONTAINER_TAKE_2, + self::GRANTABLE_ROLES_AT_OTHER_CONTAINER_TAKE_3, + self::GRANTABLE_ROLES_AT_OTHER_CONTAINER_TAKE_4, + self::GRANTABLE_ROLES_AT_OTHER_CONTAINER_TAKE_5, + self::GRANTABLE_ROLES_AT_OTHER_CONTAINER_TAKE_6, + self::GRANTABLE_ROLES_AT_OTHER_CONTAINER_TAKE_7, + self::GRANTABLE_ROLES_AT_OTHER_CONTRACT_MANAGER, + self::GRANTABLE_ROLES_AT_OTHER_DIPLOMAT, + self::GRANTABLE_ROLES_AT_OTHER_DIRECTOR, + self::GRANTABLE_ROLES_AT_OTHER_FACTORY_MANAGER, + self::GRANTABLE_ROLES_AT_OTHER_FITTING_MANAGER, + self::GRANTABLE_ROLES_AT_OTHER_HANGAR_QUERY_1, + self::GRANTABLE_ROLES_AT_OTHER_HANGAR_QUERY_2, + self::GRANTABLE_ROLES_AT_OTHER_HANGAR_QUERY_3, + self::GRANTABLE_ROLES_AT_OTHER_HANGAR_QUERY_4, + self::GRANTABLE_ROLES_AT_OTHER_HANGAR_QUERY_5, + self::GRANTABLE_ROLES_AT_OTHER_HANGAR_QUERY_6, + self::GRANTABLE_ROLES_AT_OTHER_HANGAR_QUERY_7, + self::GRANTABLE_ROLES_AT_OTHER_HANGAR_TAKE_1, + self::GRANTABLE_ROLES_AT_OTHER_HANGAR_TAKE_2, + self::GRANTABLE_ROLES_AT_OTHER_HANGAR_TAKE_3, + self::GRANTABLE_ROLES_AT_OTHER_HANGAR_TAKE_4, + self::GRANTABLE_ROLES_AT_OTHER_HANGAR_TAKE_5, + self::GRANTABLE_ROLES_AT_OTHER_HANGAR_TAKE_6, + self::GRANTABLE_ROLES_AT_OTHER_HANGAR_TAKE_7, + self::GRANTABLE_ROLES_AT_OTHER_JUNIOR_ACCOUNTANT, + self::GRANTABLE_ROLES_AT_OTHER_PERSONNEL_MANAGER, + self::GRANTABLE_ROLES_AT_OTHER_RENT_FACTORY_FACILITY, + self::GRANTABLE_ROLES_AT_OTHER_RENT_OFFICE, + self::GRANTABLE_ROLES_AT_OTHER_RENT_RESEARCH_FACILITY, + self::GRANTABLE_ROLES_AT_OTHER_SECURITY_OFFICER, + self::GRANTABLE_ROLES_AT_OTHER_STARBASE_DEFENSE_OPERATOR, + self::GRANTABLE_ROLES_AT_OTHER_STARBASE_FUEL_TECHNICIAN, + self::GRANTABLE_ROLES_AT_OTHER_STATION_MANAGER, + self::GRANTABLE_ROLES_AT_OTHER_TERRESTRIAL_COMBAT_OFFICER, + self::GRANTABLE_ROLES_AT_OTHER_TERRESTRIAL_LOGISTICS_OFFICER, + self::GRANTABLE_ROLES_AT_OTHER_TRADER, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['characterId'] = isset($data['characterId']) ? $data['characterId'] : null; + $this->container['roles'] = isset($data['roles']) ? $data['roles'] : null; + $this->container['grantableRoles'] = isset($data['grantableRoles']) ? $data['grantableRoles'] : null; + $this->container['rolesAtHq'] = isset($data['rolesAtHq']) ? $data['rolesAtHq'] : null; + $this->container['grantableRolesAtHq'] = isset($data['grantableRolesAtHq']) ? $data['grantableRolesAtHq'] : null; + $this->container['rolesAtBase'] = isset($data['rolesAtBase']) ? $data['rolesAtBase'] : null; + $this->container['grantableRolesAtBase'] = isset($data['grantableRolesAtBase']) ? $data['grantableRolesAtBase'] : null; + $this->container['rolesAtOther'] = isset($data['rolesAtOther']) ? $data['rolesAtOther'] : null; + $this->container['grantableRolesAtOther'] = isset($data['grantableRolesAtOther']) ? $data['grantableRolesAtOther'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['characterId'] === null) { + $invalidProperties[] = "'characterId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['characterId'] === null) { + return false; + } + return true; + } + + + /** + * Gets characterId + * + * @return int + */ + public function getCharacterId() + { + return $this->container['characterId']; + } + + /** + * Sets characterId + * + * @param int $characterId character_id integer + * + * @return $this + */ + public function setCharacterId($characterId) + { + $this->container['characterId'] = $characterId; + + return $this; + } + + /** + * Gets roles + * + * @return string[] + */ + public function getRoles() + { + return $this->container['roles']; + } + + /** + * Sets roles + * + * @param string[] $roles roles array + * + * @return $this + */ + public function setRoles($roles) + { + $allowedValues = $this->getRolesAllowableValues(); + if (!is_null($roles) && array_diff($roles, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'roles', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['roles'] = $roles; + + return $this; + } + + /** + * Gets grantableRoles + * + * @return string[] + */ + public function getGrantableRoles() + { + return $this->container['grantableRoles']; + } + + /** + * Sets grantableRoles + * + * @param string[] $grantableRoles grantable_roles array + * + * @return $this + */ + public function setGrantableRoles($grantableRoles) + { + $allowedValues = $this->getGrantableRolesAllowableValues(); + if (!is_null($grantableRoles) && array_diff($grantableRoles, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'grantableRoles', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['grantableRoles'] = $grantableRoles; + + return $this; + } + + /** + * Gets rolesAtHq + * + * @return string[] + */ + public function getRolesAtHq() + { + return $this->container['rolesAtHq']; + } + + /** + * Sets rolesAtHq + * + * @param string[] $rolesAtHq roles_at_hq array + * + * @return $this + */ + public function setRolesAtHq($rolesAtHq) + { + $allowedValues = $this->getRolesAtHqAllowableValues(); + if (!is_null($rolesAtHq) && array_diff($rolesAtHq, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'rolesAtHq', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['rolesAtHq'] = $rolesAtHq; + + return $this; + } + + /** + * Gets grantableRolesAtHq + * + * @return string[] + */ + public function getGrantableRolesAtHq() + { + return $this->container['grantableRolesAtHq']; + } + + /** + * Sets grantableRolesAtHq + * + * @param string[] $grantableRolesAtHq grantable_roles_at_hq array + * + * @return $this + */ + public function setGrantableRolesAtHq($grantableRolesAtHq) + { + $allowedValues = $this->getGrantableRolesAtHqAllowableValues(); + if (!is_null($grantableRolesAtHq) && array_diff($grantableRolesAtHq, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'grantableRolesAtHq', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['grantableRolesAtHq'] = $grantableRolesAtHq; + + return $this; + } + + /** + * Gets rolesAtBase + * + * @return string[] + */ + public function getRolesAtBase() + { + return $this->container['rolesAtBase']; + } + + /** + * Sets rolesAtBase + * + * @param string[] $rolesAtBase roles_at_base array + * + * @return $this + */ + public function setRolesAtBase($rolesAtBase) + { + $allowedValues = $this->getRolesAtBaseAllowableValues(); + if (!is_null($rolesAtBase) && array_diff($rolesAtBase, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'rolesAtBase', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['rolesAtBase'] = $rolesAtBase; + + return $this; + } + + /** + * Gets grantableRolesAtBase + * + * @return string[] + */ + public function getGrantableRolesAtBase() + { + return $this->container['grantableRolesAtBase']; + } + + /** + * Sets grantableRolesAtBase + * + * @param string[] $grantableRolesAtBase grantable_roles_at_base array + * + * @return $this + */ + public function setGrantableRolesAtBase($grantableRolesAtBase) + { + $allowedValues = $this->getGrantableRolesAtBaseAllowableValues(); + if (!is_null($grantableRolesAtBase) && array_diff($grantableRolesAtBase, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'grantableRolesAtBase', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['grantableRolesAtBase'] = $grantableRolesAtBase; + + return $this; + } + + /** + * Gets rolesAtOther + * + * @return string[] + */ + public function getRolesAtOther() + { + return $this->container['rolesAtOther']; + } + + /** + * Sets rolesAtOther + * + * @param string[] $rolesAtOther roles_at_other array + * + * @return $this + */ + public function setRolesAtOther($rolesAtOther) + { + $allowedValues = $this->getRolesAtOtherAllowableValues(); + if (!is_null($rolesAtOther) && array_diff($rolesAtOther, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'rolesAtOther', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['rolesAtOther'] = $rolesAtOther; + + return $this; + } + + /** + * Gets grantableRolesAtOther + * + * @return string[] + */ + public function getGrantableRolesAtOther() + { + return $this->container['grantableRolesAtOther']; + } + + /** + * Sets grantableRolesAtOther + * + * @param string[] $grantableRolesAtOther grantable_roles_at_other array + * + * @return $this + */ + public function setGrantableRolesAtOther($grantableRolesAtOther) + { + $allowedValues = $this->getGrantableRolesAtOtherAllowableValues(); + if (!is_null($grantableRolesAtOther) && array_diff($grantableRolesAtOther, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'grantableRolesAtOther', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['grantableRolesAtOther'] = $grantableRolesAtOther; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdRolesHistory200Ok.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdRolesHistory200Ok.php new file mode 100644 index 0000000..d10b011 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdRolesHistory200Ok.php @@ -0,0 +1,777 @@ + 'int', + 'changedAt' => '\DateTime', + 'issuerId' => 'int', + 'roleType' => 'string', + 'oldRoles' => 'string[]', + 'newRoles' => 'string[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'characterId' => 'int32', + 'changedAt' => 'date-time', + 'issuerId' => 'int32', + 'roleType' => null, + 'oldRoles' => null, + 'newRoles' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'characterId' => 'character_id', + 'changedAt' => 'changed_at', + 'issuerId' => 'issuer_id', + 'roleType' => 'role_type', + 'oldRoles' => 'old_roles', + 'newRoles' => 'new_roles' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'characterId' => 'setCharacterId', + 'changedAt' => 'setChangedAt', + 'issuerId' => 'setIssuerId', + 'roleType' => 'setRoleType', + 'oldRoles' => 'setOldRoles', + 'newRoles' => 'setNewRoles' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'characterId' => 'getCharacterId', + 'changedAt' => 'getChangedAt', + 'issuerId' => 'getIssuerId', + 'roleType' => 'getRoleType', + 'oldRoles' => 'getOldRoles', + 'newRoles' => 'getNewRoles' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const ROLE_TYPE_GRANTABLE_ROLES = 'grantable_roles'; + const ROLE_TYPE_GRANTABLE_ROLES_AT_BASE = 'grantable_roles_at_base'; + const ROLE_TYPE_GRANTABLE_ROLES_AT_HQ = 'grantable_roles_at_hq'; + const ROLE_TYPE_GRANTABLE_ROLES_AT_OTHER = 'grantable_roles_at_other'; + const ROLE_TYPE_ROLES = 'roles'; + const ROLE_TYPE_ROLES_AT_BASE = 'roles_at_base'; + const ROLE_TYPE_ROLES_AT_HQ = 'roles_at_hq'; + const ROLE_TYPE_ROLES_AT_OTHER = 'roles_at_other'; + const OLD_ROLES_ACCOUNT_TAKE_1 = 'Account_Take_1'; + const OLD_ROLES_ACCOUNT_TAKE_2 = 'Account_Take_2'; + const OLD_ROLES_ACCOUNT_TAKE_3 = 'Account_Take_3'; + const OLD_ROLES_ACCOUNT_TAKE_4 = 'Account_Take_4'; + const OLD_ROLES_ACCOUNT_TAKE_5 = 'Account_Take_5'; + const OLD_ROLES_ACCOUNT_TAKE_6 = 'Account_Take_6'; + const OLD_ROLES_ACCOUNT_TAKE_7 = 'Account_Take_7'; + const OLD_ROLES_ACCOUNTANT = 'Accountant'; + const OLD_ROLES_AUDITOR = 'Auditor'; + const OLD_ROLES_COMMUNICATIONS_OFFICER = 'Communications_Officer'; + const OLD_ROLES_CONFIG_EQUIPMENT = 'Config_Equipment'; + const OLD_ROLES_CONFIG_STARBASE_EQUIPMENT = 'Config_Starbase_Equipment'; + const OLD_ROLES_CONTAINER_TAKE_1 = 'Container_Take_1'; + const OLD_ROLES_CONTAINER_TAKE_2 = 'Container_Take_2'; + const OLD_ROLES_CONTAINER_TAKE_3 = 'Container_Take_3'; + const OLD_ROLES_CONTAINER_TAKE_4 = 'Container_Take_4'; + const OLD_ROLES_CONTAINER_TAKE_5 = 'Container_Take_5'; + const OLD_ROLES_CONTAINER_TAKE_6 = 'Container_Take_6'; + const OLD_ROLES_CONTAINER_TAKE_7 = 'Container_Take_7'; + const OLD_ROLES_CONTRACT_MANAGER = 'Contract_Manager'; + const OLD_ROLES_DIPLOMAT = 'Diplomat'; + const OLD_ROLES_DIRECTOR = 'Director'; + const OLD_ROLES_FACTORY_MANAGER = 'Factory_Manager'; + const OLD_ROLES_FITTING_MANAGER = 'Fitting_Manager'; + const OLD_ROLES_HANGAR_QUERY_1 = 'Hangar_Query_1'; + const OLD_ROLES_HANGAR_QUERY_2 = 'Hangar_Query_2'; + const OLD_ROLES_HANGAR_QUERY_3 = 'Hangar_Query_3'; + const OLD_ROLES_HANGAR_QUERY_4 = 'Hangar_Query_4'; + const OLD_ROLES_HANGAR_QUERY_5 = 'Hangar_Query_5'; + const OLD_ROLES_HANGAR_QUERY_6 = 'Hangar_Query_6'; + const OLD_ROLES_HANGAR_QUERY_7 = 'Hangar_Query_7'; + const OLD_ROLES_HANGAR_TAKE_1 = 'Hangar_Take_1'; + const OLD_ROLES_HANGAR_TAKE_2 = 'Hangar_Take_2'; + const OLD_ROLES_HANGAR_TAKE_3 = 'Hangar_Take_3'; + const OLD_ROLES_HANGAR_TAKE_4 = 'Hangar_Take_4'; + const OLD_ROLES_HANGAR_TAKE_5 = 'Hangar_Take_5'; + const OLD_ROLES_HANGAR_TAKE_6 = 'Hangar_Take_6'; + const OLD_ROLES_HANGAR_TAKE_7 = 'Hangar_Take_7'; + const OLD_ROLES_JUNIOR_ACCOUNTANT = 'Junior_Accountant'; + const OLD_ROLES_PERSONNEL_MANAGER = 'Personnel_Manager'; + const OLD_ROLES_RENT_FACTORY_FACILITY = 'Rent_Factory_Facility'; + const OLD_ROLES_RENT_OFFICE = 'Rent_Office'; + const OLD_ROLES_RENT_RESEARCH_FACILITY = 'Rent_Research_Facility'; + const OLD_ROLES_SECURITY_OFFICER = 'Security_Officer'; + const OLD_ROLES_STARBASE_DEFENSE_OPERATOR = 'Starbase_Defense_Operator'; + const OLD_ROLES_STARBASE_FUEL_TECHNICIAN = 'Starbase_Fuel_Technician'; + const OLD_ROLES_STATION_MANAGER = 'Station_Manager'; + const OLD_ROLES_TERRESTRIAL_COMBAT_OFFICER = 'Terrestrial_Combat_Officer'; + const OLD_ROLES_TERRESTRIAL_LOGISTICS_OFFICER = 'Terrestrial_Logistics_Officer'; + const OLD_ROLES_TRADER = 'Trader'; + const NEW_ROLES_ACCOUNT_TAKE_1 = 'Account_Take_1'; + const NEW_ROLES_ACCOUNT_TAKE_2 = 'Account_Take_2'; + const NEW_ROLES_ACCOUNT_TAKE_3 = 'Account_Take_3'; + const NEW_ROLES_ACCOUNT_TAKE_4 = 'Account_Take_4'; + const NEW_ROLES_ACCOUNT_TAKE_5 = 'Account_Take_5'; + const NEW_ROLES_ACCOUNT_TAKE_6 = 'Account_Take_6'; + const NEW_ROLES_ACCOUNT_TAKE_7 = 'Account_Take_7'; + const NEW_ROLES_ACCOUNTANT = 'Accountant'; + const NEW_ROLES_AUDITOR = 'Auditor'; + const NEW_ROLES_COMMUNICATIONS_OFFICER = 'Communications_Officer'; + const NEW_ROLES_CONFIG_EQUIPMENT = 'Config_Equipment'; + const NEW_ROLES_CONFIG_STARBASE_EQUIPMENT = 'Config_Starbase_Equipment'; + const NEW_ROLES_CONTAINER_TAKE_1 = 'Container_Take_1'; + const NEW_ROLES_CONTAINER_TAKE_2 = 'Container_Take_2'; + const NEW_ROLES_CONTAINER_TAKE_3 = 'Container_Take_3'; + const NEW_ROLES_CONTAINER_TAKE_4 = 'Container_Take_4'; + const NEW_ROLES_CONTAINER_TAKE_5 = 'Container_Take_5'; + const NEW_ROLES_CONTAINER_TAKE_6 = 'Container_Take_6'; + const NEW_ROLES_CONTAINER_TAKE_7 = 'Container_Take_7'; + const NEW_ROLES_CONTRACT_MANAGER = 'Contract_Manager'; + const NEW_ROLES_DIPLOMAT = 'Diplomat'; + const NEW_ROLES_DIRECTOR = 'Director'; + const NEW_ROLES_FACTORY_MANAGER = 'Factory_Manager'; + const NEW_ROLES_FITTING_MANAGER = 'Fitting_Manager'; + const NEW_ROLES_HANGAR_QUERY_1 = 'Hangar_Query_1'; + const NEW_ROLES_HANGAR_QUERY_2 = 'Hangar_Query_2'; + const NEW_ROLES_HANGAR_QUERY_3 = 'Hangar_Query_3'; + const NEW_ROLES_HANGAR_QUERY_4 = 'Hangar_Query_4'; + const NEW_ROLES_HANGAR_QUERY_5 = 'Hangar_Query_5'; + const NEW_ROLES_HANGAR_QUERY_6 = 'Hangar_Query_6'; + const NEW_ROLES_HANGAR_QUERY_7 = 'Hangar_Query_7'; + const NEW_ROLES_HANGAR_TAKE_1 = 'Hangar_Take_1'; + const NEW_ROLES_HANGAR_TAKE_2 = 'Hangar_Take_2'; + const NEW_ROLES_HANGAR_TAKE_3 = 'Hangar_Take_3'; + const NEW_ROLES_HANGAR_TAKE_4 = 'Hangar_Take_4'; + const NEW_ROLES_HANGAR_TAKE_5 = 'Hangar_Take_5'; + const NEW_ROLES_HANGAR_TAKE_6 = 'Hangar_Take_6'; + const NEW_ROLES_HANGAR_TAKE_7 = 'Hangar_Take_7'; + const NEW_ROLES_JUNIOR_ACCOUNTANT = 'Junior_Accountant'; + const NEW_ROLES_PERSONNEL_MANAGER = 'Personnel_Manager'; + const NEW_ROLES_RENT_FACTORY_FACILITY = 'Rent_Factory_Facility'; + const NEW_ROLES_RENT_OFFICE = 'Rent_Office'; + const NEW_ROLES_RENT_RESEARCH_FACILITY = 'Rent_Research_Facility'; + const NEW_ROLES_SECURITY_OFFICER = 'Security_Officer'; + const NEW_ROLES_STARBASE_DEFENSE_OPERATOR = 'Starbase_Defense_Operator'; + const NEW_ROLES_STARBASE_FUEL_TECHNICIAN = 'Starbase_Fuel_Technician'; + const NEW_ROLES_STATION_MANAGER = 'Station_Manager'; + const NEW_ROLES_TERRESTRIAL_COMBAT_OFFICER = 'Terrestrial_Combat_Officer'; + const NEW_ROLES_TERRESTRIAL_LOGISTICS_OFFICER = 'Terrestrial_Logistics_Officer'; + const NEW_ROLES_TRADER = 'Trader'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getRoleTypeAllowableValues() + { + return [ + self::ROLE_TYPE_GRANTABLE_ROLES, + self::ROLE_TYPE_GRANTABLE_ROLES_AT_BASE, + self::ROLE_TYPE_GRANTABLE_ROLES_AT_HQ, + self::ROLE_TYPE_GRANTABLE_ROLES_AT_OTHER, + self::ROLE_TYPE_ROLES, + self::ROLE_TYPE_ROLES_AT_BASE, + self::ROLE_TYPE_ROLES_AT_HQ, + self::ROLE_TYPE_ROLES_AT_OTHER, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getOldRolesAllowableValues() + { + return [ + self::OLD_ROLES_ACCOUNT_TAKE_1, + self::OLD_ROLES_ACCOUNT_TAKE_2, + self::OLD_ROLES_ACCOUNT_TAKE_3, + self::OLD_ROLES_ACCOUNT_TAKE_4, + self::OLD_ROLES_ACCOUNT_TAKE_5, + self::OLD_ROLES_ACCOUNT_TAKE_6, + self::OLD_ROLES_ACCOUNT_TAKE_7, + self::OLD_ROLES_ACCOUNTANT, + self::OLD_ROLES_AUDITOR, + self::OLD_ROLES_COMMUNICATIONS_OFFICER, + self::OLD_ROLES_CONFIG_EQUIPMENT, + self::OLD_ROLES_CONFIG_STARBASE_EQUIPMENT, + self::OLD_ROLES_CONTAINER_TAKE_1, + self::OLD_ROLES_CONTAINER_TAKE_2, + self::OLD_ROLES_CONTAINER_TAKE_3, + self::OLD_ROLES_CONTAINER_TAKE_4, + self::OLD_ROLES_CONTAINER_TAKE_5, + self::OLD_ROLES_CONTAINER_TAKE_6, + self::OLD_ROLES_CONTAINER_TAKE_7, + self::OLD_ROLES_CONTRACT_MANAGER, + self::OLD_ROLES_DIPLOMAT, + self::OLD_ROLES_DIRECTOR, + self::OLD_ROLES_FACTORY_MANAGER, + self::OLD_ROLES_FITTING_MANAGER, + self::OLD_ROLES_HANGAR_QUERY_1, + self::OLD_ROLES_HANGAR_QUERY_2, + self::OLD_ROLES_HANGAR_QUERY_3, + self::OLD_ROLES_HANGAR_QUERY_4, + self::OLD_ROLES_HANGAR_QUERY_5, + self::OLD_ROLES_HANGAR_QUERY_6, + self::OLD_ROLES_HANGAR_QUERY_7, + self::OLD_ROLES_HANGAR_TAKE_1, + self::OLD_ROLES_HANGAR_TAKE_2, + self::OLD_ROLES_HANGAR_TAKE_3, + self::OLD_ROLES_HANGAR_TAKE_4, + self::OLD_ROLES_HANGAR_TAKE_5, + self::OLD_ROLES_HANGAR_TAKE_6, + self::OLD_ROLES_HANGAR_TAKE_7, + self::OLD_ROLES_JUNIOR_ACCOUNTANT, + self::OLD_ROLES_PERSONNEL_MANAGER, + self::OLD_ROLES_RENT_FACTORY_FACILITY, + self::OLD_ROLES_RENT_OFFICE, + self::OLD_ROLES_RENT_RESEARCH_FACILITY, + self::OLD_ROLES_SECURITY_OFFICER, + self::OLD_ROLES_STARBASE_DEFENSE_OPERATOR, + self::OLD_ROLES_STARBASE_FUEL_TECHNICIAN, + self::OLD_ROLES_STATION_MANAGER, + self::OLD_ROLES_TERRESTRIAL_COMBAT_OFFICER, + self::OLD_ROLES_TERRESTRIAL_LOGISTICS_OFFICER, + self::OLD_ROLES_TRADER, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getNewRolesAllowableValues() + { + return [ + self::NEW_ROLES_ACCOUNT_TAKE_1, + self::NEW_ROLES_ACCOUNT_TAKE_2, + self::NEW_ROLES_ACCOUNT_TAKE_3, + self::NEW_ROLES_ACCOUNT_TAKE_4, + self::NEW_ROLES_ACCOUNT_TAKE_5, + self::NEW_ROLES_ACCOUNT_TAKE_6, + self::NEW_ROLES_ACCOUNT_TAKE_7, + self::NEW_ROLES_ACCOUNTANT, + self::NEW_ROLES_AUDITOR, + self::NEW_ROLES_COMMUNICATIONS_OFFICER, + self::NEW_ROLES_CONFIG_EQUIPMENT, + self::NEW_ROLES_CONFIG_STARBASE_EQUIPMENT, + self::NEW_ROLES_CONTAINER_TAKE_1, + self::NEW_ROLES_CONTAINER_TAKE_2, + self::NEW_ROLES_CONTAINER_TAKE_3, + self::NEW_ROLES_CONTAINER_TAKE_4, + self::NEW_ROLES_CONTAINER_TAKE_5, + self::NEW_ROLES_CONTAINER_TAKE_6, + self::NEW_ROLES_CONTAINER_TAKE_7, + self::NEW_ROLES_CONTRACT_MANAGER, + self::NEW_ROLES_DIPLOMAT, + self::NEW_ROLES_DIRECTOR, + self::NEW_ROLES_FACTORY_MANAGER, + self::NEW_ROLES_FITTING_MANAGER, + self::NEW_ROLES_HANGAR_QUERY_1, + self::NEW_ROLES_HANGAR_QUERY_2, + self::NEW_ROLES_HANGAR_QUERY_3, + self::NEW_ROLES_HANGAR_QUERY_4, + self::NEW_ROLES_HANGAR_QUERY_5, + self::NEW_ROLES_HANGAR_QUERY_6, + self::NEW_ROLES_HANGAR_QUERY_7, + self::NEW_ROLES_HANGAR_TAKE_1, + self::NEW_ROLES_HANGAR_TAKE_2, + self::NEW_ROLES_HANGAR_TAKE_3, + self::NEW_ROLES_HANGAR_TAKE_4, + self::NEW_ROLES_HANGAR_TAKE_5, + self::NEW_ROLES_HANGAR_TAKE_6, + self::NEW_ROLES_HANGAR_TAKE_7, + self::NEW_ROLES_JUNIOR_ACCOUNTANT, + self::NEW_ROLES_PERSONNEL_MANAGER, + self::NEW_ROLES_RENT_FACTORY_FACILITY, + self::NEW_ROLES_RENT_OFFICE, + self::NEW_ROLES_RENT_RESEARCH_FACILITY, + self::NEW_ROLES_SECURITY_OFFICER, + self::NEW_ROLES_STARBASE_DEFENSE_OPERATOR, + self::NEW_ROLES_STARBASE_FUEL_TECHNICIAN, + self::NEW_ROLES_STATION_MANAGER, + self::NEW_ROLES_TERRESTRIAL_COMBAT_OFFICER, + self::NEW_ROLES_TERRESTRIAL_LOGISTICS_OFFICER, + self::NEW_ROLES_TRADER, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['characterId'] = isset($data['characterId']) ? $data['characterId'] : null; + $this->container['changedAt'] = isset($data['changedAt']) ? $data['changedAt'] : null; + $this->container['issuerId'] = isset($data['issuerId']) ? $data['issuerId'] : null; + $this->container['roleType'] = isset($data['roleType']) ? $data['roleType'] : null; + $this->container['oldRoles'] = isset($data['oldRoles']) ? $data['oldRoles'] : null; + $this->container['newRoles'] = isset($data['newRoles']) ? $data['newRoles'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['characterId'] === null) { + $invalidProperties[] = "'characterId' can't be null"; + } + if ($this->container['changedAt'] === null) { + $invalidProperties[] = "'changedAt' can't be null"; + } + if ($this->container['issuerId'] === null) { + $invalidProperties[] = "'issuerId' can't be null"; + } + if ($this->container['roleType'] === null) { + $invalidProperties[] = "'roleType' can't be null"; + } + $allowedValues = $this->getRoleTypeAllowableValues(); + if (!in_array($this->container['roleType'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'roleType', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['oldRoles'] === null) { + $invalidProperties[] = "'oldRoles' can't be null"; + } + if ($this->container['newRoles'] === null) { + $invalidProperties[] = "'newRoles' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['characterId'] === null) { + return false; + } + if ($this->container['changedAt'] === null) { + return false; + } + if ($this->container['issuerId'] === null) { + return false; + } + if ($this->container['roleType'] === null) { + return false; + } + $allowedValues = $this->getRoleTypeAllowableValues(); + if (!in_array($this->container['roleType'], $allowedValues)) { + return false; + } + if ($this->container['oldRoles'] === null) { + return false; + } + if ($this->container['newRoles'] === null) { + return false; + } + return true; + } + + + /** + * Gets characterId + * + * @return int + */ + public function getCharacterId() + { + return $this->container['characterId']; + } + + /** + * Sets characterId + * + * @param int $characterId The character whose roles are changed + * + * @return $this + */ + public function setCharacterId($characterId) + { + $this->container['characterId'] = $characterId; + + return $this; + } + + /** + * Gets changedAt + * + * @return \DateTime + */ + public function getChangedAt() + { + return $this->container['changedAt']; + } + + /** + * Sets changedAt + * + * @param \DateTime $changedAt changed_at string + * + * @return $this + */ + public function setChangedAt($changedAt) + { + $this->container['changedAt'] = $changedAt; + + return $this; + } + + /** + * Gets issuerId + * + * @return int + */ + public function getIssuerId() + { + return $this->container['issuerId']; + } + + /** + * Sets issuerId + * + * @param int $issuerId ID of the character who issued this change + * + * @return $this + */ + public function setIssuerId($issuerId) + { + $this->container['issuerId'] = $issuerId; + + return $this; + } + + /** + * Gets roleType + * + * @return string + */ + public function getRoleType() + { + return $this->container['roleType']; + } + + /** + * Sets roleType + * + * @param string $roleType role_type string + * + * @return $this + */ + public function setRoleType($roleType) + { + $allowedValues = $this->getRoleTypeAllowableValues(); + if (!in_array($roleType, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'roleType', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['roleType'] = $roleType; + + return $this; + } + + /** + * Gets oldRoles + * + * @return string[] + */ + public function getOldRoles() + { + return $this->container['oldRoles']; + } + + /** + * Sets oldRoles + * + * @param string[] $oldRoles old_roles array + * + * @return $this + */ + public function setOldRoles($oldRoles) + { + $allowedValues = $this->getOldRolesAllowableValues(); + if (array_diff($oldRoles, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'oldRoles', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['oldRoles'] = $oldRoles; + + return $this; + } + + /** + * Gets newRoles + * + * @return string[] + */ + public function getNewRoles() + { + return $this->container['newRoles']; + } + + /** + * Sets newRoles + * + * @param string[] $newRoles new_roles array + * + * @return $this + */ + public function setNewRoles($newRoles) + { + $allowedValues = $this->getNewRolesAllowableValues(); + if (array_diff($newRoles, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'newRoles', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['newRoles'] = $newRoles; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdShareholders200Ok.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdShareholders200Ok.php new file mode 100644 index 0000000..d9a5232 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdShareholders200Ok.php @@ -0,0 +1,417 @@ + 'int', + 'shareholderType' => 'string', + 'shareCount' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'shareholderId' => 'int32', + 'shareholderType' => null, + 'shareCount' => 'int64' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'shareholderId' => 'shareholder_id', + 'shareholderType' => 'shareholder_type', + 'shareCount' => 'share_count' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'shareholderId' => 'setShareholderId', + 'shareholderType' => 'setShareholderType', + 'shareCount' => 'setShareCount' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'shareholderId' => 'getShareholderId', + 'shareholderType' => 'getShareholderType', + 'shareCount' => 'getShareCount' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const SHAREHOLDER_TYPE_CHARACTER = 'character'; + const SHAREHOLDER_TYPE_CORPORATION = 'corporation'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getShareholderTypeAllowableValues() + { + return [ + self::SHAREHOLDER_TYPE_CHARACTER, + self::SHAREHOLDER_TYPE_CORPORATION, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['shareholderId'] = isset($data['shareholderId']) ? $data['shareholderId'] : null; + $this->container['shareholderType'] = isset($data['shareholderType']) ? $data['shareholderType'] : null; + $this->container['shareCount'] = isset($data['shareCount']) ? $data['shareCount'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['shareholderId'] === null) { + $invalidProperties[] = "'shareholderId' can't be null"; + } + if ($this->container['shareholderType'] === null) { + $invalidProperties[] = "'shareholderType' can't be null"; + } + $allowedValues = $this->getShareholderTypeAllowableValues(); + if (!in_array($this->container['shareholderType'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'shareholderType', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['shareCount'] === null) { + $invalidProperties[] = "'shareCount' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['shareholderId'] === null) { + return false; + } + if ($this->container['shareholderType'] === null) { + return false; + } + $allowedValues = $this->getShareholderTypeAllowableValues(); + if (!in_array($this->container['shareholderType'], $allowedValues)) { + return false; + } + if ($this->container['shareCount'] === null) { + return false; + } + return true; + } + + + /** + * Gets shareholderId + * + * @return int + */ + public function getShareholderId() + { + return $this->container['shareholderId']; + } + + /** + * Sets shareholderId + * + * @param int $shareholderId shareholder_id integer + * + * @return $this + */ + public function setShareholderId($shareholderId) + { + $this->container['shareholderId'] = $shareholderId; + + return $this; + } + + /** + * Gets shareholderType + * + * @return string + */ + public function getShareholderType() + { + return $this->container['shareholderType']; + } + + /** + * Sets shareholderType + * + * @param string $shareholderType shareholder_type string + * + * @return $this + */ + public function setShareholderType($shareholderType) + { + $allowedValues = $this->getShareholderTypeAllowableValues(); + if (!in_array($shareholderType, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'shareholderType', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['shareholderType'] = $shareholderType; + + return $this; + } + + /** + * Gets shareCount + * + * @return int + */ + public function getShareCount() + { + return $this->container['shareCount']; + } + + /** + * Sets shareCount + * + * @param int $shareCount share_count integer + * + * @return $this + */ + public function setShareCount($shareCount) + { + $this->container['shareCount'] = $shareCount; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdStandings200Ok.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdStandings200Ok.php new file mode 100644 index 0000000..fd43448 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdStandings200Ok.php @@ -0,0 +1,441 @@ + 'int', + 'fromType' => 'string', + 'standing' => 'float' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'fromId' => 'int32', + 'fromType' => null, + 'standing' => 'float' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'fromId' => 'from_id', + 'fromType' => 'from_type', + 'standing' => 'standing' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'fromId' => 'setFromId', + 'fromType' => 'setFromType', + 'standing' => 'setStanding' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'fromId' => 'getFromId', + 'fromType' => 'getFromType', + 'standing' => 'getStanding' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const FROM_TYPE_AGENT = 'agent'; + const FROM_TYPE_NPC_CORP = 'npc_corp'; + const FROM_TYPE_FACTION = 'faction'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getFromTypeAllowableValues() + { + return [ + self::FROM_TYPE_AGENT, + self::FROM_TYPE_NPC_CORP, + self::FROM_TYPE_FACTION, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['fromId'] = isset($data['fromId']) ? $data['fromId'] : null; + $this->container['fromType'] = isset($data['fromType']) ? $data['fromType'] : null; + $this->container['standing'] = isset($data['standing']) ? $data['standing'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['fromId'] === null) { + $invalidProperties[] = "'fromId' can't be null"; + } + if ($this->container['fromType'] === null) { + $invalidProperties[] = "'fromType' can't be null"; + } + $allowedValues = $this->getFromTypeAllowableValues(); + if (!in_array($this->container['fromType'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'fromType', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['standing'] === null) { + $invalidProperties[] = "'standing' can't be null"; + } + if (($this->container['standing'] > 10)) { + $invalidProperties[] = "invalid value for 'standing', must be smaller than or equal to 10."; + } + + if (($this->container['standing'] < -10)) { + $invalidProperties[] = "invalid value for 'standing', must be bigger than or equal to -10."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['fromId'] === null) { + return false; + } + if ($this->container['fromType'] === null) { + return false; + } + $allowedValues = $this->getFromTypeAllowableValues(); + if (!in_array($this->container['fromType'], $allowedValues)) { + return false; + } + if ($this->container['standing'] === null) { + return false; + } + if ($this->container['standing'] > 10) { + return false; + } + if ($this->container['standing'] < -10) { + return false; + } + return true; + } + + + /** + * Gets fromId + * + * @return int + */ + public function getFromId() + { + return $this->container['fromId']; + } + + /** + * Sets fromId + * + * @param int $fromId from_id integer + * + * @return $this + */ + public function setFromId($fromId) + { + $this->container['fromId'] = $fromId; + + return $this; + } + + /** + * Gets fromType + * + * @return string + */ + public function getFromType() + { + return $this->container['fromType']; + } + + /** + * Sets fromType + * + * @param string $fromType from_type string + * + * @return $this + */ + public function setFromType($fromType) + { + $allowedValues = $this->getFromTypeAllowableValues(); + if (!in_array($fromType, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'fromType', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['fromType'] = $fromType; + + return $this; + } + + /** + * Gets standing + * + * @return float + */ + public function getStanding() + { + return $this->container['standing']; + } + + /** + * Sets standing + * + * @param float $standing standing number + * + * @return $this + */ + public function setStanding($standing) + { + + if (($standing > 10)) { + throw new \InvalidArgumentException('invalid value for $standing when calling GetCorporationsCorporationIdStandings200Ok., must be smaller than or equal to 10.'); + } + if (($standing < -10)) { + throw new \InvalidArgumentException('invalid value for $standing when calling GetCorporationsCorporationIdStandings200Ok., must be bigger than or equal to -10.'); + } + + $this->container['standing'] = $standing; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdStarbases200Ok.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdStarbases200Ok.php new file mode 100644 index 0000000..e468562 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdStarbases200Ok.php @@ -0,0 +1,573 @@ + 'int', + 'typeId' => 'int', + 'systemId' => 'int', + 'moonId' => 'int', + 'state' => 'string', + 'unanchorAt' => '\DateTime', + 'reinforcedUntil' => '\DateTime', + 'onlinedSince' => '\DateTime' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'starbaseId' => 'int64', + 'typeId' => 'int32', + 'systemId' => 'int32', + 'moonId' => 'int32', + 'state' => null, + 'unanchorAt' => 'date-time', + 'reinforcedUntil' => 'date-time', + 'onlinedSince' => 'date-time' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'starbaseId' => 'starbase_id', + 'typeId' => 'type_id', + 'systemId' => 'system_id', + 'moonId' => 'moon_id', + 'state' => 'state', + 'unanchorAt' => 'unanchor_at', + 'reinforcedUntil' => 'reinforced_until', + 'onlinedSince' => 'onlined_since' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'starbaseId' => 'setStarbaseId', + 'typeId' => 'setTypeId', + 'systemId' => 'setSystemId', + 'moonId' => 'setMoonId', + 'state' => 'setState', + 'unanchorAt' => 'setUnanchorAt', + 'reinforcedUntil' => 'setReinforcedUntil', + 'onlinedSince' => 'setOnlinedSince' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'starbaseId' => 'getStarbaseId', + 'typeId' => 'getTypeId', + 'systemId' => 'getSystemId', + 'moonId' => 'getMoonId', + 'state' => 'getState', + 'unanchorAt' => 'getUnanchorAt', + 'reinforcedUntil' => 'getReinforcedUntil', + 'onlinedSince' => 'getOnlinedSince' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const STATE_OFFLINE = 'offline'; + const STATE_ONLINE = 'online'; + const STATE_ONLINING = 'onlining'; + const STATE_REINFORCED = 'reinforced'; + const STATE_UNANCHORING = 'unanchoring'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getStateAllowableValues() + { + return [ + self::STATE_OFFLINE, + self::STATE_ONLINE, + self::STATE_ONLINING, + self::STATE_REINFORCED, + self::STATE_UNANCHORING, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['starbaseId'] = isset($data['starbaseId']) ? $data['starbaseId'] : null; + $this->container['typeId'] = isset($data['typeId']) ? $data['typeId'] : null; + $this->container['systemId'] = isset($data['systemId']) ? $data['systemId'] : null; + $this->container['moonId'] = isset($data['moonId']) ? $data['moonId'] : null; + $this->container['state'] = isset($data['state']) ? $data['state'] : null; + $this->container['unanchorAt'] = isset($data['unanchorAt']) ? $data['unanchorAt'] : null; + $this->container['reinforcedUntil'] = isset($data['reinforcedUntil']) ? $data['reinforcedUntil'] : null; + $this->container['onlinedSince'] = isset($data['onlinedSince']) ? $data['onlinedSince'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['starbaseId'] === null) { + $invalidProperties[] = "'starbaseId' can't be null"; + } + if ($this->container['typeId'] === null) { + $invalidProperties[] = "'typeId' can't be null"; + } + if ($this->container['systemId'] === null) { + $invalidProperties[] = "'systemId' can't be null"; + } + $allowedValues = $this->getStateAllowableValues(); + if (!in_array($this->container['state'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'state', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['starbaseId'] === null) { + return false; + } + if ($this->container['typeId'] === null) { + return false; + } + if ($this->container['systemId'] === null) { + return false; + } + $allowedValues = $this->getStateAllowableValues(); + if (!in_array($this->container['state'], $allowedValues)) { + return false; + } + return true; + } + + + /** + * Gets starbaseId + * + * @return int + */ + public function getStarbaseId() + { + return $this->container['starbaseId']; + } + + /** + * Sets starbaseId + * + * @param int $starbaseId Unique ID for this starbase (POS) + * + * @return $this + */ + public function setStarbaseId($starbaseId) + { + $this->container['starbaseId'] = $starbaseId; + + return $this; + } + + /** + * Gets typeId + * + * @return int + */ + public function getTypeId() + { + return $this->container['typeId']; + } + + /** + * Sets typeId + * + * @param int $typeId Starbase (POS) type + * + * @return $this + */ + public function setTypeId($typeId) + { + $this->container['typeId'] = $typeId; + + return $this; + } + + /** + * Gets systemId + * + * @return int + */ + public function getSystemId() + { + return $this->container['systemId']; + } + + /** + * Sets systemId + * + * @param int $systemId The solar system this starbase (POS) is in, unanchored POSes have this information + * + * @return $this + */ + public function setSystemId($systemId) + { + $this->container['systemId'] = $systemId; + + return $this; + } + + /** + * Gets moonId + * + * @return int + */ + public function getMoonId() + { + return $this->container['moonId']; + } + + /** + * Sets moonId + * + * @param int $moonId The moon this starbase (POS) is anchored on, unanchored POSes do not have this information + * + * @return $this + */ + public function setMoonId($moonId) + { + $this->container['moonId'] = $moonId; + + return $this; + } + + /** + * Gets state + * + * @return string + */ + public function getState() + { + return $this->container['state']; + } + + /** + * Sets state + * + * @param string $state state string + * + * @return $this + */ + public function setState($state) + { + $allowedValues = $this->getStateAllowableValues(); + if (!is_null($state) && !in_array($state, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'state', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['state'] = $state; + + return $this; + } + + /** + * Gets unanchorAt + * + * @return \DateTime + */ + public function getUnanchorAt() + { + return $this->container['unanchorAt']; + } + + /** + * Sets unanchorAt + * + * @param \DateTime $unanchorAt When the POS started unanchoring, for starbases (POSes) in unanchoring state + * + * @return $this + */ + public function setUnanchorAt($unanchorAt) + { + $this->container['unanchorAt'] = $unanchorAt; + + return $this; + } + + /** + * Gets reinforcedUntil + * + * @return \DateTime + */ + public function getReinforcedUntil() + { + return $this->container['reinforcedUntil']; + } + + /** + * Sets reinforcedUntil + * + * @param \DateTime $reinforcedUntil When the POS will be out of reinforcement, for starbases (POSes) in reinforced state + * + * @return $this + */ + public function setReinforcedUntil($reinforcedUntil) + { + $this->container['reinforcedUntil'] = $reinforcedUntil; + + return $this; + } + + /** + * Gets onlinedSince + * + * @return \DateTime + */ + public function getOnlinedSince() + { + return $this->container['onlinedSince']; + } + + /** + * Sets onlinedSince + * + * @param \DateTime $onlinedSince When the POS onlined, for starbases (POSes) in online state + * + * @return $this + */ + public function setOnlinedSince($onlinedSince) + { + $this->container['onlinedSince'] = $onlinedSince; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdStarbasesStarbaseIdFuel.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdStarbasesStarbaseIdFuel.php new file mode 100644 index 0000000..9d40fb9 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdStarbasesStarbaseIdFuel.php @@ -0,0 +1,345 @@ + 'int', + 'quantity' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'typeId' => 'int32', + 'quantity' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'typeId' => 'type_id', + 'quantity' => 'quantity' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'typeId' => 'setTypeId', + 'quantity' => 'setQuantity' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'typeId' => 'getTypeId', + 'quantity' => 'getQuantity' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['typeId'] = isset($data['typeId']) ? $data['typeId'] : null; + $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['typeId'] === null) { + $invalidProperties[] = "'typeId' can't be null"; + } + if ($this->container['quantity'] === null) { + $invalidProperties[] = "'quantity' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['typeId'] === null) { + return false; + } + if ($this->container['quantity'] === null) { + return false; + } + return true; + } + + + /** + * Gets typeId + * + * @return int + */ + public function getTypeId() + { + return $this->container['typeId']; + } + + /** + * Sets typeId + * + * @param int $typeId type_id integer + * + * @return $this + */ + public function setTypeId($typeId) + { + $this->container['typeId'] = $typeId; + + return $this; + } + + /** + * Gets quantity + * + * @return int + */ + public function getQuantity() + { + return $this->container['quantity']; + } + + /** + * Sets quantity + * + * @param int $quantity quantity integer + * + * @return $this + */ + public function setQuantity($quantity) + { + $this->container['quantity'] = $quantity; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdStarbasesStarbaseIdOk.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdStarbasesStarbaseIdOk.php new file mode 100644 index 0000000..49d88ef --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdStarbasesStarbaseIdOk.php @@ -0,0 +1,999 @@ + 'string', + 'fuelBayTake' => 'string', + 'anchor' => 'string', + 'unanchor' => 'string', + 'online' => 'string', + 'offline' => 'string', + 'allowCorporationMembers' => 'bool', + 'allowAllianceMembers' => 'bool', + 'useAllianceStandings' => 'bool', + 'attackStandingThreshold' => 'float', + 'attackSecurityStatusThreshold' => 'float', + 'attackIfOtherSecurityStatusDropping' => 'bool', + 'attackIfAtWar' => 'bool', + 'fuels' => '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStarbasesStarbaseIdFuel[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'fuelBayView' => null, + 'fuelBayTake' => null, + 'anchor' => null, + 'unanchor' => null, + 'online' => null, + 'offline' => null, + 'allowCorporationMembers' => null, + 'allowAllianceMembers' => null, + 'useAllianceStandings' => null, + 'attackStandingThreshold' => 'float', + 'attackSecurityStatusThreshold' => 'float', + 'attackIfOtherSecurityStatusDropping' => null, + 'attackIfAtWar' => null, + 'fuels' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'fuelBayView' => 'fuel_bay_view', + 'fuelBayTake' => 'fuel_bay_take', + 'anchor' => 'anchor', + 'unanchor' => 'unanchor', + 'online' => 'online', + 'offline' => 'offline', + 'allowCorporationMembers' => 'allow_corporation_members', + 'allowAllianceMembers' => 'allow_alliance_members', + 'useAllianceStandings' => 'use_alliance_standings', + 'attackStandingThreshold' => 'attack_standing_threshold', + 'attackSecurityStatusThreshold' => 'attack_security_status_threshold', + 'attackIfOtherSecurityStatusDropping' => 'attack_if_other_security_status_dropping', + 'attackIfAtWar' => 'attack_if_at_war', + 'fuels' => 'fuels' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'fuelBayView' => 'setFuelBayView', + 'fuelBayTake' => 'setFuelBayTake', + 'anchor' => 'setAnchor', + 'unanchor' => 'setUnanchor', + 'online' => 'setOnline', + 'offline' => 'setOffline', + 'allowCorporationMembers' => 'setAllowCorporationMembers', + 'allowAllianceMembers' => 'setAllowAllianceMembers', + 'useAllianceStandings' => 'setUseAllianceStandings', + 'attackStandingThreshold' => 'setAttackStandingThreshold', + 'attackSecurityStatusThreshold' => 'setAttackSecurityStatusThreshold', + 'attackIfOtherSecurityStatusDropping' => 'setAttackIfOtherSecurityStatusDropping', + 'attackIfAtWar' => 'setAttackIfAtWar', + 'fuels' => 'setFuels' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'fuelBayView' => 'getFuelBayView', + 'fuelBayTake' => 'getFuelBayTake', + 'anchor' => 'getAnchor', + 'unanchor' => 'getUnanchor', + 'online' => 'getOnline', + 'offline' => 'getOffline', + 'allowCorporationMembers' => 'getAllowCorporationMembers', + 'allowAllianceMembers' => 'getAllowAllianceMembers', + 'useAllianceStandings' => 'getUseAllianceStandings', + 'attackStandingThreshold' => 'getAttackStandingThreshold', + 'attackSecurityStatusThreshold' => 'getAttackSecurityStatusThreshold', + 'attackIfOtherSecurityStatusDropping' => 'getAttackIfOtherSecurityStatusDropping', + 'attackIfAtWar' => 'getAttackIfAtWar', + 'fuels' => 'getFuels' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const FUEL_BAY_VIEW_ALLIANCE_MEMBER = 'alliance_member'; + const FUEL_BAY_VIEW_CONFIG_STARBASE_EQUIPMENT_ROLE = 'config_starbase_equipment_role'; + const FUEL_BAY_VIEW_CORPORATION_MEMBER = 'corporation_member'; + const FUEL_BAY_VIEW_STARBASE_FUEL_TECHNICIAN_ROLE = 'starbase_fuel_technician_role'; + const FUEL_BAY_TAKE_ALLIANCE_MEMBER = 'alliance_member'; + const FUEL_BAY_TAKE_CONFIG_STARBASE_EQUIPMENT_ROLE = 'config_starbase_equipment_role'; + const FUEL_BAY_TAKE_CORPORATION_MEMBER = 'corporation_member'; + const FUEL_BAY_TAKE_STARBASE_FUEL_TECHNICIAN_ROLE = 'starbase_fuel_technician_role'; + const ANCHOR_ALLIANCE_MEMBER = 'alliance_member'; + const ANCHOR_CONFIG_STARBASE_EQUIPMENT_ROLE = 'config_starbase_equipment_role'; + const ANCHOR_CORPORATION_MEMBER = 'corporation_member'; + const ANCHOR_STARBASE_FUEL_TECHNICIAN_ROLE = 'starbase_fuel_technician_role'; + const UNANCHOR_ALLIANCE_MEMBER = 'alliance_member'; + const UNANCHOR_CONFIG_STARBASE_EQUIPMENT_ROLE = 'config_starbase_equipment_role'; + const UNANCHOR_CORPORATION_MEMBER = 'corporation_member'; + const UNANCHOR_STARBASE_FUEL_TECHNICIAN_ROLE = 'starbase_fuel_technician_role'; + const ONLINE_ALLIANCE_MEMBER = 'alliance_member'; + const ONLINE_CONFIG_STARBASE_EQUIPMENT_ROLE = 'config_starbase_equipment_role'; + const ONLINE_CORPORATION_MEMBER = 'corporation_member'; + const ONLINE_STARBASE_FUEL_TECHNICIAN_ROLE = 'starbase_fuel_technician_role'; + const OFFLINE_ALLIANCE_MEMBER = 'alliance_member'; + const OFFLINE_CONFIG_STARBASE_EQUIPMENT_ROLE = 'config_starbase_equipment_role'; + const OFFLINE_CORPORATION_MEMBER = 'corporation_member'; + const OFFLINE_STARBASE_FUEL_TECHNICIAN_ROLE = 'starbase_fuel_technician_role'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getFuelBayViewAllowableValues() + { + return [ + self::FUEL_BAY_VIEW_ALLIANCE_MEMBER, + self::FUEL_BAY_VIEW_CONFIG_STARBASE_EQUIPMENT_ROLE, + self::FUEL_BAY_VIEW_CORPORATION_MEMBER, + self::FUEL_BAY_VIEW_STARBASE_FUEL_TECHNICIAN_ROLE, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getFuelBayTakeAllowableValues() + { + return [ + self::FUEL_BAY_TAKE_ALLIANCE_MEMBER, + self::FUEL_BAY_TAKE_CONFIG_STARBASE_EQUIPMENT_ROLE, + self::FUEL_BAY_TAKE_CORPORATION_MEMBER, + self::FUEL_BAY_TAKE_STARBASE_FUEL_TECHNICIAN_ROLE, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getAnchorAllowableValues() + { + return [ + self::ANCHOR_ALLIANCE_MEMBER, + self::ANCHOR_CONFIG_STARBASE_EQUIPMENT_ROLE, + self::ANCHOR_CORPORATION_MEMBER, + self::ANCHOR_STARBASE_FUEL_TECHNICIAN_ROLE, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getUnanchorAllowableValues() + { + return [ + self::UNANCHOR_ALLIANCE_MEMBER, + self::UNANCHOR_CONFIG_STARBASE_EQUIPMENT_ROLE, + self::UNANCHOR_CORPORATION_MEMBER, + self::UNANCHOR_STARBASE_FUEL_TECHNICIAN_ROLE, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getOnlineAllowableValues() + { + return [ + self::ONLINE_ALLIANCE_MEMBER, + self::ONLINE_CONFIG_STARBASE_EQUIPMENT_ROLE, + self::ONLINE_CORPORATION_MEMBER, + self::ONLINE_STARBASE_FUEL_TECHNICIAN_ROLE, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getOfflineAllowableValues() + { + return [ + self::OFFLINE_ALLIANCE_MEMBER, + self::OFFLINE_CONFIG_STARBASE_EQUIPMENT_ROLE, + self::OFFLINE_CORPORATION_MEMBER, + self::OFFLINE_STARBASE_FUEL_TECHNICIAN_ROLE, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['fuelBayView'] = isset($data['fuelBayView']) ? $data['fuelBayView'] : null; + $this->container['fuelBayTake'] = isset($data['fuelBayTake']) ? $data['fuelBayTake'] : null; + $this->container['anchor'] = isset($data['anchor']) ? $data['anchor'] : null; + $this->container['unanchor'] = isset($data['unanchor']) ? $data['unanchor'] : null; + $this->container['online'] = isset($data['online']) ? $data['online'] : null; + $this->container['offline'] = isset($data['offline']) ? $data['offline'] : null; + $this->container['allowCorporationMembers'] = isset($data['allowCorporationMembers']) ? $data['allowCorporationMembers'] : null; + $this->container['allowAllianceMembers'] = isset($data['allowAllianceMembers']) ? $data['allowAllianceMembers'] : null; + $this->container['useAllianceStandings'] = isset($data['useAllianceStandings']) ? $data['useAllianceStandings'] : null; + $this->container['attackStandingThreshold'] = isset($data['attackStandingThreshold']) ? $data['attackStandingThreshold'] : null; + $this->container['attackSecurityStatusThreshold'] = isset($data['attackSecurityStatusThreshold']) ? $data['attackSecurityStatusThreshold'] : null; + $this->container['attackIfOtherSecurityStatusDropping'] = isset($data['attackIfOtherSecurityStatusDropping']) ? $data['attackIfOtherSecurityStatusDropping'] : null; + $this->container['attackIfAtWar'] = isset($data['attackIfAtWar']) ? $data['attackIfAtWar'] : null; + $this->container['fuels'] = isset($data['fuels']) ? $data['fuels'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['fuelBayView'] === null) { + $invalidProperties[] = "'fuelBayView' can't be null"; + } + $allowedValues = $this->getFuelBayViewAllowableValues(); + if (!in_array($this->container['fuelBayView'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'fuelBayView', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['fuelBayTake'] === null) { + $invalidProperties[] = "'fuelBayTake' can't be null"; + } + $allowedValues = $this->getFuelBayTakeAllowableValues(); + if (!in_array($this->container['fuelBayTake'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'fuelBayTake', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['anchor'] === null) { + $invalidProperties[] = "'anchor' can't be null"; + } + $allowedValues = $this->getAnchorAllowableValues(); + if (!in_array($this->container['anchor'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'anchor', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['unanchor'] === null) { + $invalidProperties[] = "'unanchor' can't be null"; + } + $allowedValues = $this->getUnanchorAllowableValues(); + if (!in_array($this->container['unanchor'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'unanchor', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['online'] === null) { + $invalidProperties[] = "'online' can't be null"; + } + $allowedValues = $this->getOnlineAllowableValues(); + if (!in_array($this->container['online'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'online', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['offline'] === null) { + $invalidProperties[] = "'offline' can't be null"; + } + $allowedValues = $this->getOfflineAllowableValues(); + if (!in_array($this->container['offline'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'offline', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['allowCorporationMembers'] === null) { + $invalidProperties[] = "'allowCorporationMembers' can't be null"; + } + if ($this->container['allowAllianceMembers'] === null) { + $invalidProperties[] = "'allowAllianceMembers' can't be null"; + } + if ($this->container['useAllianceStandings'] === null) { + $invalidProperties[] = "'useAllianceStandings' can't be null"; + } + if ($this->container['attackIfOtherSecurityStatusDropping'] === null) { + $invalidProperties[] = "'attackIfOtherSecurityStatusDropping' can't be null"; + } + if ($this->container['attackIfAtWar'] === null) { + $invalidProperties[] = "'attackIfAtWar' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['fuelBayView'] === null) { + return false; + } + $allowedValues = $this->getFuelBayViewAllowableValues(); + if (!in_array($this->container['fuelBayView'], $allowedValues)) { + return false; + } + if ($this->container['fuelBayTake'] === null) { + return false; + } + $allowedValues = $this->getFuelBayTakeAllowableValues(); + if (!in_array($this->container['fuelBayTake'], $allowedValues)) { + return false; + } + if ($this->container['anchor'] === null) { + return false; + } + $allowedValues = $this->getAnchorAllowableValues(); + if (!in_array($this->container['anchor'], $allowedValues)) { + return false; + } + if ($this->container['unanchor'] === null) { + return false; + } + $allowedValues = $this->getUnanchorAllowableValues(); + if (!in_array($this->container['unanchor'], $allowedValues)) { + return false; + } + if ($this->container['online'] === null) { + return false; + } + $allowedValues = $this->getOnlineAllowableValues(); + if (!in_array($this->container['online'], $allowedValues)) { + return false; + } + if ($this->container['offline'] === null) { + return false; + } + $allowedValues = $this->getOfflineAllowableValues(); + if (!in_array($this->container['offline'], $allowedValues)) { + return false; + } + if ($this->container['allowCorporationMembers'] === null) { + return false; + } + if ($this->container['allowAllianceMembers'] === null) { + return false; + } + if ($this->container['useAllianceStandings'] === null) { + return false; + } + if ($this->container['attackIfOtherSecurityStatusDropping'] === null) { + return false; + } + if ($this->container['attackIfAtWar'] === null) { + return false; + } + return true; + } + + + /** + * Gets fuelBayView + * + * @return string + */ + public function getFuelBayView() + { + return $this->container['fuelBayView']; + } + + /** + * Sets fuelBayView + * + * @param string $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 + * + * @return $this + */ + public function setFuelBayView($fuelBayView) + { + $allowedValues = $this->getFuelBayViewAllowableValues(); + if (!in_array($fuelBayView, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'fuelBayView', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['fuelBayView'] = $fuelBayView; + + return $this; + } + + /** + * Gets fuelBayTake + * + * @return string + */ + public function getFuelBayTake() + { + return $this->container['fuelBayTake']; + } + + /** + * Sets fuelBayTake + * + * @param string $fuelBayTake Who can take fuel blocks out of the starbase (POS)'s fuel bay + * + * @return $this + */ + public function setFuelBayTake($fuelBayTake) + { + $allowedValues = $this->getFuelBayTakeAllowableValues(); + if (!in_array($fuelBayTake, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'fuelBayTake', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['fuelBayTake'] = $fuelBayTake; + + return $this; + } + + /** + * Gets anchor + * + * @return string + */ + public function getAnchor() + { + return $this->container['anchor']; + } + + /** + * Sets anchor + * + * @param string $anchor Who can anchor starbase (POS) and its structures + * + * @return $this + */ + public function setAnchor($anchor) + { + $allowedValues = $this->getAnchorAllowableValues(); + if (!in_array($anchor, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'anchor', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['anchor'] = $anchor; + + return $this; + } + + /** + * Gets unanchor + * + * @return string + */ + public function getUnanchor() + { + return $this->container['unanchor']; + } + + /** + * Sets unanchor + * + * @param string $unanchor Who can unanchor starbase (POS) and its structures + * + * @return $this + */ + public function setUnanchor($unanchor) + { + $allowedValues = $this->getUnanchorAllowableValues(); + if (!in_array($unanchor, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'unanchor', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['unanchor'] = $unanchor; + + return $this; + } + + /** + * Gets online + * + * @return string + */ + public function getOnline() + { + return $this->container['online']; + } + + /** + * Sets online + * + * @param string $online Who can online starbase (POS) and its structures + * + * @return $this + */ + public function setOnline($online) + { + $allowedValues = $this->getOnlineAllowableValues(); + if (!in_array($online, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'online', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['online'] = $online; + + return $this; + } + + /** + * Gets offline + * + * @return string + */ + public function getOffline() + { + return $this->container['offline']; + } + + /** + * Sets offline + * + * @param string $offline Who can offline starbase (POS) and its structures + * + * @return $this + */ + public function setOffline($offline) + { + $allowedValues = $this->getOfflineAllowableValues(); + if (!in_array($offline, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'offline', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['offline'] = $offline; + + return $this; + } + + /** + * Gets allowCorporationMembers + * + * @return bool + */ + public function getAllowCorporationMembers() + { + return $this->container['allowCorporationMembers']; + } + + /** + * Sets allowCorporationMembers + * + * @param bool $allowCorporationMembers allow_corporation_members boolean + * + * @return $this + */ + public function setAllowCorporationMembers($allowCorporationMembers) + { + $this->container['allowCorporationMembers'] = $allowCorporationMembers; + + return $this; + } + + /** + * Gets allowAllianceMembers + * + * @return bool + */ + public function getAllowAllianceMembers() + { + return $this->container['allowAllianceMembers']; + } + + /** + * Sets allowAllianceMembers + * + * @param bool $allowAllianceMembers allow_alliance_members boolean + * + * @return $this + */ + public function setAllowAllianceMembers($allowAllianceMembers) + { + $this->container['allowAllianceMembers'] = $allowAllianceMembers; + + return $this; + } + + /** + * Gets useAllianceStandings + * + * @return bool + */ + public function getUseAllianceStandings() + { + return $this->container['useAllianceStandings']; + } + + /** + * Sets useAllianceStandings + * + * @param bool $useAllianceStandings True if the starbase (POS) is using alliance standings, otherwise using corporation's + * + * @return $this + */ + public function setUseAllianceStandings($useAllianceStandings) + { + $this->container['useAllianceStandings'] = $useAllianceStandings; + + return $this; + } + + /** + * Gets attackStandingThreshold + * + * @return float + */ + public function getAttackStandingThreshold() + { + return $this->container['attackStandingThreshold']; + } + + /** + * Sets attackStandingThreshold + * + * @param float $attackStandingThreshold Starbase (POS) will attack if target's standing is lower than this value + * + * @return $this + */ + public function setAttackStandingThreshold($attackStandingThreshold) + { + $this->container['attackStandingThreshold'] = $attackStandingThreshold; + + return $this; + } + + /** + * Gets attackSecurityStatusThreshold + * + * @return float + */ + public function getAttackSecurityStatusThreshold() + { + return $this->container['attackSecurityStatusThreshold']; + } + + /** + * Sets attackSecurityStatusThreshold + * + * @param float $attackSecurityStatusThreshold Starbase (POS) will attack if target's security standing is lower than this value + * + * @return $this + */ + public function setAttackSecurityStatusThreshold($attackSecurityStatusThreshold) + { + $this->container['attackSecurityStatusThreshold'] = $attackSecurityStatusThreshold; + + return $this; + } + + /** + * Gets attackIfOtherSecurityStatusDropping + * + * @return bool + */ + public function getAttackIfOtherSecurityStatusDropping() + { + return $this->container['attackIfOtherSecurityStatusDropping']; + } + + /** + * Sets attackIfOtherSecurityStatusDropping + * + * @param bool $attackIfOtherSecurityStatusDropping attack_if_other_security_status_dropping boolean + * + * @return $this + */ + public function setAttackIfOtherSecurityStatusDropping($attackIfOtherSecurityStatusDropping) + { + $this->container['attackIfOtherSecurityStatusDropping'] = $attackIfOtherSecurityStatusDropping; + + return $this; + } + + /** + * Gets attackIfAtWar + * + * @return bool + */ + public function getAttackIfAtWar() + { + return $this->container['attackIfAtWar']; + } + + /** + * Sets attackIfAtWar + * + * @param bool $attackIfAtWar attack_if_at_war boolean + * + * @return $this + */ + public function setAttackIfAtWar($attackIfAtWar) + { + $this->container['attackIfAtWar'] = $attackIfAtWar; + + return $this; + } + + /** + * Gets fuels + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStarbasesStarbaseIdFuel[] + */ + public function getFuels() + { + return $this->container['fuels']; + } + + /** + * Sets fuels + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStarbasesStarbaseIdFuel[] $fuels Fuel blocks and other things that will be consumed when operating a starbase (POS) + * + * @return $this + */ + public function setFuels($fuels) + { + $this->container['fuels'] = $fuels; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdStructures200Ok.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdStructures200Ok.php new file mode 100644 index 0000000..7d17b61 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdStructures200Ok.php @@ -0,0 +1,675 @@ + 'int', + 'typeId' => 'int', + 'corporationId' => 'int', + 'systemId' => 'int', + 'profileId' => 'int', + 'currentVul' => '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStructuresCurrentVul[]', + 'nextVul' => '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStructuresNextVul[]', + 'fuelExpires' => '\DateTime', + 'services' => '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStructuresService[]', + 'stateTimerStart' => '\DateTime', + 'stateTimerEnd' => '\DateTime', + 'unanchorsAt' => '\DateTime' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'structureId' => 'int64', + 'typeId' => 'int32', + 'corporationId' => 'int32', + 'systemId' => 'int32', + 'profileId' => 'int32', + 'currentVul' => null, + 'nextVul' => null, + 'fuelExpires' => 'date-time', + 'services' => null, + 'stateTimerStart' => 'date-time', + 'stateTimerEnd' => 'date-time', + 'unanchorsAt' => 'date-time' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'structureId' => 'structure_id', + 'typeId' => 'type_id', + 'corporationId' => 'corporation_id', + 'systemId' => 'system_id', + 'profileId' => 'profile_id', + 'currentVul' => 'current_vul', + 'nextVul' => 'next_vul', + 'fuelExpires' => 'fuel_expires', + 'services' => 'services', + 'stateTimerStart' => 'state_timer_start', + 'stateTimerEnd' => 'state_timer_end', + 'unanchorsAt' => 'unanchors_at' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'structureId' => 'setStructureId', + 'typeId' => 'setTypeId', + 'corporationId' => 'setCorporationId', + 'systemId' => 'setSystemId', + 'profileId' => 'setProfileId', + 'currentVul' => 'setCurrentVul', + 'nextVul' => 'setNextVul', + 'fuelExpires' => 'setFuelExpires', + 'services' => 'setServices', + 'stateTimerStart' => 'setStateTimerStart', + 'stateTimerEnd' => 'setStateTimerEnd', + 'unanchorsAt' => 'setUnanchorsAt' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'structureId' => 'getStructureId', + 'typeId' => 'getTypeId', + 'corporationId' => 'getCorporationId', + 'systemId' => 'getSystemId', + 'profileId' => 'getProfileId', + 'currentVul' => 'getCurrentVul', + 'nextVul' => 'getNextVul', + 'fuelExpires' => 'getFuelExpires', + 'services' => 'getServices', + 'stateTimerStart' => 'getStateTimerStart', + 'stateTimerEnd' => 'getStateTimerEnd', + 'unanchorsAt' => 'getUnanchorsAt' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['structureId'] = isset($data['structureId']) ? $data['structureId'] : null; + $this->container['typeId'] = isset($data['typeId']) ? $data['typeId'] : null; + $this->container['corporationId'] = isset($data['corporationId']) ? $data['corporationId'] : null; + $this->container['systemId'] = isset($data['systemId']) ? $data['systemId'] : null; + $this->container['profileId'] = isset($data['profileId']) ? $data['profileId'] : null; + $this->container['currentVul'] = isset($data['currentVul']) ? $data['currentVul'] : null; + $this->container['nextVul'] = isset($data['nextVul']) ? $data['nextVul'] : null; + $this->container['fuelExpires'] = isset($data['fuelExpires']) ? $data['fuelExpires'] : null; + $this->container['services'] = isset($data['services']) ? $data['services'] : null; + $this->container['stateTimerStart'] = isset($data['stateTimerStart']) ? $data['stateTimerStart'] : null; + $this->container['stateTimerEnd'] = isset($data['stateTimerEnd']) ? $data['stateTimerEnd'] : null; + $this->container['unanchorsAt'] = isset($data['unanchorsAt']) ? $data['unanchorsAt'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['structureId'] === null) { + $invalidProperties[] = "'structureId' can't be null"; + } + if ($this->container['typeId'] === null) { + $invalidProperties[] = "'typeId' can't be null"; + } + if ($this->container['corporationId'] === null) { + $invalidProperties[] = "'corporationId' can't be null"; + } + if ($this->container['systemId'] === null) { + $invalidProperties[] = "'systemId' can't be null"; + } + if ($this->container['profileId'] === null) { + $invalidProperties[] = "'profileId' can't be null"; + } + if ($this->container['currentVul'] === null) { + $invalidProperties[] = "'currentVul' can't be null"; + } + if ($this->container['nextVul'] === null) { + $invalidProperties[] = "'nextVul' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['structureId'] === null) { + return false; + } + if ($this->container['typeId'] === null) { + return false; + } + if ($this->container['corporationId'] === null) { + return false; + } + if ($this->container['systemId'] === null) { + return false; + } + if ($this->container['profileId'] === null) { + return false; + } + if ($this->container['currentVul'] === null) { + return false; + } + if ($this->container['nextVul'] === null) { + return false; + } + return true; + } + + + /** + * Gets structureId + * + * @return int + */ + public function getStructureId() + { + return $this->container['structureId']; + } + + /** + * Sets structureId + * + * @param int $structureId The Item ID of the structure + * + * @return $this + */ + public function setStructureId($structureId) + { + $this->container['structureId'] = $structureId; + + return $this; + } + + /** + * Gets typeId + * + * @return int + */ + public function getTypeId() + { + return $this->container['typeId']; + } + + /** + * Sets typeId + * + * @param int $typeId The type id of the structure + * + * @return $this + */ + public function setTypeId($typeId) + { + $this->container['typeId'] = $typeId; + + return $this; + } + + /** + * Gets corporationId + * + * @return int + */ + public function getCorporationId() + { + return $this->container['corporationId']; + } + + /** + * Sets corporationId + * + * @param int $corporationId ID of the corporation that owns the structure + * + * @return $this + */ + public function setCorporationId($corporationId) + { + $this->container['corporationId'] = $corporationId; + + return $this; + } + + /** + * Gets systemId + * + * @return int + */ + public function getSystemId() + { + return $this->container['systemId']; + } + + /** + * Sets systemId + * + * @param int $systemId The solar system the structure is in + * + * @return $this + */ + public function setSystemId($systemId) + { + $this->container['systemId'] = $systemId; + + return $this; + } + + /** + * Gets profileId + * + * @return int + */ + public function getProfileId() + { + return $this->container['profileId']; + } + + /** + * Sets profileId + * + * @param int $profileId The id of the ACL profile for this citadel + * + * @return $this + */ + public function setProfileId($profileId) + { + $this->container['profileId'] = $profileId; + + return $this; + } + + /** + * Gets currentVul + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStructuresCurrentVul[] + */ + public function getCurrentVul() + { + return $this->container['currentVul']; + } + + /** + * Sets currentVul + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStructuresCurrentVul[] $currentVul This week's vulnerability windows, Monday is day 0 + * + * @return $this + */ + public function setCurrentVul($currentVul) + { + $this->container['currentVul'] = $currentVul; + + return $this; + } + + /** + * Gets nextVul + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStructuresNextVul[] + */ + public function getNextVul() + { + return $this->container['nextVul']; + } + + /** + * Sets nextVul + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStructuresNextVul[] $nextVul Next week's vulnerability windows, Monday is day 0 + * + * @return $this + */ + public function setNextVul($nextVul) + { + $this->container['nextVul'] = $nextVul; + + return $this; + } + + /** + * Gets fuelExpires + * + * @return \DateTime + */ + public function getFuelExpires() + { + return $this->container['fuelExpires']; + } + + /** + * Sets fuelExpires + * + * @param \DateTime $fuelExpires Date on which the structure will run out of fuel + * + * @return $this + */ + public function setFuelExpires($fuelExpires) + { + $this->container['fuelExpires'] = $fuelExpires; + + return $this; + } + + /** + * Gets services + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStructuresService[] + */ + public function getServices() + { + return $this->container['services']; + } + + /** + * Sets services + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdStructuresService[] $services Contains a list of service upgrades, and their state + * + * @return $this + */ + public function setServices($services) + { + $this->container['services'] = $services; + + return $this; + } + + /** + * Gets stateTimerStart + * + * @return \DateTime + */ + public function getStateTimerStart() + { + return $this->container['stateTimerStart']; + } + + /** + * Sets stateTimerStart + * + * @param \DateTime $stateTimerStart Date at which the structure entered it's current state + * + * @return $this + */ + public function setStateTimerStart($stateTimerStart) + { + $this->container['stateTimerStart'] = $stateTimerStart; + + return $this; + } + + /** + * Gets stateTimerEnd + * + * @return \DateTime + */ + public function getStateTimerEnd() + { + return $this->container['stateTimerEnd']; + } + + /** + * Sets stateTimerEnd + * + * @param \DateTime $stateTimerEnd Date at which the structure will move to it's next state + * + * @return $this + */ + public function setStateTimerEnd($stateTimerEnd) + { + $this->container['stateTimerEnd'] = $stateTimerEnd; + + return $this; + } + + /** + * Gets unanchorsAt + * + * @return \DateTime + */ + public function getUnanchorsAt() + { + return $this->container['unanchorsAt']; + } + + /** + * Sets unanchorsAt + * + * @param \DateTime $unanchorsAt Date at which the structure will unanchor + * + * @return $this + */ + public function setUnanchorsAt($unanchorsAt) + { + $this->container['unanchorsAt'] = $unanchorsAt; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdStructuresCurrentVul.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdStructuresCurrentVul.php new file mode 100644 index 0000000..c72e3f9 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdStructuresCurrentVul.php @@ -0,0 +1,345 @@ + 'int', + 'hour' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'day' => 'int32', + 'hour' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'day' => 'day', + 'hour' => 'hour' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'day' => 'setDay', + 'hour' => 'setHour' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'day' => 'getDay', + 'hour' => 'getHour' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['day'] = isset($data['day']) ? $data['day'] : null; + $this->container['hour'] = isset($data['hour']) ? $data['hour'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['day'] === null) { + $invalidProperties[] = "'day' can't be null"; + } + if ($this->container['hour'] === null) { + $invalidProperties[] = "'hour' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['day'] === null) { + return false; + } + if ($this->container['hour'] === null) { + return false; + } + return true; + } + + + /** + * Gets day + * + * @return int + */ + public function getDay() + { + return $this->container['day']; + } + + /** + * Sets day + * + * @param int $day day integer + * + * @return $this + */ + public function setDay($day) + { + $this->container['day'] = $day; + + return $this; + } + + /** + * Gets hour + * + * @return int + */ + public function getHour() + { + return $this->container['hour']; + } + + /** + * Sets hour + * + * @param int $hour hour integer + * + * @return $this + */ + public function setHour($hour) + { + $this->container['hour'] = $hour; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdStructuresNextVul.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdStructuresNextVul.php new file mode 100644 index 0000000..06912e4 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdStructuresNextVul.php @@ -0,0 +1,345 @@ + 'int', + 'hour' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'day' => 'int32', + 'hour' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'day' => 'day', + 'hour' => 'hour' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'day' => 'setDay', + 'hour' => 'setHour' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'day' => 'getDay', + 'hour' => 'getHour' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['day'] = isset($data['day']) ? $data['day'] : null; + $this->container['hour'] = isset($data['hour']) ? $data['hour'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['day'] === null) { + $invalidProperties[] = "'day' can't be null"; + } + if ($this->container['hour'] === null) { + $invalidProperties[] = "'hour' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['day'] === null) { + return false; + } + if ($this->container['hour'] === null) { + return false; + } + return true; + } + + + /** + * Gets day + * + * @return int + */ + public function getDay() + { + return $this->container['day']; + } + + /** + * Sets day + * + * @param int $day day integer + * + * @return $this + */ + public function setDay($day) + { + $this->container['day'] = $day; + + return $this; + } + + /** + * Gets hour + * + * @return int + */ + public function getHour() + { + return $this->container['hour']; + } + + /** + * Sets hour + * + * @param int $hour hour integer + * + * @return $this + */ + public function setHour($hour) + { + $this->container['hour'] = $hour; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdStructuresService.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdStructuresService.php new file mode 100644 index 0000000..45ec0ba --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdStructuresService.php @@ -0,0 +1,383 @@ + 'string', + 'state' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'name' => null, + 'state' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'name' => 'name', + 'state' => 'state' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'name' => 'setName', + 'state' => 'setState' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'name' => 'getName', + 'state' => 'getState' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const STATE_ONLINE = 'online'; + const STATE_OFFLINE = 'offline'; + const STATE_CLEANUP = 'cleanup'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getStateAllowableValues() + { + return [ + self::STATE_ONLINE, + self::STATE_OFFLINE, + self::STATE_CLEANUP, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['state'] = isset($data['state']) ? $data['state'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ($this->container['state'] === null) { + $invalidProperties[] = "'state' can't be null"; + } + $allowedValues = $this->getStateAllowableValues(); + if (!in_array($this->container['state'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'state', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['name'] === null) { + return false; + } + if ($this->container['state'] === null) { + return false; + } + $allowedValues = $this->getStateAllowableValues(); + if (!in_array($this->container['state'], $allowedValues)) { + return false; + } + return true; + } + + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets state + * + * @return string + */ + public function getState() + { + return $this->container['state']; + } + + /** + * Sets state + * + * @param string $state state string + * + * @return $this + */ + public function setState($state) + { + $allowedValues = $this->getStateAllowableValues(); + if (!in_array($state, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'state', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['state'] = $state; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdTitles200Ok.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdTitles200Ok.php new file mode 100644 index 0000000..74fcb7f --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdTitles200Ok.php @@ -0,0 +1,1533 @@ + 'int', + 'name' => 'string', + 'roles' => 'string[]', + 'grantableRoles' => 'string[]', + 'rolesAtHq' => 'string[]', + 'grantableRolesAtHq' => 'string[]', + 'rolesAtBase' => 'string[]', + 'grantableRolesAtBase' => 'string[]', + 'rolesAtOther' => 'string[]', + 'grantableRolesAtOther' => 'string[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'titleId' => 'int32', + 'name' => null, + 'roles' => null, + 'grantableRoles' => null, + 'rolesAtHq' => null, + 'grantableRolesAtHq' => null, + 'rolesAtBase' => null, + 'grantableRolesAtBase' => null, + 'rolesAtOther' => null, + 'grantableRolesAtOther' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'titleId' => 'title_id', + 'name' => 'name', + 'roles' => 'roles', + 'grantableRoles' => 'grantable_roles', + 'rolesAtHq' => 'roles_at_hq', + 'grantableRolesAtHq' => 'grantable_roles_at_hq', + 'rolesAtBase' => 'roles_at_base', + 'grantableRolesAtBase' => 'grantable_roles_at_base', + 'rolesAtOther' => 'roles_at_other', + 'grantableRolesAtOther' => 'grantable_roles_at_other' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'titleId' => 'setTitleId', + 'name' => 'setName', + 'roles' => 'setRoles', + 'grantableRoles' => 'setGrantableRoles', + 'rolesAtHq' => 'setRolesAtHq', + 'grantableRolesAtHq' => 'setGrantableRolesAtHq', + 'rolesAtBase' => 'setRolesAtBase', + 'grantableRolesAtBase' => 'setGrantableRolesAtBase', + 'rolesAtOther' => 'setRolesAtOther', + 'grantableRolesAtOther' => 'setGrantableRolesAtOther' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'titleId' => 'getTitleId', + 'name' => 'getName', + 'roles' => 'getRoles', + 'grantableRoles' => 'getGrantableRoles', + 'rolesAtHq' => 'getRolesAtHq', + 'grantableRolesAtHq' => 'getGrantableRolesAtHq', + 'rolesAtBase' => 'getRolesAtBase', + 'grantableRolesAtBase' => 'getGrantableRolesAtBase', + 'rolesAtOther' => 'getRolesAtOther', + 'grantableRolesAtOther' => 'getGrantableRolesAtOther' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const ROLES_ACCOUNT_TAKE_1 = 'Account_Take_1'; + const ROLES_ACCOUNT_TAKE_2 = 'Account_Take_2'; + const ROLES_ACCOUNT_TAKE_3 = 'Account_Take_3'; + const ROLES_ACCOUNT_TAKE_4 = 'Account_Take_4'; + const ROLES_ACCOUNT_TAKE_5 = 'Account_Take_5'; + const ROLES_ACCOUNT_TAKE_6 = 'Account_Take_6'; + const ROLES_ACCOUNT_TAKE_7 = 'Account_Take_7'; + const ROLES_ACCOUNTANT = 'Accountant'; + const ROLES_AUDITOR = 'Auditor'; + const ROLES_COMMUNICATIONS_OFFICER = 'Communications_Officer'; + const ROLES_CONFIG_EQUIPMENT = 'Config_Equipment'; + const ROLES_CONFIG_STARBASE_EQUIPMENT = 'Config_Starbase_Equipment'; + const ROLES_CONTAINER_TAKE_1 = 'Container_Take_1'; + const ROLES_CONTAINER_TAKE_2 = 'Container_Take_2'; + const ROLES_CONTAINER_TAKE_3 = 'Container_Take_3'; + const ROLES_CONTAINER_TAKE_4 = 'Container_Take_4'; + const ROLES_CONTAINER_TAKE_5 = 'Container_Take_5'; + const ROLES_CONTAINER_TAKE_6 = 'Container_Take_6'; + const ROLES_CONTAINER_TAKE_7 = 'Container_Take_7'; + const ROLES_CONTRACT_MANAGER = 'Contract_Manager'; + const ROLES_DIPLOMAT = 'Diplomat'; + const ROLES_DIRECTOR = 'Director'; + const ROLES_FACTORY_MANAGER = 'Factory_Manager'; + const ROLES_FITTING_MANAGER = 'Fitting_Manager'; + const ROLES_HANGAR_QUERY_1 = 'Hangar_Query_1'; + const ROLES_HANGAR_QUERY_2 = 'Hangar_Query_2'; + const ROLES_HANGAR_QUERY_3 = 'Hangar_Query_3'; + const ROLES_HANGAR_QUERY_4 = 'Hangar_Query_4'; + const ROLES_HANGAR_QUERY_5 = 'Hangar_Query_5'; + const ROLES_HANGAR_QUERY_6 = 'Hangar_Query_6'; + const ROLES_HANGAR_QUERY_7 = 'Hangar_Query_7'; + const ROLES_HANGAR_TAKE_1 = 'Hangar_Take_1'; + const ROLES_HANGAR_TAKE_2 = 'Hangar_Take_2'; + const ROLES_HANGAR_TAKE_3 = 'Hangar_Take_3'; + const ROLES_HANGAR_TAKE_4 = 'Hangar_Take_4'; + const ROLES_HANGAR_TAKE_5 = 'Hangar_Take_5'; + const ROLES_HANGAR_TAKE_6 = 'Hangar_Take_6'; + const ROLES_HANGAR_TAKE_7 = 'Hangar_Take_7'; + const ROLES_JUNIOR_ACCOUNTANT = 'Junior_Accountant'; + const ROLES_PERSONNEL_MANAGER = 'Personnel_Manager'; + const ROLES_RENT_FACTORY_FACILITY = 'Rent_Factory_Facility'; + const ROLES_RENT_OFFICE = 'Rent_Office'; + const ROLES_RENT_RESEARCH_FACILITY = 'Rent_Research_Facility'; + const ROLES_SECURITY_OFFICER = 'Security_Officer'; + const ROLES_STARBASE_DEFENSE_OPERATOR = 'Starbase_Defense_Operator'; + const ROLES_STARBASE_FUEL_TECHNICIAN = 'Starbase_Fuel_Technician'; + const ROLES_STATION_MANAGER = 'Station_Manager'; + const ROLES_TERRESTRIAL_COMBAT_OFFICER = 'Terrestrial_Combat_Officer'; + const ROLES_TERRESTRIAL_LOGISTICS_OFFICER = 'Terrestrial_Logistics_Officer'; + const ROLES_TRADER = 'Trader'; + const GRANTABLE_ROLES_ACCOUNT_TAKE_1 = 'Account_Take_1'; + const GRANTABLE_ROLES_ACCOUNT_TAKE_2 = 'Account_Take_2'; + const GRANTABLE_ROLES_ACCOUNT_TAKE_3 = 'Account_Take_3'; + const GRANTABLE_ROLES_ACCOUNT_TAKE_4 = 'Account_Take_4'; + const GRANTABLE_ROLES_ACCOUNT_TAKE_5 = 'Account_Take_5'; + const GRANTABLE_ROLES_ACCOUNT_TAKE_6 = 'Account_Take_6'; + const GRANTABLE_ROLES_ACCOUNT_TAKE_7 = 'Account_Take_7'; + const GRANTABLE_ROLES_ACCOUNTANT = 'Accountant'; + const GRANTABLE_ROLES_AUDITOR = 'Auditor'; + const GRANTABLE_ROLES_COMMUNICATIONS_OFFICER = 'Communications_Officer'; + const GRANTABLE_ROLES_CONFIG_EQUIPMENT = 'Config_Equipment'; + const GRANTABLE_ROLES_CONFIG_STARBASE_EQUIPMENT = 'Config_Starbase_Equipment'; + const GRANTABLE_ROLES_CONTAINER_TAKE_1 = 'Container_Take_1'; + const GRANTABLE_ROLES_CONTAINER_TAKE_2 = 'Container_Take_2'; + const GRANTABLE_ROLES_CONTAINER_TAKE_3 = 'Container_Take_3'; + const GRANTABLE_ROLES_CONTAINER_TAKE_4 = 'Container_Take_4'; + const GRANTABLE_ROLES_CONTAINER_TAKE_5 = 'Container_Take_5'; + const GRANTABLE_ROLES_CONTAINER_TAKE_6 = 'Container_Take_6'; + const GRANTABLE_ROLES_CONTAINER_TAKE_7 = 'Container_Take_7'; + const GRANTABLE_ROLES_CONTRACT_MANAGER = 'Contract_Manager'; + const GRANTABLE_ROLES_DIPLOMAT = 'Diplomat'; + const GRANTABLE_ROLES_DIRECTOR = 'Director'; + const GRANTABLE_ROLES_FACTORY_MANAGER = 'Factory_Manager'; + const GRANTABLE_ROLES_FITTING_MANAGER = 'Fitting_Manager'; + const GRANTABLE_ROLES_HANGAR_QUERY_1 = 'Hangar_Query_1'; + const GRANTABLE_ROLES_HANGAR_QUERY_2 = 'Hangar_Query_2'; + const GRANTABLE_ROLES_HANGAR_QUERY_3 = 'Hangar_Query_3'; + const GRANTABLE_ROLES_HANGAR_QUERY_4 = 'Hangar_Query_4'; + const GRANTABLE_ROLES_HANGAR_QUERY_5 = 'Hangar_Query_5'; + const GRANTABLE_ROLES_HANGAR_QUERY_6 = 'Hangar_Query_6'; + const GRANTABLE_ROLES_HANGAR_QUERY_7 = 'Hangar_Query_7'; + const GRANTABLE_ROLES_HANGAR_TAKE_1 = 'Hangar_Take_1'; + const GRANTABLE_ROLES_HANGAR_TAKE_2 = 'Hangar_Take_2'; + const GRANTABLE_ROLES_HANGAR_TAKE_3 = 'Hangar_Take_3'; + const GRANTABLE_ROLES_HANGAR_TAKE_4 = 'Hangar_Take_4'; + const GRANTABLE_ROLES_HANGAR_TAKE_5 = 'Hangar_Take_5'; + const GRANTABLE_ROLES_HANGAR_TAKE_6 = 'Hangar_Take_6'; + const GRANTABLE_ROLES_HANGAR_TAKE_7 = 'Hangar_Take_7'; + const GRANTABLE_ROLES_JUNIOR_ACCOUNTANT = 'Junior_Accountant'; + const GRANTABLE_ROLES_PERSONNEL_MANAGER = 'Personnel_Manager'; + const GRANTABLE_ROLES_RENT_FACTORY_FACILITY = 'Rent_Factory_Facility'; + const GRANTABLE_ROLES_RENT_OFFICE = 'Rent_Office'; + const GRANTABLE_ROLES_RENT_RESEARCH_FACILITY = 'Rent_Research_Facility'; + const GRANTABLE_ROLES_SECURITY_OFFICER = 'Security_Officer'; + const GRANTABLE_ROLES_STARBASE_DEFENSE_OPERATOR = 'Starbase_Defense_Operator'; + const GRANTABLE_ROLES_STARBASE_FUEL_TECHNICIAN = 'Starbase_Fuel_Technician'; + const GRANTABLE_ROLES_STATION_MANAGER = 'Station_Manager'; + const GRANTABLE_ROLES_TERRESTRIAL_COMBAT_OFFICER = 'Terrestrial_Combat_Officer'; + const GRANTABLE_ROLES_TERRESTRIAL_LOGISTICS_OFFICER = 'Terrestrial_Logistics_Officer'; + const GRANTABLE_ROLES_TRADER = 'Trader'; + const ROLES_AT_HQ_ACCOUNT_TAKE_1 = 'Account_Take_1'; + const ROLES_AT_HQ_ACCOUNT_TAKE_2 = 'Account_Take_2'; + const ROLES_AT_HQ_ACCOUNT_TAKE_3 = 'Account_Take_3'; + const ROLES_AT_HQ_ACCOUNT_TAKE_4 = 'Account_Take_4'; + const ROLES_AT_HQ_ACCOUNT_TAKE_5 = 'Account_Take_5'; + const ROLES_AT_HQ_ACCOUNT_TAKE_6 = 'Account_Take_6'; + const ROLES_AT_HQ_ACCOUNT_TAKE_7 = 'Account_Take_7'; + const ROLES_AT_HQ_ACCOUNTANT = 'Accountant'; + const ROLES_AT_HQ_AUDITOR = 'Auditor'; + const ROLES_AT_HQ_COMMUNICATIONS_OFFICER = 'Communications_Officer'; + const ROLES_AT_HQ_CONFIG_EQUIPMENT = 'Config_Equipment'; + const ROLES_AT_HQ_CONFIG_STARBASE_EQUIPMENT = 'Config_Starbase_Equipment'; + const ROLES_AT_HQ_CONTAINER_TAKE_1 = 'Container_Take_1'; + const ROLES_AT_HQ_CONTAINER_TAKE_2 = 'Container_Take_2'; + const ROLES_AT_HQ_CONTAINER_TAKE_3 = 'Container_Take_3'; + const ROLES_AT_HQ_CONTAINER_TAKE_4 = 'Container_Take_4'; + const ROLES_AT_HQ_CONTAINER_TAKE_5 = 'Container_Take_5'; + const ROLES_AT_HQ_CONTAINER_TAKE_6 = 'Container_Take_6'; + const ROLES_AT_HQ_CONTAINER_TAKE_7 = 'Container_Take_7'; + const ROLES_AT_HQ_CONTRACT_MANAGER = 'Contract_Manager'; + const ROLES_AT_HQ_DIPLOMAT = 'Diplomat'; + const ROLES_AT_HQ_DIRECTOR = 'Director'; + const ROLES_AT_HQ_FACTORY_MANAGER = 'Factory_Manager'; + const ROLES_AT_HQ_FITTING_MANAGER = 'Fitting_Manager'; + const ROLES_AT_HQ_HANGAR_QUERY_1 = 'Hangar_Query_1'; + const ROLES_AT_HQ_HANGAR_QUERY_2 = 'Hangar_Query_2'; + const ROLES_AT_HQ_HANGAR_QUERY_3 = 'Hangar_Query_3'; + const ROLES_AT_HQ_HANGAR_QUERY_4 = 'Hangar_Query_4'; + const ROLES_AT_HQ_HANGAR_QUERY_5 = 'Hangar_Query_5'; + const ROLES_AT_HQ_HANGAR_QUERY_6 = 'Hangar_Query_6'; + const ROLES_AT_HQ_HANGAR_QUERY_7 = 'Hangar_Query_7'; + const ROLES_AT_HQ_HANGAR_TAKE_1 = 'Hangar_Take_1'; + const ROLES_AT_HQ_HANGAR_TAKE_2 = 'Hangar_Take_2'; + const ROLES_AT_HQ_HANGAR_TAKE_3 = 'Hangar_Take_3'; + const ROLES_AT_HQ_HANGAR_TAKE_4 = 'Hangar_Take_4'; + const ROLES_AT_HQ_HANGAR_TAKE_5 = 'Hangar_Take_5'; + const ROLES_AT_HQ_HANGAR_TAKE_6 = 'Hangar_Take_6'; + const ROLES_AT_HQ_HANGAR_TAKE_7 = 'Hangar_Take_7'; + const ROLES_AT_HQ_JUNIOR_ACCOUNTANT = 'Junior_Accountant'; + const ROLES_AT_HQ_PERSONNEL_MANAGER = 'Personnel_Manager'; + const ROLES_AT_HQ_RENT_FACTORY_FACILITY = 'Rent_Factory_Facility'; + const ROLES_AT_HQ_RENT_OFFICE = 'Rent_Office'; + const ROLES_AT_HQ_RENT_RESEARCH_FACILITY = 'Rent_Research_Facility'; + const ROLES_AT_HQ_SECURITY_OFFICER = 'Security_Officer'; + const ROLES_AT_HQ_STARBASE_DEFENSE_OPERATOR = 'Starbase_Defense_Operator'; + const ROLES_AT_HQ_STARBASE_FUEL_TECHNICIAN = 'Starbase_Fuel_Technician'; + const ROLES_AT_HQ_STATION_MANAGER = 'Station_Manager'; + const ROLES_AT_HQ_TERRESTRIAL_COMBAT_OFFICER = 'Terrestrial_Combat_Officer'; + const ROLES_AT_HQ_TERRESTRIAL_LOGISTICS_OFFICER = 'Terrestrial_Logistics_Officer'; + const ROLES_AT_HQ_TRADER = 'Trader'; + const GRANTABLE_ROLES_AT_HQ_ACCOUNT_TAKE_1 = 'Account_Take_1'; + const GRANTABLE_ROLES_AT_HQ_ACCOUNT_TAKE_2 = 'Account_Take_2'; + const GRANTABLE_ROLES_AT_HQ_ACCOUNT_TAKE_3 = 'Account_Take_3'; + const GRANTABLE_ROLES_AT_HQ_ACCOUNT_TAKE_4 = 'Account_Take_4'; + const GRANTABLE_ROLES_AT_HQ_ACCOUNT_TAKE_5 = 'Account_Take_5'; + const GRANTABLE_ROLES_AT_HQ_ACCOUNT_TAKE_6 = 'Account_Take_6'; + const GRANTABLE_ROLES_AT_HQ_ACCOUNT_TAKE_7 = 'Account_Take_7'; + const GRANTABLE_ROLES_AT_HQ_ACCOUNTANT = 'Accountant'; + const GRANTABLE_ROLES_AT_HQ_AUDITOR = 'Auditor'; + const GRANTABLE_ROLES_AT_HQ_COMMUNICATIONS_OFFICER = 'Communications_Officer'; + const GRANTABLE_ROLES_AT_HQ_CONFIG_EQUIPMENT = 'Config_Equipment'; + const GRANTABLE_ROLES_AT_HQ_CONFIG_STARBASE_EQUIPMENT = 'Config_Starbase_Equipment'; + const GRANTABLE_ROLES_AT_HQ_CONTAINER_TAKE_1 = 'Container_Take_1'; + const GRANTABLE_ROLES_AT_HQ_CONTAINER_TAKE_2 = 'Container_Take_2'; + const GRANTABLE_ROLES_AT_HQ_CONTAINER_TAKE_3 = 'Container_Take_3'; + const GRANTABLE_ROLES_AT_HQ_CONTAINER_TAKE_4 = 'Container_Take_4'; + const GRANTABLE_ROLES_AT_HQ_CONTAINER_TAKE_5 = 'Container_Take_5'; + const GRANTABLE_ROLES_AT_HQ_CONTAINER_TAKE_6 = 'Container_Take_6'; + const GRANTABLE_ROLES_AT_HQ_CONTAINER_TAKE_7 = 'Container_Take_7'; + const GRANTABLE_ROLES_AT_HQ_CONTRACT_MANAGER = 'Contract_Manager'; + const GRANTABLE_ROLES_AT_HQ_DIPLOMAT = 'Diplomat'; + const GRANTABLE_ROLES_AT_HQ_DIRECTOR = 'Director'; + const GRANTABLE_ROLES_AT_HQ_FACTORY_MANAGER = 'Factory_Manager'; + const GRANTABLE_ROLES_AT_HQ_FITTING_MANAGER = 'Fitting_Manager'; + const GRANTABLE_ROLES_AT_HQ_HANGAR_QUERY_1 = 'Hangar_Query_1'; + const GRANTABLE_ROLES_AT_HQ_HANGAR_QUERY_2 = 'Hangar_Query_2'; + const GRANTABLE_ROLES_AT_HQ_HANGAR_QUERY_3 = 'Hangar_Query_3'; + const GRANTABLE_ROLES_AT_HQ_HANGAR_QUERY_4 = 'Hangar_Query_4'; + const GRANTABLE_ROLES_AT_HQ_HANGAR_QUERY_5 = 'Hangar_Query_5'; + const GRANTABLE_ROLES_AT_HQ_HANGAR_QUERY_6 = 'Hangar_Query_6'; + const GRANTABLE_ROLES_AT_HQ_HANGAR_QUERY_7 = 'Hangar_Query_7'; + const GRANTABLE_ROLES_AT_HQ_HANGAR_TAKE_1 = 'Hangar_Take_1'; + const GRANTABLE_ROLES_AT_HQ_HANGAR_TAKE_2 = 'Hangar_Take_2'; + const GRANTABLE_ROLES_AT_HQ_HANGAR_TAKE_3 = 'Hangar_Take_3'; + const GRANTABLE_ROLES_AT_HQ_HANGAR_TAKE_4 = 'Hangar_Take_4'; + const GRANTABLE_ROLES_AT_HQ_HANGAR_TAKE_5 = 'Hangar_Take_5'; + const GRANTABLE_ROLES_AT_HQ_HANGAR_TAKE_6 = 'Hangar_Take_6'; + const GRANTABLE_ROLES_AT_HQ_HANGAR_TAKE_7 = 'Hangar_Take_7'; + const GRANTABLE_ROLES_AT_HQ_JUNIOR_ACCOUNTANT = 'Junior_Accountant'; + const GRANTABLE_ROLES_AT_HQ_PERSONNEL_MANAGER = 'Personnel_Manager'; + const GRANTABLE_ROLES_AT_HQ_RENT_FACTORY_FACILITY = 'Rent_Factory_Facility'; + const GRANTABLE_ROLES_AT_HQ_RENT_OFFICE = 'Rent_Office'; + const GRANTABLE_ROLES_AT_HQ_RENT_RESEARCH_FACILITY = 'Rent_Research_Facility'; + const GRANTABLE_ROLES_AT_HQ_SECURITY_OFFICER = 'Security_Officer'; + const GRANTABLE_ROLES_AT_HQ_STARBASE_DEFENSE_OPERATOR = 'Starbase_Defense_Operator'; + const GRANTABLE_ROLES_AT_HQ_STARBASE_FUEL_TECHNICIAN = 'Starbase_Fuel_Technician'; + const GRANTABLE_ROLES_AT_HQ_STATION_MANAGER = 'Station_Manager'; + const GRANTABLE_ROLES_AT_HQ_TERRESTRIAL_COMBAT_OFFICER = 'Terrestrial_Combat_Officer'; + const GRANTABLE_ROLES_AT_HQ_TERRESTRIAL_LOGISTICS_OFFICER = 'Terrestrial_Logistics_Officer'; + const GRANTABLE_ROLES_AT_HQ_TRADER = 'Trader'; + const ROLES_AT_BASE_ACCOUNT_TAKE_1 = 'Account_Take_1'; + const ROLES_AT_BASE_ACCOUNT_TAKE_2 = 'Account_Take_2'; + const ROLES_AT_BASE_ACCOUNT_TAKE_3 = 'Account_Take_3'; + const ROLES_AT_BASE_ACCOUNT_TAKE_4 = 'Account_Take_4'; + const ROLES_AT_BASE_ACCOUNT_TAKE_5 = 'Account_Take_5'; + const ROLES_AT_BASE_ACCOUNT_TAKE_6 = 'Account_Take_6'; + const ROLES_AT_BASE_ACCOUNT_TAKE_7 = 'Account_Take_7'; + const ROLES_AT_BASE_ACCOUNTANT = 'Accountant'; + const ROLES_AT_BASE_AUDITOR = 'Auditor'; + const ROLES_AT_BASE_COMMUNICATIONS_OFFICER = 'Communications_Officer'; + const ROLES_AT_BASE_CONFIG_EQUIPMENT = 'Config_Equipment'; + const ROLES_AT_BASE_CONFIG_STARBASE_EQUIPMENT = 'Config_Starbase_Equipment'; + const ROLES_AT_BASE_CONTAINER_TAKE_1 = 'Container_Take_1'; + const ROLES_AT_BASE_CONTAINER_TAKE_2 = 'Container_Take_2'; + const ROLES_AT_BASE_CONTAINER_TAKE_3 = 'Container_Take_3'; + const ROLES_AT_BASE_CONTAINER_TAKE_4 = 'Container_Take_4'; + const ROLES_AT_BASE_CONTAINER_TAKE_5 = 'Container_Take_5'; + const ROLES_AT_BASE_CONTAINER_TAKE_6 = 'Container_Take_6'; + const ROLES_AT_BASE_CONTAINER_TAKE_7 = 'Container_Take_7'; + const ROLES_AT_BASE_CONTRACT_MANAGER = 'Contract_Manager'; + const ROLES_AT_BASE_DIPLOMAT = 'Diplomat'; + const ROLES_AT_BASE_DIRECTOR = 'Director'; + const ROLES_AT_BASE_FACTORY_MANAGER = 'Factory_Manager'; + const ROLES_AT_BASE_FITTING_MANAGER = 'Fitting_Manager'; + const ROLES_AT_BASE_HANGAR_QUERY_1 = 'Hangar_Query_1'; + const ROLES_AT_BASE_HANGAR_QUERY_2 = 'Hangar_Query_2'; + const ROLES_AT_BASE_HANGAR_QUERY_3 = 'Hangar_Query_3'; + const ROLES_AT_BASE_HANGAR_QUERY_4 = 'Hangar_Query_4'; + const ROLES_AT_BASE_HANGAR_QUERY_5 = 'Hangar_Query_5'; + const ROLES_AT_BASE_HANGAR_QUERY_6 = 'Hangar_Query_6'; + const ROLES_AT_BASE_HANGAR_QUERY_7 = 'Hangar_Query_7'; + const ROLES_AT_BASE_HANGAR_TAKE_1 = 'Hangar_Take_1'; + const ROLES_AT_BASE_HANGAR_TAKE_2 = 'Hangar_Take_2'; + const ROLES_AT_BASE_HANGAR_TAKE_3 = 'Hangar_Take_3'; + const ROLES_AT_BASE_HANGAR_TAKE_4 = 'Hangar_Take_4'; + const ROLES_AT_BASE_HANGAR_TAKE_5 = 'Hangar_Take_5'; + const ROLES_AT_BASE_HANGAR_TAKE_6 = 'Hangar_Take_6'; + const ROLES_AT_BASE_HANGAR_TAKE_7 = 'Hangar_Take_7'; + const ROLES_AT_BASE_JUNIOR_ACCOUNTANT = 'Junior_Accountant'; + const ROLES_AT_BASE_PERSONNEL_MANAGER = 'Personnel_Manager'; + const ROLES_AT_BASE_RENT_FACTORY_FACILITY = 'Rent_Factory_Facility'; + const ROLES_AT_BASE_RENT_OFFICE = 'Rent_Office'; + const ROLES_AT_BASE_RENT_RESEARCH_FACILITY = 'Rent_Research_Facility'; + const ROLES_AT_BASE_SECURITY_OFFICER = 'Security_Officer'; + const ROLES_AT_BASE_STARBASE_DEFENSE_OPERATOR = 'Starbase_Defense_Operator'; + const ROLES_AT_BASE_STARBASE_FUEL_TECHNICIAN = 'Starbase_Fuel_Technician'; + const ROLES_AT_BASE_STATION_MANAGER = 'Station_Manager'; + const ROLES_AT_BASE_TERRESTRIAL_COMBAT_OFFICER = 'Terrestrial_Combat_Officer'; + const ROLES_AT_BASE_TERRESTRIAL_LOGISTICS_OFFICER = 'Terrestrial_Logistics_Officer'; + const ROLES_AT_BASE_TRADER = 'Trader'; + const GRANTABLE_ROLES_AT_BASE_ACCOUNT_TAKE_1 = 'Account_Take_1'; + const GRANTABLE_ROLES_AT_BASE_ACCOUNT_TAKE_2 = 'Account_Take_2'; + const GRANTABLE_ROLES_AT_BASE_ACCOUNT_TAKE_3 = 'Account_Take_3'; + const GRANTABLE_ROLES_AT_BASE_ACCOUNT_TAKE_4 = 'Account_Take_4'; + const GRANTABLE_ROLES_AT_BASE_ACCOUNT_TAKE_5 = 'Account_Take_5'; + const GRANTABLE_ROLES_AT_BASE_ACCOUNT_TAKE_6 = 'Account_Take_6'; + const GRANTABLE_ROLES_AT_BASE_ACCOUNT_TAKE_7 = 'Account_Take_7'; + const GRANTABLE_ROLES_AT_BASE_ACCOUNTANT = 'Accountant'; + const GRANTABLE_ROLES_AT_BASE_AUDITOR = 'Auditor'; + const GRANTABLE_ROLES_AT_BASE_COMMUNICATIONS_OFFICER = 'Communications_Officer'; + const GRANTABLE_ROLES_AT_BASE_CONFIG_EQUIPMENT = 'Config_Equipment'; + const GRANTABLE_ROLES_AT_BASE_CONFIG_STARBASE_EQUIPMENT = 'Config_Starbase_Equipment'; + const GRANTABLE_ROLES_AT_BASE_CONTAINER_TAKE_1 = 'Container_Take_1'; + const GRANTABLE_ROLES_AT_BASE_CONTAINER_TAKE_2 = 'Container_Take_2'; + const GRANTABLE_ROLES_AT_BASE_CONTAINER_TAKE_3 = 'Container_Take_3'; + const GRANTABLE_ROLES_AT_BASE_CONTAINER_TAKE_4 = 'Container_Take_4'; + const GRANTABLE_ROLES_AT_BASE_CONTAINER_TAKE_5 = 'Container_Take_5'; + const GRANTABLE_ROLES_AT_BASE_CONTAINER_TAKE_6 = 'Container_Take_6'; + const GRANTABLE_ROLES_AT_BASE_CONTAINER_TAKE_7 = 'Container_Take_7'; + const GRANTABLE_ROLES_AT_BASE_CONTRACT_MANAGER = 'Contract_Manager'; + const GRANTABLE_ROLES_AT_BASE_DIPLOMAT = 'Diplomat'; + const GRANTABLE_ROLES_AT_BASE_DIRECTOR = 'Director'; + const GRANTABLE_ROLES_AT_BASE_FACTORY_MANAGER = 'Factory_Manager'; + const GRANTABLE_ROLES_AT_BASE_FITTING_MANAGER = 'Fitting_Manager'; + const GRANTABLE_ROLES_AT_BASE_HANGAR_QUERY_1 = 'Hangar_Query_1'; + const GRANTABLE_ROLES_AT_BASE_HANGAR_QUERY_2 = 'Hangar_Query_2'; + const GRANTABLE_ROLES_AT_BASE_HANGAR_QUERY_3 = 'Hangar_Query_3'; + const GRANTABLE_ROLES_AT_BASE_HANGAR_QUERY_4 = 'Hangar_Query_4'; + const GRANTABLE_ROLES_AT_BASE_HANGAR_QUERY_5 = 'Hangar_Query_5'; + const GRANTABLE_ROLES_AT_BASE_HANGAR_QUERY_6 = 'Hangar_Query_6'; + const GRANTABLE_ROLES_AT_BASE_HANGAR_QUERY_7 = 'Hangar_Query_7'; + const GRANTABLE_ROLES_AT_BASE_HANGAR_TAKE_1 = 'Hangar_Take_1'; + const GRANTABLE_ROLES_AT_BASE_HANGAR_TAKE_2 = 'Hangar_Take_2'; + const GRANTABLE_ROLES_AT_BASE_HANGAR_TAKE_3 = 'Hangar_Take_3'; + const GRANTABLE_ROLES_AT_BASE_HANGAR_TAKE_4 = 'Hangar_Take_4'; + const GRANTABLE_ROLES_AT_BASE_HANGAR_TAKE_5 = 'Hangar_Take_5'; + const GRANTABLE_ROLES_AT_BASE_HANGAR_TAKE_6 = 'Hangar_Take_6'; + const GRANTABLE_ROLES_AT_BASE_HANGAR_TAKE_7 = 'Hangar_Take_7'; + const GRANTABLE_ROLES_AT_BASE_JUNIOR_ACCOUNTANT = 'Junior_Accountant'; + const GRANTABLE_ROLES_AT_BASE_PERSONNEL_MANAGER = 'Personnel_Manager'; + const GRANTABLE_ROLES_AT_BASE_RENT_FACTORY_FACILITY = 'Rent_Factory_Facility'; + const GRANTABLE_ROLES_AT_BASE_RENT_OFFICE = 'Rent_Office'; + const GRANTABLE_ROLES_AT_BASE_RENT_RESEARCH_FACILITY = 'Rent_Research_Facility'; + const GRANTABLE_ROLES_AT_BASE_SECURITY_OFFICER = 'Security_Officer'; + const GRANTABLE_ROLES_AT_BASE_STARBASE_DEFENSE_OPERATOR = 'Starbase_Defense_Operator'; + const GRANTABLE_ROLES_AT_BASE_STARBASE_FUEL_TECHNICIAN = 'Starbase_Fuel_Technician'; + const GRANTABLE_ROLES_AT_BASE_STATION_MANAGER = 'Station_Manager'; + const GRANTABLE_ROLES_AT_BASE_TERRESTRIAL_COMBAT_OFFICER = 'Terrestrial_Combat_Officer'; + const GRANTABLE_ROLES_AT_BASE_TERRESTRIAL_LOGISTICS_OFFICER = 'Terrestrial_Logistics_Officer'; + const GRANTABLE_ROLES_AT_BASE_TRADER = 'Trader'; + const ROLES_AT_OTHER_ACCOUNT_TAKE_1 = 'Account_Take_1'; + const ROLES_AT_OTHER_ACCOUNT_TAKE_2 = 'Account_Take_2'; + const ROLES_AT_OTHER_ACCOUNT_TAKE_3 = 'Account_Take_3'; + const ROLES_AT_OTHER_ACCOUNT_TAKE_4 = 'Account_Take_4'; + const ROLES_AT_OTHER_ACCOUNT_TAKE_5 = 'Account_Take_5'; + const ROLES_AT_OTHER_ACCOUNT_TAKE_6 = 'Account_Take_6'; + const ROLES_AT_OTHER_ACCOUNT_TAKE_7 = 'Account_Take_7'; + const ROLES_AT_OTHER_ACCOUNTANT = 'Accountant'; + const ROLES_AT_OTHER_AUDITOR = 'Auditor'; + const ROLES_AT_OTHER_COMMUNICATIONS_OFFICER = 'Communications_Officer'; + const ROLES_AT_OTHER_CONFIG_EQUIPMENT = 'Config_Equipment'; + const ROLES_AT_OTHER_CONFIG_STARBASE_EQUIPMENT = 'Config_Starbase_Equipment'; + const ROLES_AT_OTHER_CONTAINER_TAKE_1 = 'Container_Take_1'; + const ROLES_AT_OTHER_CONTAINER_TAKE_2 = 'Container_Take_2'; + const ROLES_AT_OTHER_CONTAINER_TAKE_3 = 'Container_Take_3'; + const ROLES_AT_OTHER_CONTAINER_TAKE_4 = 'Container_Take_4'; + const ROLES_AT_OTHER_CONTAINER_TAKE_5 = 'Container_Take_5'; + const ROLES_AT_OTHER_CONTAINER_TAKE_6 = 'Container_Take_6'; + const ROLES_AT_OTHER_CONTAINER_TAKE_7 = 'Container_Take_7'; + const ROLES_AT_OTHER_CONTRACT_MANAGER = 'Contract_Manager'; + const ROLES_AT_OTHER_DIPLOMAT = 'Diplomat'; + const ROLES_AT_OTHER_DIRECTOR = 'Director'; + const ROLES_AT_OTHER_FACTORY_MANAGER = 'Factory_Manager'; + const ROLES_AT_OTHER_FITTING_MANAGER = 'Fitting_Manager'; + const ROLES_AT_OTHER_HANGAR_QUERY_1 = 'Hangar_Query_1'; + const ROLES_AT_OTHER_HANGAR_QUERY_2 = 'Hangar_Query_2'; + const ROLES_AT_OTHER_HANGAR_QUERY_3 = 'Hangar_Query_3'; + const ROLES_AT_OTHER_HANGAR_QUERY_4 = 'Hangar_Query_4'; + const ROLES_AT_OTHER_HANGAR_QUERY_5 = 'Hangar_Query_5'; + const ROLES_AT_OTHER_HANGAR_QUERY_6 = 'Hangar_Query_6'; + const ROLES_AT_OTHER_HANGAR_QUERY_7 = 'Hangar_Query_7'; + const ROLES_AT_OTHER_HANGAR_TAKE_1 = 'Hangar_Take_1'; + const ROLES_AT_OTHER_HANGAR_TAKE_2 = 'Hangar_Take_2'; + const ROLES_AT_OTHER_HANGAR_TAKE_3 = 'Hangar_Take_3'; + const ROLES_AT_OTHER_HANGAR_TAKE_4 = 'Hangar_Take_4'; + const ROLES_AT_OTHER_HANGAR_TAKE_5 = 'Hangar_Take_5'; + const ROLES_AT_OTHER_HANGAR_TAKE_6 = 'Hangar_Take_6'; + const ROLES_AT_OTHER_HANGAR_TAKE_7 = 'Hangar_Take_7'; + const ROLES_AT_OTHER_JUNIOR_ACCOUNTANT = 'Junior_Accountant'; + const ROLES_AT_OTHER_PERSONNEL_MANAGER = 'Personnel_Manager'; + const ROLES_AT_OTHER_RENT_FACTORY_FACILITY = 'Rent_Factory_Facility'; + const ROLES_AT_OTHER_RENT_OFFICE = 'Rent_Office'; + const ROLES_AT_OTHER_RENT_RESEARCH_FACILITY = 'Rent_Research_Facility'; + const ROLES_AT_OTHER_SECURITY_OFFICER = 'Security_Officer'; + const ROLES_AT_OTHER_STARBASE_DEFENSE_OPERATOR = 'Starbase_Defense_Operator'; + const ROLES_AT_OTHER_STARBASE_FUEL_TECHNICIAN = 'Starbase_Fuel_Technician'; + const ROLES_AT_OTHER_STATION_MANAGER = 'Station_Manager'; + const ROLES_AT_OTHER_TERRESTRIAL_COMBAT_OFFICER = 'Terrestrial_Combat_Officer'; + const ROLES_AT_OTHER_TERRESTRIAL_LOGISTICS_OFFICER = 'Terrestrial_Logistics_Officer'; + const ROLES_AT_OTHER_TRADER = 'Trader'; + const GRANTABLE_ROLES_AT_OTHER_ACCOUNT_TAKE_1 = 'Account_Take_1'; + const GRANTABLE_ROLES_AT_OTHER_ACCOUNT_TAKE_2 = 'Account_Take_2'; + const GRANTABLE_ROLES_AT_OTHER_ACCOUNT_TAKE_3 = 'Account_Take_3'; + const GRANTABLE_ROLES_AT_OTHER_ACCOUNT_TAKE_4 = 'Account_Take_4'; + const GRANTABLE_ROLES_AT_OTHER_ACCOUNT_TAKE_5 = 'Account_Take_5'; + const GRANTABLE_ROLES_AT_OTHER_ACCOUNT_TAKE_6 = 'Account_Take_6'; + const GRANTABLE_ROLES_AT_OTHER_ACCOUNT_TAKE_7 = 'Account_Take_7'; + const GRANTABLE_ROLES_AT_OTHER_ACCOUNTANT = 'Accountant'; + const GRANTABLE_ROLES_AT_OTHER_AUDITOR = 'Auditor'; + const GRANTABLE_ROLES_AT_OTHER_COMMUNICATIONS_OFFICER = 'Communications_Officer'; + const GRANTABLE_ROLES_AT_OTHER_CONFIG_EQUIPMENT = 'Config_Equipment'; + const GRANTABLE_ROLES_AT_OTHER_CONFIG_STARBASE_EQUIPMENT = 'Config_Starbase_Equipment'; + const GRANTABLE_ROLES_AT_OTHER_CONTAINER_TAKE_1 = 'Container_Take_1'; + const GRANTABLE_ROLES_AT_OTHER_CONTAINER_TAKE_2 = 'Container_Take_2'; + const GRANTABLE_ROLES_AT_OTHER_CONTAINER_TAKE_3 = 'Container_Take_3'; + const GRANTABLE_ROLES_AT_OTHER_CONTAINER_TAKE_4 = 'Container_Take_4'; + const GRANTABLE_ROLES_AT_OTHER_CONTAINER_TAKE_5 = 'Container_Take_5'; + const GRANTABLE_ROLES_AT_OTHER_CONTAINER_TAKE_6 = 'Container_Take_6'; + const GRANTABLE_ROLES_AT_OTHER_CONTAINER_TAKE_7 = 'Container_Take_7'; + const GRANTABLE_ROLES_AT_OTHER_CONTRACT_MANAGER = 'Contract_Manager'; + const GRANTABLE_ROLES_AT_OTHER_DIPLOMAT = 'Diplomat'; + const GRANTABLE_ROLES_AT_OTHER_DIRECTOR = 'Director'; + const GRANTABLE_ROLES_AT_OTHER_FACTORY_MANAGER = 'Factory_Manager'; + const GRANTABLE_ROLES_AT_OTHER_FITTING_MANAGER = 'Fitting_Manager'; + const GRANTABLE_ROLES_AT_OTHER_HANGAR_QUERY_1 = 'Hangar_Query_1'; + const GRANTABLE_ROLES_AT_OTHER_HANGAR_QUERY_2 = 'Hangar_Query_2'; + const GRANTABLE_ROLES_AT_OTHER_HANGAR_QUERY_3 = 'Hangar_Query_3'; + const GRANTABLE_ROLES_AT_OTHER_HANGAR_QUERY_4 = 'Hangar_Query_4'; + const GRANTABLE_ROLES_AT_OTHER_HANGAR_QUERY_5 = 'Hangar_Query_5'; + const GRANTABLE_ROLES_AT_OTHER_HANGAR_QUERY_6 = 'Hangar_Query_6'; + const GRANTABLE_ROLES_AT_OTHER_HANGAR_QUERY_7 = 'Hangar_Query_7'; + const GRANTABLE_ROLES_AT_OTHER_HANGAR_TAKE_1 = 'Hangar_Take_1'; + const GRANTABLE_ROLES_AT_OTHER_HANGAR_TAKE_2 = 'Hangar_Take_2'; + const GRANTABLE_ROLES_AT_OTHER_HANGAR_TAKE_3 = 'Hangar_Take_3'; + const GRANTABLE_ROLES_AT_OTHER_HANGAR_TAKE_4 = 'Hangar_Take_4'; + const GRANTABLE_ROLES_AT_OTHER_HANGAR_TAKE_5 = 'Hangar_Take_5'; + const GRANTABLE_ROLES_AT_OTHER_HANGAR_TAKE_6 = 'Hangar_Take_6'; + const GRANTABLE_ROLES_AT_OTHER_HANGAR_TAKE_7 = 'Hangar_Take_7'; + const GRANTABLE_ROLES_AT_OTHER_JUNIOR_ACCOUNTANT = 'Junior_Accountant'; + const GRANTABLE_ROLES_AT_OTHER_PERSONNEL_MANAGER = 'Personnel_Manager'; + const GRANTABLE_ROLES_AT_OTHER_RENT_FACTORY_FACILITY = 'Rent_Factory_Facility'; + const GRANTABLE_ROLES_AT_OTHER_RENT_OFFICE = 'Rent_Office'; + const GRANTABLE_ROLES_AT_OTHER_RENT_RESEARCH_FACILITY = 'Rent_Research_Facility'; + const GRANTABLE_ROLES_AT_OTHER_SECURITY_OFFICER = 'Security_Officer'; + const GRANTABLE_ROLES_AT_OTHER_STARBASE_DEFENSE_OPERATOR = 'Starbase_Defense_Operator'; + const GRANTABLE_ROLES_AT_OTHER_STARBASE_FUEL_TECHNICIAN = 'Starbase_Fuel_Technician'; + const GRANTABLE_ROLES_AT_OTHER_STATION_MANAGER = 'Station_Manager'; + const GRANTABLE_ROLES_AT_OTHER_TERRESTRIAL_COMBAT_OFFICER = 'Terrestrial_Combat_Officer'; + const GRANTABLE_ROLES_AT_OTHER_TERRESTRIAL_LOGISTICS_OFFICER = 'Terrestrial_Logistics_Officer'; + const GRANTABLE_ROLES_AT_OTHER_TRADER = 'Trader'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getRolesAllowableValues() + { + return [ + self::ROLES_ACCOUNT_TAKE_1, + self::ROLES_ACCOUNT_TAKE_2, + self::ROLES_ACCOUNT_TAKE_3, + self::ROLES_ACCOUNT_TAKE_4, + self::ROLES_ACCOUNT_TAKE_5, + self::ROLES_ACCOUNT_TAKE_6, + self::ROLES_ACCOUNT_TAKE_7, + self::ROLES_ACCOUNTANT, + self::ROLES_AUDITOR, + self::ROLES_COMMUNICATIONS_OFFICER, + self::ROLES_CONFIG_EQUIPMENT, + self::ROLES_CONFIG_STARBASE_EQUIPMENT, + self::ROLES_CONTAINER_TAKE_1, + self::ROLES_CONTAINER_TAKE_2, + self::ROLES_CONTAINER_TAKE_3, + self::ROLES_CONTAINER_TAKE_4, + self::ROLES_CONTAINER_TAKE_5, + self::ROLES_CONTAINER_TAKE_6, + self::ROLES_CONTAINER_TAKE_7, + self::ROLES_CONTRACT_MANAGER, + self::ROLES_DIPLOMAT, + self::ROLES_DIRECTOR, + self::ROLES_FACTORY_MANAGER, + self::ROLES_FITTING_MANAGER, + self::ROLES_HANGAR_QUERY_1, + self::ROLES_HANGAR_QUERY_2, + self::ROLES_HANGAR_QUERY_3, + self::ROLES_HANGAR_QUERY_4, + self::ROLES_HANGAR_QUERY_5, + self::ROLES_HANGAR_QUERY_6, + self::ROLES_HANGAR_QUERY_7, + self::ROLES_HANGAR_TAKE_1, + self::ROLES_HANGAR_TAKE_2, + self::ROLES_HANGAR_TAKE_3, + self::ROLES_HANGAR_TAKE_4, + self::ROLES_HANGAR_TAKE_5, + self::ROLES_HANGAR_TAKE_6, + self::ROLES_HANGAR_TAKE_7, + self::ROLES_JUNIOR_ACCOUNTANT, + self::ROLES_PERSONNEL_MANAGER, + self::ROLES_RENT_FACTORY_FACILITY, + self::ROLES_RENT_OFFICE, + self::ROLES_RENT_RESEARCH_FACILITY, + self::ROLES_SECURITY_OFFICER, + self::ROLES_STARBASE_DEFENSE_OPERATOR, + self::ROLES_STARBASE_FUEL_TECHNICIAN, + self::ROLES_STATION_MANAGER, + self::ROLES_TERRESTRIAL_COMBAT_OFFICER, + self::ROLES_TERRESTRIAL_LOGISTICS_OFFICER, + self::ROLES_TRADER, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getGrantableRolesAllowableValues() + { + return [ + self::GRANTABLE_ROLES_ACCOUNT_TAKE_1, + self::GRANTABLE_ROLES_ACCOUNT_TAKE_2, + self::GRANTABLE_ROLES_ACCOUNT_TAKE_3, + self::GRANTABLE_ROLES_ACCOUNT_TAKE_4, + self::GRANTABLE_ROLES_ACCOUNT_TAKE_5, + self::GRANTABLE_ROLES_ACCOUNT_TAKE_6, + self::GRANTABLE_ROLES_ACCOUNT_TAKE_7, + self::GRANTABLE_ROLES_ACCOUNTANT, + self::GRANTABLE_ROLES_AUDITOR, + self::GRANTABLE_ROLES_COMMUNICATIONS_OFFICER, + self::GRANTABLE_ROLES_CONFIG_EQUIPMENT, + self::GRANTABLE_ROLES_CONFIG_STARBASE_EQUIPMENT, + self::GRANTABLE_ROLES_CONTAINER_TAKE_1, + self::GRANTABLE_ROLES_CONTAINER_TAKE_2, + self::GRANTABLE_ROLES_CONTAINER_TAKE_3, + self::GRANTABLE_ROLES_CONTAINER_TAKE_4, + self::GRANTABLE_ROLES_CONTAINER_TAKE_5, + self::GRANTABLE_ROLES_CONTAINER_TAKE_6, + self::GRANTABLE_ROLES_CONTAINER_TAKE_7, + self::GRANTABLE_ROLES_CONTRACT_MANAGER, + self::GRANTABLE_ROLES_DIPLOMAT, + self::GRANTABLE_ROLES_DIRECTOR, + self::GRANTABLE_ROLES_FACTORY_MANAGER, + self::GRANTABLE_ROLES_FITTING_MANAGER, + self::GRANTABLE_ROLES_HANGAR_QUERY_1, + self::GRANTABLE_ROLES_HANGAR_QUERY_2, + self::GRANTABLE_ROLES_HANGAR_QUERY_3, + self::GRANTABLE_ROLES_HANGAR_QUERY_4, + self::GRANTABLE_ROLES_HANGAR_QUERY_5, + self::GRANTABLE_ROLES_HANGAR_QUERY_6, + self::GRANTABLE_ROLES_HANGAR_QUERY_7, + self::GRANTABLE_ROLES_HANGAR_TAKE_1, + self::GRANTABLE_ROLES_HANGAR_TAKE_2, + self::GRANTABLE_ROLES_HANGAR_TAKE_3, + self::GRANTABLE_ROLES_HANGAR_TAKE_4, + self::GRANTABLE_ROLES_HANGAR_TAKE_5, + self::GRANTABLE_ROLES_HANGAR_TAKE_6, + self::GRANTABLE_ROLES_HANGAR_TAKE_7, + self::GRANTABLE_ROLES_JUNIOR_ACCOUNTANT, + self::GRANTABLE_ROLES_PERSONNEL_MANAGER, + self::GRANTABLE_ROLES_RENT_FACTORY_FACILITY, + self::GRANTABLE_ROLES_RENT_OFFICE, + self::GRANTABLE_ROLES_RENT_RESEARCH_FACILITY, + self::GRANTABLE_ROLES_SECURITY_OFFICER, + self::GRANTABLE_ROLES_STARBASE_DEFENSE_OPERATOR, + self::GRANTABLE_ROLES_STARBASE_FUEL_TECHNICIAN, + self::GRANTABLE_ROLES_STATION_MANAGER, + self::GRANTABLE_ROLES_TERRESTRIAL_COMBAT_OFFICER, + self::GRANTABLE_ROLES_TERRESTRIAL_LOGISTICS_OFFICER, + self::GRANTABLE_ROLES_TRADER, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getRolesAtHqAllowableValues() + { + return [ + self::ROLES_AT_HQ_ACCOUNT_TAKE_1, + self::ROLES_AT_HQ_ACCOUNT_TAKE_2, + self::ROLES_AT_HQ_ACCOUNT_TAKE_3, + self::ROLES_AT_HQ_ACCOUNT_TAKE_4, + self::ROLES_AT_HQ_ACCOUNT_TAKE_5, + self::ROLES_AT_HQ_ACCOUNT_TAKE_6, + self::ROLES_AT_HQ_ACCOUNT_TAKE_7, + self::ROLES_AT_HQ_ACCOUNTANT, + self::ROLES_AT_HQ_AUDITOR, + self::ROLES_AT_HQ_COMMUNICATIONS_OFFICER, + self::ROLES_AT_HQ_CONFIG_EQUIPMENT, + self::ROLES_AT_HQ_CONFIG_STARBASE_EQUIPMENT, + self::ROLES_AT_HQ_CONTAINER_TAKE_1, + self::ROLES_AT_HQ_CONTAINER_TAKE_2, + self::ROLES_AT_HQ_CONTAINER_TAKE_3, + self::ROLES_AT_HQ_CONTAINER_TAKE_4, + self::ROLES_AT_HQ_CONTAINER_TAKE_5, + self::ROLES_AT_HQ_CONTAINER_TAKE_6, + self::ROLES_AT_HQ_CONTAINER_TAKE_7, + self::ROLES_AT_HQ_CONTRACT_MANAGER, + self::ROLES_AT_HQ_DIPLOMAT, + self::ROLES_AT_HQ_DIRECTOR, + self::ROLES_AT_HQ_FACTORY_MANAGER, + self::ROLES_AT_HQ_FITTING_MANAGER, + self::ROLES_AT_HQ_HANGAR_QUERY_1, + self::ROLES_AT_HQ_HANGAR_QUERY_2, + self::ROLES_AT_HQ_HANGAR_QUERY_3, + self::ROLES_AT_HQ_HANGAR_QUERY_4, + self::ROLES_AT_HQ_HANGAR_QUERY_5, + self::ROLES_AT_HQ_HANGAR_QUERY_6, + self::ROLES_AT_HQ_HANGAR_QUERY_7, + self::ROLES_AT_HQ_HANGAR_TAKE_1, + self::ROLES_AT_HQ_HANGAR_TAKE_2, + self::ROLES_AT_HQ_HANGAR_TAKE_3, + self::ROLES_AT_HQ_HANGAR_TAKE_4, + self::ROLES_AT_HQ_HANGAR_TAKE_5, + self::ROLES_AT_HQ_HANGAR_TAKE_6, + self::ROLES_AT_HQ_HANGAR_TAKE_7, + self::ROLES_AT_HQ_JUNIOR_ACCOUNTANT, + self::ROLES_AT_HQ_PERSONNEL_MANAGER, + self::ROLES_AT_HQ_RENT_FACTORY_FACILITY, + self::ROLES_AT_HQ_RENT_OFFICE, + self::ROLES_AT_HQ_RENT_RESEARCH_FACILITY, + self::ROLES_AT_HQ_SECURITY_OFFICER, + self::ROLES_AT_HQ_STARBASE_DEFENSE_OPERATOR, + self::ROLES_AT_HQ_STARBASE_FUEL_TECHNICIAN, + self::ROLES_AT_HQ_STATION_MANAGER, + self::ROLES_AT_HQ_TERRESTRIAL_COMBAT_OFFICER, + self::ROLES_AT_HQ_TERRESTRIAL_LOGISTICS_OFFICER, + self::ROLES_AT_HQ_TRADER, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getGrantableRolesAtHqAllowableValues() + { + return [ + self::GRANTABLE_ROLES_AT_HQ_ACCOUNT_TAKE_1, + self::GRANTABLE_ROLES_AT_HQ_ACCOUNT_TAKE_2, + self::GRANTABLE_ROLES_AT_HQ_ACCOUNT_TAKE_3, + self::GRANTABLE_ROLES_AT_HQ_ACCOUNT_TAKE_4, + self::GRANTABLE_ROLES_AT_HQ_ACCOUNT_TAKE_5, + self::GRANTABLE_ROLES_AT_HQ_ACCOUNT_TAKE_6, + self::GRANTABLE_ROLES_AT_HQ_ACCOUNT_TAKE_7, + self::GRANTABLE_ROLES_AT_HQ_ACCOUNTANT, + self::GRANTABLE_ROLES_AT_HQ_AUDITOR, + self::GRANTABLE_ROLES_AT_HQ_COMMUNICATIONS_OFFICER, + self::GRANTABLE_ROLES_AT_HQ_CONFIG_EQUIPMENT, + self::GRANTABLE_ROLES_AT_HQ_CONFIG_STARBASE_EQUIPMENT, + self::GRANTABLE_ROLES_AT_HQ_CONTAINER_TAKE_1, + self::GRANTABLE_ROLES_AT_HQ_CONTAINER_TAKE_2, + self::GRANTABLE_ROLES_AT_HQ_CONTAINER_TAKE_3, + self::GRANTABLE_ROLES_AT_HQ_CONTAINER_TAKE_4, + self::GRANTABLE_ROLES_AT_HQ_CONTAINER_TAKE_5, + self::GRANTABLE_ROLES_AT_HQ_CONTAINER_TAKE_6, + self::GRANTABLE_ROLES_AT_HQ_CONTAINER_TAKE_7, + self::GRANTABLE_ROLES_AT_HQ_CONTRACT_MANAGER, + self::GRANTABLE_ROLES_AT_HQ_DIPLOMAT, + self::GRANTABLE_ROLES_AT_HQ_DIRECTOR, + self::GRANTABLE_ROLES_AT_HQ_FACTORY_MANAGER, + self::GRANTABLE_ROLES_AT_HQ_FITTING_MANAGER, + self::GRANTABLE_ROLES_AT_HQ_HANGAR_QUERY_1, + self::GRANTABLE_ROLES_AT_HQ_HANGAR_QUERY_2, + self::GRANTABLE_ROLES_AT_HQ_HANGAR_QUERY_3, + self::GRANTABLE_ROLES_AT_HQ_HANGAR_QUERY_4, + self::GRANTABLE_ROLES_AT_HQ_HANGAR_QUERY_5, + self::GRANTABLE_ROLES_AT_HQ_HANGAR_QUERY_6, + self::GRANTABLE_ROLES_AT_HQ_HANGAR_QUERY_7, + self::GRANTABLE_ROLES_AT_HQ_HANGAR_TAKE_1, + self::GRANTABLE_ROLES_AT_HQ_HANGAR_TAKE_2, + self::GRANTABLE_ROLES_AT_HQ_HANGAR_TAKE_3, + self::GRANTABLE_ROLES_AT_HQ_HANGAR_TAKE_4, + self::GRANTABLE_ROLES_AT_HQ_HANGAR_TAKE_5, + self::GRANTABLE_ROLES_AT_HQ_HANGAR_TAKE_6, + self::GRANTABLE_ROLES_AT_HQ_HANGAR_TAKE_7, + self::GRANTABLE_ROLES_AT_HQ_JUNIOR_ACCOUNTANT, + self::GRANTABLE_ROLES_AT_HQ_PERSONNEL_MANAGER, + self::GRANTABLE_ROLES_AT_HQ_RENT_FACTORY_FACILITY, + self::GRANTABLE_ROLES_AT_HQ_RENT_OFFICE, + self::GRANTABLE_ROLES_AT_HQ_RENT_RESEARCH_FACILITY, + self::GRANTABLE_ROLES_AT_HQ_SECURITY_OFFICER, + self::GRANTABLE_ROLES_AT_HQ_STARBASE_DEFENSE_OPERATOR, + self::GRANTABLE_ROLES_AT_HQ_STARBASE_FUEL_TECHNICIAN, + self::GRANTABLE_ROLES_AT_HQ_STATION_MANAGER, + self::GRANTABLE_ROLES_AT_HQ_TERRESTRIAL_COMBAT_OFFICER, + self::GRANTABLE_ROLES_AT_HQ_TERRESTRIAL_LOGISTICS_OFFICER, + self::GRANTABLE_ROLES_AT_HQ_TRADER, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getRolesAtBaseAllowableValues() + { + return [ + self::ROLES_AT_BASE_ACCOUNT_TAKE_1, + self::ROLES_AT_BASE_ACCOUNT_TAKE_2, + self::ROLES_AT_BASE_ACCOUNT_TAKE_3, + self::ROLES_AT_BASE_ACCOUNT_TAKE_4, + self::ROLES_AT_BASE_ACCOUNT_TAKE_5, + self::ROLES_AT_BASE_ACCOUNT_TAKE_6, + self::ROLES_AT_BASE_ACCOUNT_TAKE_7, + self::ROLES_AT_BASE_ACCOUNTANT, + self::ROLES_AT_BASE_AUDITOR, + self::ROLES_AT_BASE_COMMUNICATIONS_OFFICER, + self::ROLES_AT_BASE_CONFIG_EQUIPMENT, + self::ROLES_AT_BASE_CONFIG_STARBASE_EQUIPMENT, + self::ROLES_AT_BASE_CONTAINER_TAKE_1, + self::ROLES_AT_BASE_CONTAINER_TAKE_2, + self::ROLES_AT_BASE_CONTAINER_TAKE_3, + self::ROLES_AT_BASE_CONTAINER_TAKE_4, + self::ROLES_AT_BASE_CONTAINER_TAKE_5, + self::ROLES_AT_BASE_CONTAINER_TAKE_6, + self::ROLES_AT_BASE_CONTAINER_TAKE_7, + self::ROLES_AT_BASE_CONTRACT_MANAGER, + self::ROLES_AT_BASE_DIPLOMAT, + self::ROLES_AT_BASE_DIRECTOR, + self::ROLES_AT_BASE_FACTORY_MANAGER, + self::ROLES_AT_BASE_FITTING_MANAGER, + self::ROLES_AT_BASE_HANGAR_QUERY_1, + self::ROLES_AT_BASE_HANGAR_QUERY_2, + self::ROLES_AT_BASE_HANGAR_QUERY_3, + self::ROLES_AT_BASE_HANGAR_QUERY_4, + self::ROLES_AT_BASE_HANGAR_QUERY_5, + self::ROLES_AT_BASE_HANGAR_QUERY_6, + self::ROLES_AT_BASE_HANGAR_QUERY_7, + self::ROLES_AT_BASE_HANGAR_TAKE_1, + self::ROLES_AT_BASE_HANGAR_TAKE_2, + self::ROLES_AT_BASE_HANGAR_TAKE_3, + self::ROLES_AT_BASE_HANGAR_TAKE_4, + self::ROLES_AT_BASE_HANGAR_TAKE_5, + self::ROLES_AT_BASE_HANGAR_TAKE_6, + self::ROLES_AT_BASE_HANGAR_TAKE_7, + self::ROLES_AT_BASE_JUNIOR_ACCOUNTANT, + self::ROLES_AT_BASE_PERSONNEL_MANAGER, + self::ROLES_AT_BASE_RENT_FACTORY_FACILITY, + self::ROLES_AT_BASE_RENT_OFFICE, + self::ROLES_AT_BASE_RENT_RESEARCH_FACILITY, + self::ROLES_AT_BASE_SECURITY_OFFICER, + self::ROLES_AT_BASE_STARBASE_DEFENSE_OPERATOR, + self::ROLES_AT_BASE_STARBASE_FUEL_TECHNICIAN, + self::ROLES_AT_BASE_STATION_MANAGER, + self::ROLES_AT_BASE_TERRESTRIAL_COMBAT_OFFICER, + self::ROLES_AT_BASE_TERRESTRIAL_LOGISTICS_OFFICER, + self::ROLES_AT_BASE_TRADER, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getGrantableRolesAtBaseAllowableValues() + { + return [ + self::GRANTABLE_ROLES_AT_BASE_ACCOUNT_TAKE_1, + self::GRANTABLE_ROLES_AT_BASE_ACCOUNT_TAKE_2, + self::GRANTABLE_ROLES_AT_BASE_ACCOUNT_TAKE_3, + self::GRANTABLE_ROLES_AT_BASE_ACCOUNT_TAKE_4, + self::GRANTABLE_ROLES_AT_BASE_ACCOUNT_TAKE_5, + self::GRANTABLE_ROLES_AT_BASE_ACCOUNT_TAKE_6, + self::GRANTABLE_ROLES_AT_BASE_ACCOUNT_TAKE_7, + self::GRANTABLE_ROLES_AT_BASE_ACCOUNTANT, + self::GRANTABLE_ROLES_AT_BASE_AUDITOR, + self::GRANTABLE_ROLES_AT_BASE_COMMUNICATIONS_OFFICER, + self::GRANTABLE_ROLES_AT_BASE_CONFIG_EQUIPMENT, + self::GRANTABLE_ROLES_AT_BASE_CONFIG_STARBASE_EQUIPMENT, + self::GRANTABLE_ROLES_AT_BASE_CONTAINER_TAKE_1, + self::GRANTABLE_ROLES_AT_BASE_CONTAINER_TAKE_2, + self::GRANTABLE_ROLES_AT_BASE_CONTAINER_TAKE_3, + self::GRANTABLE_ROLES_AT_BASE_CONTAINER_TAKE_4, + self::GRANTABLE_ROLES_AT_BASE_CONTAINER_TAKE_5, + self::GRANTABLE_ROLES_AT_BASE_CONTAINER_TAKE_6, + self::GRANTABLE_ROLES_AT_BASE_CONTAINER_TAKE_7, + self::GRANTABLE_ROLES_AT_BASE_CONTRACT_MANAGER, + self::GRANTABLE_ROLES_AT_BASE_DIPLOMAT, + self::GRANTABLE_ROLES_AT_BASE_DIRECTOR, + self::GRANTABLE_ROLES_AT_BASE_FACTORY_MANAGER, + self::GRANTABLE_ROLES_AT_BASE_FITTING_MANAGER, + self::GRANTABLE_ROLES_AT_BASE_HANGAR_QUERY_1, + self::GRANTABLE_ROLES_AT_BASE_HANGAR_QUERY_2, + self::GRANTABLE_ROLES_AT_BASE_HANGAR_QUERY_3, + self::GRANTABLE_ROLES_AT_BASE_HANGAR_QUERY_4, + self::GRANTABLE_ROLES_AT_BASE_HANGAR_QUERY_5, + self::GRANTABLE_ROLES_AT_BASE_HANGAR_QUERY_6, + self::GRANTABLE_ROLES_AT_BASE_HANGAR_QUERY_7, + self::GRANTABLE_ROLES_AT_BASE_HANGAR_TAKE_1, + self::GRANTABLE_ROLES_AT_BASE_HANGAR_TAKE_2, + self::GRANTABLE_ROLES_AT_BASE_HANGAR_TAKE_3, + self::GRANTABLE_ROLES_AT_BASE_HANGAR_TAKE_4, + self::GRANTABLE_ROLES_AT_BASE_HANGAR_TAKE_5, + self::GRANTABLE_ROLES_AT_BASE_HANGAR_TAKE_6, + self::GRANTABLE_ROLES_AT_BASE_HANGAR_TAKE_7, + self::GRANTABLE_ROLES_AT_BASE_JUNIOR_ACCOUNTANT, + self::GRANTABLE_ROLES_AT_BASE_PERSONNEL_MANAGER, + self::GRANTABLE_ROLES_AT_BASE_RENT_FACTORY_FACILITY, + self::GRANTABLE_ROLES_AT_BASE_RENT_OFFICE, + self::GRANTABLE_ROLES_AT_BASE_RENT_RESEARCH_FACILITY, + self::GRANTABLE_ROLES_AT_BASE_SECURITY_OFFICER, + self::GRANTABLE_ROLES_AT_BASE_STARBASE_DEFENSE_OPERATOR, + self::GRANTABLE_ROLES_AT_BASE_STARBASE_FUEL_TECHNICIAN, + self::GRANTABLE_ROLES_AT_BASE_STATION_MANAGER, + self::GRANTABLE_ROLES_AT_BASE_TERRESTRIAL_COMBAT_OFFICER, + self::GRANTABLE_ROLES_AT_BASE_TERRESTRIAL_LOGISTICS_OFFICER, + self::GRANTABLE_ROLES_AT_BASE_TRADER, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getRolesAtOtherAllowableValues() + { + return [ + self::ROLES_AT_OTHER_ACCOUNT_TAKE_1, + self::ROLES_AT_OTHER_ACCOUNT_TAKE_2, + self::ROLES_AT_OTHER_ACCOUNT_TAKE_3, + self::ROLES_AT_OTHER_ACCOUNT_TAKE_4, + self::ROLES_AT_OTHER_ACCOUNT_TAKE_5, + self::ROLES_AT_OTHER_ACCOUNT_TAKE_6, + self::ROLES_AT_OTHER_ACCOUNT_TAKE_7, + self::ROLES_AT_OTHER_ACCOUNTANT, + self::ROLES_AT_OTHER_AUDITOR, + self::ROLES_AT_OTHER_COMMUNICATIONS_OFFICER, + self::ROLES_AT_OTHER_CONFIG_EQUIPMENT, + self::ROLES_AT_OTHER_CONFIG_STARBASE_EQUIPMENT, + self::ROLES_AT_OTHER_CONTAINER_TAKE_1, + self::ROLES_AT_OTHER_CONTAINER_TAKE_2, + self::ROLES_AT_OTHER_CONTAINER_TAKE_3, + self::ROLES_AT_OTHER_CONTAINER_TAKE_4, + self::ROLES_AT_OTHER_CONTAINER_TAKE_5, + self::ROLES_AT_OTHER_CONTAINER_TAKE_6, + self::ROLES_AT_OTHER_CONTAINER_TAKE_7, + self::ROLES_AT_OTHER_CONTRACT_MANAGER, + self::ROLES_AT_OTHER_DIPLOMAT, + self::ROLES_AT_OTHER_DIRECTOR, + self::ROLES_AT_OTHER_FACTORY_MANAGER, + self::ROLES_AT_OTHER_FITTING_MANAGER, + self::ROLES_AT_OTHER_HANGAR_QUERY_1, + self::ROLES_AT_OTHER_HANGAR_QUERY_2, + self::ROLES_AT_OTHER_HANGAR_QUERY_3, + self::ROLES_AT_OTHER_HANGAR_QUERY_4, + self::ROLES_AT_OTHER_HANGAR_QUERY_5, + self::ROLES_AT_OTHER_HANGAR_QUERY_6, + self::ROLES_AT_OTHER_HANGAR_QUERY_7, + self::ROLES_AT_OTHER_HANGAR_TAKE_1, + self::ROLES_AT_OTHER_HANGAR_TAKE_2, + self::ROLES_AT_OTHER_HANGAR_TAKE_3, + self::ROLES_AT_OTHER_HANGAR_TAKE_4, + self::ROLES_AT_OTHER_HANGAR_TAKE_5, + self::ROLES_AT_OTHER_HANGAR_TAKE_6, + self::ROLES_AT_OTHER_HANGAR_TAKE_7, + self::ROLES_AT_OTHER_JUNIOR_ACCOUNTANT, + self::ROLES_AT_OTHER_PERSONNEL_MANAGER, + self::ROLES_AT_OTHER_RENT_FACTORY_FACILITY, + self::ROLES_AT_OTHER_RENT_OFFICE, + self::ROLES_AT_OTHER_RENT_RESEARCH_FACILITY, + self::ROLES_AT_OTHER_SECURITY_OFFICER, + self::ROLES_AT_OTHER_STARBASE_DEFENSE_OPERATOR, + self::ROLES_AT_OTHER_STARBASE_FUEL_TECHNICIAN, + self::ROLES_AT_OTHER_STATION_MANAGER, + self::ROLES_AT_OTHER_TERRESTRIAL_COMBAT_OFFICER, + self::ROLES_AT_OTHER_TERRESTRIAL_LOGISTICS_OFFICER, + self::ROLES_AT_OTHER_TRADER, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getGrantableRolesAtOtherAllowableValues() + { + return [ + self::GRANTABLE_ROLES_AT_OTHER_ACCOUNT_TAKE_1, + self::GRANTABLE_ROLES_AT_OTHER_ACCOUNT_TAKE_2, + self::GRANTABLE_ROLES_AT_OTHER_ACCOUNT_TAKE_3, + self::GRANTABLE_ROLES_AT_OTHER_ACCOUNT_TAKE_4, + self::GRANTABLE_ROLES_AT_OTHER_ACCOUNT_TAKE_5, + self::GRANTABLE_ROLES_AT_OTHER_ACCOUNT_TAKE_6, + self::GRANTABLE_ROLES_AT_OTHER_ACCOUNT_TAKE_7, + self::GRANTABLE_ROLES_AT_OTHER_ACCOUNTANT, + self::GRANTABLE_ROLES_AT_OTHER_AUDITOR, + self::GRANTABLE_ROLES_AT_OTHER_COMMUNICATIONS_OFFICER, + self::GRANTABLE_ROLES_AT_OTHER_CONFIG_EQUIPMENT, + self::GRANTABLE_ROLES_AT_OTHER_CONFIG_STARBASE_EQUIPMENT, + self::GRANTABLE_ROLES_AT_OTHER_CONTAINER_TAKE_1, + self::GRANTABLE_ROLES_AT_OTHER_CONTAINER_TAKE_2, + self::GRANTABLE_ROLES_AT_OTHER_CONTAINER_TAKE_3, + self::GRANTABLE_ROLES_AT_OTHER_CONTAINER_TAKE_4, + self::GRANTABLE_ROLES_AT_OTHER_CONTAINER_TAKE_5, + self::GRANTABLE_ROLES_AT_OTHER_CONTAINER_TAKE_6, + self::GRANTABLE_ROLES_AT_OTHER_CONTAINER_TAKE_7, + self::GRANTABLE_ROLES_AT_OTHER_CONTRACT_MANAGER, + self::GRANTABLE_ROLES_AT_OTHER_DIPLOMAT, + self::GRANTABLE_ROLES_AT_OTHER_DIRECTOR, + self::GRANTABLE_ROLES_AT_OTHER_FACTORY_MANAGER, + self::GRANTABLE_ROLES_AT_OTHER_FITTING_MANAGER, + self::GRANTABLE_ROLES_AT_OTHER_HANGAR_QUERY_1, + self::GRANTABLE_ROLES_AT_OTHER_HANGAR_QUERY_2, + self::GRANTABLE_ROLES_AT_OTHER_HANGAR_QUERY_3, + self::GRANTABLE_ROLES_AT_OTHER_HANGAR_QUERY_4, + self::GRANTABLE_ROLES_AT_OTHER_HANGAR_QUERY_5, + self::GRANTABLE_ROLES_AT_OTHER_HANGAR_QUERY_6, + self::GRANTABLE_ROLES_AT_OTHER_HANGAR_QUERY_7, + self::GRANTABLE_ROLES_AT_OTHER_HANGAR_TAKE_1, + self::GRANTABLE_ROLES_AT_OTHER_HANGAR_TAKE_2, + self::GRANTABLE_ROLES_AT_OTHER_HANGAR_TAKE_3, + self::GRANTABLE_ROLES_AT_OTHER_HANGAR_TAKE_4, + self::GRANTABLE_ROLES_AT_OTHER_HANGAR_TAKE_5, + self::GRANTABLE_ROLES_AT_OTHER_HANGAR_TAKE_6, + self::GRANTABLE_ROLES_AT_OTHER_HANGAR_TAKE_7, + self::GRANTABLE_ROLES_AT_OTHER_JUNIOR_ACCOUNTANT, + self::GRANTABLE_ROLES_AT_OTHER_PERSONNEL_MANAGER, + self::GRANTABLE_ROLES_AT_OTHER_RENT_FACTORY_FACILITY, + self::GRANTABLE_ROLES_AT_OTHER_RENT_OFFICE, + self::GRANTABLE_ROLES_AT_OTHER_RENT_RESEARCH_FACILITY, + self::GRANTABLE_ROLES_AT_OTHER_SECURITY_OFFICER, + self::GRANTABLE_ROLES_AT_OTHER_STARBASE_DEFENSE_OPERATOR, + self::GRANTABLE_ROLES_AT_OTHER_STARBASE_FUEL_TECHNICIAN, + self::GRANTABLE_ROLES_AT_OTHER_STATION_MANAGER, + self::GRANTABLE_ROLES_AT_OTHER_TERRESTRIAL_COMBAT_OFFICER, + self::GRANTABLE_ROLES_AT_OTHER_TERRESTRIAL_LOGISTICS_OFFICER, + self::GRANTABLE_ROLES_AT_OTHER_TRADER, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['titleId'] = isset($data['titleId']) ? $data['titleId'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['roles'] = isset($data['roles']) ? $data['roles'] : null; + $this->container['grantableRoles'] = isset($data['grantableRoles']) ? $data['grantableRoles'] : null; + $this->container['rolesAtHq'] = isset($data['rolesAtHq']) ? $data['rolesAtHq'] : null; + $this->container['grantableRolesAtHq'] = isset($data['grantableRolesAtHq']) ? $data['grantableRolesAtHq'] : null; + $this->container['rolesAtBase'] = isset($data['rolesAtBase']) ? $data['rolesAtBase'] : null; + $this->container['grantableRolesAtBase'] = isset($data['grantableRolesAtBase']) ? $data['grantableRolesAtBase'] : null; + $this->container['rolesAtOther'] = isset($data['rolesAtOther']) ? $data['rolesAtOther'] : null; + $this->container['grantableRolesAtOther'] = isset($data['grantableRolesAtOther']) ? $data['grantableRolesAtOther'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets titleId + * + * @return int + */ + public function getTitleId() + { + return $this->container['titleId']; + } + + /** + * Sets titleId + * + * @param int $titleId title_id integer + * + * @return $this + */ + public function setTitleId($titleId) + { + $this->container['titleId'] = $titleId; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets roles + * + * @return string[] + */ + public function getRoles() + { + return $this->container['roles']; + } + + /** + * Sets roles + * + * @param string[] $roles roles array + * + * @return $this + */ + public function setRoles($roles) + { + $allowedValues = $this->getRolesAllowableValues(); + if (!is_null($roles) && array_diff($roles, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'roles', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['roles'] = $roles; + + return $this; + } + + /** + * Gets grantableRoles + * + * @return string[] + */ + public function getGrantableRoles() + { + return $this->container['grantableRoles']; + } + + /** + * Sets grantableRoles + * + * @param string[] $grantableRoles grantable_roles array + * + * @return $this + */ + public function setGrantableRoles($grantableRoles) + { + $allowedValues = $this->getGrantableRolesAllowableValues(); + if (!is_null($grantableRoles) && array_diff($grantableRoles, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'grantableRoles', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['grantableRoles'] = $grantableRoles; + + return $this; + } + + /** + * Gets rolesAtHq + * + * @return string[] + */ + public function getRolesAtHq() + { + return $this->container['rolesAtHq']; + } + + /** + * Sets rolesAtHq + * + * @param string[] $rolesAtHq roles_at_hq array + * + * @return $this + */ + public function setRolesAtHq($rolesAtHq) + { + $allowedValues = $this->getRolesAtHqAllowableValues(); + if (!is_null($rolesAtHq) && array_diff($rolesAtHq, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'rolesAtHq', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['rolesAtHq'] = $rolesAtHq; + + return $this; + } + + /** + * Gets grantableRolesAtHq + * + * @return string[] + */ + public function getGrantableRolesAtHq() + { + return $this->container['grantableRolesAtHq']; + } + + /** + * Sets grantableRolesAtHq + * + * @param string[] $grantableRolesAtHq grantable_roles_at_hq array + * + * @return $this + */ + public function setGrantableRolesAtHq($grantableRolesAtHq) + { + $allowedValues = $this->getGrantableRolesAtHqAllowableValues(); + if (!is_null($grantableRolesAtHq) && array_diff($grantableRolesAtHq, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'grantableRolesAtHq', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['grantableRolesAtHq'] = $grantableRolesAtHq; + + return $this; + } + + /** + * Gets rolesAtBase + * + * @return string[] + */ + public function getRolesAtBase() + { + return $this->container['rolesAtBase']; + } + + /** + * Sets rolesAtBase + * + * @param string[] $rolesAtBase roles_at_base array + * + * @return $this + */ + public function setRolesAtBase($rolesAtBase) + { + $allowedValues = $this->getRolesAtBaseAllowableValues(); + if (!is_null($rolesAtBase) && array_diff($rolesAtBase, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'rolesAtBase', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['rolesAtBase'] = $rolesAtBase; + + return $this; + } + + /** + * Gets grantableRolesAtBase + * + * @return string[] + */ + public function getGrantableRolesAtBase() + { + return $this->container['grantableRolesAtBase']; + } + + /** + * Sets grantableRolesAtBase + * + * @param string[] $grantableRolesAtBase grantable_roles_at_base array + * + * @return $this + */ + public function setGrantableRolesAtBase($grantableRolesAtBase) + { + $allowedValues = $this->getGrantableRolesAtBaseAllowableValues(); + if (!is_null($grantableRolesAtBase) && array_diff($grantableRolesAtBase, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'grantableRolesAtBase', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['grantableRolesAtBase'] = $grantableRolesAtBase; + + return $this; + } + + /** + * Gets rolesAtOther + * + * @return string[] + */ + public function getRolesAtOther() + { + return $this->container['rolesAtOther']; + } + + /** + * Sets rolesAtOther + * + * @param string[] $rolesAtOther roles_at_other array + * + * @return $this + */ + public function setRolesAtOther($rolesAtOther) + { + $allowedValues = $this->getRolesAtOtherAllowableValues(); + if (!is_null($rolesAtOther) && array_diff($rolesAtOther, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'rolesAtOther', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['rolesAtOther'] = $rolesAtOther; + + return $this; + } + + /** + * Gets grantableRolesAtOther + * + * @return string[] + */ + public function getGrantableRolesAtOther() + { + return $this->container['grantableRolesAtOther']; + } + + /** + * Sets grantableRolesAtOther + * + * @param string[] $grantableRolesAtOther grantable_roles_at_other array + * + * @return $this + */ + public function setGrantableRolesAtOther($grantableRolesAtOther) + { + $allowedValues = $this->getGrantableRolesAtOtherAllowableValues(); + if (!is_null($grantableRolesAtOther) && array_diff($grantableRolesAtOther, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'grantableRolesAtOther', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['grantableRolesAtOther'] = $grantableRolesAtOther; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdWallets200Ok.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdWallets200Ok.php new file mode 100644 index 0000000..05f52f3 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdWallets200Ok.php @@ -0,0 +1,367 @@ + 'int', + 'balance' => 'double' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'division' => 'int32', + 'balance' => 'double' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'division' => 'division', + 'balance' => 'balance' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'division' => 'setDivision', + 'balance' => 'setBalance' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'division' => 'getDivision', + 'balance' => 'getBalance' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['division'] = isset($data['division']) ? $data['division'] : null; + $this->container['balance'] = isset($data['balance']) ? $data['balance'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['division'] === null) { + $invalidProperties[] = "'division' can't be null"; + } + if (($this->container['division'] > 7)) { + $invalidProperties[] = "invalid value for 'division', must be smaller than or equal to 7."; + } + + if (($this->container['division'] < 1)) { + $invalidProperties[] = "invalid value for 'division', must be bigger than or equal to 1."; + } + + if ($this->container['balance'] === null) { + $invalidProperties[] = "'balance' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['division'] === null) { + return false; + } + if ($this->container['division'] > 7) { + return false; + } + if ($this->container['division'] < 1) { + return false; + } + if ($this->container['balance'] === null) { + return false; + } + return true; + } + + + /** + * Gets division + * + * @return int + */ + public function getDivision() + { + return $this->container['division']; + } + + /** + * Sets division + * + * @param int $division division integer + * + * @return $this + */ + public function setDivision($division) + { + + if (($division > 7)) { + throw new \InvalidArgumentException('invalid value for $division when calling GetCorporationsCorporationIdWallets200Ok., must be smaller than or equal to 7.'); + } + if (($division < 1)) { + throw new \InvalidArgumentException('invalid value for $division when calling GetCorporationsCorporationIdWallets200Ok., must be bigger than or equal to 1.'); + } + + $this->container['division'] = $division; + + return $this; + } + + /** + * Gets balance + * + * @return double + */ + public function getBalance() + { + return $this->container['balance']; + } + + /** + * Sets balance + * + * @param double $balance balance number + * + * @return $this + */ + public function setBalance($balance) + { + $this->container['balance'] = $balance; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdWalletsDivisionJournal200Ok.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdWalletsDivisionJournal200Ok.php new file mode 100644 index 0000000..e8eaefd --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdWalletsDivisionJournal200Ok.php @@ -0,0 +1,1031 @@ + '\DateTime', + 'refId' => 'int', + 'refType' => 'string', + 'firstPartyId' => 'int', + 'firstPartyType' => 'string', + 'secondPartyId' => 'int', + 'secondPartyType' => 'string', + 'amount' => 'double', + 'balance' => 'double', + 'reason' => 'string', + 'taxReceiverId' => 'int', + 'tax' => 'double', + 'extraInfo' => '\nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdWalletsDivisionJournalExtraInfo' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'date' => 'date-time', + 'refId' => 'int64', + 'refType' => null, + 'firstPartyId' => 'int32', + 'firstPartyType' => null, + 'secondPartyId' => 'int32', + 'secondPartyType' => null, + 'amount' => 'double', + 'balance' => 'double', + 'reason' => null, + 'taxReceiverId' => 'int32', + 'tax' => 'double', + 'extraInfo' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'date' => 'date', + 'refId' => 'ref_id', + 'refType' => 'ref_type', + 'firstPartyId' => 'first_party_id', + 'firstPartyType' => 'first_party_type', + 'secondPartyId' => 'second_party_id', + 'secondPartyType' => 'second_party_type', + 'amount' => 'amount', + 'balance' => 'balance', + 'reason' => 'reason', + 'taxReceiverId' => 'tax_receiver_id', + 'tax' => 'tax', + 'extraInfo' => 'extra_info' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'date' => 'setDate', + 'refId' => 'setRefId', + 'refType' => 'setRefType', + 'firstPartyId' => 'setFirstPartyId', + 'firstPartyType' => 'setFirstPartyType', + 'secondPartyId' => 'setSecondPartyId', + 'secondPartyType' => 'setSecondPartyType', + 'amount' => 'setAmount', + 'balance' => 'setBalance', + 'reason' => 'setReason', + 'taxReceiverId' => 'setTaxReceiverId', + 'tax' => 'setTax', + 'extraInfo' => 'setExtraInfo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'date' => 'getDate', + 'refId' => 'getRefId', + 'refType' => 'getRefType', + 'firstPartyId' => 'getFirstPartyId', + 'firstPartyType' => 'getFirstPartyType', + 'secondPartyId' => 'getSecondPartyId', + 'secondPartyType' => 'getSecondPartyType', + 'amount' => 'getAmount', + 'balance' => 'getBalance', + 'reason' => 'getReason', + 'taxReceiverId' => 'getTaxReceiverId', + 'tax' => 'getTax', + 'extraInfo' => 'getExtraInfo' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const REF_TYPE_ACCELERATION_GATE_FEE = 'acceleration_gate_fee'; + const REF_TYPE_ADVERTISEMENT_LISTING_FEE = 'advertisement_listing_fee'; + const REF_TYPE_AGENT_DONATION = 'agent_donation'; + const REF_TYPE_AGENT_LOCATION_SERVICES = 'agent_location_services'; + const REF_TYPE_AGENT_MISCELLANEOUS = 'agent_miscellaneous'; + const REF_TYPE_AGENT_MISSION_COLLATERAL_PAID = 'agent_mission_collateral_paid'; + const REF_TYPE_AGENT_MISSION_COLLATERAL_REFUNDED = 'agent_mission_collateral_refunded'; + const REF_TYPE_AGENT_MISSION_REWARD = 'agent_mission_reward'; + const REF_TYPE_AGENT_MISSION_REWARD_CORPORATION_TAX = 'agent_mission_reward_corporation_tax'; + const REF_TYPE_AGENT_MISSION_TIME_BONUS_REWARD = 'agent_mission_time_bonus_reward'; + const REF_TYPE_AGENT_MISSION_TIME_BONUS_REWARD_CORPORATION_TAX = 'agent_mission_time_bonus_reward_corporation_tax'; + const REF_TYPE_AGENT_SECURITY_SERVICES = 'agent_security_services'; + const REF_TYPE_AGENT_SERVICES_RENDERED = 'agent_services_rendered'; + const REF_TYPE_AGENTS_PREWARD = 'agents_preward'; + const REF_TYPE_ALLIANCE_MAINTAINANCE_FEE = 'alliance_maintainance_fee'; + const REF_TYPE_ALLIANCE_REGISTRATION_FEE = 'alliance_registration_fee'; + const REF_TYPE_ASSET_SAFETY_RECOVERY_TAX = 'asset_safety_recovery_tax'; + const REF_TYPE_BOUNTY = 'bounty'; + const REF_TYPE_BOUNTY_PRIZE = 'bounty_prize'; + const REF_TYPE_BOUNTY_PRIZE_CORPORATION_TAX = 'bounty_prize_corporation_tax'; + const REF_TYPE_BOUNTY_PRIZES = 'bounty_prizes'; + const REF_TYPE_BOUNTY_REIMBURSEMENT = 'bounty_reimbursement'; + const REF_TYPE_BOUNTY_SURCHARGE = 'bounty_surcharge'; + const REF_TYPE_BROKERS_FEE = 'brokers_fee'; + const REF_TYPE_CLONE_ACTIVATION = 'clone_activation'; + const REF_TYPE_CLONE_TRANSFER = 'clone_transfer'; + const REF_TYPE_CONTRABAND_FINE = 'contraband_fine'; + const REF_TYPE_CONTRACT_AUCTION_BID = 'contract_auction_bid'; + const REF_TYPE_CONTRACT_AUCTION_BID_CORP = 'contract_auction_bid_corp'; + const REF_TYPE_CONTRACT_AUCTION_BID_REFUND = 'contract_auction_bid_refund'; + const REF_TYPE_CONTRACT_AUCTION_SOLD = 'contract_auction_sold'; + const REF_TYPE_CONTRACT_BROKERS_FEE = 'contract_brokers_fee'; + const REF_TYPE_CONTRACT_BROKERS_FEE_CORP = 'contract_brokers_fee_corp'; + const REF_TYPE_CONTRACT_COLLATERAL = 'contract_collateral'; + const REF_TYPE_CONTRACT_COLLATERAL_DEPOSITED_CORP = 'contract_collateral_deposited_corp'; + const REF_TYPE_CONTRACT_COLLATERAL_PAYOUT = 'contract_collateral_payout'; + const REF_TYPE_CONTRACT_COLLATERAL_REFUND = 'contract_collateral_refund'; + const REF_TYPE_CONTRACT_DEPOSIT = 'contract_deposit'; + const REF_TYPE_CONTRACT_DEPOSIT_CORP = 'contract_deposit_corp'; + const REF_TYPE_CONTRACT_DEPOSIT_REFUND = 'contract_deposit_refund'; + const REF_TYPE_CONTRACT_DEPOSIT_SALES_TAX = 'contract_deposit_sales_tax'; + const REF_TYPE_CONTRACT_PRICE = 'contract_price'; + const REF_TYPE_CONTRACT_PRICE_PAYMENT_CORP = 'contract_price_payment_corp'; + const REF_TYPE_CONTRACT_REVERSAL = 'contract_reversal'; + const REF_TYPE_CONTRACT_REWARD = 'contract_reward'; + const REF_TYPE_CONTRACT_REWARD_DEPOSITED = 'contract_reward_deposited'; + const REF_TYPE_CONTRACT_REWARD_DEPOSITED_CORP = 'contract_reward_deposited_corp'; + const REF_TYPE_CONTRACT_REWARD_REFUND = 'contract_reward_refund'; + const REF_TYPE_CONTRACT_SALES_TAX = 'contract_sales_tax'; + const REF_TYPE_COPYING = 'copying'; + const REF_TYPE_CORPORATE_REWARD_PAYOUT = 'corporate_reward_payout'; + const REF_TYPE_CORPORATE_REWARD_TAX = 'corporate_reward_tax'; + const REF_TYPE_CORPORATION_ACCOUNT_WITHDRAWAL = 'corporation_account_withdrawal'; + const REF_TYPE_CORPORATION_BULK_PAYMENT = 'corporation_bulk_payment'; + const REF_TYPE_CORPORATION_DIVIDEND_PAYMENT = 'corporation_dividend_payment'; + const REF_TYPE_CORPORATION_LIQUIDATION = 'corporation_liquidation'; + const REF_TYPE_CORPORATION_LOGO_CHANGE_COST = 'corporation_logo_change_cost'; + const REF_TYPE_CORPORATION_PAYMENT = 'corporation_payment'; + const REF_TYPE_CORPORATION_REGISTRATION_FEE = 'corporation_registration_fee'; + const REF_TYPE_COURIER_MISSION_ESCROW = 'courier_mission_escrow'; + const REF_TYPE_CSPA = 'cspa'; + const REF_TYPE_CSPAOFFLINEREFUND = 'cspaofflinerefund'; + const REF_TYPE_DATACORE_FEE = 'datacore_fee'; + const REF_TYPE_DNA_MODIFICATION_FEE = 'dna_modification_fee'; + const REF_TYPE_DOCKING_FEE = 'docking_fee'; + const REF_TYPE_DUEL_WAGER_ESCROW = 'duel_wager_escrow'; + const REF_TYPE_DUEL_WAGER_PAYMENT = 'duel_wager_payment'; + const REF_TYPE_DUEL_WAGER_REFUND = 'duel_wager_refund'; + const REF_TYPE_FACTORY_SLOT_RENTAL_FEE = 'factory_slot_rental_fee'; + const REF_TYPE_GM_CASH_TRANSFER = 'gm_cash_transfer'; + const REF_TYPE_INDUSTRY_JOB_TAX = 'industry_job_tax'; + const REF_TYPE_INFRASTRUCTURE_HUB_MAINTENANCE = 'infrastructure_hub_maintenance'; + const REF_TYPE_INHERITANCE = 'inheritance'; + const REF_TYPE_INSURANCE = 'insurance'; + const REF_TYPE_JUMP_CLONE_ACTIVATION_FEE = 'jump_clone_activation_fee'; + const REF_TYPE_JUMP_CLONE_INSTALLATION_FEE = 'jump_clone_installation_fee'; + const REF_TYPE_KILL_RIGHT_FEE = 'kill_right_fee'; + const REF_TYPE_LP_STORE = 'lp_store'; + const REF_TYPE_MANUFACTURING = 'manufacturing'; + const REF_TYPE_MARKET_ESCROW = 'market_escrow'; + const REF_TYPE_MARKET_FINE_PAID = 'market_fine_paid'; + const REF_TYPE_MARKET_TRANSACTION = 'market_transaction'; + const REF_TYPE_MEDAL_CREATION = 'medal_creation'; + const REF_TYPE_MEDAL_ISSUED = 'medal_issued'; + const REF_TYPE_MISSION_COMPLETION = 'mission_completion'; + const REF_TYPE_MISSION_COST = 'mission_cost'; + const REF_TYPE_MISSION_EXPIRATION = 'mission_expiration'; + const REF_TYPE_MISSION_REWARD = 'mission_reward'; + const REF_TYPE_OFFICE_RENTAL_FEE = 'office_rental_fee'; + const REF_TYPE_OPERATION_BONUS = 'operation_bonus'; + const REF_TYPE_OPPORTUNITY_REWARD = 'opportunity_reward'; + const REF_TYPE_PLANETARY_CONSTRUCTION = 'planetary_construction'; + const REF_TYPE_PLANETARY_EXPORT_TAX = 'planetary_export_tax'; + const REF_TYPE_PLANETARY_IMPORT_TAX = 'planetary_import_tax'; + const REF_TYPE_PLAYER_DONATION = 'player_donation'; + const REF_TYPE_PLAYER_TRADING = 'player_trading'; + const REF_TYPE_PROJECT_DISCOVERY_REWARD = 'project_discovery_reward'; + const REF_TYPE_PROJECT_DISCOVERY_TAX = 'project_discovery_tax'; + const REF_TYPE_REACTION = 'reaction'; + const REF_TYPE_RELEASE_OF_IMPOUNDED_PROPERTY = 'release_of_impounded_property'; + const REF_TYPE_REPAIR_BILL = 'repair_bill'; + const REF_TYPE_REPROCESSING_TAX = 'reprocessing_tax'; + const REF_TYPE_RESEARCHING_MATERIAL_PRODUCTIVITY = 'researching_material_productivity'; + const REF_TYPE_RESEARCHING_TECHNOLOGY = 'researching_technology'; + const REF_TYPE_RESEARCHING_TIME_PRODUCTIVITY = 'researching_time_productivity'; + const REF_TYPE_RESOURCE_WARS_REWARD = 'resource_wars_reward'; + const REF_TYPE_REVERSE_ENGINEERING = 'reverse_engineering'; + const REF_TYPE_SECURITY_PROCESSING_FEE = 'security_processing_fee'; + const REF_TYPE_SHARES = 'shares'; + const REF_TYPE_SOVEREIGNITY_BILL = 'sovereignity_bill'; + const REF_TYPE_STORE_PURCHASE = 'store_purchase'; + const REF_TYPE_STORE_PURCHASE_REFUND = 'store_purchase_refund'; + const REF_TYPE_TRANSACTION_TAX = 'transaction_tax'; + const REF_TYPE_UPKEEP_ADJUSTMENT_FEE = 'upkeep_adjustment_fee'; + const REF_TYPE_WAR_ALLY_CONTRACT = 'war_ally_contract'; + const REF_TYPE_WAR_FEE = 'war_fee'; + const REF_TYPE_WAR_FEE_SURRENDER = 'war_fee_surrender'; + const FIRST_PARTY_TYPE_CHARACTER = 'character'; + const FIRST_PARTY_TYPE_CORPORATION = 'corporation'; + const FIRST_PARTY_TYPE_ALLIANCE = 'alliance'; + const FIRST_PARTY_TYPE_FACTION = 'faction'; + const FIRST_PARTY_TYPE_SYSTEM = 'system'; + const SECOND_PARTY_TYPE_CHARACTER = 'character'; + const SECOND_PARTY_TYPE_CORPORATION = 'corporation'; + const SECOND_PARTY_TYPE_ALLIANCE = 'alliance'; + const SECOND_PARTY_TYPE_FACTION = 'faction'; + const SECOND_PARTY_TYPE_SYSTEM = 'system'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getRefTypeAllowableValues() + { + return [ + self::REF_TYPE_ACCELERATION_GATE_FEE, + self::REF_TYPE_ADVERTISEMENT_LISTING_FEE, + self::REF_TYPE_AGENT_DONATION, + self::REF_TYPE_AGENT_LOCATION_SERVICES, + self::REF_TYPE_AGENT_MISCELLANEOUS, + self::REF_TYPE_AGENT_MISSION_COLLATERAL_PAID, + self::REF_TYPE_AGENT_MISSION_COLLATERAL_REFUNDED, + self::REF_TYPE_AGENT_MISSION_REWARD, + self::REF_TYPE_AGENT_MISSION_REWARD_CORPORATION_TAX, + self::REF_TYPE_AGENT_MISSION_TIME_BONUS_REWARD, + self::REF_TYPE_AGENT_MISSION_TIME_BONUS_REWARD_CORPORATION_TAX, + self::REF_TYPE_AGENT_SECURITY_SERVICES, + self::REF_TYPE_AGENT_SERVICES_RENDERED, + self::REF_TYPE_AGENTS_PREWARD, + self::REF_TYPE_ALLIANCE_MAINTAINANCE_FEE, + self::REF_TYPE_ALLIANCE_REGISTRATION_FEE, + self::REF_TYPE_ASSET_SAFETY_RECOVERY_TAX, + self::REF_TYPE_BOUNTY, + self::REF_TYPE_BOUNTY_PRIZE, + self::REF_TYPE_BOUNTY_PRIZE_CORPORATION_TAX, + self::REF_TYPE_BOUNTY_PRIZES, + self::REF_TYPE_BOUNTY_REIMBURSEMENT, + self::REF_TYPE_BOUNTY_SURCHARGE, + self::REF_TYPE_BROKERS_FEE, + self::REF_TYPE_CLONE_ACTIVATION, + self::REF_TYPE_CLONE_TRANSFER, + self::REF_TYPE_CONTRABAND_FINE, + self::REF_TYPE_CONTRACT_AUCTION_BID, + self::REF_TYPE_CONTRACT_AUCTION_BID_CORP, + self::REF_TYPE_CONTRACT_AUCTION_BID_REFUND, + self::REF_TYPE_CONTRACT_AUCTION_SOLD, + self::REF_TYPE_CONTRACT_BROKERS_FEE, + self::REF_TYPE_CONTRACT_BROKERS_FEE_CORP, + self::REF_TYPE_CONTRACT_COLLATERAL, + self::REF_TYPE_CONTRACT_COLLATERAL_DEPOSITED_CORP, + self::REF_TYPE_CONTRACT_COLLATERAL_PAYOUT, + self::REF_TYPE_CONTRACT_COLLATERAL_REFUND, + self::REF_TYPE_CONTRACT_DEPOSIT, + self::REF_TYPE_CONTRACT_DEPOSIT_CORP, + self::REF_TYPE_CONTRACT_DEPOSIT_REFUND, + self::REF_TYPE_CONTRACT_DEPOSIT_SALES_TAX, + self::REF_TYPE_CONTRACT_PRICE, + self::REF_TYPE_CONTRACT_PRICE_PAYMENT_CORP, + self::REF_TYPE_CONTRACT_REVERSAL, + self::REF_TYPE_CONTRACT_REWARD, + self::REF_TYPE_CONTRACT_REWARD_DEPOSITED, + self::REF_TYPE_CONTRACT_REWARD_DEPOSITED_CORP, + self::REF_TYPE_CONTRACT_REWARD_REFUND, + self::REF_TYPE_CONTRACT_SALES_TAX, + self::REF_TYPE_COPYING, + self::REF_TYPE_CORPORATE_REWARD_PAYOUT, + self::REF_TYPE_CORPORATE_REWARD_TAX, + self::REF_TYPE_CORPORATION_ACCOUNT_WITHDRAWAL, + self::REF_TYPE_CORPORATION_BULK_PAYMENT, + self::REF_TYPE_CORPORATION_DIVIDEND_PAYMENT, + self::REF_TYPE_CORPORATION_LIQUIDATION, + self::REF_TYPE_CORPORATION_LOGO_CHANGE_COST, + self::REF_TYPE_CORPORATION_PAYMENT, + self::REF_TYPE_CORPORATION_REGISTRATION_FEE, + self::REF_TYPE_COURIER_MISSION_ESCROW, + self::REF_TYPE_CSPA, + self::REF_TYPE_CSPAOFFLINEREFUND, + self::REF_TYPE_DATACORE_FEE, + self::REF_TYPE_DNA_MODIFICATION_FEE, + self::REF_TYPE_DOCKING_FEE, + self::REF_TYPE_DUEL_WAGER_ESCROW, + self::REF_TYPE_DUEL_WAGER_PAYMENT, + self::REF_TYPE_DUEL_WAGER_REFUND, + self::REF_TYPE_FACTORY_SLOT_RENTAL_FEE, + self::REF_TYPE_GM_CASH_TRANSFER, + self::REF_TYPE_INDUSTRY_JOB_TAX, + self::REF_TYPE_INFRASTRUCTURE_HUB_MAINTENANCE, + self::REF_TYPE_INHERITANCE, + self::REF_TYPE_INSURANCE, + self::REF_TYPE_JUMP_CLONE_ACTIVATION_FEE, + self::REF_TYPE_JUMP_CLONE_INSTALLATION_FEE, + self::REF_TYPE_KILL_RIGHT_FEE, + self::REF_TYPE_LP_STORE, + self::REF_TYPE_MANUFACTURING, + self::REF_TYPE_MARKET_ESCROW, + self::REF_TYPE_MARKET_FINE_PAID, + self::REF_TYPE_MARKET_TRANSACTION, + self::REF_TYPE_MEDAL_CREATION, + self::REF_TYPE_MEDAL_ISSUED, + self::REF_TYPE_MISSION_COMPLETION, + self::REF_TYPE_MISSION_COST, + self::REF_TYPE_MISSION_EXPIRATION, + self::REF_TYPE_MISSION_REWARD, + self::REF_TYPE_OFFICE_RENTAL_FEE, + self::REF_TYPE_OPERATION_BONUS, + self::REF_TYPE_OPPORTUNITY_REWARD, + self::REF_TYPE_PLANETARY_CONSTRUCTION, + self::REF_TYPE_PLANETARY_EXPORT_TAX, + self::REF_TYPE_PLANETARY_IMPORT_TAX, + self::REF_TYPE_PLAYER_DONATION, + self::REF_TYPE_PLAYER_TRADING, + self::REF_TYPE_PROJECT_DISCOVERY_REWARD, + self::REF_TYPE_PROJECT_DISCOVERY_TAX, + self::REF_TYPE_REACTION, + self::REF_TYPE_RELEASE_OF_IMPOUNDED_PROPERTY, + self::REF_TYPE_REPAIR_BILL, + self::REF_TYPE_REPROCESSING_TAX, + self::REF_TYPE_RESEARCHING_MATERIAL_PRODUCTIVITY, + self::REF_TYPE_RESEARCHING_TECHNOLOGY, + self::REF_TYPE_RESEARCHING_TIME_PRODUCTIVITY, + self::REF_TYPE_RESOURCE_WARS_REWARD, + self::REF_TYPE_REVERSE_ENGINEERING, + self::REF_TYPE_SECURITY_PROCESSING_FEE, + self::REF_TYPE_SHARES, + self::REF_TYPE_SOVEREIGNITY_BILL, + self::REF_TYPE_STORE_PURCHASE, + self::REF_TYPE_STORE_PURCHASE_REFUND, + self::REF_TYPE_TRANSACTION_TAX, + self::REF_TYPE_UPKEEP_ADJUSTMENT_FEE, + self::REF_TYPE_WAR_ALLY_CONTRACT, + self::REF_TYPE_WAR_FEE, + self::REF_TYPE_WAR_FEE_SURRENDER, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getFirstPartyTypeAllowableValues() + { + return [ + self::FIRST_PARTY_TYPE_CHARACTER, + self::FIRST_PARTY_TYPE_CORPORATION, + self::FIRST_PARTY_TYPE_ALLIANCE, + self::FIRST_PARTY_TYPE_FACTION, + self::FIRST_PARTY_TYPE_SYSTEM, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getSecondPartyTypeAllowableValues() + { + return [ + self::SECOND_PARTY_TYPE_CHARACTER, + self::SECOND_PARTY_TYPE_CORPORATION, + self::SECOND_PARTY_TYPE_ALLIANCE, + self::SECOND_PARTY_TYPE_FACTION, + self::SECOND_PARTY_TYPE_SYSTEM, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['date'] = isset($data['date']) ? $data['date'] : null; + $this->container['refId'] = isset($data['refId']) ? $data['refId'] : null; + $this->container['refType'] = isset($data['refType']) ? $data['refType'] : null; + $this->container['firstPartyId'] = isset($data['firstPartyId']) ? $data['firstPartyId'] : null; + $this->container['firstPartyType'] = isset($data['firstPartyType']) ? $data['firstPartyType'] : null; + $this->container['secondPartyId'] = isset($data['secondPartyId']) ? $data['secondPartyId'] : null; + $this->container['secondPartyType'] = isset($data['secondPartyType']) ? $data['secondPartyType'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + $this->container['balance'] = isset($data['balance']) ? $data['balance'] : null; + $this->container['reason'] = isset($data['reason']) ? $data['reason'] : null; + $this->container['taxReceiverId'] = isset($data['taxReceiverId']) ? $data['taxReceiverId'] : null; + $this->container['tax'] = isset($data['tax']) ? $data['tax'] : null; + $this->container['extraInfo'] = isset($data['extraInfo']) ? $data['extraInfo'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['date'] === null) { + $invalidProperties[] = "'date' can't be null"; + } + if ($this->container['refId'] === null) { + $invalidProperties[] = "'refId' can't be null"; + } + if ($this->container['refType'] === null) { + $invalidProperties[] = "'refType' can't be null"; + } + $allowedValues = $this->getRefTypeAllowableValues(); + if (!in_array($this->container['refType'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'refType', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getFirstPartyTypeAllowableValues(); + if (!in_array($this->container['firstPartyType'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'firstPartyType', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getSecondPartyTypeAllowableValues(); + if (!in_array($this->container['secondPartyType'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'secondPartyType', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['date'] === null) { + return false; + } + if ($this->container['refId'] === null) { + return false; + } + if ($this->container['refType'] === null) { + return false; + } + $allowedValues = $this->getRefTypeAllowableValues(); + if (!in_array($this->container['refType'], $allowedValues)) { + return false; + } + $allowedValues = $this->getFirstPartyTypeAllowableValues(); + if (!in_array($this->container['firstPartyType'], $allowedValues)) { + return false; + } + $allowedValues = $this->getSecondPartyTypeAllowableValues(); + if (!in_array($this->container['secondPartyType'], $allowedValues)) { + return false; + } + return true; + } + + + /** + * Gets date + * + * @return \DateTime + */ + public function getDate() + { + return $this->container['date']; + } + + /** + * Sets date + * + * @param \DateTime $date Date and time of transaction + * + * @return $this + */ + public function setDate($date) + { + $this->container['date'] = $date; + + return $this; + } + + /** + * Gets refId + * + * @return int + */ + public function getRefId() + { + return $this->container['refId']; + } + + /** + * Sets refId + * + * @param int $refId Unique journal reference ID + * + * @return $this + */ + public function setRefId($refId) + { + $this->container['refId'] = $refId; + + return $this; + } + + /** + * Gets refType + * + * @return string + */ + public function getRefType() + { + return $this->container['refType']; + } + + /** + * Sets refType + * + * @param string $refType Transaction type, different type of transaction will populate different fields in `extra_info` Note: If you have an existing XML API application that is using ref_types, you will need to know which string ESI ref_type maps to which integer. You can use the following gist to see string->int mappings: https://gist.github.com/ccp-zoetrope/c03db66d90c2148724c06171bc52e0ec + * + * @return $this + */ + public function setRefType($refType) + { + $allowedValues = $this->getRefTypeAllowableValues(); + if (!in_array($refType, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'refType', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['refType'] = $refType; + + return $this; + } + + /** + * Gets firstPartyId + * + * @return int + */ + public function getFirstPartyId() + { + return $this->container['firstPartyId']; + } + + /** + * Sets firstPartyId + * + * @param int $firstPartyId first_party_id integer + * + * @return $this + */ + public function setFirstPartyId($firstPartyId) + { + $this->container['firstPartyId'] = $firstPartyId; + + return $this; + } + + /** + * Gets firstPartyType + * + * @return string + */ + public function getFirstPartyType() + { + return $this->container['firstPartyType']; + } + + /** + * Sets firstPartyType + * + * @param string $firstPartyType first_party_type string + * + * @return $this + */ + public function setFirstPartyType($firstPartyType) + { + $allowedValues = $this->getFirstPartyTypeAllowableValues(); + if (!is_null($firstPartyType) && !in_array($firstPartyType, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'firstPartyType', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['firstPartyType'] = $firstPartyType; + + return $this; + } + + /** + * Gets secondPartyId + * + * @return int + */ + public function getSecondPartyId() + { + return $this->container['secondPartyId']; + } + + /** + * Sets secondPartyId + * + * @param int $secondPartyId second_party_id integer + * + * @return $this + */ + public function setSecondPartyId($secondPartyId) + { + $this->container['secondPartyId'] = $secondPartyId; + + return $this; + } + + /** + * Gets secondPartyType + * + * @return string + */ + public function getSecondPartyType() + { + return $this->container['secondPartyType']; + } + + /** + * Sets secondPartyType + * + * @param string $secondPartyType second_party_type string + * + * @return $this + */ + public function setSecondPartyType($secondPartyType) + { + $allowedValues = $this->getSecondPartyTypeAllowableValues(); + if (!is_null($secondPartyType) && !in_array($secondPartyType, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'secondPartyType', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['secondPartyType'] = $secondPartyType; + + return $this; + } + + /** + * Gets amount + * + * @return double + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param double $amount Transaction amount. Positive when value transferred to the first party. Negative otherwise + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + + /** + * Gets balance + * + * @return double + */ + public function getBalance() + { + return $this->container['balance']; + } + + /** + * Sets balance + * + * @param double $balance Wallet balance after transaction occurred + * + * @return $this + */ + public function setBalance($balance) + { + $this->container['balance'] = $balance; + + return $this; + } + + /** + * Gets reason + * + * @return string + */ + public function getReason() + { + return $this->container['reason']; + } + + /** + * Sets reason + * + * @param string $reason reason string + * + * @return $this + */ + public function setReason($reason) + { + $this->container['reason'] = $reason; + + return $this; + } + + /** + * Gets taxReceiverId + * + * @return int + */ + public function getTaxReceiverId() + { + return $this->container['taxReceiverId']; + } + + /** + * Sets taxReceiverId + * + * @param int $taxReceiverId the corporation ID receiving any tax paid + * + * @return $this + */ + public function setTaxReceiverId($taxReceiverId) + { + $this->container['taxReceiverId'] = $taxReceiverId; + + return $this; + } + + /** + * Gets tax + * + * @return double + */ + public function getTax() + { + return $this->container['tax']; + } + + /** + * Sets tax + * + * @param double $tax Tax amount received for tax related transactions + * + * @return $this + */ + public function setTax($tax) + { + $this->container['tax'] = $tax; + + return $this; + } + + /** + * Gets extraInfo + * + * @return \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdWalletsDivisionJournalExtraInfo + */ + public function getExtraInfo() + { + return $this->container['extraInfo']; + } + + /** + * Sets extraInfo + * + * @param \nullx27ESI\nullx27\ESI\Models\GetCorporationsCorporationIdWalletsDivisionJournalExtraInfo $extraInfo extraInfo + * + * @return $this + */ + public function setExtraInfo($extraInfo) + { + $this->container['extraInfo'] = $extraInfo; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdWalletsDivisionJournalExtraInfo.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdWalletsDivisionJournalExtraInfo.php new file mode 100644 index 0000000..fce9758 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdWalletsDivisionJournalExtraInfo.php @@ -0,0 +1,633 @@ + 'int', + 'transactionId' => 'int', + 'npcName' => 'string', + 'npcId' => 'int', + 'destroyedShipTypeId' => 'int', + 'characterId' => 'int', + 'corporationId' => 'int', + 'allianceId' => 'int', + 'jobId' => 'int', + 'contractId' => 'int', + 'systemId' => 'int', + 'planetId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'locationId' => 'int64', + 'transactionId' => 'int64', + 'npcName' => null, + 'npcId' => 'int32', + 'destroyedShipTypeId' => 'int32', + 'characterId' => 'int32', + 'corporationId' => 'int32', + 'allianceId' => 'int32', + 'jobId' => 'int32', + 'contractId' => 'int32', + 'systemId' => 'int32', + 'planetId' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'locationId' => 'location_id', + 'transactionId' => 'transaction_id', + 'npcName' => 'npc_name', + 'npcId' => 'npc_id', + 'destroyedShipTypeId' => 'destroyed_ship_type_id', + 'characterId' => 'character_id', + 'corporationId' => 'corporation_id', + 'allianceId' => 'alliance_id', + 'jobId' => 'job_id', + 'contractId' => 'contract_id', + 'systemId' => 'system_id', + 'planetId' => 'planet_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'locationId' => 'setLocationId', + 'transactionId' => 'setTransactionId', + 'npcName' => 'setNpcName', + 'npcId' => 'setNpcId', + 'destroyedShipTypeId' => 'setDestroyedShipTypeId', + 'characterId' => 'setCharacterId', + 'corporationId' => 'setCorporationId', + 'allianceId' => 'setAllianceId', + 'jobId' => 'setJobId', + 'contractId' => 'setContractId', + 'systemId' => 'setSystemId', + 'planetId' => 'setPlanetId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'locationId' => 'getLocationId', + 'transactionId' => 'getTransactionId', + 'npcName' => 'getNpcName', + 'npcId' => 'getNpcId', + 'destroyedShipTypeId' => 'getDestroyedShipTypeId', + 'characterId' => 'getCharacterId', + 'corporationId' => 'getCorporationId', + 'allianceId' => 'getAllianceId', + 'jobId' => 'getJobId', + 'contractId' => 'getContractId', + 'systemId' => 'getSystemId', + 'planetId' => 'getPlanetId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['locationId'] = isset($data['locationId']) ? $data['locationId'] : null; + $this->container['transactionId'] = isset($data['transactionId']) ? $data['transactionId'] : null; + $this->container['npcName'] = isset($data['npcName']) ? $data['npcName'] : null; + $this->container['npcId'] = isset($data['npcId']) ? $data['npcId'] : null; + $this->container['destroyedShipTypeId'] = isset($data['destroyedShipTypeId']) ? $data['destroyedShipTypeId'] : null; + $this->container['characterId'] = isset($data['characterId']) ? $data['characterId'] : null; + $this->container['corporationId'] = isset($data['corporationId']) ? $data['corporationId'] : null; + $this->container['allianceId'] = isset($data['allianceId']) ? $data['allianceId'] : null; + $this->container['jobId'] = isset($data['jobId']) ? $data['jobId'] : null; + $this->container['contractId'] = isset($data['contractId']) ? $data['contractId'] : null; + $this->container['systemId'] = isset($data['systemId']) ? $data['systemId'] : null; + $this->container['planetId'] = isset($data['planetId']) ? $data['planetId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets locationId + * + * @return int + */ + public function getLocationId() + { + return $this->container['locationId']; + } + + /** + * Sets locationId + * + * @param int $locationId location_id integer + * + * @return $this + */ + public function setLocationId($locationId) + { + $this->container['locationId'] = $locationId; + + return $this; + } + + /** + * Gets transactionId + * + * @return int + */ + public function getTransactionId() + { + return $this->container['transactionId']; + } + + /** + * Sets transactionId + * + * @param int $transactionId transaction_id integer + * + * @return $this + */ + public function setTransactionId($transactionId) + { + $this->container['transactionId'] = $transactionId; + + return $this; + } + + /** + * Gets npcName + * + * @return string + */ + public function getNpcName() + { + return $this->container['npcName']; + } + + /** + * Sets npcName + * + * @param string $npcName npc_name string + * + * @return $this + */ + public function setNpcName($npcName) + { + $this->container['npcName'] = $npcName; + + return $this; + } + + /** + * Gets npcId + * + * @return int + */ + public function getNpcId() + { + return $this->container['npcId']; + } + + /** + * Sets npcId + * + * @param int $npcId npc_id integer + * + * @return $this + */ + public function setNpcId($npcId) + { + $this->container['npcId'] = $npcId; + + return $this; + } + + /** + * Gets destroyedShipTypeId + * + * @return int + */ + public function getDestroyedShipTypeId() + { + return $this->container['destroyedShipTypeId']; + } + + /** + * Sets destroyedShipTypeId + * + * @param int $destroyedShipTypeId destroyed_ship_type_id integer + * + * @return $this + */ + public function setDestroyedShipTypeId($destroyedShipTypeId) + { + $this->container['destroyedShipTypeId'] = $destroyedShipTypeId; + + return $this; + } + + /** + * Gets characterId + * + * @return int + */ + public function getCharacterId() + { + return $this->container['characterId']; + } + + /** + * Sets characterId + * + * @param int $characterId character_id integer + * + * @return $this + */ + public function setCharacterId($characterId) + { + $this->container['characterId'] = $characterId; + + return $this; + } + + /** + * Gets corporationId + * + * @return int + */ + public function getCorporationId() + { + return $this->container['corporationId']; + } + + /** + * Sets corporationId + * + * @param int $corporationId corporation_id integer + * + * @return $this + */ + public function setCorporationId($corporationId) + { + $this->container['corporationId'] = $corporationId; + + return $this; + } + + /** + * Gets allianceId + * + * @return int + */ + public function getAllianceId() + { + return $this->container['allianceId']; + } + + /** + * Sets allianceId + * + * @param int $allianceId alliance_id integer + * + * @return $this + */ + public function setAllianceId($allianceId) + { + $this->container['allianceId'] = $allianceId; + + return $this; + } + + /** + * Gets jobId + * + * @return int + */ + public function getJobId() + { + return $this->container['jobId']; + } + + /** + * Sets jobId + * + * @param int $jobId job_id integer + * + * @return $this + */ + public function setJobId($jobId) + { + $this->container['jobId'] = $jobId; + + return $this; + } + + /** + * Gets contractId + * + * @return int + */ + public function getContractId() + { + return $this->container['contractId']; + } + + /** + * Sets contractId + * + * @param int $contractId contract_id integer + * + * @return $this + */ + public function setContractId($contractId) + { + $this->container['contractId'] = $contractId; + + return $this; + } + + /** + * Gets systemId + * + * @return int + */ + public function getSystemId() + { + return $this->container['systemId']; + } + + /** + * Sets systemId + * + * @param int $systemId system_id integer + * + * @return $this + */ + public function setSystemId($systemId) + { + $this->container['systemId'] = $systemId; + + return $this; + } + + /** + * Gets planetId + * + * @return int + */ + public function getPlanetId() + { + return $this->container['planetId']; + } + + /** + * Sets planetId + * + * @param int $planetId planet_id integer + * + * @return $this + */ + public function setPlanetId($planetId) + { + $this->container['planetId'] = $planetId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsCorporationIdWalletsDivisionTransactions200Ok.php b/src/nullx27/ESI/Models/GetCorporationsCorporationIdWalletsDivisionTransactions200Ok.php new file mode 100644 index 0000000..d251449 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsCorporationIdWalletsDivisionTransactions200Ok.php @@ -0,0 +1,597 @@ + 'int', + 'date' => '\DateTime', + 'typeId' => 'int', + 'locationId' => 'int', + 'unitPrice' => 'double', + 'quantity' => 'int', + 'clientId' => 'int', + 'isBuy' => 'bool', + 'journalRefId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'transactionId' => 'int64', + 'date' => 'date-time', + 'typeId' => 'int32', + 'locationId' => 'int64', + 'unitPrice' => 'double', + 'quantity' => 'int32', + 'clientId' => 'int32', + 'isBuy' => null, + 'journalRefId' => 'int64' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'transactionId' => 'transaction_id', + 'date' => 'date', + 'typeId' => 'type_id', + 'locationId' => 'location_id', + 'unitPrice' => 'unit_price', + 'quantity' => 'quantity', + 'clientId' => 'client_id', + 'isBuy' => 'is_buy', + 'journalRefId' => 'journal_ref_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'transactionId' => 'setTransactionId', + 'date' => 'setDate', + 'typeId' => 'setTypeId', + 'locationId' => 'setLocationId', + 'unitPrice' => 'setUnitPrice', + 'quantity' => 'setQuantity', + 'clientId' => 'setClientId', + 'isBuy' => 'setIsBuy', + 'journalRefId' => 'setJournalRefId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'transactionId' => 'getTransactionId', + 'date' => 'getDate', + 'typeId' => 'getTypeId', + 'locationId' => 'getLocationId', + 'unitPrice' => 'getUnitPrice', + 'quantity' => 'getQuantity', + 'clientId' => 'getClientId', + 'isBuy' => 'getIsBuy', + 'journalRefId' => 'getJournalRefId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['transactionId'] = isset($data['transactionId']) ? $data['transactionId'] : null; + $this->container['date'] = isset($data['date']) ? $data['date'] : null; + $this->container['typeId'] = isset($data['typeId']) ? $data['typeId'] : null; + $this->container['locationId'] = isset($data['locationId']) ? $data['locationId'] : null; + $this->container['unitPrice'] = isset($data['unitPrice']) ? $data['unitPrice'] : null; + $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null; + $this->container['clientId'] = isset($data['clientId']) ? $data['clientId'] : null; + $this->container['isBuy'] = isset($data['isBuy']) ? $data['isBuy'] : null; + $this->container['journalRefId'] = isset($data['journalRefId']) ? $data['journalRefId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['transactionId'] === null) { + $invalidProperties[] = "'transactionId' can't be null"; + } + if ($this->container['date'] === null) { + $invalidProperties[] = "'date' can't be null"; + } + if ($this->container['typeId'] === null) { + $invalidProperties[] = "'typeId' can't be null"; + } + if ($this->container['locationId'] === null) { + $invalidProperties[] = "'locationId' can't be null"; + } + if ($this->container['unitPrice'] === null) { + $invalidProperties[] = "'unitPrice' can't be null"; + } + if ($this->container['quantity'] === null) { + $invalidProperties[] = "'quantity' can't be null"; + } + if ($this->container['clientId'] === null) { + $invalidProperties[] = "'clientId' can't be null"; + } + if ($this->container['isBuy'] === null) { + $invalidProperties[] = "'isBuy' can't be null"; + } + if ($this->container['journalRefId'] === null) { + $invalidProperties[] = "'journalRefId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['transactionId'] === null) { + return false; + } + if ($this->container['date'] === null) { + return false; + } + if ($this->container['typeId'] === null) { + return false; + } + if ($this->container['locationId'] === null) { + return false; + } + if ($this->container['unitPrice'] === null) { + return false; + } + if ($this->container['quantity'] === null) { + return false; + } + if ($this->container['clientId'] === null) { + return false; + } + if ($this->container['isBuy'] === null) { + return false; + } + if ($this->container['journalRefId'] === null) { + return false; + } + return true; + } + + + /** + * Gets transactionId + * + * @return int + */ + public function getTransactionId() + { + return $this->container['transactionId']; + } + + /** + * Sets transactionId + * + * @param int $transactionId Unique transaction ID + * + * @return $this + */ + public function setTransactionId($transactionId) + { + $this->container['transactionId'] = $transactionId; + + return $this; + } + + /** + * Gets date + * + * @return \DateTime + */ + public function getDate() + { + return $this->container['date']; + } + + /** + * Sets date + * + * @param \DateTime $date Date and time of transaction + * + * @return $this + */ + public function setDate($date) + { + $this->container['date'] = $date; + + return $this; + } + + /** + * Gets typeId + * + * @return int + */ + public function getTypeId() + { + return $this->container['typeId']; + } + + /** + * Sets typeId + * + * @param int $typeId type_id integer + * + * @return $this + */ + public function setTypeId($typeId) + { + $this->container['typeId'] = $typeId; + + return $this; + } + + /** + * Gets locationId + * + * @return int + */ + public function getLocationId() + { + return $this->container['locationId']; + } + + /** + * Sets locationId + * + * @param int $locationId location_id integer + * + * @return $this + */ + public function setLocationId($locationId) + { + $this->container['locationId'] = $locationId; + + return $this; + } + + /** + * Gets unitPrice + * + * @return double + */ + public function getUnitPrice() + { + return $this->container['unitPrice']; + } + + /** + * Sets unitPrice + * + * @param double $unitPrice Amount paid per unit + * + * @return $this + */ + public function setUnitPrice($unitPrice) + { + $this->container['unitPrice'] = $unitPrice; + + return $this; + } + + /** + * Gets quantity + * + * @return int + */ + public function getQuantity() + { + return $this->container['quantity']; + } + + /** + * Sets quantity + * + * @param int $quantity quantity integer + * + * @return $this + */ + public function setQuantity($quantity) + { + $this->container['quantity'] = $quantity; + + return $this; + } + + /** + * Gets clientId + * + * @return int + */ + public function getClientId() + { + return $this->container['clientId']; + } + + /** + * Sets clientId + * + * @param int $clientId client_id integer + * + * @return $this + */ + public function setClientId($clientId) + { + $this->container['clientId'] = $clientId; + + return $this; + } + + /** + * Gets isBuy + * + * @return bool + */ + public function getIsBuy() + { + return $this->container['isBuy']; + } + + /** + * Sets isBuy + * + * @param bool $isBuy is_buy boolean + * + * @return $this + */ + public function setIsBuy($isBuy) + { + $this->container['isBuy'] = $isBuy; + + return $this; + } + + /** + * Gets journalRefId + * + * @return int + */ + public function getJournalRefId() + { + return $this->container['journalRefId']; + } + + /** + * Sets journalRefId + * + * @param int $journalRefId journal_ref_id integer + * + * @return $this + */ + public function setJournalRefId($journalRefId) + { + $this->container['journalRefId'] = $journalRefId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetCorporationsNames200Ok.php b/src/nullx27/ESI/Models/GetCorporationsNames200Ok.php new file mode 100644 index 0000000..4f31b82 --- /dev/null +++ b/src/nullx27/ESI/Models/GetCorporationsNames200Ok.php @@ -0,0 +1,345 @@ + 'int', + 'corporationName' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'corporationId' => 'int32', + 'corporationName' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'corporationId' => 'corporation_id', + 'corporationName' => 'corporation_name' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'corporationId' => 'setCorporationId', + 'corporationName' => 'setCorporationName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'corporationId' => 'getCorporationId', + 'corporationName' => 'getCorporationName' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['corporationId'] = isset($data['corporationId']) ? $data['corporationId'] : null; + $this->container['corporationName'] = isset($data['corporationName']) ? $data['corporationName'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['corporationId'] === null) { + $invalidProperties[] = "'corporationId' can't be null"; + } + if ($this->container['corporationName'] === null) { + $invalidProperties[] = "'corporationName' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['corporationId'] === null) { + return false; + } + if ($this->container['corporationName'] === null) { + return false; + } + return true; + } + + + /** + * Gets corporationId + * + * @return int + */ + public function getCorporationId() + { + return $this->container['corporationId']; + } + + /** + * Sets corporationId + * + * @param int $corporationId corporation_id integer + * + * @return $this + */ + public function setCorporationId($corporationId) + { + $this->container['corporationId'] = $corporationId; + + return $this; + } + + /** + * Gets corporationName + * + * @return string + */ + public function getCorporationName() + { + return $this->container['corporationName']; + } + + /** + * Sets corporationName + * + * @param string $corporationName corporation_name string + * + * @return $this + */ + public function setCorporationName($corporationName) + { + $this->container['corporationName'] = $corporationName; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetDogmaAttributesAttributeIdNotFound.php b/src/nullx27/ESI/Models/GetDogmaAttributesAttributeIdNotFound.php new file mode 100644 index 0000000..65e35a3 --- /dev/null +++ b/src/nullx27/ESI/Models/GetDogmaAttributesAttributeIdNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Not found message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetDogmaAttributesAttributeIdOk.php b/src/nullx27/ESI/Models/GetDogmaAttributesAttributeIdOk.php new file mode 100644 index 0000000..884ceba --- /dev/null +++ b/src/nullx27/ESI/Models/GetDogmaAttributesAttributeIdOk.php @@ -0,0 +1,579 @@ + 'int', + 'name' => 'string', + 'description' => 'string', + 'iconId' => 'int', + 'defaultValue' => 'float', + 'published' => 'bool', + 'displayName' => 'string', + 'unitId' => 'int', + 'stackable' => 'bool', + 'highIsGood' => 'bool' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'attributeId' => 'int32', + 'name' => null, + 'description' => null, + 'iconId' => 'int32', + 'defaultValue' => 'float', + 'published' => null, + 'displayName' => null, + 'unitId' => 'int32', + 'stackable' => null, + 'highIsGood' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'attributeId' => 'attribute_id', + 'name' => 'name', + 'description' => 'description', + 'iconId' => 'icon_id', + 'defaultValue' => 'default_value', + 'published' => 'published', + 'displayName' => 'display_name', + 'unitId' => 'unit_id', + 'stackable' => 'stackable', + 'highIsGood' => 'high_is_good' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'attributeId' => 'setAttributeId', + 'name' => 'setName', + 'description' => 'setDescription', + 'iconId' => 'setIconId', + 'defaultValue' => 'setDefaultValue', + 'published' => 'setPublished', + 'displayName' => 'setDisplayName', + 'unitId' => 'setUnitId', + 'stackable' => 'setStackable', + 'highIsGood' => 'setHighIsGood' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'attributeId' => 'getAttributeId', + 'name' => 'getName', + 'description' => 'getDescription', + 'iconId' => 'getIconId', + 'defaultValue' => 'getDefaultValue', + 'published' => 'getPublished', + 'displayName' => 'getDisplayName', + 'unitId' => 'getUnitId', + 'stackable' => 'getStackable', + 'highIsGood' => 'getHighIsGood' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['attributeId'] = isset($data['attributeId']) ? $data['attributeId'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['description'] = isset($data['description']) ? $data['description'] : null; + $this->container['iconId'] = isset($data['iconId']) ? $data['iconId'] : null; + $this->container['defaultValue'] = isset($data['defaultValue']) ? $data['defaultValue'] : null; + $this->container['published'] = isset($data['published']) ? $data['published'] : null; + $this->container['displayName'] = isset($data['displayName']) ? $data['displayName'] : null; + $this->container['unitId'] = isset($data['unitId']) ? $data['unitId'] : null; + $this->container['stackable'] = isset($data['stackable']) ? $data['stackable'] : null; + $this->container['highIsGood'] = isset($data['highIsGood']) ? $data['highIsGood'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['attributeId'] === null) { + $invalidProperties[] = "'attributeId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['attributeId'] === null) { + return false; + } + return true; + } + + + /** + * Gets attributeId + * + * @return int + */ + public function getAttributeId() + { + return $this->container['attributeId']; + } + + /** + * Sets attributeId + * + * @param int $attributeId attribute_id integer + * + * @return $this + */ + public function setAttributeId($attributeId) + { + $this->container['attributeId'] = $attributeId; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets description + * + * @return string + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string $description description string + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets iconId + * + * @return int + */ + public function getIconId() + { + return $this->container['iconId']; + } + + /** + * Sets iconId + * + * @param int $iconId icon_id integer + * + * @return $this + */ + public function setIconId($iconId) + { + $this->container['iconId'] = $iconId; + + return $this; + } + + /** + * Gets defaultValue + * + * @return float + */ + public function getDefaultValue() + { + return $this->container['defaultValue']; + } + + /** + * Sets defaultValue + * + * @param float $defaultValue default_value number + * + * @return $this + */ + public function setDefaultValue($defaultValue) + { + $this->container['defaultValue'] = $defaultValue; + + return $this; + } + + /** + * Gets published + * + * @return bool + */ + public function getPublished() + { + return $this->container['published']; + } + + /** + * Sets published + * + * @param bool $published published boolean + * + * @return $this + */ + public function setPublished($published) + { + $this->container['published'] = $published; + + return $this; + } + + /** + * Gets displayName + * + * @return string + */ + public function getDisplayName() + { + return $this->container['displayName']; + } + + /** + * Sets displayName + * + * @param string $displayName display_name string + * + * @return $this + */ + public function setDisplayName($displayName) + { + $this->container['displayName'] = $displayName; + + return $this; + } + + /** + * Gets unitId + * + * @return int + */ + public function getUnitId() + { + return $this->container['unitId']; + } + + /** + * Sets unitId + * + * @param int $unitId unit_id integer + * + * @return $this + */ + public function setUnitId($unitId) + { + $this->container['unitId'] = $unitId; + + return $this; + } + + /** + * Gets stackable + * + * @return bool + */ + public function getStackable() + { + return $this->container['stackable']; + } + + /** + * Sets stackable + * + * @param bool $stackable stackable boolean + * + * @return $this + */ + public function setStackable($stackable) + { + $this->container['stackable'] = $stackable; + + return $this; + } + + /** + * Gets highIsGood + * + * @return bool + */ + public function getHighIsGood() + { + return $this->container['highIsGood']; + } + + /** + * Sets highIsGood + * + * @param bool $highIsGood high_is_good boolean + * + * @return $this + */ + public function setHighIsGood($highIsGood) + { + $this->container['highIsGood'] = $highIsGood; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetDogmaEffectsEffectIdModifier.php b/src/nullx27/ESI/Models/GetDogmaEffectsEffectIdModifier.php new file mode 100644 index 0000000..ecf6b88 --- /dev/null +++ b/src/nullx27/ESI/Models/GetDogmaEffectsEffectIdModifier.php @@ -0,0 +1,459 @@ + 'string', + 'domain' => 'string', + 'modifiedAttributeId' => 'int', + 'modifyingAttributeId' => 'int', + 'effectId' => 'int', + 'operator' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'func' => null, + 'domain' => null, + 'modifiedAttributeId' => 'int32', + 'modifyingAttributeId' => 'int32', + 'effectId' => 'int32', + 'operator' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'func' => 'func', + 'domain' => 'domain', + 'modifiedAttributeId' => 'modified_attribute_id', + 'modifyingAttributeId' => 'modifying_attribute_id', + 'effectId' => 'effect_id', + 'operator' => 'operator' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'func' => 'setFunc', + 'domain' => 'setDomain', + 'modifiedAttributeId' => 'setModifiedAttributeId', + 'modifyingAttributeId' => 'setModifyingAttributeId', + 'effectId' => 'setEffectId', + 'operator' => 'setOperator' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'func' => 'getFunc', + 'domain' => 'getDomain', + 'modifiedAttributeId' => 'getModifiedAttributeId', + 'modifyingAttributeId' => 'getModifyingAttributeId', + 'effectId' => 'getEffectId', + 'operator' => 'getOperator' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['func'] = isset($data['func']) ? $data['func'] : null; + $this->container['domain'] = isset($data['domain']) ? $data['domain'] : null; + $this->container['modifiedAttributeId'] = isset($data['modifiedAttributeId']) ? $data['modifiedAttributeId'] : null; + $this->container['modifyingAttributeId'] = isset($data['modifyingAttributeId']) ? $data['modifyingAttributeId'] : null; + $this->container['effectId'] = isset($data['effectId']) ? $data['effectId'] : null; + $this->container['operator'] = isset($data['operator']) ? $data['operator'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['func'] === null) { + $invalidProperties[] = "'func' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['func'] === null) { + return false; + } + return true; + } + + + /** + * Gets func + * + * @return string + */ + public function getFunc() + { + return $this->container['func']; + } + + /** + * Sets func + * + * @param string $func func string + * + * @return $this + */ + public function setFunc($func) + { + $this->container['func'] = $func; + + return $this; + } + + /** + * Gets domain + * + * @return string + */ + public function getDomain() + { + return $this->container['domain']; + } + + /** + * Sets domain + * + * @param string $domain domain string + * + * @return $this + */ + public function setDomain($domain) + { + $this->container['domain'] = $domain; + + return $this; + } + + /** + * Gets modifiedAttributeId + * + * @return int + */ + public function getModifiedAttributeId() + { + return $this->container['modifiedAttributeId']; + } + + /** + * Sets modifiedAttributeId + * + * @param int $modifiedAttributeId modified_attribute_id integer + * + * @return $this + */ + public function setModifiedAttributeId($modifiedAttributeId) + { + $this->container['modifiedAttributeId'] = $modifiedAttributeId; + + return $this; + } + + /** + * Gets modifyingAttributeId + * + * @return int + */ + public function getModifyingAttributeId() + { + return $this->container['modifyingAttributeId']; + } + + /** + * Sets modifyingAttributeId + * + * @param int $modifyingAttributeId modifying_attribute_id integer + * + * @return $this + */ + public function setModifyingAttributeId($modifyingAttributeId) + { + $this->container['modifyingAttributeId'] = $modifyingAttributeId; + + return $this; + } + + /** + * Gets effectId + * + * @return int + */ + public function getEffectId() + { + return $this->container['effectId']; + } + + /** + * Sets effectId + * + * @param int $effectId effect_id integer + * + * @return $this + */ + public function setEffectId($effectId) + { + $this->container['effectId'] = $effectId; + + return $this; + } + + /** + * Gets operator + * + * @return int + */ + public function getOperator() + { + return $this->container['operator']; + } + + /** + * Sets operator + * + * @param int $operator operator integer + * + * @return $this + */ + public function setOperator($operator) + { + $this->container['operator'] = $operator; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetDogmaEffectsEffectIdNotFound.php b/src/nullx27/ESI/Models/GetDogmaEffectsEffectIdNotFound.php new file mode 100644 index 0000000..66079fb --- /dev/null +++ b/src/nullx27/ESI/Models/GetDogmaEffectsEffectIdNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Not found message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetDogmaEffectsEffectIdOk.php b/src/nullx27/ESI/Models/GetDogmaEffectsEffectIdOk.php new file mode 100644 index 0000000..55b515e --- /dev/null +++ b/src/nullx27/ESI/Models/GetDogmaEffectsEffectIdOk.php @@ -0,0 +1,909 @@ + 'int', + 'name' => 'string', + 'displayName' => 'string', + 'description' => 'string', + 'iconId' => 'int', + 'effectCategory' => 'int', + 'preExpression' => 'int', + 'postExpression' => 'int', + 'isOffensive' => 'bool', + 'isAssistance' => 'bool', + 'disallowAutoRepeat' => 'bool', + 'published' => 'bool', + 'isWarpSafe' => 'bool', + 'rangeChance' => 'bool', + 'electronicChance' => 'bool', + 'durationAttributeId' => 'int', + 'trackingSpeedAttributeId' => 'int', + 'dischargeAttributeId' => 'int', + 'rangeAttributeId' => 'int', + 'falloffAttributeId' => 'int', + 'modifiers' => '\nullx27ESI\nullx27\ESI\Models\GetDogmaEffectsEffectIdModifier[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'effectId' => 'int32', + 'name' => null, + 'displayName' => null, + 'description' => null, + 'iconId' => 'int32', + 'effectCategory' => 'int32', + 'preExpression' => 'int32', + 'postExpression' => 'int32', + 'isOffensive' => null, + 'isAssistance' => null, + 'disallowAutoRepeat' => null, + 'published' => null, + 'isWarpSafe' => null, + 'rangeChance' => null, + 'electronicChance' => null, + 'durationAttributeId' => 'int32', + 'trackingSpeedAttributeId' => 'int32', + 'dischargeAttributeId' => 'int32', + 'rangeAttributeId' => 'int32', + 'falloffAttributeId' => 'int32', + 'modifiers' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'effectId' => 'effect_id', + 'name' => 'name', + 'displayName' => 'display_name', + 'description' => 'description', + 'iconId' => 'icon_id', + 'effectCategory' => 'effect_category', + 'preExpression' => 'pre_expression', + 'postExpression' => 'post_expression', + 'isOffensive' => 'is_offensive', + 'isAssistance' => 'is_assistance', + 'disallowAutoRepeat' => 'disallow_auto_repeat', + 'published' => 'published', + 'isWarpSafe' => 'is_warp_safe', + 'rangeChance' => 'range_chance', + 'electronicChance' => 'electronic_chance', + 'durationAttributeId' => 'duration_attribute_id', + 'trackingSpeedAttributeId' => 'tracking_speed_attribute_id', + 'dischargeAttributeId' => 'discharge_attribute_id', + 'rangeAttributeId' => 'range_attribute_id', + 'falloffAttributeId' => 'falloff_attribute_id', + 'modifiers' => 'modifiers' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'effectId' => 'setEffectId', + 'name' => 'setName', + 'displayName' => 'setDisplayName', + 'description' => 'setDescription', + 'iconId' => 'setIconId', + 'effectCategory' => 'setEffectCategory', + 'preExpression' => 'setPreExpression', + 'postExpression' => 'setPostExpression', + 'isOffensive' => 'setIsOffensive', + 'isAssistance' => 'setIsAssistance', + 'disallowAutoRepeat' => 'setDisallowAutoRepeat', + 'published' => 'setPublished', + 'isWarpSafe' => 'setIsWarpSafe', + 'rangeChance' => 'setRangeChance', + 'electronicChance' => 'setElectronicChance', + 'durationAttributeId' => 'setDurationAttributeId', + 'trackingSpeedAttributeId' => 'setTrackingSpeedAttributeId', + 'dischargeAttributeId' => 'setDischargeAttributeId', + 'rangeAttributeId' => 'setRangeAttributeId', + 'falloffAttributeId' => 'setFalloffAttributeId', + 'modifiers' => 'setModifiers' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'effectId' => 'getEffectId', + 'name' => 'getName', + 'displayName' => 'getDisplayName', + 'description' => 'getDescription', + 'iconId' => 'getIconId', + 'effectCategory' => 'getEffectCategory', + 'preExpression' => 'getPreExpression', + 'postExpression' => 'getPostExpression', + 'isOffensive' => 'getIsOffensive', + 'isAssistance' => 'getIsAssistance', + 'disallowAutoRepeat' => 'getDisallowAutoRepeat', + 'published' => 'getPublished', + 'isWarpSafe' => 'getIsWarpSafe', + 'rangeChance' => 'getRangeChance', + 'electronicChance' => 'getElectronicChance', + 'durationAttributeId' => 'getDurationAttributeId', + 'trackingSpeedAttributeId' => 'getTrackingSpeedAttributeId', + 'dischargeAttributeId' => 'getDischargeAttributeId', + 'rangeAttributeId' => 'getRangeAttributeId', + 'falloffAttributeId' => 'getFalloffAttributeId', + 'modifiers' => 'getModifiers' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['effectId'] = isset($data['effectId']) ? $data['effectId'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['displayName'] = isset($data['displayName']) ? $data['displayName'] : null; + $this->container['description'] = isset($data['description']) ? $data['description'] : null; + $this->container['iconId'] = isset($data['iconId']) ? $data['iconId'] : null; + $this->container['effectCategory'] = isset($data['effectCategory']) ? $data['effectCategory'] : null; + $this->container['preExpression'] = isset($data['preExpression']) ? $data['preExpression'] : null; + $this->container['postExpression'] = isset($data['postExpression']) ? $data['postExpression'] : null; + $this->container['isOffensive'] = isset($data['isOffensive']) ? $data['isOffensive'] : null; + $this->container['isAssistance'] = isset($data['isAssistance']) ? $data['isAssistance'] : null; + $this->container['disallowAutoRepeat'] = isset($data['disallowAutoRepeat']) ? $data['disallowAutoRepeat'] : null; + $this->container['published'] = isset($data['published']) ? $data['published'] : null; + $this->container['isWarpSafe'] = isset($data['isWarpSafe']) ? $data['isWarpSafe'] : null; + $this->container['rangeChance'] = isset($data['rangeChance']) ? $data['rangeChance'] : null; + $this->container['electronicChance'] = isset($data['electronicChance']) ? $data['electronicChance'] : null; + $this->container['durationAttributeId'] = isset($data['durationAttributeId']) ? $data['durationAttributeId'] : null; + $this->container['trackingSpeedAttributeId'] = isset($data['trackingSpeedAttributeId']) ? $data['trackingSpeedAttributeId'] : null; + $this->container['dischargeAttributeId'] = isset($data['dischargeAttributeId']) ? $data['dischargeAttributeId'] : null; + $this->container['rangeAttributeId'] = isset($data['rangeAttributeId']) ? $data['rangeAttributeId'] : null; + $this->container['falloffAttributeId'] = isset($data['falloffAttributeId']) ? $data['falloffAttributeId'] : null; + $this->container['modifiers'] = isset($data['modifiers']) ? $data['modifiers'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['effectId'] === null) { + $invalidProperties[] = "'effectId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['effectId'] === null) { + return false; + } + return true; + } + + + /** + * Gets effectId + * + * @return int + */ + public function getEffectId() + { + return $this->container['effectId']; + } + + /** + * Sets effectId + * + * @param int $effectId effect_id integer + * + * @return $this + */ + public function setEffectId($effectId) + { + $this->container['effectId'] = $effectId; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets displayName + * + * @return string + */ + public function getDisplayName() + { + return $this->container['displayName']; + } + + /** + * Sets displayName + * + * @param string $displayName display_name string + * + * @return $this + */ + public function setDisplayName($displayName) + { + $this->container['displayName'] = $displayName; + + return $this; + } + + /** + * Gets description + * + * @return string + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string $description description string + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets iconId + * + * @return int + */ + public function getIconId() + { + return $this->container['iconId']; + } + + /** + * Sets iconId + * + * @param int $iconId icon_id integer + * + * @return $this + */ + public function setIconId($iconId) + { + $this->container['iconId'] = $iconId; + + return $this; + } + + /** + * Gets effectCategory + * + * @return int + */ + public function getEffectCategory() + { + return $this->container['effectCategory']; + } + + /** + * Sets effectCategory + * + * @param int $effectCategory effect_category integer + * + * @return $this + */ + public function setEffectCategory($effectCategory) + { + $this->container['effectCategory'] = $effectCategory; + + return $this; + } + + /** + * Gets preExpression + * + * @return int + */ + public function getPreExpression() + { + return $this->container['preExpression']; + } + + /** + * Sets preExpression + * + * @param int $preExpression pre_expression integer + * + * @return $this + */ + public function setPreExpression($preExpression) + { + $this->container['preExpression'] = $preExpression; + + return $this; + } + + /** + * Gets postExpression + * + * @return int + */ + public function getPostExpression() + { + return $this->container['postExpression']; + } + + /** + * Sets postExpression + * + * @param int $postExpression post_expression integer + * + * @return $this + */ + public function setPostExpression($postExpression) + { + $this->container['postExpression'] = $postExpression; + + return $this; + } + + /** + * Gets isOffensive + * + * @return bool + */ + public function getIsOffensive() + { + return $this->container['isOffensive']; + } + + /** + * Sets isOffensive + * + * @param bool $isOffensive is_offensive boolean + * + * @return $this + */ + public function setIsOffensive($isOffensive) + { + $this->container['isOffensive'] = $isOffensive; + + return $this; + } + + /** + * Gets isAssistance + * + * @return bool + */ + public function getIsAssistance() + { + return $this->container['isAssistance']; + } + + /** + * Sets isAssistance + * + * @param bool $isAssistance is_assistance boolean + * + * @return $this + */ + public function setIsAssistance($isAssistance) + { + $this->container['isAssistance'] = $isAssistance; + + return $this; + } + + /** + * Gets disallowAutoRepeat + * + * @return bool + */ + public function getDisallowAutoRepeat() + { + return $this->container['disallowAutoRepeat']; + } + + /** + * Sets disallowAutoRepeat + * + * @param bool $disallowAutoRepeat disallow_auto_repeat boolean + * + * @return $this + */ + public function setDisallowAutoRepeat($disallowAutoRepeat) + { + $this->container['disallowAutoRepeat'] = $disallowAutoRepeat; + + return $this; + } + + /** + * Gets published + * + * @return bool + */ + public function getPublished() + { + return $this->container['published']; + } + + /** + * Sets published + * + * @param bool $published published boolean + * + * @return $this + */ + public function setPublished($published) + { + $this->container['published'] = $published; + + return $this; + } + + /** + * Gets isWarpSafe + * + * @return bool + */ + public function getIsWarpSafe() + { + return $this->container['isWarpSafe']; + } + + /** + * Sets isWarpSafe + * + * @param bool $isWarpSafe is_warp_safe boolean + * + * @return $this + */ + public function setIsWarpSafe($isWarpSafe) + { + $this->container['isWarpSafe'] = $isWarpSafe; + + return $this; + } + + /** + * Gets rangeChance + * + * @return bool + */ + public function getRangeChance() + { + return $this->container['rangeChance']; + } + + /** + * Sets rangeChance + * + * @param bool $rangeChance range_chance boolean + * + * @return $this + */ + public function setRangeChance($rangeChance) + { + $this->container['rangeChance'] = $rangeChance; + + return $this; + } + + /** + * Gets electronicChance + * + * @return bool + */ + public function getElectronicChance() + { + return $this->container['electronicChance']; + } + + /** + * Sets electronicChance + * + * @param bool $electronicChance electronic_chance boolean + * + * @return $this + */ + public function setElectronicChance($electronicChance) + { + $this->container['electronicChance'] = $electronicChance; + + return $this; + } + + /** + * Gets durationAttributeId + * + * @return int + */ + public function getDurationAttributeId() + { + return $this->container['durationAttributeId']; + } + + /** + * Sets durationAttributeId + * + * @param int $durationAttributeId duration_attribute_id integer + * + * @return $this + */ + public function setDurationAttributeId($durationAttributeId) + { + $this->container['durationAttributeId'] = $durationAttributeId; + + return $this; + } + + /** + * Gets trackingSpeedAttributeId + * + * @return int + */ + public function getTrackingSpeedAttributeId() + { + return $this->container['trackingSpeedAttributeId']; + } + + /** + * Sets trackingSpeedAttributeId + * + * @param int $trackingSpeedAttributeId tracking_speed_attribute_id integer + * + * @return $this + */ + public function setTrackingSpeedAttributeId($trackingSpeedAttributeId) + { + $this->container['trackingSpeedAttributeId'] = $trackingSpeedAttributeId; + + return $this; + } + + /** + * Gets dischargeAttributeId + * + * @return int + */ + public function getDischargeAttributeId() + { + return $this->container['dischargeAttributeId']; + } + + /** + * Sets dischargeAttributeId + * + * @param int $dischargeAttributeId discharge_attribute_id integer + * + * @return $this + */ + public function setDischargeAttributeId($dischargeAttributeId) + { + $this->container['dischargeAttributeId'] = $dischargeAttributeId; + + return $this; + } + + /** + * Gets rangeAttributeId + * + * @return int + */ + public function getRangeAttributeId() + { + return $this->container['rangeAttributeId']; + } + + /** + * Sets rangeAttributeId + * + * @param int $rangeAttributeId range_attribute_id integer + * + * @return $this + */ + public function setRangeAttributeId($rangeAttributeId) + { + $this->container['rangeAttributeId'] = $rangeAttributeId; + + return $this; + } + + /** + * Gets falloffAttributeId + * + * @return int + */ + public function getFalloffAttributeId() + { + return $this->container['falloffAttributeId']; + } + + /** + * Sets falloffAttributeId + * + * @param int $falloffAttributeId falloff_attribute_id integer + * + * @return $this + */ + public function setFalloffAttributeId($falloffAttributeId) + { + $this->container['falloffAttributeId'] = $falloffAttributeId; + + return $this; + } + + /** + * Gets modifiers + * + * @return \nullx27ESI\nullx27\ESI\Models\GetDogmaEffectsEffectIdModifier[] + */ + public function getModifiers() + { + return $this->container['modifiers']; + } + + /** + * Sets modifiers + * + * @param \nullx27ESI\nullx27\ESI\Models\GetDogmaEffectsEffectIdModifier[] $modifiers modifiers array + * + * @return $this + */ + public function setModifiers($modifiers) + { + $this->container['modifiers'] = $modifiers; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFleetsFleetIdMembers200Ok.php b/src/nullx27/ESI/Models/GetFleetsFleetIdMembers200Ok.php new file mode 100644 index 0000000..46a4e7e --- /dev/null +++ b/src/nullx27/ESI/Models/GetFleetsFleetIdMembers200Ok.php @@ -0,0 +1,667 @@ + 'int', + 'shipTypeId' => 'int', + 'wingId' => 'int', + 'squadId' => 'int', + 'role' => 'string', + 'roleName' => 'string', + 'joinTime' => '\DateTime', + 'takesFleetWarp' => 'bool', + 'solarSystemId' => 'int', + 'stationId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'characterId' => 'int32', + 'shipTypeId' => 'int32', + 'wingId' => 'int64', + 'squadId' => 'int64', + 'role' => null, + 'roleName' => null, + 'joinTime' => 'date-time', + 'takesFleetWarp' => null, + 'solarSystemId' => 'int32', + 'stationId' => 'int64' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'characterId' => 'character_id', + 'shipTypeId' => 'ship_type_id', + 'wingId' => 'wing_id', + 'squadId' => 'squad_id', + 'role' => 'role', + 'roleName' => 'role_name', + 'joinTime' => 'join_time', + 'takesFleetWarp' => 'takes_fleet_warp', + 'solarSystemId' => 'solar_system_id', + 'stationId' => 'station_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'characterId' => 'setCharacterId', + 'shipTypeId' => 'setShipTypeId', + 'wingId' => 'setWingId', + 'squadId' => 'setSquadId', + 'role' => 'setRole', + 'roleName' => 'setRoleName', + 'joinTime' => 'setJoinTime', + 'takesFleetWarp' => 'setTakesFleetWarp', + 'solarSystemId' => 'setSolarSystemId', + 'stationId' => 'setStationId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'characterId' => 'getCharacterId', + 'shipTypeId' => 'getShipTypeId', + 'wingId' => 'getWingId', + 'squadId' => 'getSquadId', + 'role' => 'getRole', + 'roleName' => 'getRoleName', + 'joinTime' => 'getJoinTime', + 'takesFleetWarp' => 'getTakesFleetWarp', + 'solarSystemId' => 'getSolarSystemId', + 'stationId' => 'getStationId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const ROLE_FLEET_COMMANDER = 'fleet_commander'; + const ROLE_WING_COMMANDER = 'wing_commander'; + const ROLE_SQUAD_COMMANDER = 'squad_commander'; + const ROLE_SQUAD_MEMBER = 'squad_member'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getRoleAllowableValues() + { + return [ + self::ROLE_FLEET_COMMANDER, + self::ROLE_WING_COMMANDER, + self::ROLE_SQUAD_COMMANDER, + self::ROLE_SQUAD_MEMBER, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['characterId'] = isset($data['characterId']) ? $data['characterId'] : null; + $this->container['shipTypeId'] = isset($data['shipTypeId']) ? $data['shipTypeId'] : null; + $this->container['wingId'] = isset($data['wingId']) ? $data['wingId'] : null; + $this->container['squadId'] = isset($data['squadId']) ? $data['squadId'] : null; + $this->container['role'] = isset($data['role']) ? $data['role'] : null; + $this->container['roleName'] = isset($data['roleName']) ? $data['roleName'] : null; + $this->container['joinTime'] = isset($data['joinTime']) ? $data['joinTime'] : null; + $this->container['takesFleetWarp'] = isset($data['takesFleetWarp']) ? $data['takesFleetWarp'] : null; + $this->container['solarSystemId'] = isset($data['solarSystemId']) ? $data['solarSystemId'] : null; + $this->container['stationId'] = isset($data['stationId']) ? $data['stationId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['characterId'] === null) { + $invalidProperties[] = "'characterId' can't be null"; + } + if ($this->container['shipTypeId'] === null) { + $invalidProperties[] = "'shipTypeId' can't be null"; + } + if ($this->container['wingId'] === null) { + $invalidProperties[] = "'wingId' can't be null"; + } + if ($this->container['squadId'] === null) { + $invalidProperties[] = "'squadId' can't be null"; + } + if ($this->container['role'] === null) { + $invalidProperties[] = "'role' can't be null"; + } + $allowedValues = $this->getRoleAllowableValues(); + if (!in_array($this->container['role'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'role', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['roleName'] === null) { + $invalidProperties[] = "'roleName' can't be null"; + } + if ($this->container['joinTime'] === null) { + $invalidProperties[] = "'joinTime' can't be null"; + } + if ($this->container['takesFleetWarp'] === null) { + $invalidProperties[] = "'takesFleetWarp' can't be null"; + } + if ($this->container['solarSystemId'] === null) { + $invalidProperties[] = "'solarSystemId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['characterId'] === null) { + return false; + } + if ($this->container['shipTypeId'] === null) { + return false; + } + if ($this->container['wingId'] === null) { + return false; + } + if ($this->container['squadId'] === null) { + return false; + } + if ($this->container['role'] === null) { + return false; + } + $allowedValues = $this->getRoleAllowableValues(); + if (!in_array($this->container['role'], $allowedValues)) { + return false; + } + if ($this->container['roleName'] === null) { + return false; + } + if ($this->container['joinTime'] === null) { + return false; + } + if ($this->container['takesFleetWarp'] === null) { + return false; + } + if ($this->container['solarSystemId'] === null) { + return false; + } + return true; + } + + + /** + * Gets characterId + * + * @return int + */ + public function getCharacterId() + { + return $this->container['characterId']; + } + + /** + * Sets characterId + * + * @param int $characterId character_id integer + * + * @return $this + */ + public function setCharacterId($characterId) + { + $this->container['characterId'] = $characterId; + + return $this; + } + + /** + * Gets shipTypeId + * + * @return int + */ + public function getShipTypeId() + { + return $this->container['shipTypeId']; + } + + /** + * Sets shipTypeId + * + * @param int $shipTypeId ship_type_id integer + * + * @return $this + */ + public function setShipTypeId($shipTypeId) + { + $this->container['shipTypeId'] = $shipTypeId; + + return $this; + } + + /** + * Gets wingId + * + * @return int + */ + public function getWingId() + { + return $this->container['wingId']; + } + + /** + * Sets wingId + * + * @param int $wingId ID of the wing the member is in. If not applicable, will be set to -1 + * + * @return $this + */ + public function setWingId($wingId) + { + $this->container['wingId'] = $wingId; + + return $this; + } + + /** + * Gets squadId + * + * @return int + */ + public function getSquadId() + { + return $this->container['squadId']; + } + + /** + * Sets squadId + * + * @param int $squadId ID of the squad the member is in. If not applicable, will be set to -1 + * + * @return $this + */ + public function setSquadId($squadId) + { + $this->container['squadId'] = $squadId; + + return $this; + } + + /** + * Gets role + * + * @return string + */ + public function getRole() + { + return $this->container['role']; + } + + /** + * Sets role + * + * @param string $role Member’s role in fleet + * + * @return $this + */ + public function setRole($role) + { + $allowedValues = $this->getRoleAllowableValues(); + if (!in_array($role, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'role', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['role'] = $role; + + return $this; + } + + /** + * Gets roleName + * + * @return string + */ + public function getRoleName() + { + return $this->container['roleName']; + } + + /** + * Sets roleName + * + * @param string $roleName Localized role names + * + * @return $this + */ + public function setRoleName($roleName) + { + $this->container['roleName'] = $roleName; + + return $this; + } + + /** + * Gets joinTime + * + * @return \DateTime + */ + public function getJoinTime() + { + return $this->container['joinTime']; + } + + /** + * Sets joinTime + * + * @param \DateTime $joinTime join_time string + * + * @return $this + */ + public function setJoinTime($joinTime) + { + $this->container['joinTime'] = $joinTime; + + return $this; + } + + /** + * Gets takesFleetWarp + * + * @return bool + */ + public function getTakesFleetWarp() + { + return $this->container['takesFleetWarp']; + } + + /** + * Sets takesFleetWarp + * + * @param bool $takesFleetWarp Whether the member take fleet warps + * + * @return $this + */ + public function setTakesFleetWarp($takesFleetWarp) + { + $this->container['takesFleetWarp'] = $takesFleetWarp; + + return $this; + } + + /** + * Gets solarSystemId + * + * @return int + */ + public function getSolarSystemId() + { + return $this->container['solarSystemId']; + } + + /** + * Sets solarSystemId + * + * @param int $solarSystemId Solar system the member is located in + * + * @return $this + */ + public function setSolarSystemId($solarSystemId) + { + $this->container['solarSystemId'] = $solarSystemId; + + return $this; + } + + /** + * Gets stationId + * + * @return int + */ + public function getStationId() + { + return $this->container['stationId']; + } + + /** + * Sets stationId + * + * @param int $stationId Station in which the member is docked in, if applicable + * + * @return $this + */ + public function setStationId($stationId) + { + $this->container['stationId'] = $stationId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFleetsFleetIdMembersNotFound.php b/src/nullx27/ESI/Models/GetFleetsFleetIdMembersNotFound.php new file mode 100644 index 0000000..beda4ab --- /dev/null +++ b/src/nullx27/ESI/Models/GetFleetsFleetIdMembersNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Not found message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFleetsFleetIdNotFound.php b/src/nullx27/ESI/Models/GetFleetsFleetIdNotFound.php new file mode 100644 index 0000000..d1a2a64 --- /dev/null +++ b/src/nullx27/ESI/Models/GetFleetsFleetIdNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Not found message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFleetsFleetIdOk.php b/src/nullx27/ESI/Models/GetFleetsFleetIdOk.php new file mode 100644 index 0000000..5295f6f --- /dev/null +++ b/src/nullx27/ESI/Models/GetFleetsFleetIdOk.php @@ -0,0 +1,417 @@ + 'string', + 'isFreeMove' => 'bool', + 'isRegistered' => 'bool', + 'isVoiceEnabled' => 'bool' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'motd' => null, + 'isFreeMove' => null, + 'isRegistered' => null, + 'isVoiceEnabled' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'motd' => 'motd', + 'isFreeMove' => 'is_free_move', + 'isRegistered' => 'is_registered', + 'isVoiceEnabled' => 'is_voice_enabled' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'motd' => 'setMotd', + 'isFreeMove' => 'setIsFreeMove', + 'isRegistered' => 'setIsRegistered', + 'isVoiceEnabled' => 'setIsVoiceEnabled' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'motd' => 'getMotd', + 'isFreeMove' => 'getIsFreeMove', + 'isRegistered' => 'getIsRegistered', + 'isVoiceEnabled' => 'getIsVoiceEnabled' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['motd'] = isset($data['motd']) ? $data['motd'] : null; + $this->container['isFreeMove'] = isset($data['isFreeMove']) ? $data['isFreeMove'] : null; + $this->container['isRegistered'] = isset($data['isRegistered']) ? $data['isRegistered'] : null; + $this->container['isVoiceEnabled'] = isset($data['isVoiceEnabled']) ? $data['isVoiceEnabled'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['motd'] === null) { + $invalidProperties[] = "'motd' can't be null"; + } + if ($this->container['isFreeMove'] === null) { + $invalidProperties[] = "'isFreeMove' can't be null"; + } + if ($this->container['isRegistered'] === null) { + $invalidProperties[] = "'isRegistered' can't be null"; + } + if ($this->container['isVoiceEnabled'] === null) { + $invalidProperties[] = "'isVoiceEnabled' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['motd'] === null) { + return false; + } + if ($this->container['isFreeMove'] === null) { + return false; + } + if ($this->container['isRegistered'] === null) { + return false; + } + if ($this->container['isVoiceEnabled'] === null) { + return false; + } + return true; + } + + + /** + * Gets motd + * + * @return string + */ + public function getMotd() + { + return $this->container['motd']; + } + + /** + * Sets motd + * + * @param string $motd Fleet MOTD in CCP flavoured HTML + * + * @return $this + */ + public function setMotd($motd) + { + $this->container['motd'] = $motd; + + return $this; + } + + /** + * Gets isFreeMove + * + * @return bool + */ + public function getIsFreeMove() + { + return $this->container['isFreeMove']; + } + + /** + * Sets isFreeMove + * + * @param bool $isFreeMove Is free-move enabled + * + * @return $this + */ + public function setIsFreeMove($isFreeMove) + { + $this->container['isFreeMove'] = $isFreeMove; + + return $this; + } + + /** + * Gets isRegistered + * + * @return bool + */ + public function getIsRegistered() + { + return $this->container['isRegistered']; + } + + /** + * Sets isRegistered + * + * @param bool $isRegistered Does the fleet have an active fleet advertisement + * + * @return $this + */ + public function setIsRegistered($isRegistered) + { + $this->container['isRegistered'] = $isRegistered; + + return $this; + } + + /** + * Gets isVoiceEnabled + * + * @return bool + */ + public function getIsVoiceEnabled() + { + return $this->container['isVoiceEnabled']; + } + + /** + * Sets isVoiceEnabled + * + * @param bool $isVoiceEnabled Is EVE Voice enabled + * + * @return $this + */ + public function setIsVoiceEnabled($isVoiceEnabled) + { + $this->container['isVoiceEnabled'] = $isVoiceEnabled; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFleetsFleetIdWings200Ok.php b/src/nullx27/ESI/Models/GetFleetsFleetIdWings200Ok.php new file mode 100644 index 0000000..a556ec5 --- /dev/null +++ b/src/nullx27/ESI/Models/GetFleetsFleetIdWings200Ok.php @@ -0,0 +1,381 @@ + 'string', + 'id' => 'int', + 'squads' => '\nullx27ESI\nullx27\ESI\Models\GetFleetsFleetIdWingsSquad[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'name' => null, + 'id' => 'int64', + 'squads' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'name' => 'name', + 'id' => 'id', + 'squads' => 'squads' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'name' => 'setName', + 'id' => 'setId', + 'squads' => 'setSquads' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'name' => 'getName', + 'id' => 'getId', + 'squads' => 'getSquads' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['squads'] = isset($data['squads']) ? $data['squads'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ($this->container['id'] === null) { + $invalidProperties[] = "'id' can't be null"; + } + if ($this->container['squads'] === null) { + $invalidProperties[] = "'squads' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['name'] === null) { + return false; + } + if ($this->container['id'] === null) { + return false; + } + if ($this->container['squads'] === null) { + return false; + } + return true; + } + + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets id + * + * @return int + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int $id id integer + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets squads + * + * @return \nullx27ESI\nullx27\ESI\Models\GetFleetsFleetIdWingsSquad[] + */ + public function getSquads() + { + return $this->container['squads']; + } + + /** + * Sets squads + * + * @param \nullx27ESI\nullx27\ESI\Models\GetFleetsFleetIdWingsSquad[] $squads squads array + * + * @return $this + */ + public function setSquads($squads) + { + $this->container['squads'] = $squads; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFleetsFleetIdWingsNotFound.php b/src/nullx27/ESI/Models/GetFleetsFleetIdWingsNotFound.php new file mode 100644 index 0000000..ef562d4 --- /dev/null +++ b/src/nullx27/ESI/Models/GetFleetsFleetIdWingsNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Not found message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFleetsFleetIdWingsSquad.php b/src/nullx27/ESI/Models/GetFleetsFleetIdWingsSquad.php new file mode 100644 index 0000000..69add70 --- /dev/null +++ b/src/nullx27/ESI/Models/GetFleetsFleetIdWingsSquad.php @@ -0,0 +1,345 @@ + 'string', + 'id' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'name' => null, + 'id' => 'int64' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'name' => 'name', + 'id' => 'id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'name' => 'setName', + 'id' => 'setId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'name' => 'getName', + 'id' => 'getId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ($this->container['id'] === null) { + $invalidProperties[] = "'id' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['name'] === null) { + return false; + } + if ($this->container['id'] === null) { + return false; + } + return true; + } + + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets id + * + * @return int + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int $id id integer + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFwLeaderboardsActiveTotal.php b/src/nullx27/ESI/Models/GetFwLeaderboardsActiveTotal.php new file mode 100644 index 0000000..1a33093 --- /dev/null +++ b/src/nullx27/ESI/Models/GetFwLeaderboardsActiveTotal.php @@ -0,0 +1,333 @@ + 'int', + 'amount' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'factionId' => 'int32', + 'amount' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'factionId' => 'faction_id', + 'amount' => 'amount' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'factionId' => 'setFactionId', + 'amount' => 'setAmount' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'factionId' => 'getFactionId', + 'amount' => 'getAmount' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['factionId'] = isset($data['factionId']) ? $data['factionId'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets factionId + * + * @return int + */ + public function getFactionId() + { + return $this->container['factionId']; + } + + /** + * Sets factionId + * + * @param int $factionId faction_id integer + * + * @return $this + */ + public function setFactionId($factionId) + { + $this->container['factionId'] = $factionId; + + return $this; + } + + /** + * Gets amount + * + * @return int + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param int $amount Amount of kills + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFwLeaderboardsActiveTotal1.php b/src/nullx27/ESI/Models/GetFwLeaderboardsActiveTotal1.php new file mode 100644 index 0000000..fb305fe --- /dev/null +++ b/src/nullx27/ESI/Models/GetFwLeaderboardsActiveTotal1.php @@ -0,0 +1,333 @@ + 'int', + 'amount' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'factionId' => 'int32', + 'amount' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'factionId' => 'faction_id', + 'amount' => 'amount' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'factionId' => 'setFactionId', + 'amount' => 'setAmount' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'factionId' => 'getFactionId', + 'amount' => 'getAmount' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['factionId'] = isset($data['factionId']) ? $data['factionId'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets factionId + * + * @return int + */ + public function getFactionId() + { + return $this->container['factionId']; + } + + /** + * Sets factionId + * + * @param int $factionId faction_id integer + * + * @return $this + */ + public function setFactionId($factionId) + { + $this->container['factionId'] = $factionId; + + return $this; + } + + /** + * Gets amount + * + * @return int + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param int $amount Amount of victory points + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFwLeaderboardsCharactersActiveTotal.php b/src/nullx27/ESI/Models/GetFwLeaderboardsCharactersActiveTotal.php new file mode 100644 index 0000000..0db8926 --- /dev/null +++ b/src/nullx27/ESI/Models/GetFwLeaderboardsCharactersActiveTotal.php @@ -0,0 +1,333 @@ + 'int', + 'amount' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'characterId' => 'int32', + 'amount' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'characterId' => 'character_id', + 'amount' => 'amount' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'characterId' => 'setCharacterId', + 'amount' => 'setAmount' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'characterId' => 'getCharacterId', + 'amount' => 'getAmount' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['characterId'] = isset($data['characterId']) ? $data['characterId'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets characterId + * + * @return int + */ + public function getCharacterId() + { + return $this->container['characterId']; + } + + /** + * Sets characterId + * + * @param int $characterId character_id integer + * + * @return $this + */ + public function setCharacterId($characterId) + { + $this->container['characterId'] = $characterId; + + return $this; + } + + /** + * Gets amount + * + * @return int + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param int $amount Amount of kills + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFwLeaderboardsCharactersActiveTotal1.php b/src/nullx27/ESI/Models/GetFwLeaderboardsCharactersActiveTotal1.php new file mode 100644 index 0000000..e25c237 --- /dev/null +++ b/src/nullx27/ESI/Models/GetFwLeaderboardsCharactersActiveTotal1.php @@ -0,0 +1,333 @@ + 'int', + 'amount' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'characterId' => 'int32', + 'amount' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'characterId' => 'character_id', + 'amount' => 'amount' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'characterId' => 'setCharacterId', + 'amount' => 'setAmount' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'characterId' => 'getCharacterId', + 'amount' => 'getAmount' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['characterId'] = isset($data['characterId']) ? $data['characterId'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets characterId + * + * @return int + */ + public function getCharacterId() + { + return $this->container['characterId']; + } + + /** + * Sets characterId + * + * @param int $characterId character_id integer + * + * @return $this + */ + public function setCharacterId($characterId) + { + $this->container['characterId'] = $characterId; + + return $this; + } + + /** + * Gets amount + * + * @return int + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param int $amount Amount of victory points + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFwLeaderboardsCharactersKills.php b/src/nullx27/ESI/Models/GetFwLeaderboardsCharactersKills.php new file mode 100644 index 0000000..0a665af --- /dev/null +++ b/src/nullx27/ESI/Models/GetFwLeaderboardsCharactersKills.php @@ -0,0 +1,381 @@ + '\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersYesterday[]', + 'lastWeek' => '\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersLastWeek[]', + 'activeTotal' => '\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersActiveTotal[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'yesterday' => null, + 'lastWeek' => null, + 'activeTotal' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'yesterday' => 'yesterday', + 'lastWeek' => 'last_week', + 'activeTotal' => 'active_total' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'yesterday' => 'setYesterday', + 'lastWeek' => 'setLastWeek', + 'activeTotal' => 'setActiveTotal' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'yesterday' => 'getYesterday', + 'lastWeek' => 'getLastWeek', + 'activeTotal' => 'getActiveTotal' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['yesterday'] = isset($data['yesterday']) ? $data['yesterday'] : null; + $this->container['lastWeek'] = isset($data['lastWeek']) ? $data['lastWeek'] : null; + $this->container['activeTotal'] = isset($data['activeTotal']) ? $data['activeTotal'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['yesterday'] === null) { + $invalidProperties[] = "'yesterday' can't be null"; + } + if ($this->container['lastWeek'] === null) { + $invalidProperties[] = "'lastWeek' can't be null"; + } + if ($this->container['activeTotal'] === null) { + $invalidProperties[] = "'activeTotal' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['yesterday'] === null) { + return false; + } + if ($this->container['lastWeek'] === null) { + return false; + } + if ($this->container['activeTotal'] === null) { + return false; + } + return true; + } + + + /** + * Gets yesterday + * + * @return \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersYesterday[] + */ + public function getYesterday() + { + return $this->container['yesterday']; + } + + /** + * Sets yesterday + * + * @param \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersYesterday[] $yesterday Top 100 ranking of pilots by kills in the past day + * + * @return $this + */ + public function setYesterday($yesterday) + { + $this->container['yesterday'] = $yesterday; + + return $this; + } + + /** + * Gets lastWeek + * + * @return \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersLastWeek[] + */ + public function getLastWeek() + { + return $this->container['lastWeek']; + } + + /** + * Sets lastWeek + * + * @param \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersLastWeek[] $lastWeek Top 100 ranking of pilots by kills in the past week + * + * @return $this + */ + public function setLastWeek($lastWeek) + { + $this->container['lastWeek'] = $lastWeek; + + return $this; + } + + /** + * Gets activeTotal + * + * @return \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersActiveTotal[] + */ + public function getActiveTotal() + { + return $this->container['activeTotal']; + } + + /** + * Sets activeTotal + * + * @param \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersActiveTotal[] $activeTotal Top 100 ranking of pilots active in faction warfare by total kills. A pilot is considered \"active\" if they have participated in faction warfare in the past 14 days. + * + * @return $this + */ + public function setActiveTotal($activeTotal) + { + $this->container['activeTotal'] = $activeTotal; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFwLeaderboardsCharactersLastWeek.php b/src/nullx27/ESI/Models/GetFwLeaderboardsCharactersLastWeek.php new file mode 100644 index 0000000..002415b --- /dev/null +++ b/src/nullx27/ESI/Models/GetFwLeaderboardsCharactersLastWeek.php @@ -0,0 +1,333 @@ + 'int', + 'amount' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'characterId' => 'int32', + 'amount' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'characterId' => 'character_id', + 'amount' => 'amount' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'characterId' => 'setCharacterId', + 'amount' => 'setAmount' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'characterId' => 'getCharacterId', + 'amount' => 'getAmount' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['characterId'] = isset($data['characterId']) ? $data['characterId'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets characterId + * + * @return int + */ + public function getCharacterId() + { + return $this->container['characterId']; + } + + /** + * Sets characterId + * + * @param int $characterId character_id integer + * + * @return $this + */ + public function setCharacterId($characterId) + { + $this->container['characterId'] = $characterId; + + return $this; + } + + /** + * Gets amount + * + * @return int + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param int $amount Amount of kills + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFwLeaderboardsCharactersLastWeek1.php b/src/nullx27/ESI/Models/GetFwLeaderboardsCharactersLastWeek1.php new file mode 100644 index 0000000..a52976a --- /dev/null +++ b/src/nullx27/ESI/Models/GetFwLeaderboardsCharactersLastWeek1.php @@ -0,0 +1,333 @@ + 'int', + 'amount' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'characterId' => 'int32', + 'amount' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'characterId' => 'character_id', + 'amount' => 'amount' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'characterId' => 'setCharacterId', + 'amount' => 'setAmount' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'characterId' => 'getCharacterId', + 'amount' => 'getAmount' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['characterId'] = isset($data['characterId']) ? $data['characterId'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets characterId + * + * @return int + */ + public function getCharacterId() + { + return $this->container['characterId']; + } + + /** + * Sets characterId + * + * @param int $characterId character_id integer + * + * @return $this + */ + public function setCharacterId($characterId) + { + $this->container['characterId'] = $characterId; + + return $this; + } + + /** + * Gets amount + * + * @return int + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param int $amount Amount of victory points + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFwLeaderboardsCharactersOk.php b/src/nullx27/ESI/Models/GetFwLeaderboardsCharactersOk.php new file mode 100644 index 0000000..102de2e --- /dev/null +++ b/src/nullx27/ESI/Models/GetFwLeaderboardsCharactersOk.php @@ -0,0 +1,345 @@ + '\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersKills', + 'victoryPoints' => '\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersVictoryPoints' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'kills' => null, + 'victoryPoints' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'kills' => 'kills', + 'victoryPoints' => 'victory_points' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'kills' => 'setKills', + 'victoryPoints' => 'setVictoryPoints' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'kills' => 'getKills', + 'victoryPoints' => 'getVictoryPoints' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['kills'] = isset($data['kills']) ? $data['kills'] : null; + $this->container['victoryPoints'] = isset($data['victoryPoints']) ? $data['victoryPoints'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['kills'] === null) { + $invalidProperties[] = "'kills' can't be null"; + } + if ($this->container['victoryPoints'] === null) { + $invalidProperties[] = "'victoryPoints' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['kills'] === null) { + return false; + } + if ($this->container['victoryPoints'] === null) { + return false; + } + return true; + } + + + /** + * Gets kills + * + * @return \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersKills + */ + public function getKills() + { + return $this->container['kills']; + } + + /** + * Sets kills + * + * @param \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersKills $kills kills + * + * @return $this + */ + public function setKills($kills) + { + $this->container['kills'] = $kills; + + return $this; + } + + /** + * Gets victoryPoints + * + * @return \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersVictoryPoints + */ + public function getVictoryPoints() + { + return $this->container['victoryPoints']; + } + + /** + * Sets victoryPoints + * + * @param \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersVictoryPoints $victoryPoints victoryPoints + * + * @return $this + */ + public function setVictoryPoints($victoryPoints) + { + $this->container['victoryPoints'] = $victoryPoints; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFwLeaderboardsCharactersVictoryPoints.php b/src/nullx27/ESI/Models/GetFwLeaderboardsCharactersVictoryPoints.php new file mode 100644 index 0000000..ad1047a --- /dev/null +++ b/src/nullx27/ESI/Models/GetFwLeaderboardsCharactersVictoryPoints.php @@ -0,0 +1,381 @@ + '\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersYesterday1[]', + 'lastWeek' => '\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersLastWeek1[]', + 'activeTotal' => '\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersActiveTotal1[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'yesterday' => null, + 'lastWeek' => null, + 'activeTotal' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'yesterday' => 'yesterday', + 'lastWeek' => 'last_week', + 'activeTotal' => 'active_total' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'yesterday' => 'setYesterday', + 'lastWeek' => 'setLastWeek', + 'activeTotal' => 'setActiveTotal' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'yesterday' => 'getYesterday', + 'lastWeek' => 'getLastWeek', + 'activeTotal' => 'getActiveTotal' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['yesterday'] = isset($data['yesterday']) ? $data['yesterday'] : null; + $this->container['lastWeek'] = isset($data['lastWeek']) ? $data['lastWeek'] : null; + $this->container['activeTotal'] = isset($data['activeTotal']) ? $data['activeTotal'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['yesterday'] === null) { + $invalidProperties[] = "'yesterday' can't be null"; + } + if ($this->container['lastWeek'] === null) { + $invalidProperties[] = "'lastWeek' can't be null"; + } + if ($this->container['activeTotal'] === null) { + $invalidProperties[] = "'activeTotal' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['yesterday'] === null) { + return false; + } + if ($this->container['lastWeek'] === null) { + return false; + } + if ($this->container['activeTotal'] === null) { + return false; + } + return true; + } + + + /** + * Gets yesterday + * + * @return \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersYesterday1[] + */ + public function getYesterday() + { + return $this->container['yesterday']; + } + + /** + * Sets yesterday + * + * @param \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersYesterday1[] $yesterday Top 100 ranking of pilots by victory points in the past day + * + * @return $this + */ + public function setYesterday($yesterday) + { + $this->container['yesterday'] = $yesterday; + + return $this; + } + + /** + * Gets lastWeek + * + * @return \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersLastWeek1[] + */ + public function getLastWeek() + { + return $this->container['lastWeek']; + } + + /** + * Sets lastWeek + * + * @param \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersLastWeek1[] $lastWeek Top 100 ranking of pilots by victory points in the past week + * + * @return $this + */ + public function setLastWeek($lastWeek) + { + $this->container['lastWeek'] = $lastWeek; + + return $this; + } + + /** + * Gets activeTotal + * + * @return \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersActiveTotal1[] + */ + public function getActiveTotal() + { + return $this->container['activeTotal']; + } + + /** + * Sets activeTotal + * + * @param \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCharactersActiveTotal1[] $activeTotal Top 100 ranking of pilots active in faction warfare by total victory points. A pilot is considered \"active\" if they have participated in faction warfare in the past 14 days. + * + * @return $this + */ + public function setActiveTotal($activeTotal) + { + $this->container['activeTotal'] = $activeTotal; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFwLeaderboardsCharactersYesterday.php b/src/nullx27/ESI/Models/GetFwLeaderboardsCharactersYesterday.php new file mode 100644 index 0000000..31d3e97 --- /dev/null +++ b/src/nullx27/ESI/Models/GetFwLeaderboardsCharactersYesterday.php @@ -0,0 +1,333 @@ + 'int', + 'amount' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'characterId' => 'int32', + 'amount' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'characterId' => 'character_id', + 'amount' => 'amount' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'characterId' => 'setCharacterId', + 'amount' => 'setAmount' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'characterId' => 'getCharacterId', + 'amount' => 'getAmount' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['characterId'] = isset($data['characterId']) ? $data['characterId'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets characterId + * + * @return int + */ + public function getCharacterId() + { + return $this->container['characterId']; + } + + /** + * Sets characterId + * + * @param int $characterId character_id integer + * + * @return $this + */ + public function setCharacterId($characterId) + { + $this->container['characterId'] = $characterId; + + return $this; + } + + /** + * Gets amount + * + * @return int + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param int $amount Amount of kills + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFwLeaderboardsCharactersYesterday1.php b/src/nullx27/ESI/Models/GetFwLeaderboardsCharactersYesterday1.php new file mode 100644 index 0000000..47eb774 --- /dev/null +++ b/src/nullx27/ESI/Models/GetFwLeaderboardsCharactersYesterday1.php @@ -0,0 +1,333 @@ + 'int', + 'amount' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'characterId' => 'int32', + 'amount' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'characterId' => 'character_id', + 'amount' => 'amount' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'characterId' => 'setCharacterId', + 'amount' => 'setAmount' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'characterId' => 'getCharacterId', + 'amount' => 'getAmount' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['characterId'] = isset($data['characterId']) ? $data['characterId'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets characterId + * + * @return int + */ + public function getCharacterId() + { + return $this->container['characterId']; + } + + /** + * Sets characterId + * + * @param int $characterId character_id integer + * + * @return $this + */ + public function setCharacterId($characterId) + { + $this->container['characterId'] = $characterId; + + return $this; + } + + /** + * Gets amount + * + * @return int + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param int $amount Amount of victory points + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFwLeaderboardsCorporationsActiveTotal.php b/src/nullx27/ESI/Models/GetFwLeaderboardsCorporationsActiveTotal.php new file mode 100644 index 0000000..34d7eaa --- /dev/null +++ b/src/nullx27/ESI/Models/GetFwLeaderboardsCorporationsActiveTotal.php @@ -0,0 +1,333 @@ + 'int', + 'amount' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'corporationId' => 'int32', + 'amount' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'corporationId' => 'corporation_id', + 'amount' => 'amount' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'corporationId' => 'setCorporationId', + 'amount' => 'setAmount' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'corporationId' => 'getCorporationId', + 'amount' => 'getAmount' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['corporationId'] = isset($data['corporationId']) ? $data['corporationId'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets corporationId + * + * @return int + */ + public function getCorporationId() + { + return $this->container['corporationId']; + } + + /** + * Sets corporationId + * + * @param int $corporationId corporation_id integer + * + * @return $this + */ + public function setCorporationId($corporationId) + { + $this->container['corporationId'] = $corporationId; + + return $this; + } + + /** + * Gets amount + * + * @return int + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param int $amount Amount of kills + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFwLeaderboardsCorporationsActiveTotal1.php b/src/nullx27/ESI/Models/GetFwLeaderboardsCorporationsActiveTotal1.php new file mode 100644 index 0000000..9012c3f --- /dev/null +++ b/src/nullx27/ESI/Models/GetFwLeaderboardsCorporationsActiveTotal1.php @@ -0,0 +1,333 @@ + 'int', + 'amount' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'corporationId' => 'int32', + 'amount' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'corporationId' => 'corporation_id', + 'amount' => 'amount' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'corporationId' => 'setCorporationId', + 'amount' => 'setAmount' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'corporationId' => 'getCorporationId', + 'amount' => 'getAmount' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['corporationId'] = isset($data['corporationId']) ? $data['corporationId'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets corporationId + * + * @return int + */ + public function getCorporationId() + { + return $this->container['corporationId']; + } + + /** + * Sets corporationId + * + * @param int $corporationId corporation_id integer + * + * @return $this + */ + public function setCorporationId($corporationId) + { + $this->container['corporationId'] = $corporationId; + + return $this; + } + + /** + * Gets amount + * + * @return int + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param int $amount Amount of victory points + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFwLeaderboardsCorporationsKills.php b/src/nullx27/ESI/Models/GetFwLeaderboardsCorporationsKills.php new file mode 100644 index 0000000..84a3a76 --- /dev/null +++ b/src/nullx27/ESI/Models/GetFwLeaderboardsCorporationsKills.php @@ -0,0 +1,381 @@ + '\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsYesterday[]', + 'lastWeek' => '\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsLastWeek[]', + 'activeTotal' => '\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsActiveTotal[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'yesterday' => null, + 'lastWeek' => null, + 'activeTotal' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'yesterday' => 'yesterday', + 'lastWeek' => 'last_week', + 'activeTotal' => 'active_total' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'yesterday' => 'setYesterday', + 'lastWeek' => 'setLastWeek', + 'activeTotal' => 'setActiveTotal' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'yesterday' => 'getYesterday', + 'lastWeek' => 'getLastWeek', + 'activeTotal' => 'getActiveTotal' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['yesterday'] = isset($data['yesterday']) ? $data['yesterday'] : null; + $this->container['lastWeek'] = isset($data['lastWeek']) ? $data['lastWeek'] : null; + $this->container['activeTotal'] = isset($data['activeTotal']) ? $data['activeTotal'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['yesterday'] === null) { + $invalidProperties[] = "'yesterday' can't be null"; + } + if ($this->container['lastWeek'] === null) { + $invalidProperties[] = "'lastWeek' can't be null"; + } + if ($this->container['activeTotal'] === null) { + $invalidProperties[] = "'activeTotal' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['yesterday'] === null) { + return false; + } + if ($this->container['lastWeek'] === null) { + return false; + } + if ($this->container['activeTotal'] === null) { + return false; + } + return true; + } + + + /** + * Gets yesterday + * + * @return \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsYesterday[] + */ + public function getYesterday() + { + return $this->container['yesterday']; + } + + /** + * Sets yesterday + * + * @param \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsYesterday[] $yesterday Top 10 ranking of corporations by kills in the past day + * + * @return $this + */ + public function setYesterday($yesterday) + { + $this->container['yesterday'] = $yesterday; + + return $this; + } + + /** + * Gets lastWeek + * + * @return \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsLastWeek[] + */ + public function getLastWeek() + { + return $this->container['lastWeek']; + } + + /** + * Sets lastWeek + * + * @param \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsLastWeek[] $lastWeek Top 10 ranking of corporations by kills in the past week + * + * @return $this + */ + public function setLastWeek($lastWeek) + { + $this->container['lastWeek'] = $lastWeek; + + return $this; + } + + /** + * Gets activeTotal + * + * @return \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsActiveTotal[] + */ + public function getActiveTotal() + { + return $this->container['activeTotal']; + } + + /** + * Sets activeTotal + * + * @param \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsActiveTotal[] $activeTotal Top 10 ranking of corporations active in faction warfare by total kills. A corporation is considered \"active\" if they have participated in faction warfare in the past 14 days. + * + * @return $this + */ + public function setActiveTotal($activeTotal) + { + $this->container['activeTotal'] = $activeTotal; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFwLeaderboardsCorporationsLastWeek.php b/src/nullx27/ESI/Models/GetFwLeaderboardsCorporationsLastWeek.php new file mode 100644 index 0000000..cc6c4d0 --- /dev/null +++ b/src/nullx27/ESI/Models/GetFwLeaderboardsCorporationsLastWeek.php @@ -0,0 +1,333 @@ + 'int', + 'amount' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'corporationId' => 'int32', + 'amount' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'corporationId' => 'corporation_id', + 'amount' => 'amount' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'corporationId' => 'setCorporationId', + 'amount' => 'setAmount' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'corporationId' => 'getCorporationId', + 'amount' => 'getAmount' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['corporationId'] = isset($data['corporationId']) ? $data['corporationId'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets corporationId + * + * @return int + */ + public function getCorporationId() + { + return $this->container['corporationId']; + } + + /** + * Sets corporationId + * + * @param int $corporationId corporation_id integer + * + * @return $this + */ + public function setCorporationId($corporationId) + { + $this->container['corporationId'] = $corporationId; + + return $this; + } + + /** + * Gets amount + * + * @return int + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param int $amount Amount of kills + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFwLeaderboardsCorporationsLastWeek1.php b/src/nullx27/ESI/Models/GetFwLeaderboardsCorporationsLastWeek1.php new file mode 100644 index 0000000..3eca011 --- /dev/null +++ b/src/nullx27/ESI/Models/GetFwLeaderboardsCorporationsLastWeek1.php @@ -0,0 +1,333 @@ + 'int', + 'amount' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'corporationId' => 'int32', + 'amount' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'corporationId' => 'corporation_id', + 'amount' => 'amount' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'corporationId' => 'setCorporationId', + 'amount' => 'setAmount' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'corporationId' => 'getCorporationId', + 'amount' => 'getAmount' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['corporationId'] = isset($data['corporationId']) ? $data['corporationId'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets corporationId + * + * @return int + */ + public function getCorporationId() + { + return $this->container['corporationId']; + } + + /** + * Sets corporationId + * + * @param int $corporationId corporation_id integer + * + * @return $this + */ + public function setCorporationId($corporationId) + { + $this->container['corporationId'] = $corporationId; + + return $this; + } + + /** + * Gets amount + * + * @return int + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param int $amount Amount of victory points + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFwLeaderboardsCorporationsOk.php b/src/nullx27/ESI/Models/GetFwLeaderboardsCorporationsOk.php new file mode 100644 index 0000000..e3ceb7c --- /dev/null +++ b/src/nullx27/ESI/Models/GetFwLeaderboardsCorporationsOk.php @@ -0,0 +1,345 @@ + '\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsKills', + 'victoryPoints' => '\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsVictoryPoints' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'kills' => null, + 'victoryPoints' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'kills' => 'kills', + 'victoryPoints' => 'victory_points' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'kills' => 'setKills', + 'victoryPoints' => 'setVictoryPoints' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'kills' => 'getKills', + 'victoryPoints' => 'getVictoryPoints' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['kills'] = isset($data['kills']) ? $data['kills'] : null; + $this->container['victoryPoints'] = isset($data['victoryPoints']) ? $data['victoryPoints'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['kills'] === null) { + $invalidProperties[] = "'kills' can't be null"; + } + if ($this->container['victoryPoints'] === null) { + $invalidProperties[] = "'victoryPoints' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['kills'] === null) { + return false; + } + if ($this->container['victoryPoints'] === null) { + return false; + } + return true; + } + + + /** + * Gets kills + * + * @return \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsKills + */ + public function getKills() + { + return $this->container['kills']; + } + + /** + * Sets kills + * + * @param \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsKills $kills kills + * + * @return $this + */ + public function setKills($kills) + { + $this->container['kills'] = $kills; + + return $this; + } + + /** + * Gets victoryPoints + * + * @return \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsVictoryPoints + */ + public function getVictoryPoints() + { + return $this->container['victoryPoints']; + } + + /** + * Sets victoryPoints + * + * @param \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsVictoryPoints $victoryPoints victoryPoints + * + * @return $this + */ + public function setVictoryPoints($victoryPoints) + { + $this->container['victoryPoints'] = $victoryPoints; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFwLeaderboardsCorporationsVictoryPoints.php b/src/nullx27/ESI/Models/GetFwLeaderboardsCorporationsVictoryPoints.php new file mode 100644 index 0000000..b28301b --- /dev/null +++ b/src/nullx27/ESI/Models/GetFwLeaderboardsCorporationsVictoryPoints.php @@ -0,0 +1,381 @@ + '\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsYesterday1[]', + 'lastWeek' => '\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsLastWeek1[]', + 'activeTotal' => '\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsActiveTotal1[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'yesterday' => null, + 'lastWeek' => null, + 'activeTotal' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'yesterday' => 'yesterday', + 'lastWeek' => 'last_week', + 'activeTotal' => 'active_total' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'yesterday' => 'setYesterday', + 'lastWeek' => 'setLastWeek', + 'activeTotal' => 'setActiveTotal' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'yesterday' => 'getYesterday', + 'lastWeek' => 'getLastWeek', + 'activeTotal' => 'getActiveTotal' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['yesterday'] = isset($data['yesterday']) ? $data['yesterday'] : null; + $this->container['lastWeek'] = isset($data['lastWeek']) ? $data['lastWeek'] : null; + $this->container['activeTotal'] = isset($data['activeTotal']) ? $data['activeTotal'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['yesterday'] === null) { + $invalidProperties[] = "'yesterday' can't be null"; + } + if ($this->container['lastWeek'] === null) { + $invalidProperties[] = "'lastWeek' can't be null"; + } + if ($this->container['activeTotal'] === null) { + $invalidProperties[] = "'activeTotal' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['yesterday'] === null) { + return false; + } + if ($this->container['lastWeek'] === null) { + return false; + } + if ($this->container['activeTotal'] === null) { + return false; + } + return true; + } + + + /** + * Gets yesterday + * + * @return \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsYesterday1[] + */ + public function getYesterday() + { + return $this->container['yesterday']; + } + + /** + * Sets yesterday + * + * @param \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsYesterday1[] $yesterday Top 10 ranking of corporations by victory points in the past day + * + * @return $this + */ + public function setYesterday($yesterday) + { + $this->container['yesterday'] = $yesterday; + + return $this; + } + + /** + * Gets lastWeek + * + * @return \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsLastWeek1[] + */ + public function getLastWeek() + { + return $this->container['lastWeek']; + } + + /** + * Sets lastWeek + * + * @param \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsLastWeek1[] $lastWeek Top 10 ranking of corporations by victory points in the past week + * + * @return $this + */ + public function setLastWeek($lastWeek) + { + $this->container['lastWeek'] = $lastWeek; + + return $this; + } + + /** + * Gets activeTotal + * + * @return \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsActiveTotal1[] + */ + public function getActiveTotal() + { + return $this->container['activeTotal']; + } + + /** + * Sets activeTotal + * + * @param \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsCorporationsActiveTotal1[] $activeTotal Top 10 ranking of corporations active in faction warfare by total victory points. A corporation is considered \"active\" if they have participated in faction warfare in the past 14 days. + * + * @return $this + */ + public function setActiveTotal($activeTotal) + { + $this->container['activeTotal'] = $activeTotal; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFwLeaderboardsCorporationsYesterday.php b/src/nullx27/ESI/Models/GetFwLeaderboardsCorporationsYesterday.php new file mode 100644 index 0000000..2660385 --- /dev/null +++ b/src/nullx27/ESI/Models/GetFwLeaderboardsCorporationsYesterday.php @@ -0,0 +1,333 @@ + 'int', + 'amount' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'corporationId' => 'int32', + 'amount' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'corporationId' => 'corporation_id', + 'amount' => 'amount' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'corporationId' => 'setCorporationId', + 'amount' => 'setAmount' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'corporationId' => 'getCorporationId', + 'amount' => 'getAmount' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['corporationId'] = isset($data['corporationId']) ? $data['corporationId'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets corporationId + * + * @return int + */ + public function getCorporationId() + { + return $this->container['corporationId']; + } + + /** + * Sets corporationId + * + * @param int $corporationId corporation_id integer + * + * @return $this + */ + public function setCorporationId($corporationId) + { + $this->container['corporationId'] = $corporationId; + + return $this; + } + + /** + * Gets amount + * + * @return int + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param int $amount Amount of kills + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFwLeaderboardsCorporationsYesterday1.php b/src/nullx27/ESI/Models/GetFwLeaderboardsCorporationsYesterday1.php new file mode 100644 index 0000000..b1a14ea --- /dev/null +++ b/src/nullx27/ESI/Models/GetFwLeaderboardsCorporationsYesterday1.php @@ -0,0 +1,333 @@ + 'int', + 'amount' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'corporationId' => 'int32', + 'amount' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'corporationId' => 'corporation_id', + 'amount' => 'amount' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'corporationId' => 'setCorporationId', + 'amount' => 'setAmount' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'corporationId' => 'getCorporationId', + 'amount' => 'getAmount' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['corporationId'] = isset($data['corporationId']) ? $data['corporationId'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets corporationId + * + * @return int + */ + public function getCorporationId() + { + return $this->container['corporationId']; + } + + /** + * Sets corporationId + * + * @param int $corporationId corporation_id integer + * + * @return $this + */ + public function setCorporationId($corporationId) + { + $this->container['corporationId'] = $corporationId; + + return $this; + } + + /** + * Gets amount + * + * @return int + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param int $amount Amount of victory points + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFwLeaderboardsKills.php b/src/nullx27/ESI/Models/GetFwLeaderboardsKills.php new file mode 100644 index 0000000..1669cb6 --- /dev/null +++ b/src/nullx27/ESI/Models/GetFwLeaderboardsKills.php @@ -0,0 +1,381 @@ + '\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsYesterday[]', + 'lastWeek' => '\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsLastWeek[]', + 'activeTotal' => '\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsActiveTotal[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'yesterday' => null, + 'lastWeek' => null, + 'activeTotal' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'yesterday' => 'yesterday', + 'lastWeek' => 'last_week', + 'activeTotal' => 'active_total' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'yesterday' => 'setYesterday', + 'lastWeek' => 'setLastWeek', + 'activeTotal' => 'setActiveTotal' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'yesterday' => 'getYesterday', + 'lastWeek' => 'getLastWeek', + 'activeTotal' => 'getActiveTotal' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['yesterday'] = isset($data['yesterday']) ? $data['yesterday'] : null; + $this->container['lastWeek'] = isset($data['lastWeek']) ? $data['lastWeek'] : null; + $this->container['activeTotal'] = isset($data['activeTotal']) ? $data['activeTotal'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['yesterday'] === null) { + $invalidProperties[] = "'yesterday' can't be null"; + } + if ($this->container['lastWeek'] === null) { + $invalidProperties[] = "'lastWeek' can't be null"; + } + if ($this->container['activeTotal'] === null) { + $invalidProperties[] = "'activeTotal' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['yesterday'] === null) { + return false; + } + if ($this->container['lastWeek'] === null) { + return false; + } + if ($this->container['activeTotal'] === null) { + return false; + } + return true; + } + + + /** + * Gets yesterday + * + * @return \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsYesterday[] + */ + public function getYesterday() + { + return $this->container['yesterday']; + } + + /** + * Sets yesterday + * + * @param \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsYesterday[] $yesterday Top 4 ranking of factions by kills in the past day + * + * @return $this + */ + public function setYesterday($yesterday) + { + $this->container['yesterday'] = $yesterday; + + return $this; + } + + /** + * Gets lastWeek + * + * @return \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsLastWeek[] + */ + public function getLastWeek() + { + return $this->container['lastWeek']; + } + + /** + * Sets lastWeek + * + * @param \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsLastWeek[] $lastWeek Top 4 ranking of factions by kills in the past week + * + * @return $this + */ + public function setLastWeek($lastWeek) + { + $this->container['lastWeek'] = $lastWeek; + + return $this; + } + + /** + * Gets activeTotal + * + * @return \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsActiveTotal[] + */ + public function getActiveTotal() + { + return $this->container['activeTotal']; + } + + /** + * Sets activeTotal + * + * @param \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsActiveTotal[] $activeTotal Top 4 ranking of factions active in faction warfare by total kills. A faction is considered \"active\" if they have participated in faction warfare in the past 14 days. + * + * @return $this + */ + public function setActiveTotal($activeTotal) + { + $this->container['activeTotal'] = $activeTotal; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFwLeaderboardsLastWeek.php b/src/nullx27/ESI/Models/GetFwLeaderboardsLastWeek.php new file mode 100644 index 0000000..01e7525 --- /dev/null +++ b/src/nullx27/ESI/Models/GetFwLeaderboardsLastWeek.php @@ -0,0 +1,333 @@ + 'int', + 'amount' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'factionId' => 'int32', + 'amount' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'factionId' => 'faction_id', + 'amount' => 'amount' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'factionId' => 'setFactionId', + 'amount' => 'setAmount' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'factionId' => 'getFactionId', + 'amount' => 'getAmount' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['factionId'] = isset($data['factionId']) ? $data['factionId'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets factionId + * + * @return int + */ + public function getFactionId() + { + return $this->container['factionId']; + } + + /** + * Sets factionId + * + * @param int $factionId faction_id integer + * + * @return $this + */ + public function setFactionId($factionId) + { + $this->container['factionId'] = $factionId; + + return $this; + } + + /** + * Gets amount + * + * @return int + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param int $amount Amount of kills + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFwLeaderboardsLastWeek1.php b/src/nullx27/ESI/Models/GetFwLeaderboardsLastWeek1.php new file mode 100644 index 0000000..e7c13ac --- /dev/null +++ b/src/nullx27/ESI/Models/GetFwLeaderboardsLastWeek1.php @@ -0,0 +1,333 @@ + 'int', + 'amount' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'factionId' => 'int32', + 'amount' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'factionId' => 'faction_id', + 'amount' => 'amount' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'factionId' => 'setFactionId', + 'amount' => 'setAmount' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'factionId' => 'getFactionId', + 'amount' => 'getAmount' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['factionId'] = isset($data['factionId']) ? $data['factionId'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets factionId + * + * @return int + */ + public function getFactionId() + { + return $this->container['factionId']; + } + + /** + * Sets factionId + * + * @param int $factionId faction_id integer + * + * @return $this + */ + public function setFactionId($factionId) + { + $this->container['factionId'] = $factionId; + + return $this; + } + + /** + * Gets amount + * + * @return int + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param int $amount Amount of victory points + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFwLeaderboardsOk.php b/src/nullx27/ESI/Models/GetFwLeaderboardsOk.php new file mode 100644 index 0000000..472f89f --- /dev/null +++ b/src/nullx27/ESI/Models/GetFwLeaderboardsOk.php @@ -0,0 +1,345 @@ + '\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsKills', + 'victoryPoints' => '\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsVictoryPoints' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'kills' => null, + 'victoryPoints' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'kills' => 'kills', + 'victoryPoints' => 'victory_points' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'kills' => 'setKills', + 'victoryPoints' => 'setVictoryPoints' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'kills' => 'getKills', + 'victoryPoints' => 'getVictoryPoints' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['kills'] = isset($data['kills']) ? $data['kills'] : null; + $this->container['victoryPoints'] = isset($data['victoryPoints']) ? $data['victoryPoints'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['kills'] === null) { + $invalidProperties[] = "'kills' can't be null"; + } + if ($this->container['victoryPoints'] === null) { + $invalidProperties[] = "'victoryPoints' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['kills'] === null) { + return false; + } + if ($this->container['victoryPoints'] === null) { + return false; + } + return true; + } + + + /** + * Gets kills + * + * @return \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsKills + */ + public function getKills() + { + return $this->container['kills']; + } + + /** + * Sets kills + * + * @param \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsKills $kills kills + * + * @return $this + */ + public function setKills($kills) + { + $this->container['kills'] = $kills; + + return $this; + } + + /** + * Gets victoryPoints + * + * @return \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsVictoryPoints + */ + public function getVictoryPoints() + { + return $this->container['victoryPoints']; + } + + /** + * Sets victoryPoints + * + * @param \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsVictoryPoints $victoryPoints victoryPoints + * + * @return $this + */ + public function setVictoryPoints($victoryPoints) + { + $this->container['victoryPoints'] = $victoryPoints; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFwLeaderboardsVictoryPoints.php b/src/nullx27/ESI/Models/GetFwLeaderboardsVictoryPoints.php new file mode 100644 index 0000000..fcec4ce --- /dev/null +++ b/src/nullx27/ESI/Models/GetFwLeaderboardsVictoryPoints.php @@ -0,0 +1,381 @@ + '\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsYesterday1[]', + 'lastWeek' => '\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsLastWeek1[]', + 'activeTotal' => '\nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsActiveTotal1[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'yesterday' => null, + 'lastWeek' => null, + 'activeTotal' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'yesterday' => 'yesterday', + 'lastWeek' => 'last_week', + 'activeTotal' => 'active_total' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'yesterday' => 'setYesterday', + 'lastWeek' => 'setLastWeek', + 'activeTotal' => 'setActiveTotal' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'yesterday' => 'getYesterday', + 'lastWeek' => 'getLastWeek', + 'activeTotal' => 'getActiveTotal' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['yesterday'] = isset($data['yesterday']) ? $data['yesterday'] : null; + $this->container['lastWeek'] = isset($data['lastWeek']) ? $data['lastWeek'] : null; + $this->container['activeTotal'] = isset($data['activeTotal']) ? $data['activeTotal'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['yesterday'] === null) { + $invalidProperties[] = "'yesterday' can't be null"; + } + if ($this->container['lastWeek'] === null) { + $invalidProperties[] = "'lastWeek' can't be null"; + } + if ($this->container['activeTotal'] === null) { + $invalidProperties[] = "'activeTotal' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['yesterday'] === null) { + return false; + } + if ($this->container['lastWeek'] === null) { + return false; + } + if ($this->container['activeTotal'] === null) { + return false; + } + return true; + } + + + /** + * Gets yesterday + * + * @return \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsYesterday1[] + */ + public function getYesterday() + { + return $this->container['yesterday']; + } + + /** + * Sets yesterday + * + * @param \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsYesterday1[] $yesterday Top 4 ranking of factions by victory points in the past day + * + * @return $this + */ + public function setYesterday($yesterday) + { + $this->container['yesterday'] = $yesterday; + + return $this; + } + + /** + * Gets lastWeek + * + * @return \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsLastWeek1[] + */ + public function getLastWeek() + { + return $this->container['lastWeek']; + } + + /** + * Sets lastWeek + * + * @param \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsLastWeek1[] $lastWeek Top 4 ranking of factions by victory points in the past week + * + * @return $this + */ + public function setLastWeek($lastWeek) + { + $this->container['lastWeek'] = $lastWeek; + + return $this; + } + + /** + * Gets activeTotal + * + * @return \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsActiveTotal1[] + */ + public function getActiveTotal() + { + return $this->container['activeTotal']; + } + + /** + * Sets activeTotal + * + * @param \nullx27ESI\nullx27\ESI\Models\GetFwLeaderboardsActiveTotal1[] $activeTotal Top 4 ranking of factions active in faction warfare by total victory points. A faction is considered \"active\" if they have participated in faction warfare in the past 14 days. + * + * @return $this + */ + public function setActiveTotal($activeTotal) + { + $this->container['activeTotal'] = $activeTotal; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFwLeaderboardsYesterday.php b/src/nullx27/ESI/Models/GetFwLeaderboardsYesterday.php new file mode 100644 index 0000000..88006a5 --- /dev/null +++ b/src/nullx27/ESI/Models/GetFwLeaderboardsYesterday.php @@ -0,0 +1,333 @@ + 'int', + 'amount' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'factionId' => 'int32', + 'amount' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'factionId' => 'faction_id', + 'amount' => 'amount' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'factionId' => 'setFactionId', + 'amount' => 'setAmount' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'factionId' => 'getFactionId', + 'amount' => 'getAmount' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['factionId'] = isset($data['factionId']) ? $data['factionId'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets factionId + * + * @return int + */ + public function getFactionId() + { + return $this->container['factionId']; + } + + /** + * Sets factionId + * + * @param int $factionId faction_id integer + * + * @return $this + */ + public function setFactionId($factionId) + { + $this->container['factionId'] = $factionId; + + return $this; + } + + /** + * Gets amount + * + * @return int + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param int $amount Amount of kills + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFwLeaderboardsYesterday1.php b/src/nullx27/ESI/Models/GetFwLeaderboardsYesterday1.php new file mode 100644 index 0000000..1cf3449 --- /dev/null +++ b/src/nullx27/ESI/Models/GetFwLeaderboardsYesterday1.php @@ -0,0 +1,333 @@ + 'int', + 'amount' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'factionId' => 'int32', + 'amount' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'factionId' => 'faction_id', + 'amount' => 'amount' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'factionId' => 'setFactionId', + 'amount' => 'setAmount' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'factionId' => 'getFactionId', + 'amount' => 'getAmount' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['factionId'] = isset($data['factionId']) ? $data['factionId'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets factionId + * + * @return int + */ + public function getFactionId() + { + return $this->container['factionId']; + } + + /** + * Sets factionId + * + * @param int $factionId faction_id integer + * + * @return $this + */ + public function setFactionId($factionId) + { + $this->container['factionId'] = $factionId; + + return $this; + } + + /** + * Gets amount + * + * @return int + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param int $amount Amount of victory points + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFwStats200Ok.php b/src/nullx27/ESI/Models/GetFwStats200Ok.php new file mode 100644 index 0000000..f92cadf --- /dev/null +++ b/src/nullx27/ESI/Models/GetFwStats200Ok.php @@ -0,0 +1,453 @@ + 'int', + 'pilots' => 'int', + 'systemsControlled' => 'int', + 'kills' => '\nullx27ESI\nullx27\ESI\Models\GetFwStatsKills', + 'victoryPoints' => '\nullx27ESI\nullx27\ESI\Models\GetFwStatsVictoryPoints' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'factionId' => 'int32', + 'pilots' => 'int32', + 'systemsControlled' => 'int32', + 'kills' => null, + 'victoryPoints' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'factionId' => 'faction_id', + 'pilots' => 'pilots', + 'systemsControlled' => 'systems_controlled', + 'kills' => 'kills', + 'victoryPoints' => 'victory_points' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'factionId' => 'setFactionId', + 'pilots' => 'setPilots', + 'systemsControlled' => 'setSystemsControlled', + 'kills' => 'setKills', + 'victoryPoints' => 'setVictoryPoints' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'factionId' => 'getFactionId', + 'pilots' => 'getPilots', + 'systemsControlled' => 'getSystemsControlled', + 'kills' => 'getKills', + 'victoryPoints' => 'getVictoryPoints' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['factionId'] = isset($data['factionId']) ? $data['factionId'] : null; + $this->container['pilots'] = isset($data['pilots']) ? $data['pilots'] : null; + $this->container['systemsControlled'] = isset($data['systemsControlled']) ? $data['systemsControlled'] : null; + $this->container['kills'] = isset($data['kills']) ? $data['kills'] : null; + $this->container['victoryPoints'] = isset($data['victoryPoints']) ? $data['victoryPoints'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['factionId'] === null) { + $invalidProperties[] = "'factionId' can't be null"; + } + if ($this->container['pilots'] === null) { + $invalidProperties[] = "'pilots' can't be null"; + } + if ($this->container['systemsControlled'] === null) { + $invalidProperties[] = "'systemsControlled' can't be null"; + } + if ($this->container['kills'] === null) { + $invalidProperties[] = "'kills' can't be null"; + } + if ($this->container['victoryPoints'] === null) { + $invalidProperties[] = "'victoryPoints' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['factionId'] === null) { + return false; + } + if ($this->container['pilots'] === null) { + return false; + } + if ($this->container['systemsControlled'] === null) { + return false; + } + if ($this->container['kills'] === null) { + return false; + } + if ($this->container['victoryPoints'] === null) { + return false; + } + return true; + } + + + /** + * Gets factionId + * + * @return int + */ + public function getFactionId() + { + return $this->container['factionId']; + } + + /** + * Sets factionId + * + * @param int $factionId faction_id integer + * + * @return $this + */ + public function setFactionId($factionId) + { + $this->container['factionId'] = $factionId; + + return $this; + } + + /** + * Gets pilots + * + * @return int + */ + public function getPilots() + { + return $this->container['pilots']; + } + + /** + * Sets pilots + * + * @param int $pilots How many pilots fight for the given faction + * + * @return $this + */ + public function setPilots($pilots) + { + $this->container['pilots'] = $pilots; + + return $this; + } + + /** + * Gets systemsControlled + * + * @return int + */ + public function getSystemsControlled() + { + return $this->container['systemsControlled']; + } + + /** + * Sets systemsControlled + * + * @param int $systemsControlled The number of solar systems controlled by the given faction + * + * @return $this + */ + public function setSystemsControlled($systemsControlled) + { + $this->container['systemsControlled'] = $systemsControlled; + + return $this; + } + + /** + * Gets kills + * + * @return \nullx27ESI\nullx27\ESI\Models\GetFwStatsKills + */ + public function getKills() + { + return $this->container['kills']; + } + + /** + * Sets kills + * + * @param \nullx27ESI\nullx27\ESI\Models\GetFwStatsKills $kills kills + * + * @return $this + */ + public function setKills($kills) + { + $this->container['kills'] = $kills; + + return $this; + } + + /** + * Gets victoryPoints + * + * @return \nullx27ESI\nullx27\ESI\Models\GetFwStatsVictoryPoints + */ + public function getVictoryPoints() + { + return $this->container['victoryPoints']; + } + + /** + * Sets victoryPoints + * + * @param \nullx27ESI\nullx27\ESI\Models\GetFwStatsVictoryPoints $victoryPoints victoryPoints + * + * @return $this + */ + public function setVictoryPoints($victoryPoints) + { + $this->container['victoryPoints'] = $victoryPoints; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFwStatsKills.php b/src/nullx27/ESI/Models/GetFwStatsKills.php new file mode 100644 index 0000000..20c5015 --- /dev/null +++ b/src/nullx27/ESI/Models/GetFwStatsKills.php @@ -0,0 +1,381 @@ + 'int', + 'lastWeek' => 'int', + 'total' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'yesterday' => 'int32', + 'lastWeek' => 'int32', + 'total' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'yesterday' => 'yesterday', + 'lastWeek' => 'last_week', + 'total' => 'total' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'yesterday' => 'setYesterday', + 'lastWeek' => 'setLastWeek', + 'total' => 'setTotal' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'yesterday' => 'getYesterday', + 'lastWeek' => 'getLastWeek', + 'total' => 'getTotal' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['yesterday'] = isset($data['yesterday']) ? $data['yesterday'] : null; + $this->container['lastWeek'] = isset($data['lastWeek']) ? $data['lastWeek'] : null; + $this->container['total'] = isset($data['total']) ? $data['total'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['yesterday'] === null) { + $invalidProperties[] = "'yesterday' can't be null"; + } + if ($this->container['lastWeek'] === null) { + $invalidProperties[] = "'lastWeek' can't be null"; + } + if ($this->container['total'] === null) { + $invalidProperties[] = "'total' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['yesterday'] === null) { + return false; + } + if ($this->container['lastWeek'] === null) { + return false; + } + if ($this->container['total'] === null) { + return false; + } + return true; + } + + + /** + * Gets yesterday + * + * @return int + */ + public function getYesterday() + { + return $this->container['yesterday']; + } + + /** + * Sets yesterday + * + * @param int $yesterday Yesterday's total number of kills against enemy factions + * + * @return $this + */ + public function setYesterday($yesterday) + { + $this->container['yesterday'] = $yesterday; + + return $this; + } + + /** + * Gets lastWeek + * + * @return int + */ + public function getLastWeek() + { + return $this->container['lastWeek']; + } + + /** + * Sets lastWeek + * + * @param int $lastWeek Last week's total number of kills against enemy factions + * + * @return $this + */ + public function setLastWeek($lastWeek) + { + $this->container['lastWeek'] = $lastWeek; + + return $this; + } + + /** + * Gets total + * + * @return int + */ + public function getTotal() + { + return $this->container['total']; + } + + /** + * Sets total + * + * @param int $total Total number of kills against enemy factions since faction warfare began + * + * @return $this + */ + public function setTotal($total) + { + $this->container['total'] = $total; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFwStatsVictoryPoints.php b/src/nullx27/ESI/Models/GetFwStatsVictoryPoints.php new file mode 100644 index 0000000..390cbaa --- /dev/null +++ b/src/nullx27/ESI/Models/GetFwStatsVictoryPoints.php @@ -0,0 +1,381 @@ + 'int', + 'lastWeek' => 'int', + 'total' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'yesterday' => 'int32', + 'lastWeek' => 'int32', + 'total' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'yesterday' => 'yesterday', + 'lastWeek' => 'last_week', + 'total' => 'total' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'yesterday' => 'setYesterday', + 'lastWeek' => 'setLastWeek', + 'total' => 'setTotal' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'yesterday' => 'getYesterday', + 'lastWeek' => 'getLastWeek', + 'total' => 'getTotal' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['yesterday'] = isset($data['yesterday']) ? $data['yesterday'] : null; + $this->container['lastWeek'] = isset($data['lastWeek']) ? $data['lastWeek'] : null; + $this->container['total'] = isset($data['total']) ? $data['total'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['yesterday'] === null) { + $invalidProperties[] = "'yesterday' can't be null"; + } + if ($this->container['lastWeek'] === null) { + $invalidProperties[] = "'lastWeek' can't be null"; + } + if ($this->container['total'] === null) { + $invalidProperties[] = "'total' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['yesterday'] === null) { + return false; + } + if ($this->container['lastWeek'] === null) { + return false; + } + if ($this->container['total'] === null) { + return false; + } + return true; + } + + + /** + * Gets yesterday + * + * @return int + */ + public function getYesterday() + { + return $this->container['yesterday']; + } + + /** + * Sets yesterday + * + * @param int $yesterday Yesterday's victory points gained + * + * @return $this + */ + public function setYesterday($yesterday) + { + $this->container['yesterday'] = $yesterday; + + return $this; + } + + /** + * Gets lastWeek + * + * @return int + */ + public function getLastWeek() + { + return $this->container['lastWeek']; + } + + /** + * Sets lastWeek + * + * @param int $lastWeek Last week's victory points gained + * + * @return $this + */ + public function setLastWeek($lastWeek) + { + $this->container['lastWeek'] = $lastWeek; + + return $this; + } + + /** + * Gets total + * + * @return int + */ + public function getTotal() + { + return $this->container['total']; + } + + /** + * Sets total + * + * @param int $total Total victory points gained since faction warfare began + * + * @return $this + */ + public function setTotal($total) + { + $this->container['total'] = $total; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFwSystems200Ok.php b/src/nullx27/ESI/Models/GetFwSystems200Ok.php new file mode 100644 index 0000000..4c0c52d --- /dev/null +++ b/src/nullx27/ESI/Models/GetFwSystems200Ok.php @@ -0,0 +1,489 @@ + 'int', + 'ownerFactionId' => 'int', + 'occupierFactionId' => 'int', + 'victoryPoints' => 'int', + 'victoryPointsThreshold' => 'int', + 'contested' => 'bool' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'solarSystemId' => 'int32', + 'ownerFactionId' => 'int32', + 'occupierFactionId' => 'int32', + 'victoryPoints' => 'int32', + 'victoryPointsThreshold' => 'int32', + 'contested' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'solarSystemId' => 'solar_system_id', + 'ownerFactionId' => 'owner_faction_id', + 'occupierFactionId' => 'occupier_faction_id', + 'victoryPoints' => 'victory_points', + 'victoryPointsThreshold' => 'victory_points_threshold', + 'contested' => 'contested' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'solarSystemId' => 'setSolarSystemId', + 'ownerFactionId' => 'setOwnerFactionId', + 'occupierFactionId' => 'setOccupierFactionId', + 'victoryPoints' => 'setVictoryPoints', + 'victoryPointsThreshold' => 'setVictoryPointsThreshold', + 'contested' => 'setContested' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'solarSystemId' => 'getSolarSystemId', + 'ownerFactionId' => 'getOwnerFactionId', + 'occupierFactionId' => 'getOccupierFactionId', + 'victoryPoints' => 'getVictoryPoints', + 'victoryPointsThreshold' => 'getVictoryPointsThreshold', + 'contested' => 'getContested' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['solarSystemId'] = isset($data['solarSystemId']) ? $data['solarSystemId'] : null; + $this->container['ownerFactionId'] = isset($data['ownerFactionId']) ? $data['ownerFactionId'] : null; + $this->container['occupierFactionId'] = isset($data['occupierFactionId']) ? $data['occupierFactionId'] : null; + $this->container['victoryPoints'] = isset($data['victoryPoints']) ? $data['victoryPoints'] : null; + $this->container['victoryPointsThreshold'] = isset($data['victoryPointsThreshold']) ? $data['victoryPointsThreshold'] : null; + $this->container['contested'] = isset($data['contested']) ? $data['contested'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['solarSystemId'] === null) { + $invalidProperties[] = "'solarSystemId' can't be null"; + } + if ($this->container['ownerFactionId'] === null) { + $invalidProperties[] = "'ownerFactionId' can't be null"; + } + if ($this->container['occupierFactionId'] === null) { + $invalidProperties[] = "'occupierFactionId' can't be null"; + } + if ($this->container['victoryPoints'] === null) { + $invalidProperties[] = "'victoryPoints' can't be null"; + } + if ($this->container['victoryPointsThreshold'] === null) { + $invalidProperties[] = "'victoryPointsThreshold' can't be null"; + } + if ($this->container['contested'] === null) { + $invalidProperties[] = "'contested' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['solarSystemId'] === null) { + return false; + } + if ($this->container['ownerFactionId'] === null) { + return false; + } + if ($this->container['occupierFactionId'] === null) { + return false; + } + if ($this->container['victoryPoints'] === null) { + return false; + } + if ($this->container['victoryPointsThreshold'] === null) { + return false; + } + if ($this->container['contested'] === null) { + return false; + } + return true; + } + + + /** + * Gets solarSystemId + * + * @return int + */ + public function getSolarSystemId() + { + return $this->container['solarSystemId']; + } + + /** + * Sets solarSystemId + * + * @param int $solarSystemId solar_system_id integer + * + * @return $this + */ + public function setSolarSystemId($solarSystemId) + { + $this->container['solarSystemId'] = $solarSystemId; + + return $this; + } + + /** + * Gets ownerFactionId + * + * @return int + */ + public function getOwnerFactionId() + { + return $this->container['ownerFactionId']; + } + + /** + * Sets ownerFactionId + * + * @param int $ownerFactionId owner_faction_id integer + * + * @return $this + */ + public function setOwnerFactionId($ownerFactionId) + { + $this->container['ownerFactionId'] = $ownerFactionId; + + return $this; + } + + /** + * Gets occupierFactionId + * + * @return int + */ + public function getOccupierFactionId() + { + return $this->container['occupierFactionId']; + } + + /** + * Sets occupierFactionId + * + * @param int $occupierFactionId occupier_faction_id integer + * + * @return $this + */ + public function setOccupierFactionId($occupierFactionId) + { + $this->container['occupierFactionId'] = $occupierFactionId; + + return $this; + } + + /** + * Gets victoryPoints + * + * @return int + */ + public function getVictoryPoints() + { + return $this->container['victoryPoints']; + } + + /** + * Sets victoryPoints + * + * @param int $victoryPoints victory_points integer + * + * @return $this + */ + public function setVictoryPoints($victoryPoints) + { + $this->container['victoryPoints'] = $victoryPoints; + + return $this; + } + + /** + * Gets victoryPointsThreshold + * + * @return int + */ + public function getVictoryPointsThreshold() + { + return $this->container['victoryPointsThreshold']; + } + + /** + * Sets victoryPointsThreshold + * + * @param int $victoryPointsThreshold victory_points_threshold integer + * + * @return $this + */ + public function setVictoryPointsThreshold($victoryPointsThreshold) + { + $this->container['victoryPointsThreshold'] = $victoryPointsThreshold; + + return $this; + } + + /** + * Gets contested + * + * @return bool + */ + public function getContested() + { + return $this->container['contested']; + } + + /** + * Sets contested + * + * @param bool $contested contested boolean + * + * @return $this + */ + public function setContested($contested) + { + $this->container['contested'] = $contested; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetFwWars200Ok.php b/src/nullx27/ESI/Models/GetFwWars200Ok.php new file mode 100644 index 0000000..24b6627 --- /dev/null +++ b/src/nullx27/ESI/Models/GetFwWars200Ok.php @@ -0,0 +1,345 @@ + 'int', + 'againstId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'factionId' => 'int32', + 'againstId' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'factionId' => 'faction_id', + 'againstId' => 'against_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'factionId' => 'setFactionId', + 'againstId' => 'setAgainstId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'factionId' => 'getFactionId', + 'againstId' => 'getAgainstId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['factionId'] = isset($data['factionId']) ? $data['factionId'] : null; + $this->container['againstId'] = isset($data['againstId']) ? $data['againstId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['factionId'] === null) { + $invalidProperties[] = "'factionId' can't be null"; + } + if ($this->container['againstId'] === null) { + $invalidProperties[] = "'againstId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['factionId'] === null) { + return false; + } + if ($this->container['againstId'] === null) { + return false; + } + return true; + } + + + /** + * Gets factionId + * + * @return int + */ + public function getFactionId() + { + return $this->container['factionId']; + } + + /** + * Sets factionId + * + * @param int $factionId faction_id integer + * + * @return $this + */ + public function setFactionId($factionId) + { + $this->container['factionId'] = $factionId; + + return $this; + } + + /** + * Gets againstId + * + * @return int + */ + public function getAgainstId() + { + return $this->container['againstId']; + } + + /** + * Sets againstId + * + * @param int $againstId The faction ID of the enemy faction. + * + * @return $this + */ + public function setAgainstId($againstId) + { + $this->container['againstId'] = $againstId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetIncursions200Ok.php b/src/nullx27/ESI/Models/GetIncursions200Ok.php new file mode 100644 index 0000000..cfd3a9f --- /dev/null +++ b/src/nullx27/ESI/Models/GetIncursions200Ok.php @@ -0,0 +1,599 @@ + 'string', + 'state' => 'string', + 'influence' => 'float', + 'hasBoss' => 'bool', + 'factionId' => 'int', + 'constellationId' => 'int', + 'stagingSolarSystemId' => 'int', + 'infestedSolarSystems' => 'int[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'type' => null, + 'state' => null, + 'influence' => 'float', + 'hasBoss' => null, + 'factionId' => 'int32', + 'constellationId' => 'int32', + 'stagingSolarSystemId' => 'int32', + 'infestedSolarSystems' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'type' => 'type', + 'state' => 'state', + 'influence' => 'influence', + 'hasBoss' => 'has_boss', + 'factionId' => 'faction_id', + 'constellationId' => 'constellation_id', + 'stagingSolarSystemId' => 'staging_solar_system_id', + 'infestedSolarSystems' => 'infested_solar_systems' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'type' => 'setType', + 'state' => 'setState', + 'influence' => 'setInfluence', + 'hasBoss' => 'setHasBoss', + 'factionId' => 'setFactionId', + 'constellationId' => 'setConstellationId', + 'stagingSolarSystemId' => 'setStagingSolarSystemId', + 'infestedSolarSystems' => 'setInfestedSolarSystems' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'type' => 'getType', + 'state' => 'getState', + 'influence' => 'getInfluence', + 'hasBoss' => 'getHasBoss', + 'factionId' => 'getFactionId', + 'constellationId' => 'getConstellationId', + 'stagingSolarSystemId' => 'getStagingSolarSystemId', + 'infestedSolarSystems' => 'getInfestedSolarSystems' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const STATE_WITHDRAWING = 'withdrawing'; + const STATE_MOBILIZING = 'mobilizing'; + const STATE_ESTABLISHED = 'established'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getStateAllowableValues() + { + return [ + self::STATE_WITHDRAWING, + self::STATE_MOBILIZING, + self::STATE_ESTABLISHED, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['type'] = isset($data['type']) ? $data['type'] : null; + $this->container['state'] = isset($data['state']) ? $data['state'] : null; + $this->container['influence'] = isset($data['influence']) ? $data['influence'] : null; + $this->container['hasBoss'] = isset($data['hasBoss']) ? $data['hasBoss'] : null; + $this->container['factionId'] = isset($data['factionId']) ? $data['factionId'] : null; + $this->container['constellationId'] = isset($data['constellationId']) ? $data['constellationId'] : null; + $this->container['stagingSolarSystemId'] = isset($data['stagingSolarSystemId']) ? $data['stagingSolarSystemId'] : null; + $this->container['infestedSolarSystems'] = isset($data['infestedSolarSystems']) ? $data['infestedSolarSystems'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + if ($this->container['state'] === null) { + $invalidProperties[] = "'state' can't be null"; + } + $allowedValues = $this->getStateAllowableValues(); + if (!in_array($this->container['state'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'state', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['influence'] === null) { + $invalidProperties[] = "'influence' can't be null"; + } + if ($this->container['hasBoss'] === null) { + $invalidProperties[] = "'hasBoss' can't be null"; + } + if ($this->container['factionId'] === null) { + $invalidProperties[] = "'factionId' can't be null"; + } + if ($this->container['constellationId'] === null) { + $invalidProperties[] = "'constellationId' can't be null"; + } + if ($this->container['stagingSolarSystemId'] === null) { + $invalidProperties[] = "'stagingSolarSystemId' can't be null"; + } + if ($this->container['infestedSolarSystems'] === null) { + $invalidProperties[] = "'infestedSolarSystems' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['type'] === null) { + return false; + } + if ($this->container['state'] === null) { + return false; + } + $allowedValues = $this->getStateAllowableValues(); + if (!in_array($this->container['state'], $allowedValues)) { + return false; + } + if ($this->container['influence'] === null) { + return false; + } + if ($this->container['hasBoss'] === null) { + return false; + } + if ($this->container['factionId'] === null) { + return false; + } + if ($this->container['constellationId'] === null) { + return false; + } + if ($this->container['stagingSolarSystemId'] === null) { + return false; + } + if ($this->container['infestedSolarSystems'] === null) { + return false; + } + return true; + } + + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type The type of this incursion + * + * @return $this + */ + public function setType($type) + { + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets state + * + * @return string + */ + public function getState() + { + return $this->container['state']; + } + + /** + * Sets state + * + * @param string $state The state of this incursion + * + * @return $this + */ + public function setState($state) + { + $allowedValues = $this->getStateAllowableValues(); + if (!in_array($state, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'state', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['state'] = $state; + + return $this; + } + + /** + * Gets influence + * + * @return float + */ + public function getInfluence() + { + return $this->container['influence']; + } + + /** + * Sets influence + * + * @param float $influence Influence of this incursion as a float from 0 to 1 + * + * @return $this + */ + public function setInfluence($influence) + { + $this->container['influence'] = $influence; + + return $this; + } + + /** + * Gets hasBoss + * + * @return bool + */ + public function getHasBoss() + { + return $this->container['hasBoss']; + } + + /** + * Sets hasBoss + * + * @param bool $hasBoss Whether the final encounter has boss or not + * + * @return $this + */ + public function setHasBoss($hasBoss) + { + $this->container['hasBoss'] = $hasBoss; + + return $this; + } + + /** + * Gets factionId + * + * @return int + */ + public function getFactionId() + { + return $this->container['factionId']; + } + + /** + * Sets factionId + * + * @param int $factionId The attacking faction's id + * + * @return $this + */ + public function setFactionId($factionId) + { + $this->container['factionId'] = $factionId; + + return $this; + } + + /** + * Gets constellationId + * + * @return int + */ + public function getConstellationId() + { + return $this->container['constellationId']; + } + + /** + * Sets constellationId + * + * @param int $constellationId The constellation id in which this incursion takes place + * + * @return $this + */ + public function setConstellationId($constellationId) + { + $this->container['constellationId'] = $constellationId; + + return $this; + } + + /** + * Gets stagingSolarSystemId + * + * @return int + */ + public function getStagingSolarSystemId() + { + return $this->container['stagingSolarSystemId']; + } + + /** + * Sets stagingSolarSystemId + * + * @param int $stagingSolarSystemId Staging solar system for this incursion + * + * @return $this + */ + public function setStagingSolarSystemId($stagingSolarSystemId) + { + $this->container['stagingSolarSystemId'] = $stagingSolarSystemId; + + return $this; + } + + /** + * Gets infestedSolarSystems + * + * @return int[] + */ + public function getInfestedSolarSystems() + { + return $this->container['infestedSolarSystems']; + } + + /** + * Sets infestedSolarSystems + * + * @param int[] $infestedSolarSystems A list of infested solar system ids that are a part of this incursion + * + * @return $this + */ + public function setInfestedSolarSystems($infestedSolarSystems) + { + $this->container['infestedSolarSystems'] = $infestedSolarSystems; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetIndustryFacilities200Ok.php b/src/nullx27/ESI/Models/GetIndustryFacilities200Ok.php new file mode 100644 index 0000000..053776a --- /dev/null +++ b/src/nullx27/ESI/Models/GetIndustryFacilities200Ok.php @@ -0,0 +1,483 @@ + 'int', + 'tax' => 'float', + 'ownerId' => 'int', + 'typeId' => 'int', + 'solarSystemId' => 'int', + 'regionId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'facilityId' => 'int64', + 'tax' => 'float', + 'ownerId' => 'int32', + 'typeId' => 'int32', + 'solarSystemId' => 'int32', + 'regionId' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'facilityId' => 'facility_id', + 'tax' => 'tax', + 'ownerId' => 'owner_id', + 'typeId' => 'type_id', + 'solarSystemId' => 'solar_system_id', + 'regionId' => 'region_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'facilityId' => 'setFacilityId', + 'tax' => 'setTax', + 'ownerId' => 'setOwnerId', + 'typeId' => 'setTypeId', + 'solarSystemId' => 'setSolarSystemId', + 'regionId' => 'setRegionId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'facilityId' => 'getFacilityId', + 'tax' => 'getTax', + 'ownerId' => 'getOwnerId', + 'typeId' => 'getTypeId', + 'solarSystemId' => 'getSolarSystemId', + 'regionId' => 'getRegionId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['facilityId'] = isset($data['facilityId']) ? $data['facilityId'] : null; + $this->container['tax'] = isset($data['tax']) ? $data['tax'] : null; + $this->container['ownerId'] = isset($data['ownerId']) ? $data['ownerId'] : null; + $this->container['typeId'] = isset($data['typeId']) ? $data['typeId'] : null; + $this->container['solarSystemId'] = isset($data['solarSystemId']) ? $data['solarSystemId'] : null; + $this->container['regionId'] = isset($data['regionId']) ? $data['regionId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['facilityId'] === null) { + $invalidProperties[] = "'facilityId' can't be null"; + } + if ($this->container['ownerId'] === null) { + $invalidProperties[] = "'ownerId' can't be null"; + } + if ($this->container['typeId'] === null) { + $invalidProperties[] = "'typeId' can't be null"; + } + if ($this->container['solarSystemId'] === null) { + $invalidProperties[] = "'solarSystemId' can't be null"; + } + if ($this->container['regionId'] === null) { + $invalidProperties[] = "'regionId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['facilityId'] === null) { + return false; + } + if ($this->container['ownerId'] === null) { + return false; + } + if ($this->container['typeId'] === null) { + return false; + } + if ($this->container['solarSystemId'] === null) { + return false; + } + if ($this->container['regionId'] === null) { + return false; + } + return true; + } + + + /** + * Gets facilityId + * + * @return int + */ + public function getFacilityId() + { + return $this->container['facilityId']; + } + + /** + * Sets facilityId + * + * @param int $facilityId ID of the facility + * + * @return $this + */ + public function setFacilityId($facilityId) + { + $this->container['facilityId'] = $facilityId; + + return $this; + } + + /** + * Gets tax + * + * @return float + */ + public function getTax() + { + return $this->container['tax']; + } + + /** + * Sets tax + * + * @param float $tax Tax imposed by the facility + * + * @return $this + */ + public function setTax($tax) + { + $this->container['tax'] = $tax; + + return $this; + } + + /** + * Gets ownerId + * + * @return int + */ + public function getOwnerId() + { + return $this->container['ownerId']; + } + + /** + * Sets ownerId + * + * @param int $ownerId Owner of the facility + * + * @return $this + */ + public function setOwnerId($ownerId) + { + $this->container['ownerId'] = $ownerId; + + return $this; + } + + /** + * Gets typeId + * + * @return int + */ + public function getTypeId() + { + return $this->container['typeId']; + } + + /** + * Sets typeId + * + * @param int $typeId Type ID of the facility + * + * @return $this + */ + public function setTypeId($typeId) + { + $this->container['typeId'] = $typeId; + + return $this; + } + + /** + * Gets solarSystemId + * + * @return int + */ + public function getSolarSystemId() + { + return $this->container['solarSystemId']; + } + + /** + * Sets solarSystemId + * + * @param int $solarSystemId Solar system ID where the facility is + * + * @return $this + */ + public function setSolarSystemId($solarSystemId) + { + $this->container['solarSystemId'] = $solarSystemId; + + return $this; + } + + /** + * Gets regionId + * + * @return int + */ + public function getRegionId() + { + return $this->container['regionId']; + } + + /** + * Sets regionId + * + * @param int $regionId Region ID where the facility is + * + * @return $this + */ + public function setRegionId($regionId) + { + $this->container['regionId'] = $regionId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetIndustrySystems200Ok.php b/src/nullx27/ESI/Models/GetIndustrySystems200Ok.php new file mode 100644 index 0000000..17d3668 --- /dev/null +++ b/src/nullx27/ESI/Models/GetIndustrySystems200Ok.php @@ -0,0 +1,345 @@ + 'int', + 'costIndices' => '\nullx27ESI\nullx27\ESI\Models\GetIndustrySystemsCostIndice[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'solarSystemId' => 'int32', + 'costIndices' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'solarSystemId' => 'solar_system_id', + 'costIndices' => 'cost_indices' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'solarSystemId' => 'setSolarSystemId', + 'costIndices' => 'setCostIndices' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'solarSystemId' => 'getSolarSystemId', + 'costIndices' => 'getCostIndices' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['solarSystemId'] = isset($data['solarSystemId']) ? $data['solarSystemId'] : null; + $this->container['costIndices'] = isset($data['costIndices']) ? $data['costIndices'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['solarSystemId'] === null) { + $invalidProperties[] = "'solarSystemId' can't be null"; + } + if ($this->container['costIndices'] === null) { + $invalidProperties[] = "'costIndices' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['solarSystemId'] === null) { + return false; + } + if ($this->container['costIndices'] === null) { + return false; + } + return true; + } + + + /** + * Gets solarSystemId + * + * @return int + */ + public function getSolarSystemId() + { + return $this->container['solarSystemId']; + } + + /** + * Sets solarSystemId + * + * @param int $solarSystemId solar_system_id integer + * + * @return $this + */ + public function setSolarSystemId($solarSystemId) + { + $this->container['solarSystemId'] = $solarSystemId; + + return $this; + } + + /** + * Gets costIndices + * + * @return \nullx27ESI\nullx27\ESI\Models\GetIndustrySystemsCostIndice[] + */ + public function getCostIndices() + { + return $this->container['costIndices']; + } + + /** + * Sets costIndices + * + * @param \nullx27ESI\nullx27\ESI\Models\GetIndustrySystemsCostIndice[] $costIndices cost_indices array + * + * @return $this + */ + public function setCostIndices($costIndices) + { + $this->container['costIndices'] = $costIndices; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetIndustrySystemsCostIndice.php b/src/nullx27/ESI/Models/GetIndustrySystemsCostIndice.php new file mode 100644 index 0000000..d454e5d --- /dev/null +++ b/src/nullx27/ESI/Models/GetIndustrySystemsCostIndice.php @@ -0,0 +1,397 @@ + 'string', + 'costIndex' => 'float' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'activity' => null, + 'costIndex' => 'float' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'activity' => 'activity', + 'costIndex' => 'cost_index' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'activity' => 'setActivity', + 'costIndex' => 'setCostIndex' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'activity' => 'getActivity', + 'costIndex' => 'getCostIndex' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const ACTIVITY_COPYING = 'copying'; + const ACTIVITY_DUPLICATING = 'duplicating'; + const ACTIVITY_INVENTION = 'invention'; + const ACTIVITY_MANUFACTURING = 'manufacturing'; + const ACTIVITY_NONE = 'none'; + const ACTIVITY_REACTION = 'reaction'; + const ACTIVITY_RESEARCHING_MATERIAL_EFFICIENCY = 'researching_material_efficiency'; + const ACTIVITY_RESEARCHING_TECHNOLOGY = 'researching_technology'; + const ACTIVITY_RESEARCHING_TIME_EFFICIENCY = 'researching_time_efficiency'; + const ACTIVITY_REVERSE_ENGINEERING = 'reverse_engineering'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getActivityAllowableValues() + { + return [ + self::ACTIVITY_COPYING, + self::ACTIVITY_DUPLICATING, + self::ACTIVITY_INVENTION, + self::ACTIVITY_MANUFACTURING, + self::ACTIVITY_NONE, + self::ACTIVITY_REACTION, + self::ACTIVITY_RESEARCHING_MATERIAL_EFFICIENCY, + self::ACTIVITY_RESEARCHING_TECHNOLOGY, + self::ACTIVITY_RESEARCHING_TIME_EFFICIENCY, + self::ACTIVITY_REVERSE_ENGINEERING, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['activity'] = isset($data['activity']) ? $data['activity'] : null; + $this->container['costIndex'] = isset($data['costIndex']) ? $data['costIndex'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['activity'] === null) { + $invalidProperties[] = "'activity' can't be null"; + } + $allowedValues = $this->getActivityAllowableValues(); + if (!in_array($this->container['activity'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'activity', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['costIndex'] === null) { + $invalidProperties[] = "'costIndex' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['activity'] === null) { + return false; + } + $allowedValues = $this->getActivityAllowableValues(); + if (!in_array($this->container['activity'], $allowedValues)) { + return false; + } + if ($this->container['costIndex'] === null) { + return false; + } + return true; + } + + + /** + * Gets activity + * + * @return string + */ + public function getActivity() + { + return $this->container['activity']; + } + + /** + * Sets activity + * + * @param string $activity activity string + * + * @return $this + */ + public function setActivity($activity) + { + $allowedValues = $this->getActivityAllowableValues(); + if (!in_array($activity, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'activity', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['activity'] = $activity; + + return $this; + } + + /** + * Gets costIndex + * + * @return float + */ + public function getCostIndex() + { + return $this->container['costIndex']; + } + + /** + * Sets costIndex + * + * @param float $costIndex cost_index number + * + * @return $this + */ + public function setCostIndex($costIndex) + { + $this->container['costIndex'] = $costIndex; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetInsurancePrices200Ok.php b/src/nullx27/ESI/Models/GetInsurancePrices200Ok.php new file mode 100644 index 0000000..f9cbc11 --- /dev/null +++ b/src/nullx27/ESI/Models/GetInsurancePrices200Ok.php @@ -0,0 +1,345 @@ + 'int', + 'levels' => '\nullx27ESI\nullx27\ESI\Models\GetInsurancePricesLevel[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'typeId' => 'int32', + 'levels' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'typeId' => 'type_id', + 'levels' => 'levels' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'typeId' => 'setTypeId', + 'levels' => 'setLevels' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'typeId' => 'getTypeId', + 'levels' => 'getLevels' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['typeId'] = isset($data['typeId']) ? $data['typeId'] : null; + $this->container['levels'] = isset($data['levels']) ? $data['levels'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['typeId'] === null) { + $invalidProperties[] = "'typeId' can't be null"; + } + if ($this->container['levels'] === null) { + $invalidProperties[] = "'levels' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['typeId'] === null) { + return false; + } + if ($this->container['levels'] === null) { + return false; + } + return true; + } + + + /** + * Gets typeId + * + * @return int + */ + public function getTypeId() + { + return $this->container['typeId']; + } + + /** + * Sets typeId + * + * @param int $typeId type_id integer + * + * @return $this + */ + public function setTypeId($typeId) + { + $this->container['typeId'] = $typeId; + + return $this; + } + + /** + * Gets levels + * + * @return \nullx27ESI\nullx27\ESI\Models\GetInsurancePricesLevel[] + */ + public function getLevels() + { + return $this->container['levels']; + } + + /** + * Sets levels + * + * @param \nullx27ESI\nullx27\ESI\Models\GetInsurancePricesLevel[] $levels A list of a available insurance levels for this ship type + * + * @return $this + */ + public function setLevels($levels) + { + $this->container['levels'] = $levels; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetInsurancePricesLevel.php b/src/nullx27/ESI/Models/GetInsurancePricesLevel.php new file mode 100644 index 0000000..36de6f5 --- /dev/null +++ b/src/nullx27/ESI/Models/GetInsurancePricesLevel.php @@ -0,0 +1,381 @@ + 'float', + 'payout' => 'float', + 'name' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'cost' => 'float', + 'payout' => 'float', + 'name' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'cost' => 'cost', + 'payout' => 'payout', + 'name' => 'name' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'cost' => 'setCost', + 'payout' => 'setPayout', + 'name' => 'setName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'cost' => 'getCost', + 'payout' => 'getPayout', + 'name' => 'getName' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['cost'] = isset($data['cost']) ? $data['cost'] : null; + $this->container['payout'] = isset($data['payout']) ? $data['payout'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['cost'] === null) { + $invalidProperties[] = "'cost' can't be null"; + } + if ($this->container['payout'] === null) { + $invalidProperties[] = "'payout' can't be null"; + } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['cost'] === null) { + return false; + } + if ($this->container['payout'] === null) { + return false; + } + if ($this->container['name'] === null) { + return false; + } + return true; + } + + + /** + * Gets cost + * + * @return float + */ + public function getCost() + { + return $this->container['cost']; + } + + /** + * Sets cost + * + * @param float $cost cost number + * + * @return $this + */ + public function setCost($cost) + { + $this->container['cost'] = $cost; + + return $this; + } + + /** + * Gets payout + * + * @return float + */ + public function getPayout() + { + return $this->container['payout']; + } + + /** + * Sets payout + * + * @param float $payout payout number + * + * @return $this + */ + public function setPayout($payout) + { + $this->container['payout'] = $payout; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name Localized insurance level + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetKillmailsKillmailIdKillmailHashAttacker.php b/src/nullx27/ESI/Models/GetKillmailsKillmailIdKillmailHashAttacker.php new file mode 100644 index 0000000..ae969c0 --- /dev/null +++ b/src/nullx27/ESI/Models/GetKillmailsKillmailIdKillmailHashAttacker.php @@ -0,0 +1,561 @@ + 'int', + 'corporationId' => 'int', + 'allianceId' => 'int', + 'factionId' => 'int', + 'securityStatus' => 'float', + 'finalBlow' => 'bool', + 'damageDone' => 'int', + 'shipTypeId' => 'int', + 'weaponTypeId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'characterId' => 'int32', + 'corporationId' => 'int32', + 'allianceId' => 'int32', + 'factionId' => 'int32', + 'securityStatus' => 'float', + 'finalBlow' => null, + 'damageDone' => 'int32', + 'shipTypeId' => 'int32', + 'weaponTypeId' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'characterId' => 'character_id', + 'corporationId' => 'corporation_id', + 'allianceId' => 'alliance_id', + 'factionId' => 'faction_id', + 'securityStatus' => 'security_status', + 'finalBlow' => 'final_blow', + 'damageDone' => 'damage_done', + 'shipTypeId' => 'ship_type_id', + 'weaponTypeId' => 'weapon_type_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'characterId' => 'setCharacterId', + 'corporationId' => 'setCorporationId', + 'allianceId' => 'setAllianceId', + 'factionId' => 'setFactionId', + 'securityStatus' => 'setSecurityStatus', + 'finalBlow' => 'setFinalBlow', + 'damageDone' => 'setDamageDone', + 'shipTypeId' => 'setShipTypeId', + 'weaponTypeId' => 'setWeaponTypeId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'characterId' => 'getCharacterId', + 'corporationId' => 'getCorporationId', + 'allianceId' => 'getAllianceId', + 'factionId' => 'getFactionId', + 'securityStatus' => 'getSecurityStatus', + 'finalBlow' => 'getFinalBlow', + 'damageDone' => 'getDamageDone', + 'shipTypeId' => 'getShipTypeId', + 'weaponTypeId' => 'getWeaponTypeId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['characterId'] = isset($data['characterId']) ? $data['characterId'] : null; + $this->container['corporationId'] = isset($data['corporationId']) ? $data['corporationId'] : null; + $this->container['allianceId'] = isset($data['allianceId']) ? $data['allianceId'] : null; + $this->container['factionId'] = isset($data['factionId']) ? $data['factionId'] : null; + $this->container['securityStatus'] = isset($data['securityStatus']) ? $data['securityStatus'] : null; + $this->container['finalBlow'] = isset($data['finalBlow']) ? $data['finalBlow'] : null; + $this->container['damageDone'] = isset($data['damageDone']) ? $data['damageDone'] : null; + $this->container['shipTypeId'] = isset($data['shipTypeId']) ? $data['shipTypeId'] : null; + $this->container['weaponTypeId'] = isset($data['weaponTypeId']) ? $data['weaponTypeId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['securityStatus'] === null) { + $invalidProperties[] = "'securityStatus' can't be null"; + } + if ($this->container['finalBlow'] === null) { + $invalidProperties[] = "'finalBlow' can't be null"; + } + if ($this->container['damageDone'] === null) { + $invalidProperties[] = "'damageDone' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['securityStatus'] === null) { + return false; + } + if ($this->container['finalBlow'] === null) { + return false; + } + if ($this->container['damageDone'] === null) { + return false; + } + return true; + } + + + /** + * Gets characterId + * + * @return int + */ + public function getCharacterId() + { + return $this->container['characterId']; + } + + /** + * Sets characterId + * + * @param int $characterId character_id integer + * + * @return $this + */ + public function setCharacterId($characterId) + { + $this->container['characterId'] = $characterId; + + return $this; + } + + /** + * Gets corporationId + * + * @return int + */ + public function getCorporationId() + { + return $this->container['corporationId']; + } + + /** + * Sets corporationId + * + * @param int $corporationId corporation_id integer + * + * @return $this + */ + public function setCorporationId($corporationId) + { + $this->container['corporationId'] = $corporationId; + + return $this; + } + + /** + * Gets allianceId + * + * @return int + */ + public function getAllianceId() + { + return $this->container['allianceId']; + } + + /** + * Sets allianceId + * + * @param int $allianceId alliance_id integer + * + * @return $this + */ + public function setAllianceId($allianceId) + { + $this->container['allianceId'] = $allianceId; + + return $this; + } + + /** + * Gets factionId + * + * @return int + */ + public function getFactionId() + { + return $this->container['factionId']; + } + + /** + * Sets factionId + * + * @param int $factionId faction_id integer + * + * @return $this + */ + public function setFactionId($factionId) + { + $this->container['factionId'] = $factionId; + + return $this; + } + + /** + * Gets securityStatus + * + * @return float + */ + public function getSecurityStatus() + { + return $this->container['securityStatus']; + } + + /** + * Sets securityStatus + * + * @param float $securityStatus Security status for the attacker + * + * @return $this + */ + public function setSecurityStatus($securityStatus) + { + $this->container['securityStatus'] = $securityStatus; + + return $this; + } + + /** + * Gets finalBlow + * + * @return bool + */ + public function getFinalBlow() + { + return $this->container['finalBlow']; + } + + /** + * Sets finalBlow + * + * @param bool $finalBlow Was the attacker the one to achieve the final blow + * + * @return $this + */ + public function setFinalBlow($finalBlow) + { + $this->container['finalBlow'] = $finalBlow; + + return $this; + } + + /** + * Gets damageDone + * + * @return int + */ + public function getDamageDone() + { + return $this->container['damageDone']; + } + + /** + * Sets damageDone + * + * @param int $damageDone damage_done integer + * + * @return $this + */ + public function setDamageDone($damageDone) + { + $this->container['damageDone'] = $damageDone; + + return $this; + } + + /** + * Gets shipTypeId + * + * @return int + */ + public function getShipTypeId() + { + return $this->container['shipTypeId']; + } + + /** + * Sets shipTypeId + * + * @param int $shipTypeId What ship was the attacker flying + * + * @return $this + */ + public function setShipTypeId($shipTypeId) + { + $this->container['shipTypeId'] = $shipTypeId; + + return $this; + } + + /** + * Gets weaponTypeId + * + * @return int + */ + public function getWeaponTypeId() + { + return $this->container['weaponTypeId']; + } + + /** + * Sets weaponTypeId + * + * @param int $weaponTypeId What weapon was used by the attacker for the kill + * + * @return $this + */ + public function setWeaponTypeId($weaponTypeId) + { + $this->container['weaponTypeId'] = $weaponTypeId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetKillmailsKillmailIdKillmailHashItem.php b/src/nullx27/ESI/Models/GetKillmailsKillmailIdKillmailHashItem.php new file mode 100644 index 0000000..6bfdc77 --- /dev/null +++ b/src/nullx27/ESI/Models/GetKillmailsKillmailIdKillmailHashItem.php @@ -0,0 +1,441 @@ + 'int', + 'quantityDestroyed' => 'int', + 'quantityDropped' => 'int', + 'singleton' => 'int', + 'flag' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'itemTypeId' => 'int32', + 'quantityDestroyed' => 'int64', + 'quantityDropped' => 'int64', + 'singleton' => 'int32', + 'flag' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'itemTypeId' => 'item_type_id', + 'quantityDestroyed' => 'quantity_destroyed', + 'quantityDropped' => 'quantity_dropped', + 'singleton' => 'singleton', + 'flag' => 'flag' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'itemTypeId' => 'setItemTypeId', + 'quantityDestroyed' => 'setQuantityDestroyed', + 'quantityDropped' => 'setQuantityDropped', + 'singleton' => 'setSingleton', + 'flag' => 'setFlag' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'itemTypeId' => 'getItemTypeId', + 'quantityDestroyed' => 'getQuantityDestroyed', + 'quantityDropped' => 'getQuantityDropped', + 'singleton' => 'getSingleton', + 'flag' => 'getFlag' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['itemTypeId'] = isset($data['itemTypeId']) ? $data['itemTypeId'] : null; + $this->container['quantityDestroyed'] = isset($data['quantityDestroyed']) ? $data['quantityDestroyed'] : null; + $this->container['quantityDropped'] = isset($data['quantityDropped']) ? $data['quantityDropped'] : null; + $this->container['singleton'] = isset($data['singleton']) ? $data['singleton'] : null; + $this->container['flag'] = isset($data['flag']) ? $data['flag'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['itemTypeId'] === null) { + $invalidProperties[] = "'itemTypeId' can't be null"; + } + if ($this->container['singleton'] === null) { + $invalidProperties[] = "'singleton' can't be null"; + } + if ($this->container['flag'] === null) { + $invalidProperties[] = "'flag' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['itemTypeId'] === null) { + return false; + } + if ($this->container['singleton'] === null) { + return false; + } + if ($this->container['flag'] === null) { + return false; + } + return true; + } + + + /** + * Gets itemTypeId + * + * @return int + */ + public function getItemTypeId() + { + return $this->container['itemTypeId']; + } + + /** + * Sets itemTypeId + * + * @param int $itemTypeId item_type_id integer + * + * @return $this + */ + public function setItemTypeId($itemTypeId) + { + $this->container['itemTypeId'] = $itemTypeId; + + return $this; + } + + /** + * Gets quantityDestroyed + * + * @return int + */ + public function getQuantityDestroyed() + { + return $this->container['quantityDestroyed']; + } + + /** + * Sets quantityDestroyed + * + * @param int $quantityDestroyed quantity_destroyed integer + * + * @return $this + */ + public function setQuantityDestroyed($quantityDestroyed) + { + $this->container['quantityDestroyed'] = $quantityDestroyed; + + return $this; + } + + /** + * Gets quantityDropped + * + * @return int + */ + public function getQuantityDropped() + { + return $this->container['quantityDropped']; + } + + /** + * Sets quantityDropped + * + * @param int $quantityDropped quantity_dropped integer + * + * @return $this + */ + public function setQuantityDropped($quantityDropped) + { + $this->container['quantityDropped'] = $quantityDropped; + + return $this; + } + + /** + * Gets singleton + * + * @return int + */ + public function getSingleton() + { + return $this->container['singleton']; + } + + /** + * Sets singleton + * + * @param int $singleton singleton integer + * + * @return $this + */ + public function setSingleton($singleton) + { + $this->container['singleton'] = $singleton; + + return $this; + } + + /** + * Gets flag + * + * @return int + */ + public function getFlag() + { + return $this->container['flag']; + } + + /** + * Sets flag + * + * @param int $flag flag integer + * + * @return $this + */ + public function setFlag($flag) + { + $this->container['flag'] = $flag; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetKillmailsKillmailIdKillmailHashItem1.php b/src/nullx27/ESI/Models/GetKillmailsKillmailIdKillmailHashItem1.php new file mode 100644 index 0000000..c614682 --- /dev/null +++ b/src/nullx27/ESI/Models/GetKillmailsKillmailIdKillmailHashItem1.php @@ -0,0 +1,471 @@ + 'int', + 'quantityDestroyed' => 'int', + 'quantityDropped' => 'int', + 'singleton' => 'int', + 'flag' => 'int', + 'items' => '\nullx27ESI\nullx27\ESI\Models\GetKillmailsKillmailIdKillmailHashItem[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'itemTypeId' => 'int32', + 'quantityDestroyed' => 'int64', + 'quantityDropped' => 'int64', + 'singleton' => 'int32', + 'flag' => 'int32', + 'items' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'itemTypeId' => 'item_type_id', + 'quantityDestroyed' => 'quantity_destroyed', + 'quantityDropped' => 'quantity_dropped', + 'singleton' => 'singleton', + 'flag' => 'flag', + 'items' => 'items' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'itemTypeId' => 'setItemTypeId', + 'quantityDestroyed' => 'setQuantityDestroyed', + 'quantityDropped' => 'setQuantityDropped', + 'singleton' => 'setSingleton', + 'flag' => 'setFlag', + 'items' => 'setItems' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'itemTypeId' => 'getItemTypeId', + 'quantityDestroyed' => 'getQuantityDestroyed', + 'quantityDropped' => 'getQuantityDropped', + 'singleton' => 'getSingleton', + 'flag' => 'getFlag', + 'items' => 'getItems' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['itemTypeId'] = isset($data['itemTypeId']) ? $data['itemTypeId'] : null; + $this->container['quantityDestroyed'] = isset($data['quantityDestroyed']) ? $data['quantityDestroyed'] : null; + $this->container['quantityDropped'] = isset($data['quantityDropped']) ? $data['quantityDropped'] : null; + $this->container['singleton'] = isset($data['singleton']) ? $data['singleton'] : null; + $this->container['flag'] = isset($data['flag']) ? $data['flag'] : null; + $this->container['items'] = isset($data['items']) ? $data['items'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['itemTypeId'] === null) { + $invalidProperties[] = "'itemTypeId' can't be null"; + } + if ($this->container['singleton'] === null) { + $invalidProperties[] = "'singleton' can't be null"; + } + if ($this->container['flag'] === null) { + $invalidProperties[] = "'flag' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['itemTypeId'] === null) { + return false; + } + if ($this->container['singleton'] === null) { + return false; + } + if ($this->container['flag'] === null) { + return false; + } + return true; + } + + + /** + * Gets itemTypeId + * + * @return int + */ + public function getItemTypeId() + { + return $this->container['itemTypeId']; + } + + /** + * Sets itemTypeId + * + * @param int $itemTypeId item_type_id integer + * + * @return $this + */ + public function setItemTypeId($itemTypeId) + { + $this->container['itemTypeId'] = $itemTypeId; + + return $this; + } + + /** + * Gets quantityDestroyed + * + * @return int + */ + public function getQuantityDestroyed() + { + return $this->container['quantityDestroyed']; + } + + /** + * Sets quantityDestroyed + * + * @param int $quantityDestroyed How many of the item were destroyed if any + * + * @return $this + */ + public function setQuantityDestroyed($quantityDestroyed) + { + $this->container['quantityDestroyed'] = $quantityDestroyed; + + return $this; + } + + /** + * Gets quantityDropped + * + * @return int + */ + public function getQuantityDropped() + { + return $this->container['quantityDropped']; + } + + /** + * Sets quantityDropped + * + * @param int $quantityDropped How many of the item were dropped if any + * + * @return $this + */ + public function setQuantityDropped($quantityDropped) + { + $this->container['quantityDropped'] = $quantityDropped; + + return $this; + } + + /** + * Gets singleton + * + * @return int + */ + public function getSingleton() + { + return $this->container['singleton']; + } + + /** + * Sets singleton + * + * @param int $singleton singleton integer + * + * @return $this + */ + public function setSingleton($singleton) + { + $this->container['singleton'] = $singleton; + + return $this; + } + + /** + * Gets flag + * + * @return int + */ + public function getFlag() + { + return $this->container['flag']; + } + + /** + * Sets flag + * + * @param int $flag Flag for the location of the item + * + * @return $this + */ + public function setFlag($flag) + { + $this->container['flag'] = $flag; + + return $this; + } + + /** + * Gets items + * + * @return \nullx27ESI\nullx27\ESI\Models\GetKillmailsKillmailIdKillmailHashItem[] + */ + public function getItems() + { + return $this->container['items']; + } + + /** + * Sets items + * + * @param \nullx27ESI\nullx27\ESI\Models\GetKillmailsKillmailIdKillmailHashItem[] $items items array + * + * @return $this + */ + public function setItems($items) + { + $this->container['items'] = $items; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetKillmailsKillmailIdKillmailHashOk.php b/src/nullx27/ESI/Models/GetKillmailsKillmailIdKillmailHashOk.php new file mode 100644 index 0000000..b1b2a4e --- /dev/null +++ b/src/nullx27/ESI/Models/GetKillmailsKillmailIdKillmailHashOk.php @@ -0,0 +1,513 @@ + 'int', + 'killmailTime' => '\DateTime', + 'victim' => '\nullx27ESI\nullx27\ESI\Models\GetKillmailsKillmailIdKillmailHashVictim', + 'attackers' => '\nullx27ESI\nullx27\ESI\Models\GetKillmailsKillmailIdKillmailHashAttacker[]', + 'solarSystemId' => 'int', + 'moonId' => 'int', + 'warId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'killmailId' => 'int32', + 'killmailTime' => 'date-time', + 'victim' => null, + 'attackers' => null, + 'solarSystemId' => 'int32', + 'moonId' => 'int32', + 'warId' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'killmailId' => 'killmail_id', + 'killmailTime' => 'killmail_time', + 'victim' => 'victim', + 'attackers' => 'attackers', + 'solarSystemId' => 'solar_system_id', + 'moonId' => 'moon_id', + 'warId' => 'war_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'killmailId' => 'setKillmailId', + 'killmailTime' => 'setKillmailTime', + 'victim' => 'setVictim', + 'attackers' => 'setAttackers', + 'solarSystemId' => 'setSolarSystemId', + 'moonId' => 'setMoonId', + 'warId' => 'setWarId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'killmailId' => 'getKillmailId', + 'killmailTime' => 'getKillmailTime', + 'victim' => 'getVictim', + 'attackers' => 'getAttackers', + 'solarSystemId' => 'getSolarSystemId', + 'moonId' => 'getMoonId', + 'warId' => 'getWarId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['killmailId'] = isset($data['killmailId']) ? $data['killmailId'] : null; + $this->container['killmailTime'] = isset($data['killmailTime']) ? $data['killmailTime'] : null; + $this->container['victim'] = isset($data['victim']) ? $data['victim'] : null; + $this->container['attackers'] = isset($data['attackers']) ? $data['attackers'] : null; + $this->container['solarSystemId'] = isset($data['solarSystemId']) ? $data['solarSystemId'] : null; + $this->container['moonId'] = isset($data['moonId']) ? $data['moonId'] : null; + $this->container['warId'] = isset($data['warId']) ? $data['warId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['killmailId'] === null) { + $invalidProperties[] = "'killmailId' can't be null"; + } + if ($this->container['killmailTime'] === null) { + $invalidProperties[] = "'killmailTime' can't be null"; + } + if ($this->container['victim'] === null) { + $invalidProperties[] = "'victim' can't be null"; + } + if ($this->container['attackers'] === null) { + $invalidProperties[] = "'attackers' can't be null"; + } + if ($this->container['solarSystemId'] === null) { + $invalidProperties[] = "'solarSystemId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['killmailId'] === null) { + return false; + } + if ($this->container['killmailTime'] === null) { + return false; + } + if ($this->container['victim'] === null) { + return false; + } + if ($this->container['attackers'] === null) { + return false; + } + if ($this->container['solarSystemId'] === null) { + return false; + } + return true; + } + + + /** + * Gets killmailId + * + * @return int + */ + public function getKillmailId() + { + return $this->container['killmailId']; + } + + /** + * Sets killmailId + * + * @param int $killmailId ID of the killmail + * + * @return $this + */ + public function setKillmailId($killmailId) + { + $this->container['killmailId'] = $killmailId; + + return $this; + } + + /** + * Gets killmailTime + * + * @return \DateTime + */ + public function getKillmailTime() + { + return $this->container['killmailTime']; + } + + /** + * Sets killmailTime + * + * @param \DateTime $killmailTime Time that the victim was killed and the killmail generated + * + * @return $this + */ + public function setKillmailTime($killmailTime) + { + $this->container['killmailTime'] = $killmailTime; + + return $this; + } + + /** + * Gets victim + * + * @return \nullx27ESI\nullx27\ESI\Models\GetKillmailsKillmailIdKillmailHashVictim + */ + public function getVictim() + { + return $this->container['victim']; + } + + /** + * Sets victim + * + * @param \nullx27ESI\nullx27\ESI\Models\GetKillmailsKillmailIdKillmailHashVictim $victim victim + * + * @return $this + */ + public function setVictim($victim) + { + $this->container['victim'] = $victim; + + return $this; + } + + /** + * Gets attackers + * + * @return \nullx27ESI\nullx27\ESI\Models\GetKillmailsKillmailIdKillmailHashAttacker[] + */ + public function getAttackers() + { + return $this->container['attackers']; + } + + /** + * Sets attackers + * + * @param \nullx27ESI\nullx27\ESI\Models\GetKillmailsKillmailIdKillmailHashAttacker[] $attackers attackers array + * + * @return $this + */ + public function setAttackers($attackers) + { + $this->container['attackers'] = $attackers; + + return $this; + } + + /** + * Gets solarSystemId + * + * @return int + */ + public function getSolarSystemId() + { + return $this->container['solarSystemId']; + } + + /** + * Sets solarSystemId + * + * @param int $solarSystemId Solar system that the kill took place in + * + * @return $this + */ + public function setSolarSystemId($solarSystemId) + { + $this->container['solarSystemId'] = $solarSystemId; + + return $this; + } + + /** + * Gets moonId + * + * @return int + */ + public function getMoonId() + { + return $this->container['moonId']; + } + + /** + * Sets moonId + * + * @param int $moonId Moon if the kill took place at one + * + * @return $this + */ + public function setMoonId($moonId) + { + $this->container['moonId'] = $moonId; + + return $this; + } + + /** + * Gets warId + * + * @return int + */ + public function getWarId() + { + return $this->container['warId']; + } + + /** + * Sets warId + * + * @param int $warId War if the killmail is generated in relation to an official war + * + * @return $this + */ + public function setWarId($warId) + { + $this->container['warId'] = $warId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetKillmailsKillmailIdKillmailHashPosition.php b/src/nullx27/ESI/Models/GetKillmailsKillmailIdKillmailHashPosition.php new file mode 100644 index 0000000..5fa4021 --- /dev/null +++ b/src/nullx27/ESI/Models/GetKillmailsKillmailIdKillmailHashPosition.php @@ -0,0 +1,381 @@ + 'double', + 'y' => 'double', + 'z' => 'double' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'x' => 'double', + 'y' => 'double', + 'z' => 'double' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'x' => 'x', + 'y' => 'y', + 'z' => 'z' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'x' => 'setX', + 'y' => 'setY', + 'z' => 'setZ' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'x' => 'getX', + 'y' => 'getY', + 'z' => 'getZ' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['x'] = isset($data['x']) ? $data['x'] : null; + $this->container['y'] = isset($data['y']) ? $data['y'] : null; + $this->container['z'] = isset($data['z']) ? $data['z'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['x'] === null) { + $invalidProperties[] = "'x' can't be null"; + } + if ($this->container['y'] === null) { + $invalidProperties[] = "'y' can't be null"; + } + if ($this->container['z'] === null) { + $invalidProperties[] = "'z' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['x'] === null) { + return false; + } + if ($this->container['y'] === null) { + return false; + } + if ($this->container['z'] === null) { + return false; + } + return true; + } + + + /** + * Gets x + * + * @return double + */ + public function getX() + { + return $this->container['x']; + } + + /** + * Sets x + * + * @param double $x x number + * + * @return $this + */ + public function setX($x) + { + $this->container['x'] = $x; + + return $this; + } + + /** + * Gets y + * + * @return double + */ + public function getY() + { + return $this->container['y']; + } + + /** + * Sets y + * + * @param double $y y number + * + * @return $this + */ + public function setY($y) + { + $this->container['y'] = $y; + + return $this; + } + + /** + * Gets z + * + * @return double + */ + public function getZ() + { + return $this->container['z']; + } + + /** + * Sets z + * + * @param double $z z number + * + * @return $this + */ + public function setZ($z) + { + $this->container['z'] = $z; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetKillmailsKillmailIdKillmailHashUnprocessableEntity.php b/src/nullx27/ESI/Models/GetKillmailsKillmailIdKillmailHashUnprocessableEntity.php new file mode 100644 index 0000000..fa07974 --- /dev/null +++ b/src/nullx27/ESI/Models/GetKillmailsKillmailIdKillmailHashUnprocessableEntity.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Unprocessable entity message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetKillmailsKillmailIdKillmailHashVictim.php b/src/nullx27/ESI/Models/GetKillmailsKillmailIdKillmailHashVictim.php new file mode 100644 index 0000000..6a98c4e --- /dev/null +++ b/src/nullx27/ESI/Models/GetKillmailsKillmailIdKillmailHashVictim.php @@ -0,0 +1,525 @@ + 'int', + 'corporationId' => 'int', + 'allianceId' => 'int', + 'factionId' => 'int', + 'damageTaken' => 'int', + 'shipTypeId' => 'int', + 'items' => '\nullx27ESI\nullx27\ESI\Models\GetKillmailsKillmailIdKillmailHashItem1[]', + 'position' => '\nullx27ESI\nullx27\ESI\Models\GetKillmailsKillmailIdKillmailHashPosition' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'characterId' => 'int32', + 'corporationId' => 'int32', + 'allianceId' => 'int32', + 'factionId' => 'int32', + 'damageTaken' => 'int32', + 'shipTypeId' => 'int32', + 'items' => null, + 'position' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'characterId' => 'character_id', + 'corporationId' => 'corporation_id', + 'allianceId' => 'alliance_id', + 'factionId' => 'faction_id', + 'damageTaken' => 'damage_taken', + 'shipTypeId' => 'ship_type_id', + 'items' => 'items', + 'position' => 'position' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'characterId' => 'setCharacterId', + 'corporationId' => 'setCorporationId', + 'allianceId' => 'setAllianceId', + 'factionId' => 'setFactionId', + 'damageTaken' => 'setDamageTaken', + 'shipTypeId' => 'setShipTypeId', + 'items' => 'setItems', + 'position' => 'setPosition' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'characterId' => 'getCharacterId', + 'corporationId' => 'getCorporationId', + 'allianceId' => 'getAllianceId', + 'factionId' => 'getFactionId', + 'damageTaken' => 'getDamageTaken', + 'shipTypeId' => 'getShipTypeId', + 'items' => 'getItems', + 'position' => 'getPosition' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['characterId'] = isset($data['characterId']) ? $data['characterId'] : null; + $this->container['corporationId'] = isset($data['corporationId']) ? $data['corporationId'] : null; + $this->container['allianceId'] = isset($data['allianceId']) ? $data['allianceId'] : null; + $this->container['factionId'] = isset($data['factionId']) ? $data['factionId'] : null; + $this->container['damageTaken'] = isset($data['damageTaken']) ? $data['damageTaken'] : null; + $this->container['shipTypeId'] = isset($data['shipTypeId']) ? $data['shipTypeId'] : null; + $this->container['items'] = isset($data['items']) ? $data['items'] : null; + $this->container['position'] = isset($data['position']) ? $data['position'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['damageTaken'] === null) { + $invalidProperties[] = "'damageTaken' can't be null"; + } + if ($this->container['shipTypeId'] === null) { + $invalidProperties[] = "'shipTypeId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['damageTaken'] === null) { + return false; + } + if ($this->container['shipTypeId'] === null) { + return false; + } + return true; + } + + + /** + * Gets characterId + * + * @return int + */ + public function getCharacterId() + { + return $this->container['characterId']; + } + + /** + * Sets characterId + * + * @param int $characterId character_id integer + * + * @return $this + */ + public function setCharacterId($characterId) + { + $this->container['characterId'] = $characterId; + + return $this; + } + + /** + * Gets corporationId + * + * @return int + */ + public function getCorporationId() + { + return $this->container['corporationId']; + } + + /** + * Sets corporationId + * + * @param int $corporationId corporation_id integer + * + * @return $this + */ + public function setCorporationId($corporationId) + { + $this->container['corporationId'] = $corporationId; + + return $this; + } + + /** + * Gets allianceId + * + * @return int + */ + public function getAllianceId() + { + return $this->container['allianceId']; + } + + /** + * Sets allianceId + * + * @param int $allianceId alliance_id integer + * + * @return $this + */ + public function setAllianceId($allianceId) + { + $this->container['allianceId'] = $allianceId; + + return $this; + } + + /** + * Gets factionId + * + * @return int + */ + public function getFactionId() + { + return $this->container['factionId']; + } + + /** + * Sets factionId + * + * @param int $factionId faction_id integer + * + * @return $this + */ + public function setFactionId($factionId) + { + $this->container['factionId'] = $factionId; + + return $this; + } + + /** + * Gets damageTaken + * + * @return int + */ + public function getDamageTaken() + { + return $this->container['damageTaken']; + } + + /** + * Sets damageTaken + * + * @param int $damageTaken How much total damage was taken by the victim + * + * @return $this + */ + public function setDamageTaken($damageTaken) + { + $this->container['damageTaken'] = $damageTaken; + + return $this; + } + + /** + * Gets shipTypeId + * + * @return int + */ + public function getShipTypeId() + { + return $this->container['shipTypeId']; + } + + /** + * Sets shipTypeId + * + * @param int $shipTypeId The ship that the victim was piloting and was destroyed + * + * @return $this + */ + public function setShipTypeId($shipTypeId) + { + $this->container['shipTypeId'] = $shipTypeId; + + return $this; + } + + /** + * Gets items + * + * @return \nullx27ESI\nullx27\ESI\Models\GetKillmailsKillmailIdKillmailHashItem1[] + */ + public function getItems() + { + return $this->container['items']; + } + + /** + * Sets items + * + * @param \nullx27ESI\nullx27\ESI\Models\GetKillmailsKillmailIdKillmailHashItem1[] $items items array + * + * @return $this + */ + public function setItems($items) + { + $this->container['items'] = $items; + + return $this; + } + + /** + * Gets position + * + * @return \nullx27ESI\nullx27\ESI\Models\GetKillmailsKillmailIdKillmailHashPosition + */ + public function getPosition() + { + return $this->container['position']; + } + + /** + * Sets position + * + * @param \nullx27ESI\nullx27\ESI\Models\GetKillmailsKillmailIdKillmailHashPosition $position position + * + * @return $this + */ + public function setPosition($position) + { + $this->container['position'] = $position; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetLoyaltyStoresCorporationIdOffers200Ok.php b/src/nullx27/ESI/Models/GetLoyaltyStoresCorporationIdOffers200Ok.php new file mode 100644 index 0000000..d23a9d9 --- /dev/null +++ b/src/nullx27/ESI/Models/GetLoyaltyStoresCorporationIdOffers200Ok.php @@ -0,0 +1,489 @@ + 'int', + 'typeId' => 'int', + 'quantity' => 'int', + 'lpCost' => 'int', + 'iskCost' => 'float', + 'requiredItems' => '\nullx27ESI\nullx27\ESI\Models\GetLoyaltyStoresCorporationIdOffersRequiredItem[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'offerId' => 'int32', + 'typeId' => 'int32', + 'quantity' => 'int32', + 'lpCost' => 'int32', + 'iskCost' => 'int32', + 'requiredItems' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'offerId' => 'offer_id', + 'typeId' => 'type_id', + 'quantity' => 'quantity', + 'lpCost' => 'lp_cost', + 'iskCost' => 'isk_cost', + 'requiredItems' => 'required_items' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'offerId' => 'setOfferId', + 'typeId' => 'setTypeId', + 'quantity' => 'setQuantity', + 'lpCost' => 'setLpCost', + 'iskCost' => 'setIskCost', + 'requiredItems' => 'setRequiredItems' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'offerId' => 'getOfferId', + 'typeId' => 'getTypeId', + 'quantity' => 'getQuantity', + 'lpCost' => 'getLpCost', + 'iskCost' => 'getIskCost', + 'requiredItems' => 'getRequiredItems' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['offerId'] = isset($data['offerId']) ? $data['offerId'] : null; + $this->container['typeId'] = isset($data['typeId']) ? $data['typeId'] : null; + $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null; + $this->container['lpCost'] = isset($data['lpCost']) ? $data['lpCost'] : null; + $this->container['iskCost'] = isset($data['iskCost']) ? $data['iskCost'] : null; + $this->container['requiredItems'] = isset($data['requiredItems']) ? $data['requiredItems'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['offerId'] === null) { + $invalidProperties[] = "'offerId' can't be null"; + } + if ($this->container['typeId'] === null) { + $invalidProperties[] = "'typeId' can't be null"; + } + if ($this->container['quantity'] === null) { + $invalidProperties[] = "'quantity' can't be null"; + } + if ($this->container['lpCost'] === null) { + $invalidProperties[] = "'lpCost' can't be null"; + } + if ($this->container['iskCost'] === null) { + $invalidProperties[] = "'iskCost' can't be null"; + } + if ($this->container['requiredItems'] === null) { + $invalidProperties[] = "'requiredItems' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['offerId'] === null) { + return false; + } + if ($this->container['typeId'] === null) { + return false; + } + if ($this->container['quantity'] === null) { + return false; + } + if ($this->container['lpCost'] === null) { + return false; + } + if ($this->container['iskCost'] === null) { + return false; + } + if ($this->container['requiredItems'] === null) { + return false; + } + return true; + } + + + /** + * Gets offerId + * + * @return int + */ + public function getOfferId() + { + return $this->container['offerId']; + } + + /** + * Sets offerId + * + * @param int $offerId offer_id integer + * + * @return $this + */ + public function setOfferId($offerId) + { + $this->container['offerId'] = $offerId; + + return $this; + } + + /** + * Gets typeId + * + * @return int + */ + public function getTypeId() + { + return $this->container['typeId']; + } + + /** + * Sets typeId + * + * @param int $typeId type_id integer + * + * @return $this + */ + public function setTypeId($typeId) + { + $this->container['typeId'] = $typeId; + + return $this; + } + + /** + * Gets quantity + * + * @return int + */ + public function getQuantity() + { + return $this->container['quantity']; + } + + /** + * Sets quantity + * + * @param int $quantity quantity integer + * + * @return $this + */ + public function setQuantity($quantity) + { + $this->container['quantity'] = $quantity; + + return $this; + } + + /** + * Gets lpCost + * + * @return int + */ + public function getLpCost() + { + return $this->container['lpCost']; + } + + /** + * Sets lpCost + * + * @param int $lpCost lp_cost integer + * + * @return $this + */ + public function setLpCost($lpCost) + { + $this->container['lpCost'] = $lpCost; + + return $this; + } + + /** + * Gets iskCost + * + * @return float + */ + public function getIskCost() + { + return $this->container['iskCost']; + } + + /** + * Sets iskCost + * + * @param float $iskCost isk_cost number + * + * @return $this + */ + public function setIskCost($iskCost) + { + $this->container['iskCost'] = $iskCost; + + return $this; + } + + /** + * Gets requiredItems + * + * @return \nullx27ESI\nullx27\ESI\Models\GetLoyaltyStoresCorporationIdOffersRequiredItem[] + */ + public function getRequiredItems() + { + return $this->container['requiredItems']; + } + + /** + * Sets requiredItems + * + * @param \nullx27ESI\nullx27\ESI\Models\GetLoyaltyStoresCorporationIdOffersRequiredItem[] $requiredItems required_items array + * + * @return $this + */ + public function setRequiredItems($requiredItems) + { + $this->container['requiredItems'] = $requiredItems; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetLoyaltyStoresCorporationIdOffersRequiredItem.php b/src/nullx27/ESI/Models/GetLoyaltyStoresCorporationIdOffersRequiredItem.php new file mode 100644 index 0000000..d775739 --- /dev/null +++ b/src/nullx27/ESI/Models/GetLoyaltyStoresCorporationIdOffersRequiredItem.php @@ -0,0 +1,345 @@ + 'int', + 'quantity' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'typeId' => 'int32', + 'quantity' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'typeId' => 'type_id', + 'quantity' => 'quantity' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'typeId' => 'setTypeId', + 'quantity' => 'setQuantity' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'typeId' => 'getTypeId', + 'quantity' => 'getQuantity' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['typeId'] = isset($data['typeId']) ? $data['typeId'] : null; + $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['typeId'] === null) { + $invalidProperties[] = "'typeId' can't be null"; + } + if ($this->container['quantity'] === null) { + $invalidProperties[] = "'quantity' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['typeId'] === null) { + return false; + } + if ($this->container['quantity'] === null) { + return false; + } + return true; + } + + + /** + * Gets typeId + * + * @return int + */ + public function getTypeId() + { + return $this->container['typeId']; + } + + /** + * Sets typeId + * + * @param int $typeId type_id integer + * + * @return $this + */ + public function setTypeId($typeId) + { + $this->container['typeId'] = $typeId; + + return $this; + } + + /** + * Gets quantity + * + * @return int + */ + public function getQuantity() + { + return $this->container['quantity']; + } + + /** + * Sets quantity + * + * @param int $quantity quantity integer + * + * @return $this + */ + public function setQuantity($quantity) + { + $this->container['quantity'] = $quantity; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetMarketsGroupsMarketGroupIdNotFound.php b/src/nullx27/ESI/Models/GetMarketsGroupsMarketGroupIdNotFound.php new file mode 100644 index 0000000..f529586 --- /dev/null +++ b/src/nullx27/ESI/Models/GetMarketsGroupsMarketGroupIdNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Not found message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetMarketsGroupsMarketGroupIdOk.php b/src/nullx27/ESI/Models/GetMarketsGroupsMarketGroupIdOk.php new file mode 100644 index 0000000..86a0b36 --- /dev/null +++ b/src/nullx27/ESI/Models/GetMarketsGroupsMarketGroupIdOk.php @@ -0,0 +1,447 @@ + 'int', + 'name' => 'string', + 'description' => 'string', + 'types' => 'int[]', + 'parentGroupId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'marketGroupId' => 'int32', + 'name' => null, + 'description' => null, + 'types' => 'int32', + 'parentGroupId' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'marketGroupId' => 'market_group_id', + 'name' => 'name', + 'description' => 'description', + 'types' => 'types', + 'parentGroupId' => 'parent_group_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'marketGroupId' => 'setMarketGroupId', + 'name' => 'setName', + 'description' => 'setDescription', + 'types' => 'setTypes', + 'parentGroupId' => 'setParentGroupId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'marketGroupId' => 'getMarketGroupId', + 'name' => 'getName', + 'description' => 'getDescription', + 'types' => 'getTypes', + 'parentGroupId' => 'getParentGroupId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['marketGroupId'] = isset($data['marketGroupId']) ? $data['marketGroupId'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['description'] = isset($data['description']) ? $data['description'] : null; + $this->container['types'] = isset($data['types']) ? $data['types'] : null; + $this->container['parentGroupId'] = isset($data['parentGroupId']) ? $data['parentGroupId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['marketGroupId'] === null) { + $invalidProperties[] = "'marketGroupId' can't be null"; + } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ($this->container['description'] === null) { + $invalidProperties[] = "'description' can't be null"; + } + if ($this->container['types'] === null) { + $invalidProperties[] = "'types' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['marketGroupId'] === null) { + return false; + } + if ($this->container['name'] === null) { + return false; + } + if ($this->container['description'] === null) { + return false; + } + if ($this->container['types'] === null) { + return false; + } + return true; + } + + + /** + * Gets marketGroupId + * + * @return int + */ + public function getMarketGroupId() + { + return $this->container['marketGroupId']; + } + + /** + * Sets marketGroupId + * + * @param int $marketGroupId market_group_id integer + * + * @return $this + */ + public function setMarketGroupId($marketGroupId) + { + $this->container['marketGroupId'] = $marketGroupId; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets description + * + * @return string + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string $description description string + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets types + * + * @return int[] + */ + public function getTypes() + { + return $this->container['types']; + } + + /** + * Sets types + * + * @param int[] $types types array + * + * @return $this + */ + public function setTypes($types) + { + $this->container['types'] = $types; + + return $this; + } + + /** + * Gets parentGroupId + * + * @return int + */ + public function getParentGroupId() + { + return $this->container['parentGroupId']; + } + + /** + * Sets parentGroupId + * + * @param int $parentGroupId parent_group_id integer + * + * @return $this + */ + public function setParentGroupId($parentGroupId) + { + $this->container['parentGroupId'] = $parentGroupId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetMarketsPrices200Ok.php b/src/nullx27/ESI/Models/GetMarketsPrices200Ok.php new file mode 100644 index 0000000..fa29912 --- /dev/null +++ b/src/nullx27/ESI/Models/GetMarketsPrices200Ok.php @@ -0,0 +1,369 @@ + 'int', + 'averagePrice' => 'double', + 'adjustedPrice' => 'double' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'typeId' => 'int32', + 'averagePrice' => 'double', + 'adjustedPrice' => 'double' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'typeId' => 'type_id', + 'averagePrice' => 'average_price', + 'adjustedPrice' => 'adjusted_price' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'typeId' => 'setTypeId', + 'averagePrice' => 'setAveragePrice', + 'adjustedPrice' => 'setAdjustedPrice' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'typeId' => 'getTypeId', + 'averagePrice' => 'getAveragePrice', + 'adjustedPrice' => 'getAdjustedPrice' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['typeId'] = isset($data['typeId']) ? $data['typeId'] : null; + $this->container['averagePrice'] = isset($data['averagePrice']) ? $data['averagePrice'] : null; + $this->container['adjustedPrice'] = isset($data['adjustedPrice']) ? $data['adjustedPrice'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['typeId'] === null) { + $invalidProperties[] = "'typeId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['typeId'] === null) { + return false; + } + return true; + } + + + /** + * Gets typeId + * + * @return int + */ + public function getTypeId() + { + return $this->container['typeId']; + } + + /** + * Sets typeId + * + * @param int $typeId type_id integer + * + * @return $this + */ + public function setTypeId($typeId) + { + $this->container['typeId'] = $typeId; + + return $this; + } + + /** + * Gets averagePrice + * + * @return double + */ + public function getAveragePrice() + { + return $this->container['averagePrice']; + } + + /** + * Sets averagePrice + * + * @param double $averagePrice average_price number + * + * @return $this + */ + public function setAveragePrice($averagePrice) + { + $this->container['averagePrice'] = $averagePrice; + + return $this; + } + + /** + * Gets adjustedPrice + * + * @return double + */ + public function getAdjustedPrice() + { + return $this->container['adjustedPrice']; + } + + /** + * Sets adjustedPrice + * + * @param double $adjustedPrice adjusted_price number + * + * @return $this + */ + public function setAdjustedPrice($adjustedPrice) + { + $this->container['adjustedPrice'] = $adjustedPrice; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetMarketsRegionIdHistory200Ok.php b/src/nullx27/ESI/Models/GetMarketsRegionIdHistory200Ok.php new file mode 100644 index 0000000..736cfb6 --- /dev/null +++ b/src/nullx27/ESI/Models/GetMarketsRegionIdHistory200Ok.php @@ -0,0 +1,489 @@ + '\DateTime', + 'orderCount' => 'int', + 'volume' => 'int', + 'highest' => 'double', + 'average' => 'double', + 'lowest' => 'double' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'date' => 'date', + 'orderCount' => 'int64', + 'volume' => 'int64', + 'highest' => 'double', + 'average' => 'double', + 'lowest' => 'double' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'date' => 'date', + 'orderCount' => 'order_count', + 'volume' => 'volume', + 'highest' => 'highest', + 'average' => 'average', + 'lowest' => 'lowest' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'date' => 'setDate', + 'orderCount' => 'setOrderCount', + 'volume' => 'setVolume', + 'highest' => 'setHighest', + 'average' => 'setAverage', + 'lowest' => 'setLowest' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'date' => 'getDate', + 'orderCount' => 'getOrderCount', + 'volume' => 'getVolume', + 'highest' => 'getHighest', + 'average' => 'getAverage', + 'lowest' => 'getLowest' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['date'] = isset($data['date']) ? $data['date'] : null; + $this->container['orderCount'] = isset($data['orderCount']) ? $data['orderCount'] : null; + $this->container['volume'] = isset($data['volume']) ? $data['volume'] : null; + $this->container['highest'] = isset($data['highest']) ? $data['highest'] : null; + $this->container['average'] = isset($data['average']) ? $data['average'] : null; + $this->container['lowest'] = isset($data['lowest']) ? $data['lowest'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['date'] === null) { + $invalidProperties[] = "'date' can't be null"; + } + if ($this->container['orderCount'] === null) { + $invalidProperties[] = "'orderCount' can't be null"; + } + if ($this->container['volume'] === null) { + $invalidProperties[] = "'volume' can't be null"; + } + if ($this->container['highest'] === null) { + $invalidProperties[] = "'highest' can't be null"; + } + if ($this->container['average'] === null) { + $invalidProperties[] = "'average' can't be null"; + } + if ($this->container['lowest'] === null) { + $invalidProperties[] = "'lowest' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['date'] === null) { + return false; + } + if ($this->container['orderCount'] === null) { + return false; + } + if ($this->container['volume'] === null) { + return false; + } + if ($this->container['highest'] === null) { + return false; + } + if ($this->container['average'] === null) { + return false; + } + if ($this->container['lowest'] === null) { + return false; + } + return true; + } + + + /** + * Gets date + * + * @return \DateTime + */ + public function getDate() + { + return $this->container['date']; + } + + /** + * Sets date + * + * @param \DateTime $date The date of this historical statistic entry + * + * @return $this + */ + public function setDate($date) + { + $this->container['date'] = $date; + + return $this; + } + + /** + * Gets orderCount + * + * @return int + */ + public function getOrderCount() + { + return $this->container['orderCount']; + } + + /** + * Sets orderCount + * + * @param int $orderCount Total number of orders happened that day + * + * @return $this + */ + public function setOrderCount($orderCount) + { + $this->container['orderCount'] = $orderCount; + + return $this; + } + + /** + * Gets volume + * + * @return int + */ + public function getVolume() + { + return $this->container['volume']; + } + + /** + * Sets volume + * + * @param int $volume Total + * + * @return $this + */ + public function setVolume($volume) + { + $this->container['volume'] = $volume; + + return $this; + } + + /** + * Gets highest + * + * @return double + */ + public function getHighest() + { + return $this->container['highest']; + } + + /** + * Sets highest + * + * @param double $highest highest number + * + * @return $this + */ + public function setHighest($highest) + { + $this->container['highest'] = $highest; + + return $this; + } + + /** + * Gets average + * + * @return double + */ + public function getAverage() + { + return $this->container['average']; + } + + /** + * Sets average + * + * @param double $average average number + * + * @return $this + */ + public function setAverage($average) + { + $this->container['average'] = $average; + + return $this; + } + + /** + * Gets lowest + * + * @return double + */ + public function getLowest() + { + return $this->container['lowest']; + } + + /** + * Sets lowest + * + * @param double $lowest lowest number + * + * @return $this + */ + public function setLowest($lowest) + { + $this->container['lowest'] = $lowest; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetMarketsRegionIdHistoryUnprocessableEntity.php b/src/nullx27/ESI/Models/GetMarketsRegionIdHistoryUnprocessableEntity.php new file mode 100644 index 0000000..8908dc3 --- /dev/null +++ b/src/nullx27/ESI/Models/GetMarketsRegionIdHistoryUnprocessableEntity.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Unprocessable entity message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetMarketsRegionIdOrders200Ok.php b/src/nullx27/ESI/Models/GetMarketsRegionIdOrders200Ok.php new file mode 100644 index 0000000..c6eedcf --- /dev/null +++ b/src/nullx27/ESI/Models/GetMarketsRegionIdOrders200Ok.php @@ -0,0 +1,725 @@ + 'int', + 'typeId' => 'int', + 'locationId' => 'int', + 'volumeTotal' => 'int', + 'volumeRemain' => 'int', + 'minVolume' => 'int', + 'price' => 'double', + 'isBuyOrder' => 'bool', + 'duration' => 'int', + 'issued' => '\DateTime', + 'range' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'orderId' => 'int64', + 'typeId' => 'int32', + 'locationId' => 'int64', + 'volumeTotal' => 'int32', + 'volumeRemain' => 'int32', + 'minVolume' => 'int32', + 'price' => 'double', + 'isBuyOrder' => null, + 'duration' => 'int32', + 'issued' => 'date-time', + 'range' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'orderId' => 'order_id', + 'typeId' => 'type_id', + 'locationId' => 'location_id', + 'volumeTotal' => 'volume_total', + 'volumeRemain' => 'volume_remain', + 'minVolume' => 'min_volume', + 'price' => 'price', + 'isBuyOrder' => 'is_buy_order', + 'duration' => 'duration', + 'issued' => 'issued', + 'range' => 'range' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'orderId' => 'setOrderId', + 'typeId' => 'setTypeId', + 'locationId' => 'setLocationId', + 'volumeTotal' => 'setVolumeTotal', + 'volumeRemain' => 'setVolumeRemain', + 'minVolume' => 'setMinVolume', + 'price' => 'setPrice', + 'isBuyOrder' => 'setIsBuyOrder', + 'duration' => 'setDuration', + 'issued' => 'setIssued', + 'range' => 'setRange' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'orderId' => 'getOrderId', + 'typeId' => 'getTypeId', + 'locationId' => 'getLocationId', + 'volumeTotal' => 'getVolumeTotal', + 'volumeRemain' => 'getVolumeRemain', + 'minVolume' => 'getMinVolume', + 'price' => 'getPrice', + 'isBuyOrder' => 'getIsBuyOrder', + 'duration' => 'getDuration', + 'issued' => 'getIssued', + 'range' => 'getRange' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const RANGE_STATION = 'station'; + const RANGE_REGION = 'region'; + const RANGE_SOLARSYSTEM = 'solarsystem'; + const RANGE__1 = '1'; + const RANGE__2 = '2'; + const RANGE__3 = '3'; + const RANGE__4 = '4'; + const RANGE__5 = '5'; + const RANGE__10 = '10'; + const RANGE__20 = '20'; + const RANGE__30 = '30'; + const RANGE__40 = '40'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getRangeAllowableValues() + { + return [ + self::RANGE_STATION, + self::RANGE_REGION, + self::RANGE_SOLARSYSTEM, + self::RANGE__1, + self::RANGE__2, + self::RANGE__3, + self::RANGE__4, + self::RANGE__5, + self::RANGE__10, + self::RANGE__20, + self::RANGE__30, + self::RANGE__40, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['orderId'] = isset($data['orderId']) ? $data['orderId'] : null; + $this->container['typeId'] = isset($data['typeId']) ? $data['typeId'] : null; + $this->container['locationId'] = isset($data['locationId']) ? $data['locationId'] : null; + $this->container['volumeTotal'] = isset($data['volumeTotal']) ? $data['volumeTotal'] : null; + $this->container['volumeRemain'] = isset($data['volumeRemain']) ? $data['volumeRemain'] : null; + $this->container['minVolume'] = isset($data['minVolume']) ? $data['minVolume'] : null; + $this->container['price'] = isset($data['price']) ? $data['price'] : null; + $this->container['isBuyOrder'] = isset($data['isBuyOrder']) ? $data['isBuyOrder'] : null; + $this->container['duration'] = isset($data['duration']) ? $data['duration'] : null; + $this->container['issued'] = isset($data['issued']) ? $data['issued'] : null; + $this->container['range'] = isset($data['range']) ? $data['range'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['orderId'] === null) { + $invalidProperties[] = "'orderId' can't be null"; + } + if ($this->container['typeId'] === null) { + $invalidProperties[] = "'typeId' can't be null"; + } + if ($this->container['locationId'] === null) { + $invalidProperties[] = "'locationId' can't be null"; + } + if ($this->container['volumeTotal'] === null) { + $invalidProperties[] = "'volumeTotal' can't be null"; + } + if ($this->container['volumeRemain'] === null) { + $invalidProperties[] = "'volumeRemain' can't be null"; + } + if ($this->container['minVolume'] === null) { + $invalidProperties[] = "'minVolume' can't be null"; + } + if ($this->container['price'] === null) { + $invalidProperties[] = "'price' can't be null"; + } + if ($this->container['isBuyOrder'] === null) { + $invalidProperties[] = "'isBuyOrder' can't be null"; + } + if ($this->container['duration'] === null) { + $invalidProperties[] = "'duration' can't be null"; + } + if ($this->container['issued'] === null) { + $invalidProperties[] = "'issued' can't be null"; + } + if ($this->container['range'] === null) { + $invalidProperties[] = "'range' can't be null"; + } + $allowedValues = $this->getRangeAllowableValues(); + if (!in_array($this->container['range'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'range', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['orderId'] === null) { + return false; + } + if ($this->container['typeId'] === null) { + return false; + } + if ($this->container['locationId'] === null) { + return false; + } + if ($this->container['volumeTotal'] === null) { + return false; + } + if ($this->container['volumeRemain'] === null) { + return false; + } + if ($this->container['minVolume'] === null) { + return false; + } + if ($this->container['price'] === null) { + return false; + } + if ($this->container['isBuyOrder'] === null) { + return false; + } + if ($this->container['duration'] === null) { + return false; + } + if ($this->container['issued'] === null) { + return false; + } + if ($this->container['range'] === null) { + return false; + } + $allowedValues = $this->getRangeAllowableValues(); + if (!in_array($this->container['range'], $allowedValues)) { + return false; + } + return true; + } + + + /** + * Gets orderId + * + * @return int + */ + public function getOrderId() + { + return $this->container['orderId']; + } + + /** + * Sets orderId + * + * @param int $orderId order_id integer + * + * @return $this + */ + public function setOrderId($orderId) + { + $this->container['orderId'] = $orderId; + + return $this; + } + + /** + * Gets typeId + * + * @return int + */ + public function getTypeId() + { + return $this->container['typeId']; + } + + /** + * Sets typeId + * + * @param int $typeId type_id integer + * + * @return $this + */ + public function setTypeId($typeId) + { + $this->container['typeId'] = $typeId; + + return $this; + } + + /** + * Gets locationId + * + * @return int + */ + public function getLocationId() + { + return $this->container['locationId']; + } + + /** + * Sets locationId + * + * @param int $locationId location_id integer + * + * @return $this + */ + public function setLocationId($locationId) + { + $this->container['locationId'] = $locationId; + + return $this; + } + + /** + * Gets volumeTotal + * + * @return int + */ + public function getVolumeTotal() + { + return $this->container['volumeTotal']; + } + + /** + * Sets volumeTotal + * + * @param int $volumeTotal volume_total integer + * + * @return $this + */ + public function setVolumeTotal($volumeTotal) + { + $this->container['volumeTotal'] = $volumeTotal; + + return $this; + } + + /** + * Gets volumeRemain + * + * @return int + */ + public function getVolumeRemain() + { + return $this->container['volumeRemain']; + } + + /** + * Sets volumeRemain + * + * @param int $volumeRemain volume_remain integer + * + * @return $this + */ + public function setVolumeRemain($volumeRemain) + { + $this->container['volumeRemain'] = $volumeRemain; + + return $this; + } + + /** + * Gets minVolume + * + * @return int + */ + public function getMinVolume() + { + return $this->container['minVolume']; + } + + /** + * Sets minVolume + * + * @param int $minVolume min_volume integer + * + * @return $this + */ + public function setMinVolume($minVolume) + { + $this->container['minVolume'] = $minVolume; + + return $this; + } + + /** + * Gets price + * + * @return double + */ + public function getPrice() + { + return $this->container['price']; + } + + /** + * Sets price + * + * @param double $price price number + * + * @return $this + */ + public function setPrice($price) + { + $this->container['price'] = $price; + + return $this; + } + + /** + * Gets isBuyOrder + * + * @return bool + */ + public function getIsBuyOrder() + { + return $this->container['isBuyOrder']; + } + + /** + * Sets isBuyOrder + * + * @param bool $isBuyOrder is_buy_order boolean + * + * @return $this + */ + public function setIsBuyOrder($isBuyOrder) + { + $this->container['isBuyOrder'] = $isBuyOrder; + + return $this; + } + + /** + * Gets duration + * + * @return int + */ + public function getDuration() + { + return $this->container['duration']; + } + + /** + * Sets duration + * + * @param int $duration duration integer + * + * @return $this + */ + public function setDuration($duration) + { + $this->container['duration'] = $duration; + + return $this; + } + + /** + * Gets issued + * + * @return \DateTime + */ + public function getIssued() + { + return $this->container['issued']; + } + + /** + * Sets issued + * + * @param \DateTime $issued issued string + * + * @return $this + */ + public function setIssued($issued) + { + $this->container['issued'] = $issued; + + return $this; + } + + /** + * Gets range + * + * @return string + */ + public function getRange() + { + return $this->container['range']; + } + + /** + * Sets range + * + * @param string $range range string + * + * @return $this + */ + public function setRange($range) + { + $allowedValues = $this->getRangeAllowableValues(); + if (!in_array($range, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'range', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['range'] = $range; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetMarketsRegionIdOrdersUnprocessableEntity.php b/src/nullx27/ESI/Models/GetMarketsRegionIdOrdersUnprocessableEntity.php new file mode 100644 index 0000000..a9a5f2b --- /dev/null +++ b/src/nullx27/ESI/Models/GetMarketsRegionIdOrdersUnprocessableEntity.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Unprocessable entity message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetMarketsStructuresStructureId200Ok.php b/src/nullx27/ESI/Models/GetMarketsStructuresStructureId200Ok.php new file mode 100644 index 0000000..c414375 --- /dev/null +++ b/src/nullx27/ESI/Models/GetMarketsStructuresStructureId200Ok.php @@ -0,0 +1,725 @@ + 'int', + 'typeId' => 'int', + 'locationId' => 'int', + 'volumeTotal' => 'int', + 'volumeRemain' => 'int', + 'minVolume' => 'int', + 'price' => 'double', + 'isBuyOrder' => 'bool', + 'duration' => 'int', + 'issued' => '\DateTime', + 'range' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'orderId' => 'int64', + 'typeId' => 'int32', + 'locationId' => 'int64', + 'volumeTotal' => 'int32', + 'volumeRemain' => 'int32', + 'minVolume' => 'int32', + 'price' => 'double', + 'isBuyOrder' => null, + 'duration' => 'int32', + 'issued' => 'date-time', + 'range' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'orderId' => 'order_id', + 'typeId' => 'type_id', + 'locationId' => 'location_id', + 'volumeTotal' => 'volume_total', + 'volumeRemain' => 'volume_remain', + 'minVolume' => 'min_volume', + 'price' => 'price', + 'isBuyOrder' => 'is_buy_order', + 'duration' => 'duration', + 'issued' => 'issued', + 'range' => 'range' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'orderId' => 'setOrderId', + 'typeId' => 'setTypeId', + 'locationId' => 'setLocationId', + 'volumeTotal' => 'setVolumeTotal', + 'volumeRemain' => 'setVolumeRemain', + 'minVolume' => 'setMinVolume', + 'price' => 'setPrice', + 'isBuyOrder' => 'setIsBuyOrder', + 'duration' => 'setDuration', + 'issued' => 'setIssued', + 'range' => 'setRange' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'orderId' => 'getOrderId', + 'typeId' => 'getTypeId', + 'locationId' => 'getLocationId', + 'volumeTotal' => 'getVolumeTotal', + 'volumeRemain' => 'getVolumeRemain', + 'minVolume' => 'getMinVolume', + 'price' => 'getPrice', + 'isBuyOrder' => 'getIsBuyOrder', + 'duration' => 'getDuration', + 'issued' => 'getIssued', + 'range' => 'getRange' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const RANGE_STATION = 'station'; + const RANGE_REGION = 'region'; + const RANGE_SOLARSYSTEM = 'solarsystem'; + const RANGE__1 = '1'; + const RANGE__2 = '2'; + const RANGE__3 = '3'; + const RANGE__4 = '4'; + const RANGE__5 = '5'; + const RANGE__10 = '10'; + const RANGE__20 = '20'; + const RANGE__30 = '30'; + const RANGE__40 = '40'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getRangeAllowableValues() + { + return [ + self::RANGE_STATION, + self::RANGE_REGION, + self::RANGE_SOLARSYSTEM, + self::RANGE__1, + self::RANGE__2, + self::RANGE__3, + self::RANGE__4, + self::RANGE__5, + self::RANGE__10, + self::RANGE__20, + self::RANGE__30, + self::RANGE__40, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['orderId'] = isset($data['orderId']) ? $data['orderId'] : null; + $this->container['typeId'] = isset($data['typeId']) ? $data['typeId'] : null; + $this->container['locationId'] = isset($data['locationId']) ? $data['locationId'] : null; + $this->container['volumeTotal'] = isset($data['volumeTotal']) ? $data['volumeTotal'] : null; + $this->container['volumeRemain'] = isset($data['volumeRemain']) ? $data['volumeRemain'] : null; + $this->container['minVolume'] = isset($data['minVolume']) ? $data['minVolume'] : null; + $this->container['price'] = isset($data['price']) ? $data['price'] : null; + $this->container['isBuyOrder'] = isset($data['isBuyOrder']) ? $data['isBuyOrder'] : null; + $this->container['duration'] = isset($data['duration']) ? $data['duration'] : null; + $this->container['issued'] = isset($data['issued']) ? $data['issued'] : null; + $this->container['range'] = isset($data['range']) ? $data['range'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['orderId'] === null) { + $invalidProperties[] = "'orderId' can't be null"; + } + if ($this->container['typeId'] === null) { + $invalidProperties[] = "'typeId' can't be null"; + } + if ($this->container['locationId'] === null) { + $invalidProperties[] = "'locationId' can't be null"; + } + if ($this->container['volumeTotal'] === null) { + $invalidProperties[] = "'volumeTotal' can't be null"; + } + if ($this->container['volumeRemain'] === null) { + $invalidProperties[] = "'volumeRemain' can't be null"; + } + if ($this->container['minVolume'] === null) { + $invalidProperties[] = "'minVolume' can't be null"; + } + if ($this->container['price'] === null) { + $invalidProperties[] = "'price' can't be null"; + } + if ($this->container['isBuyOrder'] === null) { + $invalidProperties[] = "'isBuyOrder' can't be null"; + } + if ($this->container['duration'] === null) { + $invalidProperties[] = "'duration' can't be null"; + } + if ($this->container['issued'] === null) { + $invalidProperties[] = "'issued' can't be null"; + } + if ($this->container['range'] === null) { + $invalidProperties[] = "'range' can't be null"; + } + $allowedValues = $this->getRangeAllowableValues(); + if (!in_array($this->container['range'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'range', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['orderId'] === null) { + return false; + } + if ($this->container['typeId'] === null) { + return false; + } + if ($this->container['locationId'] === null) { + return false; + } + if ($this->container['volumeTotal'] === null) { + return false; + } + if ($this->container['volumeRemain'] === null) { + return false; + } + if ($this->container['minVolume'] === null) { + return false; + } + if ($this->container['price'] === null) { + return false; + } + if ($this->container['isBuyOrder'] === null) { + return false; + } + if ($this->container['duration'] === null) { + return false; + } + if ($this->container['issued'] === null) { + return false; + } + if ($this->container['range'] === null) { + return false; + } + $allowedValues = $this->getRangeAllowableValues(); + if (!in_array($this->container['range'], $allowedValues)) { + return false; + } + return true; + } + + + /** + * Gets orderId + * + * @return int + */ + public function getOrderId() + { + return $this->container['orderId']; + } + + /** + * Sets orderId + * + * @param int $orderId order_id integer + * + * @return $this + */ + public function setOrderId($orderId) + { + $this->container['orderId'] = $orderId; + + return $this; + } + + /** + * Gets typeId + * + * @return int + */ + public function getTypeId() + { + return $this->container['typeId']; + } + + /** + * Sets typeId + * + * @param int $typeId type_id integer + * + * @return $this + */ + public function setTypeId($typeId) + { + $this->container['typeId'] = $typeId; + + return $this; + } + + /** + * Gets locationId + * + * @return int + */ + public function getLocationId() + { + return $this->container['locationId']; + } + + /** + * Sets locationId + * + * @param int $locationId location_id integer + * + * @return $this + */ + public function setLocationId($locationId) + { + $this->container['locationId'] = $locationId; + + return $this; + } + + /** + * Gets volumeTotal + * + * @return int + */ + public function getVolumeTotal() + { + return $this->container['volumeTotal']; + } + + /** + * Sets volumeTotal + * + * @param int $volumeTotal volume_total integer + * + * @return $this + */ + public function setVolumeTotal($volumeTotal) + { + $this->container['volumeTotal'] = $volumeTotal; + + return $this; + } + + /** + * Gets volumeRemain + * + * @return int + */ + public function getVolumeRemain() + { + return $this->container['volumeRemain']; + } + + /** + * Sets volumeRemain + * + * @param int $volumeRemain volume_remain integer + * + * @return $this + */ + public function setVolumeRemain($volumeRemain) + { + $this->container['volumeRemain'] = $volumeRemain; + + return $this; + } + + /** + * Gets minVolume + * + * @return int + */ + public function getMinVolume() + { + return $this->container['minVolume']; + } + + /** + * Sets minVolume + * + * @param int $minVolume min_volume integer + * + * @return $this + */ + public function setMinVolume($minVolume) + { + $this->container['minVolume'] = $minVolume; + + return $this; + } + + /** + * Gets price + * + * @return double + */ + public function getPrice() + { + return $this->container['price']; + } + + /** + * Sets price + * + * @param double $price price number + * + * @return $this + */ + public function setPrice($price) + { + $this->container['price'] = $price; + + return $this; + } + + /** + * Gets isBuyOrder + * + * @return bool + */ + public function getIsBuyOrder() + { + return $this->container['isBuyOrder']; + } + + /** + * Sets isBuyOrder + * + * @param bool $isBuyOrder is_buy_order boolean + * + * @return $this + */ + public function setIsBuyOrder($isBuyOrder) + { + $this->container['isBuyOrder'] = $isBuyOrder; + + return $this; + } + + /** + * Gets duration + * + * @return int + */ + public function getDuration() + { + return $this->container['duration']; + } + + /** + * Sets duration + * + * @param int $duration duration integer + * + * @return $this + */ + public function setDuration($duration) + { + $this->container['duration'] = $duration; + + return $this; + } + + /** + * Gets issued + * + * @return \DateTime + */ + public function getIssued() + { + return $this->container['issued']; + } + + /** + * Sets issued + * + * @param \DateTime $issued issued string + * + * @return $this + */ + public function setIssued($issued) + { + $this->container['issued'] = $issued; + + return $this; + } + + /** + * Gets range + * + * @return string + */ + public function getRange() + { + return $this->container['range']; + } + + /** + * Sets range + * + * @param string $range range string + * + * @return $this + */ + public function setRange($range) + { + $allowedValues = $this->getRangeAllowableValues(); + if (!in_array($range, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'range', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['range'] = $range; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetOpportunitiesGroupsGroupIdOk.php b/src/nullx27/ESI/Models/GetOpportunitiesGroupsGroupIdOk.php new file mode 100644 index 0000000..56deadf --- /dev/null +++ b/src/nullx27/ESI/Models/GetOpportunitiesGroupsGroupIdOk.php @@ -0,0 +1,489 @@ + 'int', + 'name' => 'string', + 'description' => 'string', + 'notification' => 'string', + 'requiredTasks' => 'int[]', + 'connectedGroups' => 'int[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'groupId' => 'int32', + 'name' => null, + 'description' => null, + 'notification' => null, + 'requiredTasks' => 'int32', + 'connectedGroups' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'groupId' => 'group_id', + 'name' => 'name', + 'description' => 'description', + 'notification' => 'notification', + 'requiredTasks' => 'required_tasks', + 'connectedGroups' => 'connected_groups' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'groupId' => 'setGroupId', + 'name' => 'setName', + 'description' => 'setDescription', + 'notification' => 'setNotification', + 'requiredTasks' => 'setRequiredTasks', + 'connectedGroups' => 'setConnectedGroups' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'groupId' => 'getGroupId', + 'name' => 'getName', + 'description' => 'getDescription', + 'notification' => 'getNotification', + 'requiredTasks' => 'getRequiredTasks', + 'connectedGroups' => 'getConnectedGroups' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['groupId'] = isset($data['groupId']) ? $data['groupId'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['description'] = isset($data['description']) ? $data['description'] : null; + $this->container['notification'] = isset($data['notification']) ? $data['notification'] : null; + $this->container['requiredTasks'] = isset($data['requiredTasks']) ? $data['requiredTasks'] : null; + $this->container['connectedGroups'] = isset($data['connectedGroups']) ? $data['connectedGroups'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['groupId'] === null) { + $invalidProperties[] = "'groupId' can't be null"; + } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ($this->container['description'] === null) { + $invalidProperties[] = "'description' can't be null"; + } + if ($this->container['notification'] === null) { + $invalidProperties[] = "'notification' can't be null"; + } + if ($this->container['requiredTasks'] === null) { + $invalidProperties[] = "'requiredTasks' can't be null"; + } + if ($this->container['connectedGroups'] === null) { + $invalidProperties[] = "'connectedGroups' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['groupId'] === null) { + return false; + } + if ($this->container['name'] === null) { + return false; + } + if ($this->container['description'] === null) { + return false; + } + if ($this->container['notification'] === null) { + return false; + } + if ($this->container['requiredTasks'] === null) { + return false; + } + if ($this->container['connectedGroups'] === null) { + return false; + } + return true; + } + + + /** + * Gets groupId + * + * @return int + */ + public function getGroupId() + { + return $this->container['groupId']; + } + + /** + * Sets groupId + * + * @param int $groupId group_id integer + * + * @return $this + */ + public function setGroupId($groupId) + { + $this->container['groupId'] = $groupId; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets description + * + * @return string + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string $description description string + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets notification + * + * @return string + */ + public function getNotification() + { + return $this->container['notification']; + } + + /** + * Sets notification + * + * @param string $notification notification string + * + * @return $this + */ + public function setNotification($notification) + { + $this->container['notification'] = $notification; + + return $this; + } + + /** + * Gets requiredTasks + * + * @return int[] + */ + public function getRequiredTasks() + { + return $this->container['requiredTasks']; + } + + /** + * Sets requiredTasks + * + * @param int[] $requiredTasks Tasks need to complete for this group + * + * @return $this + */ + public function setRequiredTasks($requiredTasks) + { + $this->container['requiredTasks'] = $requiredTasks; + + return $this; + } + + /** + * Gets connectedGroups + * + * @return int[] + */ + public function getConnectedGroups() + { + return $this->container['connectedGroups']; + } + + /** + * Sets connectedGroups + * + * @param int[] $connectedGroups The groups that are connected to this group on the opportunities map + * + * @return $this + */ + public function setConnectedGroups($connectedGroups) + { + $this->container['connectedGroups'] = $connectedGroups; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetOpportunitiesTasksTaskIdOk.php b/src/nullx27/ESI/Models/GetOpportunitiesTasksTaskIdOk.php new file mode 100644 index 0000000..3a4fbdd --- /dev/null +++ b/src/nullx27/ESI/Models/GetOpportunitiesTasksTaskIdOk.php @@ -0,0 +1,417 @@ + 'int', + 'name' => 'string', + 'description' => 'string', + 'notification' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'taskId' => 'int32', + 'name' => null, + 'description' => null, + 'notification' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'taskId' => 'task_id', + 'name' => 'name', + 'description' => 'description', + 'notification' => 'notification' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'taskId' => 'setTaskId', + 'name' => 'setName', + 'description' => 'setDescription', + 'notification' => 'setNotification' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'taskId' => 'getTaskId', + 'name' => 'getName', + 'description' => 'getDescription', + 'notification' => 'getNotification' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['taskId'] = isset($data['taskId']) ? $data['taskId'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['description'] = isset($data['description']) ? $data['description'] : null; + $this->container['notification'] = isset($data['notification']) ? $data['notification'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['taskId'] === null) { + $invalidProperties[] = "'taskId' can't be null"; + } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ($this->container['description'] === null) { + $invalidProperties[] = "'description' can't be null"; + } + if ($this->container['notification'] === null) { + $invalidProperties[] = "'notification' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['taskId'] === null) { + return false; + } + if ($this->container['name'] === null) { + return false; + } + if ($this->container['description'] === null) { + return false; + } + if ($this->container['notification'] === null) { + return false; + } + return true; + } + + + /** + * Gets taskId + * + * @return int + */ + public function getTaskId() + { + return $this->container['taskId']; + } + + /** + * Sets taskId + * + * @param int $taskId task_id integer + * + * @return $this + */ + public function setTaskId($taskId) + { + $this->container['taskId'] = $taskId; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets description + * + * @return string + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string $description description string + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets notification + * + * @return string + */ + public function getNotification() + { + return $this->container['notification']; + } + + /** + * Sets notification + * + * @param string $notification notification string + * + * @return $this + */ + public function setNotification($notification) + { + $this->container['notification'] = $notification; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetRouteOriginDestinationNotFound.php b/src/nullx27/ESI/Models/GetRouteOriginDestinationNotFound.php new file mode 100644 index 0000000..ebb624f --- /dev/null +++ b/src/nullx27/ESI/Models/GetRouteOriginDestinationNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Not found message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetSearchOk.php b/src/nullx27/ESI/Models/GetSearchOk.php new file mode 100644 index 0000000..412aa6b --- /dev/null +++ b/src/nullx27/ESI/Models/GetSearchOk.php @@ -0,0 +1,573 @@ + 'int[]', + 'alliance' => 'int[]', + 'character' => 'int[]', + 'constellation' => 'int[]', + 'corporation' => 'int[]', + 'faction' => 'int[]', + 'inventoryType' => 'int[]', + 'region' => 'int[]', + 'solarSystem' => 'int[]', + 'station' => 'int[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'agent' => 'int32', + 'alliance' => 'int32', + 'character' => 'int32', + 'constellation' => 'int32', + 'corporation' => 'int32', + 'faction' => 'int32', + 'inventoryType' => 'int32', + 'region' => 'int32', + 'solarSystem' => 'int32', + 'station' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'agent' => 'agent', + 'alliance' => 'alliance', + 'character' => 'character', + 'constellation' => 'constellation', + 'corporation' => 'corporation', + 'faction' => 'faction', + 'inventoryType' => 'inventory_type', + 'region' => 'region', + 'solarSystem' => 'solar_system', + 'station' => 'station' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'agent' => 'setAgent', + 'alliance' => 'setAlliance', + 'character' => 'setCharacter', + 'constellation' => 'setConstellation', + 'corporation' => 'setCorporation', + 'faction' => 'setFaction', + 'inventoryType' => 'setInventoryType', + 'region' => 'setRegion', + 'solarSystem' => 'setSolarSystem', + 'station' => 'setStation' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'agent' => 'getAgent', + 'alliance' => 'getAlliance', + 'character' => 'getCharacter', + 'constellation' => 'getConstellation', + 'corporation' => 'getCorporation', + 'faction' => 'getFaction', + 'inventoryType' => 'getInventoryType', + 'region' => 'getRegion', + 'solarSystem' => 'getSolarSystem', + 'station' => 'getStation' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['agent'] = isset($data['agent']) ? $data['agent'] : null; + $this->container['alliance'] = isset($data['alliance']) ? $data['alliance'] : null; + $this->container['character'] = isset($data['character']) ? $data['character'] : null; + $this->container['constellation'] = isset($data['constellation']) ? $data['constellation'] : null; + $this->container['corporation'] = isset($data['corporation']) ? $data['corporation'] : null; + $this->container['faction'] = isset($data['faction']) ? $data['faction'] : null; + $this->container['inventoryType'] = isset($data['inventoryType']) ? $data['inventoryType'] : null; + $this->container['region'] = isset($data['region']) ? $data['region'] : null; + $this->container['solarSystem'] = isset($data['solarSystem']) ? $data['solarSystem'] : null; + $this->container['station'] = isset($data['station']) ? $data['station'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets agent + * + * @return int[] + */ + public function getAgent() + { + return $this->container['agent']; + } + + /** + * Sets agent + * + * @param int[] $agent agent array + * + * @return $this + */ + public function setAgent($agent) + { + $this->container['agent'] = $agent; + + return $this; + } + + /** + * Gets alliance + * + * @return int[] + */ + public function getAlliance() + { + return $this->container['alliance']; + } + + /** + * Sets alliance + * + * @param int[] $alliance alliance array + * + * @return $this + */ + public function setAlliance($alliance) + { + $this->container['alliance'] = $alliance; + + return $this; + } + + /** + * Gets character + * + * @return int[] + */ + public function getCharacter() + { + return $this->container['character']; + } + + /** + * Sets character + * + * @param int[] $character character array + * + * @return $this + */ + public function setCharacter($character) + { + $this->container['character'] = $character; + + return $this; + } + + /** + * Gets constellation + * + * @return int[] + */ + public function getConstellation() + { + return $this->container['constellation']; + } + + /** + * Sets constellation + * + * @param int[] $constellation constellation array + * + * @return $this + */ + public function setConstellation($constellation) + { + $this->container['constellation'] = $constellation; + + return $this; + } + + /** + * Gets corporation + * + * @return int[] + */ + public function getCorporation() + { + return $this->container['corporation']; + } + + /** + * Sets corporation + * + * @param int[] $corporation corporation array + * + * @return $this + */ + public function setCorporation($corporation) + { + $this->container['corporation'] = $corporation; + + return $this; + } + + /** + * Gets faction + * + * @return int[] + */ + public function getFaction() + { + return $this->container['faction']; + } + + /** + * Sets faction + * + * @param int[] $faction faction array + * + * @return $this + */ + public function setFaction($faction) + { + $this->container['faction'] = $faction; + + return $this; + } + + /** + * Gets inventoryType + * + * @return int[] + */ + public function getInventoryType() + { + return $this->container['inventoryType']; + } + + /** + * Sets inventoryType + * + * @param int[] $inventoryType inventory_type array + * + * @return $this + */ + public function setInventoryType($inventoryType) + { + $this->container['inventoryType'] = $inventoryType; + + return $this; + } + + /** + * Gets region + * + * @return int[] + */ + public function getRegion() + { + return $this->container['region']; + } + + /** + * Sets region + * + * @param int[] $region region array + * + * @return $this + */ + public function setRegion($region) + { + $this->container['region'] = $region; + + return $this; + } + + /** + * Gets solarSystem + * + * @return int[] + */ + public function getSolarSystem() + { + return $this->container['solarSystem']; + } + + /** + * Sets solarSystem + * + * @param int[] $solarSystem solar_system array + * + * @return $this + */ + public function setSolarSystem($solarSystem) + { + $this->container['solarSystem'] = $solarSystem; + + return $this; + } + + /** + * Gets station + * + * @return int[] + */ + public function getStation() + { + return $this->container['station']; + } + + /** + * Sets station + * + * @param int[] $station station array + * + * @return $this + */ + public function setStation($station) + { + $this->container['station'] = $station; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetSovereigntyCampaigns200Ok.php b/src/nullx27/ESI/Models/GetSovereigntyCampaigns200Ok.php new file mode 100644 index 0000000..04be4e5 --- /dev/null +++ b/src/nullx27/ESI/Models/GetSovereigntyCampaigns200Ok.php @@ -0,0 +1,649 @@ + 'int', + 'structureId' => 'int', + 'solarSystemId' => 'int', + 'constellationId' => 'int', + 'eventType' => 'string', + 'startTime' => '\DateTime', + 'defenderId' => 'int', + 'defenderScore' => 'float', + 'attackersScore' => 'float', + 'participants' => '\nullx27ESI\nullx27\ESI\Models\GetSovereigntyCampaignsParticipant[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'campaignId' => 'int32', + 'structureId' => 'int64', + 'solarSystemId' => 'int32', + 'constellationId' => 'int32', + 'eventType' => null, + 'startTime' => 'date-time', + 'defenderId' => 'int32', + 'defenderScore' => 'float', + 'attackersScore' => 'float', + 'participants' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'campaignId' => 'campaign_id', + 'structureId' => 'structure_id', + 'solarSystemId' => 'solar_system_id', + 'constellationId' => 'constellation_id', + 'eventType' => 'event_type', + 'startTime' => 'start_time', + 'defenderId' => 'defender_id', + 'defenderScore' => 'defender_score', + 'attackersScore' => 'attackers_score', + 'participants' => 'participants' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'campaignId' => 'setCampaignId', + 'structureId' => 'setStructureId', + 'solarSystemId' => 'setSolarSystemId', + 'constellationId' => 'setConstellationId', + 'eventType' => 'setEventType', + 'startTime' => 'setStartTime', + 'defenderId' => 'setDefenderId', + 'defenderScore' => 'setDefenderScore', + 'attackersScore' => 'setAttackersScore', + 'participants' => 'setParticipants' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'campaignId' => 'getCampaignId', + 'structureId' => 'getStructureId', + 'solarSystemId' => 'getSolarSystemId', + 'constellationId' => 'getConstellationId', + 'eventType' => 'getEventType', + 'startTime' => 'getStartTime', + 'defenderId' => 'getDefenderId', + 'defenderScore' => 'getDefenderScore', + 'attackersScore' => 'getAttackersScore', + 'participants' => 'getParticipants' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const EVENT_TYPE_TCU_DEFENSE = 'tcu_defense'; + const EVENT_TYPE_IHUB_DEFENSE = 'ihub_defense'; + const EVENT_TYPE_STATION_DEFENSE = 'station_defense'; + const EVENT_TYPE_STATION_FREEPORT = 'station_freeport'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getEventTypeAllowableValues() + { + return [ + self::EVENT_TYPE_TCU_DEFENSE, + self::EVENT_TYPE_IHUB_DEFENSE, + self::EVENT_TYPE_STATION_DEFENSE, + self::EVENT_TYPE_STATION_FREEPORT, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['campaignId'] = isset($data['campaignId']) ? $data['campaignId'] : null; + $this->container['structureId'] = isset($data['structureId']) ? $data['structureId'] : null; + $this->container['solarSystemId'] = isset($data['solarSystemId']) ? $data['solarSystemId'] : null; + $this->container['constellationId'] = isset($data['constellationId']) ? $data['constellationId'] : null; + $this->container['eventType'] = isset($data['eventType']) ? $data['eventType'] : null; + $this->container['startTime'] = isset($data['startTime']) ? $data['startTime'] : null; + $this->container['defenderId'] = isset($data['defenderId']) ? $data['defenderId'] : null; + $this->container['defenderScore'] = isset($data['defenderScore']) ? $data['defenderScore'] : null; + $this->container['attackersScore'] = isset($data['attackersScore']) ? $data['attackersScore'] : null; + $this->container['participants'] = isset($data['participants']) ? $data['participants'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['campaignId'] === null) { + $invalidProperties[] = "'campaignId' can't be null"; + } + if ($this->container['structureId'] === null) { + $invalidProperties[] = "'structureId' can't be null"; + } + if ($this->container['solarSystemId'] === null) { + $invalidProperties[] = "'solarSystemId' can't be null"; + } + if ($this->container['constellationId'] === null) { + $invalidProperties[] = "'constellationId' can't be null"; + } + if ($this->container['eventType'] === null) { + $invalidProperties[] = "'eventType' can't be null"; + } + $allowedValues = $this->getEventTypeAllowableValues(); + if (!in_array($this->container['eventType'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'eventType', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['startTime'] === null) { + $invalidProperties[] = "'startTime' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['campaignId'] === null) { + return false; + } + if ($this->container['structureId'] === null) { + return false; + } + if ($this->container['solarSystemId'] === null) { + return false; + } + if ($this->container['constellationId'] === null) { + return false; + } + if ($this->container['eventType'] === null) { + return false; + } + $allowedValues = $this->getEventTypeAllowableValues(); + if (!in_array($this->container['eventType'], $allowedValues)) { + return false; + } + if ($this->container['startTime'] === null) { + return false; + } + return true; + } + + + /** + * Gets campaignId + * + * @return int + */ + public function getCampaignId() + { + return $this->container['campaignId']; + } + + /** + * Sets campaignId + * + * @param int $campaignId Unique ID for this campaign. + * + * @return $this + */ + public function setCampaignId($campaignId) + { + $this->container['campaignId'] = $campaignId; + + return $this; + } + + /** + * Gets structureId + * + * @return int + */ + public function getStructureId() + { + return $this->container['structureId']; + } + + /** + * Sets structureId + * + * @param int $structureId The structure item ID that is related to this campaign. + * + * @return $this + */ + public function setStructureId($structureId) + { + $this->container['structureId'] = $structureId; + + return $this; + } + + /** + * Gets solarSystemId + * + * @return int + */ + public function getSolarSystemId() + { + return $this->container['solarSystemId']; + } + + /** + * Sets solarSystemId + * + * @param int $solarSystemId The solar system the structure is located in. + * + * @return $this + */ + public function setSolarSystemId($solarSystemId) + { + $this->container['solarSystemId'] = $solarSystemId; + + return $this; + } + + /** + * Gets constellationId + * + * @return int + */ + public function getConstellationId() + { + return $this->container['constellationId']; + } + + /** + * Sets constellationId + * + * @param int $constellationId The constellation in which the campaign will take place. + * + * @return $this + */ + public function setConstellationId($constellationId) + { + $this->container['constellationId'] = $constellationId; + + return $this; + } + + /** + * Gets eventType + * + * @return string + */ + public function getEventType() + { + return $this->container['eventType']; + } + + /** + * Sets eventType + * + * @param string $eventType Type of event this campaign is for. tcu_defense, ihub_defense and station_defense are referred to as \"Defense Events\", station_freeport as \"Freeport Events\". + * + * @return $this + */ + public function setEventType($eventType) + { + $allowedValues = $this->getEventTypeAllowableValues(); + if (!in_array($eventType, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'eventType', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['eventType'] = $eventType; + + return $this; + } + + /** + * Gets startTime + * + * @return \DateTime + */ + public function getStartTime() + { + return $this->container['startTime']; + } + + /** + * Sets startTime + * + * @param \DateTime $startTime Time the event is scheduled to start. + * + * @return $this + */ + public function setStartTime($startTime) + { + $this->container['startTime'] = $startTime; + + return $this; + } + + /** + * Gets defenderId + * + * @return int + */ + public function getDefenderId() + { + return $this->container['defenderId']; + } + + /** + * Sets defenderId + * + * @param int $defenderId Defending alliance, only present in Defense Events + * + * @return $this + */ + public function setDefenderId($defenderId) + { + $this->container['defenderId'] = $defenderId; + + return $this; + } + + /** + * Gets defenderScore + * + * @return float + */ + public function getDefenderScore() + { + return $this->container['defenderScore']; + } + + /** + * Sets defenderScore + * + * @param float $defenderScore Score for the defending alliance, only present in Defense Events. + * + * @return $this + */ + public function setDefenderScore($defenderScore) + { + $this->container['defenderScore'] = $defenderScore; + + return $this; + } + + /** + * Gets attackersScore + * + * @return float + */ + public function getAttackersScore() + { + return $this->container['attackersScore']; + } + + /** + * Sets attackersScore + * + * @param float $attackersScore Score for all attacking parties, only present in Defense Events. + * + * @return $this + */ + public function setAttackersScore($attackersScore) + { + $this->container['attackersScore'] = $attackersScore; + + return $this; + } + + /** + * Gets participants + * + * @return \nullx27ESI\nullx27\ESI\Models\GetSovereigntyCampaignsParticipant[] + */ + public function getParticipants() + { + return $this->container['participants']; + } + + /** + * Sets participants + * + * @param \nullx27ESI\nullx27\ESI\Models\GetSovereigntyCampaignsParticipant[] $participants Alliance participating and their respective scores, only present in Freeport Events. + * + * @return $this + */ + public function setParticipants($participants) + { + $this->container['participants'] = $participants; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetSovereigntyCampaignsParticipant.php b/src/nullx27/ESI/Models/GetSovereigntyCampaignsParticipant.php new file mode 100644 index 0000000..81d0003 --- /dev/null +++ b/src/nullx27/ESI/Models/GetSovereigntyCampaignsParticipant.php @@ -0,0 +1,345 @@ + 'int', + 'score' => 'float' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'allianceId' => 'int32', + 'score' => 'float' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'allianceId' => 'alliance_id', + 'score' => 'score' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'allianceId' => 'setAllianceId', + 'score' => 'setScore' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'allianceId' => 'getAllianceId', + 'score' => 'getScore' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['allianceId'] = isset($data['allianceId']) ? $data['allianceId'] : null; + $this->container['score'] = isset($data['score']) ? $data['score'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['allianceId'] === null) { + $invalidProperties[] = "'allianceId' can't be null"; + } + if ($this->container['score'] === null) { + $invalidProperties[] = "'score' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['allianceId'] === null) { + return false; + } + if ($this->container['score'] === null) { + return false; + } + return true; + } + + + /** + * Gets allianceId + * + * @return int + */ + public function getAllianceId() + { + return $this->container['allianceId']; + } + + /** + * Sets allianceId + * + * @param int $allianceId alliance_id integer + * + * @return $this + */ + public function setAllianceId($allianceId) + { + $this->container['allianceId'] = $allianceId; + + return $this; + } + + /** + * Gets score + * + * @return float + */ + public function getScore() + { + return $this->container['score']; + } + + /** + * Sets score + * + * @param float $score score number + * + * @return $this + */ + public function setScore($score) + { + $this->container['score'] = $score; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetSovereigntyMap200Ok.php b/src/nullx27/ESI/Models/GetSovereigntyMap200Ok.php new file mode 100644 index 0000000..04c06d7 --- /dev/null +++ b/src/nullx27/ESI/Models/GetSovereigntyMap200Ok.php @@ -0,0 +1,399 @@ + 'int', + 'allianceId' => 'int', + 'corporationId' => 'int', + 'factionId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'systemId' => 'int32', + 'allianceId' => 'int32', + 'corporationId' => 'int32', + 'factionId' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'systemId' => 'system_id', + 'allianceId' => 'alliance_id', + 'corporationId' => 'corporation_id', + 'factionId' => 'faction_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'systemId' => 'setSystemId', + 'allianceId' => 'setAllianceId', + 'corporationId' => 'setCorporationId', + 'factionId' => 'setFactionId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'systemId' => 'getSystemId', + 'allianceId' => 'getAllianceId', + 'corporationId' => 'getCorporationId', + 'factionId' => 'getFactionId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['systemId'] = isset($data['systemId']) ? $data['systemId'] : null; + $this->container['allianceId'] = isset($data['allianceId']) ? $data['allianceId'] : null; + $this->container['corporationId'] = isset($data['corporationId']) ? $data['corporationId'] : null; + $this->container['factionId'] = isset($data['factionId']) ? $data['factionId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['systemId'] === null) { + $invalidProperties[] = "'systemId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['systemId'] === null) { + return false; + } + return true; + } + + + /** + * Gets systemId + * + * @return int + */ + public function getSystemId() + { + return $this->container['systemId']; + } + + /** + * Sets systemId + * + * @param int $systemId system_id integer + * + * @return $this + */ + public function setSystemId($systemId) + { + $this->container['systemId'] = $systemId; + + return $this; + } + + /** + * Gets allianceId + * + * @return int + */ + public function getAllianceId() + { + return $this->container['allianceId']; + } + + /** + * Sets allianceId + * + * @param int $allianceId alliance_id integer + * + * @return $this + */ + public function setAllianceId($allianceId) + { + $this->container['allianceId'] = $allianceId; + + return $this; + } + + /** + * Gets corporationId + * + * @return int + */ + public function getCorporationId() + { + return $this->container['corporationId']; + } + + /** + * Sets corporationId + * + * @param int $corporationId corporation_id integer + * + * @return $this + */ + public function setCorporationId($corporationId) + { + $this->container['corporationId'] = $corporationId; + + return $this; + } + + /** + * Gets factionId + * + * @return int + */ + public function getFactionId() + { + return $this->container['factionId']; + } + + /** + * Sets factionId + * + * @param int $factionId faction_id integer + * + * @return $this + */ + public function setFactionId($factionId) + { + $this->container['factionId'] = $factionId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetSovereigntyStructures200Ok.php b/src/nullx27/ESI/Models/GetSovereigntyStructures200Ok.php new file mode 100644 index 0000000..63ec32f --- /dev/null +++ b/src/nullx27/ESI/Models/GetSovereigntyStructures200Ok.php @@ -0,0 +1,507 @@ + 'int', + 'solarSystemId' => 'int', + 'structureId' => 'int', + 'structureTypeId' => 'int', + 'vulnerabilityOccupancyLevel' => 'float', + 'vulnerableStartTime' => '\DateTime', + 'vulnerableEndTime' => '\DateTime' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'allianceId' => 'int32', + 'solarSystemId' => 'int32', + 'structureId' => 'int64', + 'structureTypeId' => 'int32', + 'vulnerabilityOccupancyLevel' => 'float', + 'vulnerableStartTime' => 'date-time', + 'vulnerableEndTime' => 'date-time' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'allianceId' => 'alliance_id', + 'solarSystemId' => 'solar_system_id', + 'structureId' => 'structure_id', + 'structureTypeId' => 'structure_type_id', + 'vulnerabilityOccupancyLevel' => 'vulnerability_occupancy_level', + 'vulnerableStartTime' => 'vulnerable_start_time', + 'vulnerableEndTime' => 'vulnerable_end_time' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'allianceId' => 'setAllianceId', + 'solarSystemId' => 'setSolarSystemId', + 'structureId' => 'setStructureId', + 'structureTypeId' => 'setStructureTypeId', + 'vulnerabilityOccupancyLevel' => 'setVulnerabilityOccupancyLevel', + 'vulnerableStartTime' => 'setVulnerableStartTime', + 'vulnerableEndTime' => 'setVulnerableEndTime' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'allianceId' => 'getAllianceId', + 'solarSystemId' => 'getSolarSystemId', + 'structureId' => 'getStructureId', + 'structureTypeId' => 'getStructureTypeId', + 'vulnerabilityOccupancyLevel' => 'getVulnerabilityOccupancyLevel', + 'vulnerableStartTime' => 'getVulnerableStartTime', + 'vulnerableEndTime' => 'getVulnerableEndTime' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['allianceId'] = isset($data['allianceId']) ? $data['allianceId'] : null; + $this->container['solarSystemId'] = isset($data['solarSystemId']) ? $data['solarSystemId'] : null; + $this->container['structureId'] = isset($data['structureId']) ? $data['structureId'] : null; + $this->container['structureTypeId'] = isset($data['structureTypeId']) ? $data['structureTypeId'] : null; + $this->container['vulnerabilityOccupancyLevel'] = isset($data['vulnerabilityOccupancyLevel']) ? $data['vulnerabilityOccupancyLevel'] : null; + $this->container['vulnerableStartTime'] = isset($data['vulnerableStartTime']) ? $data['vulnerableStartTime'] : null; + $this->container['vulnerableEndTime'] = isset($data['vulnerableEndTime']) ? $data['vulnerableEndTime'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['allianceId'] === null) { + $invalidProperties[] = "'allianceId' can't be null"; + } + if ($this->container['solarSystemId'] === null) { + $invalidProperties[] = "'solarSystemId' can't be null"; + } + if ($this->container['structureId'] === null) { + $invalidProperties[] = "'structureId' can't be null"; + } + if ($this->container['structureTypeId'] === null) { + $invalidProperties[] = "'structureTypeId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['allianceId'] === null) { + return false; + } + if ($this->container['solarSystemId'] === null) { + return false; + } + if ($this->container['structureId'] === null) { + return false; + } + if ($this->container['structureTypeId'] === null) { + return false; + } + return true; + } + + + /** + * Gets allianceId + * + * @return int + */ + public function getAllianceId() + { + return $this->container['allianceId']; + } + + /** + * Sets allianceId + * + * @param int $allianceId The alliance that owns the structure. + * + * @return $this + */ + public function setAllianceId($allianceId) + { + $this->container['allianceId'] = $allianceId; + + return $this; + } + + /** + * Gets solarSystemId + * + * @return int + */ + public function getSolarSystemId() + { + return $this->container['solarSystemId']; + } + + /** + * Sets solarSystemId + * + * @param int $solarSystemId Solar system in which the structure is located. + * + * @return $this + */ + public function setSolarSystemId($solarSystemId) + { + $this->container['solarSystemId'] = $solarSystemId; + + return $this; + } + + /** + * Gets structureId + * + * @return int + */ + public function getStructureId() + { + return $this->container['structureId']; + } + + /** + * Sets structureId + * + * @param int $structureId Unique item ID for this structure. + * + * @return $this + */ + public function setStructureId($structureId) + { + $this->container['structureId'] = $structureId; + + return $this; + } + + /** + * Gets structureTypeId + * + * @return int + */ + public function getStructureTypeId() + { + return $this->container['structureTypeId']; + } + + /** + * Sets structureTypeId + * + * @param int $structureTypeId A reference to the type of structure this is. + * + * @return $this + */ + public function setStructureTypeId($structureTypeId) + { + $this->container['structureTypeId'] = $structureTypeId; + + return $this; + } + + /** + * Gets vulnerabilityOccupancyLevel + * + * @return float + */ + public function getVulnerabilityOccupancyLevel() + { + return $this->container['vulnerabilityOccupancyLevel']; + } + + /** + * Sets vulnerabilityOccupancyLevel + * + * @param float $vulnerabilityOccupancyLevel The occupancy level for the next or current vulnerability window. This takes into account all development indexes and capital system bonuses. Also known as Activity Defense Multiplier from in the client. It increases the time that attackers must spend using their entosis links on the structure. + * + * @return $this + */ + public function setVulnerabilityOccupancyLevel($vulnerabilityOccupancyLevel) + { + $this->container['vulnerabilityOccupancyLevel'] = $vulnerabilityOccupancyLevel; + + return $this; + } + + /** + * Gets vulnerableStartTime + * + * @return \DateTime + */ + public function getVulnerableStartTime() + { + return $this->container['vulnerableStartTime']; + } + + /** + * Sets vulnerableStartTime + * + * @param \DateTime $vulnerableStartTime The next time at which the structure will become vulnerable. Or the start time of the current window if current time is between this and vulnerableEndTime. + * + * @return $this + */ + public function setVulnerableStartTime($vulnerableStartTime) + { + $this->container['vulnerableStartTime'] = $vulnerableStartTime; + + return $this; + } + + /** + * Gets vulnerableEndTime + * + * @return \DateTime + */ + public function getVulnerableEndTime() + { + return $this->container['vulnerableEndTime']; + } + + /** + * Sets vulnerableEndTime + * + * @param \DateTime $vulnerableEndTime The time at which the next or current vulnerability window ends. At the end of a vulnerability window the next window is recalculated and locked in along with the vulnerabilityOccupancyLevel. If the structure is not in 100% entosis control of the defender, it will go in to 'overtime' and stay vulnerable for as long as that situation persists. Only once the defenders have 100% entosis control and has the vulnerableEndTime passed does the vulnerability interval expire and a new one is calculated. + * + * @return $this + */ + public function setVulnerableEndTime($vulnerableEndTime) + { + $this->container['vulnerableEndTime'] = $vulnerableEndTime; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetStatusOk.php b/src/nullx27/ESI/Models/GetStatusOk.php new file mode 100644 index 0000000..7493fda --- /dev/null +++ b/src/nullx27/ESI/Models/GetStatusOk.php @@ -0,0 +1,411 @@ + '\DateTime', + 'players' => 'int', + 'serverVersion' => 'string', + 'vip' => 'bool' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'startTime' => 'date-time', + 'players' => null, + 'serverVersion' => null, + 'vip' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'startTime' => 'start_time', + 'players' => 'players', + 'serverVersion' => 'server_version', + 'vip' => 'vip' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'startTime' => 'setStartTime', + 'players' => 'setPlayers', + 'serverVersion' => 'setServerVersion', + 'vip' => 'setVip' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'startTime' => 'getStartTime', + 'players' => 'getPlayers', + 'serverVersion' => 'getServerVersion', + 'vip' => 'getVip' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['startTime'] = isset($data['startTime']) ? $data['startTime'] : null; + $this->container['players'] = isset($data['players']) ? $data['players'] : null; + $this->container['serverVersion'] = isset($data['serverVersion']) ? $data['serverVersion'] : null; + $this->container['vip'] = isset($data['vip']) ? $data['vip'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['startTime'] === null) { + $invalidProperties[] = "'startTime' can't be null"; + } + if ($this->container['players'] === null) { + $invalidProperties[] = "'players' can't be null"; + } + if ($this->container['serverVersion'] === null) { + $invalidProperties[] = "'serverVersion' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['startTime'] === null) { + return false; + } + if ($this->container['players'] === null) { + return false; + } + if ($this->container['serverVersion'] === null) { + return false; + } + return true; + } + + + /** + * Gets startTime + * + * @return \DateTime + */ + public function getStartTime() + { + return $this->container['startTime']; + } + + /** + * Sets startTime + * + * @param \DateTime $startTime Server start timestamp + * + * @return $this + */ + public function setStartTime($startTime) + { + $this->container['startTime'] = $startTime; + + return $this; + } + + /** + * Gets players + * + * @return int + */ + public function getPlayers() + { + return $this->container['players']; + } + + /** + * Sets players + * + * @param int $players Current online player count + * + * @return $this + */ + public function setPlayers($players) + { + $this->container['players'] = $players; + + return $this; + } + + /** + * Gets serverVersion + * + * @return string + */ + public function getServerVersion() + { + return $this->container['serverVersion']; + } + + /** + * Sets serverVersion + * + * @param string $serverVersion Running version as string + * + * @return $this + */ + public function setServerVersion($serverVersion) + { + $this->container['serverVersion'] = $serverVersion; + + return $this; + } + + /** + * Gets vip + * + * @return bool + */ + public function getVip() + { + return $this->container['vip']; + } + + /** + * Sets vip + * + * @param bool $vip If the server is in VIP mode + * + * @return $this + */ + public function setVip($vip) + { + $this->container['vip'] = $vip; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseBloodlines200Ok.php b/src/nullx27/ESI/Models/GetUniverseBloodlines200Ok.php new file mode 100644 index 0000000..26a6eec --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseBloodlines200Ok.php @@ -0,0 +1,669 @@ + 'int', + 'name' => 'string', + 'description' => 'string', + 'raceId' => 'int', + 'shipTypeId' => 'int', + 'corporationId' => 'int', + 'perception' => 'int', + 'willpower' => 'int', + 'charisma' => 'int', + 'memory' => 'int', + 'intelligence' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'bloodlineId' => 'int32', + 'name' => null, + 'description' => null, + 'raceId' => 'int32', + 'shipTypeId' => 'int32', + 'corporationId' => 'int32', + 'perception' => 'int32', + 'willpower' => 'int32', + 'charisma' => 'int32', + 'memory' => 'int32', + 'intelligence' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'bloodlineId' => 'bloodline_id', + 'name' => 'name', + 'description' => 'description', + 'raceId' => 'race_id', + 'shipTypeId' => 'ship_type_id', + 'corporationId' => 'corporation_id', + 'perception' => 'perception', + 'willpower' => 'willpower', + 'charisma' => 'charisma', + 'memory' => 'memory', + 'intelligence' => 'intelligence' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'bloodlineId' => 'setBloodlineId', + 'name' => 'setName', + 'description' => 'setDescription', + 'raceId' => 'setRaceId', + 'shipTypeId' => 'setShipTypeId', + 'corporationId' => 'setCorporationId', + 'perception' => 'setPerception', + 'willpower' => 'setWillpower', + 'charisma' => 'setCharisma', + 'memory' => 'setMemory', + 'intelligence' => 'setIntelligence' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'bloodlineId' => 'getBloodlineId', + 'name' => 'getName', + 'description' => 'getDescription', + 'raceId' => 'getRaceId', + 'shipTypeId' => 'getShipTypeId', + 'corporationId' => 'getCorporationId', + 'perception' => 'getPerception', + 'willpower' => 'getWillpower', + 'charisma' => 'getCharisma', + 'memory' => 'getMemory', + 'intelligence' => 'getIntelligence' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['bloodlineId'] = isset($data['bloodlineId']) ? $data['bloodlineId'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['description'] = isset($data['description']) ? $data['description'] : null; + $this->container['raceId'] = isset($data['raceId']) ? $data['raceId'] : null; + $this->container['shipTypeId'] = isset($data['shipTypeId']) ? $data['shipTypeId'] : null; + $this->container['corporationId'] = isset($data['corporationId']) ? $data['corporationId'] : null; + $this->container['perception'] = isset($data['perception']) ? $data['perception'] : null; + $this->container['willpower'] = isset($data['willpower']) ? $data['willpower'] : null; + $this->container['charisma'] = isset($data['charisma']) ? $data['charisma'] : null; + $this->container['memory'] = isset($data['memory']) ? $data['memory'] : null; + $this->container['intelligence'] = isset($data['intelligence']) ? $data['intelligence'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['bloodlineId'] === null) { + $invalidProperties[] = "'bloodlineId' can't be null"; + } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ($this->container['description'] === null) { + $invalidProperties[] = "'description' can't be null"; + } + if ($this->container['raceId'] === null) { + $invalidProperties[] = "'raceId' can't be null"; + } + if ($this->container['shipTypeId'] === null) { + $invalidProperties[] = "'shipTypeId' can't be null"; + } + if ($this->container['corporationId'] === null) { + $invalidProperties[] = "'corporationId' can't be null"; + } + if ($this->container['perception'] === null) { + $invalidProperties[] = "'perception' can't be null"; + } + if ($this->container['willpower'] === null) { + $invalidProperties[] = "'willpower' can't be null"; + } + if ($this->container['charisma'] === null) { + $invalidProperties[] = "'charisma' can't be null"; + } + if ($this->container['memory'] === null) { + $invalidProperties[] = "'memory' can't be null"; + } + if ($this->container['intelligence'] === null) { + $invalidProperties[] = "'intelligence' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['bloodlineId'] === null) { + return false; + } + if ($this->container['name'] === null) { + return false; + } + if ($this->container['description'] === null) { + return false; + } + if ($this->container['raceId'] === null) { + return false; + } + if ($this->container['shipTypeId'] === null) { + return false; + } + if ($this->container['corporationId'] === null) { + return false; + } + if ($this->container['perception'] === null) { + return false; + } + if ($this->container['willpower'] === null) { + return false; + } + if ($this->container['charisma'] === null) { + return false; + } + if ($this->container['memory'] === null) { + return false; + } + if ($this->container['intelligence'] === null) { + return false; + } + return true; + } + + + /** + * Gets bloodlineId + * + * @return int + */ + public function getBloodlineId() + { + return $this->container['bloodlineId']; + } + + /** + * Sets bloodlineId + * + * @param int $bloodlineId bloodline_id integer + * + * @return $this + */ + public function setBloodlineId($bloodlineId) + { + $this->container['bloodlineId'] = $bloodlineId; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets description + * + * @return string + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string $description description string + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets raceId + * + * @return int + */ + public function getRaceId() + { + return $this->container['raceId']; + } + + /** + * Sets raceId + * + * @param int $raceId race_id integer + * + * @return $this + */ + public function setRaceId($raceId) + { + $this->container['raceId'] = $raceId; + + return $this; + } + + /** + * Gets shipTypeId + * + * @return int + */ + public function getShipTypeId() + { + return $this->container['shipTypeId']; + } + + /** + * Sets shipTypeId + * + * @param int $shipTypeId ship_type_id integer + * + * @return $this + */ + public function setShipTypeId($shipTypeId) + { + $this->container['shipTypeId'] = $shipTypeId; + + return $this; + } + + /** + * Gets corporationId + * + * @return int + */ + public function getCorporationId() + { + return $this->container['corporationId']; + } + + /** + * Sets corporationId + * + * @param int $corporationId corporation_id integer + * + * @return $this + */ + public function setCorporationId($corporationId) + { + $this->container['corporationId'] = $corporationId; + + return $this; + } + + /** + * Gets perception + * + * @return int + */ + public function getPerception() + { + return $this->container['perception']; + } + + /** + * Sets perception + * + * @param int $perception perception integer + * + * @return $this + */ + public function setPerception($perception) + { + $this->container['perception'] = $perception; + + return $this; + } + + /** + * Gets willpower + * + * @return int + */ + public function getWillpower() + { + return $this->container['willpower']; + } + + /** + * Sets willpower + * + * @param int $willpower willpower integer + * + * @return $this + */ + public function setWillpower($willpower) + { + $this->container['willpower'] = $willpower; + + return $this; + } + + /** + * Gets charisma + * + * @return int + */ + public function getCharisma() + { + return $this->container['charisma']; + } + + /** + * Sets charisma + * + * @param int $charisma charisma integer + * + * @return $this + */ + public function setCharisma($charisma) + { + $this->container['charisma'] = $charisma; + + return $this; + } + + /** + * Gets memory + * + * @return int + */ + public function getMemory() + { + return $this->container['memory']; + } + + /** + * Sets memory + * + * @param int $memory memory integer + * + * @return $this + */ + public function setMemory($memory) + { + $this->container['memory'] = $memory; + + return $this; + } + + /** + * Gets intelligence + * + * @return int + */ + public function getIntelligence() + { + return $this->container['intelligence']; + } + + /** + * Sets intelligence + * + * @param int $intelligence intelligence integer + * + * @return $this + */ + public function setIntelligence($intelligence) + { + $this->container['intelligence'] = $intelligence; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseCategoriesCategoryIdNotFound.php b/src/nullx27/ESI/Models/GetUniverseCategoriesCategoryIdNotFound.php new file mode 100644 index 0000000..1b343ea --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseCategoriesCategoryIdNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Not found message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseCategoriesCategoryIdOk.php b/src/nullx27/ESI/Models/GetUniverseCategoriesCategoryIdOk.php new file mode 100644 index 0000000..60e340d --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseCategoriesCategoryIdOk.php @@ -0,0 +1,417 @@ + 'int', + 'name' => 'string', + 'published' => 'bool', + 'groups' => 'int[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'categoryId' => 'int32', + 'name' => null, + 'published' => null, + 'groups' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'categoryId' => 'category_id', + 'name' => 'name', + 'published' => 'published', + 'groups' => 'groups' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'categoryId' => 'setCategoryId', + 'name' => 'setName', + 'published' => 'setPublished', + 'groups' => 'setGroups' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'categoryId' => 'getCategoryId', + 'name' => 'getName', + 'published' => 'getPublished', + 'groups' => 'getGroups' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['categoryId'] = isset($data['categoryId']) ? $data['categoryId'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['published'] = isset($data['published']) ? $data['published'] : null; + $this->container['groups'] = isset($data['groups']) ? $data['groups'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['categoryId'] === null) { + $invalidProperties[] = "'categoryId' can't be null"; + } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ($this->container['published'] === null) { + $invalidProperties[] = "'published' can't be null"; + } + if ($this->container['groups'] === null) { + $invalidProperties[] = "'groups' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['categoryId'] === null) { + return false; + } + if ($this->container['name'] === null) { + return false; + } + if ($this->container['published'] === null) { + return false; + } + if ($this->container['groups'] === null) { + return false; + } + return true; + } + + + /** + * Gets categoryId + * + * @return int + */ + public function getCategoryId() + { + return $this->container['categoryId']; + } + + /** + * Sets categoryId + * + * @param int $categoryId category_id integer + * + * @return $this + */ + public function setCategoryId($categoryId) + { + $this->container['categoryId'] = $categoryId; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets published + * + * @return bool + */ + public function getPublished() + { + return $this->container['published']; + } + + /** + * Sets published + * + * @param bool $published published boolean + * + * @return $this + */ + public function setPublished($published) + { + $this->container['published'] = $published; + + return $this; + } + + /** + * Gets groups + * + * @return int[] + */ + public function getGroups() + { + return $this->container['groups']; + } + + /** + * Sets groups + * + * @param int[] $groups groups array + * + * @return $this + */ + public function setGroups($groups) + { + $this->container['groups'] = $groups; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseConstellationsConstellationIdNotFound.php b/src/nullx27/ESI/Models/GetUniverseConstellationsConstellationIdNotFound.php new file mode 100644 index 0000000..182465b --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseConstellationsConstellationIdNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Not found message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseConstellationsConstellationIdOk.php b/src/nullx27/ESI/Models/GetUniverseConstellationsConstellationIdOk.php new file mode 100644 index 0000000..23f1d42 --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseConstellationsConstellationIdOk.php @@ -0,0 +1,453 @@ + 'int', + 'name' => 'string', + 'position' => '\nullx27ESI\nullx27\ESI\Models\GetUniverseConstellationsConstellationIdPosition', + 'regionId' => 'int', + 'systems' => 'int[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'constellationId' => 'int32', + 'name' => null, + 'position' => null, + 'regionId' => 'int32', + 'systems' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'constellationId' => 'constellation_id', + 'name' => 'name', + 'position' => 'position', + 'regionId' => 'region_id', + 'systems' => 'systems' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'constellationId' => 'setConstellationId', + 'name' => 'setName', + 'position' => 'setPosition', + 'regionId' => 'setRegionId', + 'systems' => 'setSystems' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'constellationId' => 'getConstellationId', + 'name' => 'getName', + 'position' => 'getPosition', + 'regionId' => 'getRegionId', + 'systems' => 'getSystems' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['constellationId'] = isset($data['constellationId']) ? $data['constellationId'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['position'] = isset($data['position']) ? $data['position'] : null; + $this->container['regionId'] = isset($data['regionId']) ? $data['regionId'] : null; + $this->container['systems'] = isset($data['systems']) ? $data['systems'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['constellationId'] === null) { + $invalidProperties[] = "'constellationId' can't be null"; + } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ($this->container['position'] === null) { + $invalidProperties[] = "'position' can't be null"; + } + if ($this->container['regionId'] === null) { + $invalidProperties[] = "'regionId' can't be null"; + } + if ($this->container['systems'] === null) { + $invalidProperties[] = "'systems' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['constellationId'] === null) { + return false; + } + if ($this->container['name'] === null) { + return false; + } + if ($this->container['position'] === null) { + return false; + } + if ($this->container['regionId'] === null) { + return false; + } + if ($this->container['systems'] === null) { + return false; + } + return true; + } + + + /** + * Gets constellationId + * + * @return int + */ + public function getConstellationId() + { + return $this->container['constellationId']; + } + + /** + * Sets constellationId + * + * @param int $constellationId constellation_id integer + * + * @return $this + */ + public function setConstellationId($constellationId) + { + $this->container['constellationId'] = $constellationId; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets position + * + * @return \nullx27ESI\nullx27\ESI\Models\GetUniverseConstellationsConstellationIdPosition + */ + public function getPosition() + { + return $this->container['position']; + } + + /** + * Sets position + * + * @param \nullx27ESI\nullx27\ESI\Models\GetUniverseConstellationsConstellationIdPosition $position position + * + * @return $this + */ + public function setPosition($position) + { + $this->container['position'] = $position; + + return $this; + } + + /** + * Gets regionId + * + * @return int + */ + public function getRegionId() + { + return $this->container['regionId']; + } + + /** + * Sets regionId + * + * @param int $regionId The region this constellation is in + * + * @return $this + */ + public function setRegionId($regionId) + { + $this->container['regionId'] = $regionId; + + return $this; + } + + /** + * Gets systems + * + * @return int[] + */ + public function getSystems() + { + return $this->container['systems']; + } + + /** + * Sets systems + * + * @param int[] $systems systems array + * + * @return $this + */ + public function setSystems($systems) + { + $this->container['systems'] = $systems; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseConstellationsConstellationIdPosition.php b/src/nullx27/ESI/Models/GetUniverseConstellationsConstellationIdPosition.php new file mode 100644 index 0000000..3cf0361 --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseConstellationsConstellationIdPosition.php @@ -0,0 +1,381 @@ + 'double', + 'y' => 'double', + 'z' => 'double' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'x' => 'double', + 'y' => 'double', + 'z' => 'double' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'x' => 'x', + 'y' => 'y', + 'z' => 'z' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'x' => 'setX', + 'y' => 'setY', + 'z' => 'setZ' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'x' => 'getX', + 'y' => 'getY', + 'z' => 'getZ' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['x'] = isset($data['x']) ? $data['x'] : null; + $this->container['y'] = isset($data['y']) ? $data['y'] : null; + $this->container['z'] = isset($data['z']) ? $data['z'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['x'] === null) { + $invalidProperties[] = "'x' can't be null"; + } + if ($this->container['y'] === null) { + $invalidProperties[] = "'y' can't be null"; + } + if ($this->container['z'] === null) { + $invalidProperties[] = "'z' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['x'] === null) { + return false; + } + if ($this->container['y'] === null) { + return false; + } + if ($this->container['z'] === null) { + return false; + } + return true; + } + + + /** + * Gets x + * + * @return double + */ + public function getX() + { + return $this->container['x']; + } + + /** + * Sets x + * + * @param double $x x number + * + * @return $this + */ + public function setX($x) + { + $this->container['x'] = $x; + + return $this; + } + + /** + * Gets y + * + * @return double + */ + public function getY() + { + return $this->container['y']; + } + + /** + * Sets y + * + * @param double $y y number + * + * @return $this + */ + public function setY($y) + { + $this->container['y'] = $y; + + return $this; + } + + /** + * Gets z + * + * @return double + */ + public function getZ() + { + return $this->container['z']; + } + + /** + * Sets z + * + * @param double $z z number + * + * @return $this + */ + public function setZ($z) + { + $this->container['z'] = $z; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseFactions200Ok.php b/src/nullx27/ESI/Models/GetUniverseFactions200Ok.php new file mode 100644 index 0000000..9d26b74 --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseFactions200Ok.php @@ -0,0 +1,615 @@ + 'int', + 'name' => 'string', + 'description' => 'string', + 'solarSystemId' => 'int', + 'corporationId' => 'int', + 'militiaCorporationId' => 'int', + 'sizeFactor' => 'float', + 'stationCount' => 'int', + 'stationSystemCount' => 'int', + 'isUnique' => 'bool' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'factionId' => 'int32', + 'name' => null, + 'description' => null, + 'solarSystemId' => 'int32', + 'corporationId' => 'int32', + 'militiaCorporationId' => 'int32', + 'sizeFactor' => 'float', + 'stationCount' => 'int32', + 'stationSystemCount' => 'int32', + 'isUnique' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'factionId' => 'faction_id', + 'name' => 'name', + 'description' => 'description', + 'solarSystemId' => 'solar_system_id', + 'corporationId' => 'corporation_id', + 'militiaCorporationId' => 'militia_corporation_id', + 'sizeFactor' => 'size_factor', + 'stationCount' => 'station_count', + 'stationSystemCount' => 'station_system_count', + 'isUnique' => 'is_unique' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'factionId' => 'setFactionId', + 'name' => 'setName', + 'description' => 'setDescription', + 'solarSystemId' => 'setSolarSystemId', + 'corporationId' => 'setCorporationId', + 'militiaCorporationId' => 'setMilitiaCorporationId', + 'sizeFactor' => 'setSizeFactor', + 'stationCount' => 'setStationCount', + 'stationSystemCount' => 'setStationSystemCount', + 'isUnique' => 'setIsUnique' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'factionId' => 'getFactionId', + 'name' => 'getName', + 'description' => 'getDescription', + 'solarSystemId' => 'getSolarSystemId', + 'corporationId' => 'getCorporationId', + 'militiaCorporationId' => 'getMilitiaCorporationId', + 'sizeFactor' => 'getSizeFactor', + 'stationCount' => 'getStationCount', + 'stationSystemCount' => 'getStationSystemCount', + 'isUnique' => 'getIsUnique' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['factionId'] = isset($data['factionId']) ? $data['factionId'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['description'] = isset($data['description']) ? $data['description'] : null; + $this->container['solarSystemId'] = isset($data['solarSystemId']) ? $data['solarSystemId'] : null; + $this->container['corporationId'] = isset($data['corporationId']) ? $data['corporationId'] : null; + $this->container['militiaCorporationId'] = isset($data['militiaCorporationId']) ? $data['militiaCorporationId'] : null; + $this->container['sizeFactor'] = isset($data['sizeFactor']) ? $data['sizeFactor'] : null; + $this->container['stationCount'] = isset($data['stationCount']) ? $data['stationCount'] : null; + $this->container['stationSystemCount'] = isset($data['stationSystemCount']) ? $data['stationSystemCount'] : null; + $this->container['isUnique'] = isset($data['isUnique']) ? $data['isUnique'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['factionId'] === null) { + $invalidProperties[] = "'factionId' can't be null"; + } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ($this->container['description'] === null) { + $invalidProperties[] = "'description' can't be null"; + } + if ($this->container['sizeFactor'] === null) { + $invalidProperties[] = "'sizeFactor' can't be null"; + } + if ($this->container['stationCount'] === null) { + $invalidProperties[] = "'stationCount' can't be null"; + } + if ($this->container['stationSystemCount'] === null) { + $invalidProperties[] = "'stationSystemCount' can't be null"; + } + if ($this->container['isUnique'] === null) { + $invalidProperties[] = "'isUnique' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['factionId'] === null) { + return false; + } + if ($this->container['name'] === null) { + return false; + } + if ($this->container['description'] === null) { + return false; + } + if ($this->container['sizeFactor'] === null) { + return false; + } + if ($this->container['stationCount'] === null) { + return false; + } + if ($this->container['stationSystemCount'] === null) { + return false; + } + if ($this->container['isUnique'] === null) { + return false; + } + return true; + } + + + /** + * Gets factionId + * + * @return int + */ + public function getFactionId() + { + return $this->container['factionId']; + } + + /** + * Sets factionId + * + * @param int $factionId faction_id integer + * + * @return $this + */ + public function setFactionId($factionId) + { + $this->container['factionId'] = $factionId; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets description + * + * @return string + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string $description description string + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets solarSystemId + * + * @return int + */ + public function getSolarSystemId() + { + return $this->container['solarSystemId']; + } + + /** + * Sets solarSystemId + * + * @param int $solarSystemId solar_system_id integer + * + * @return $this + */ + public function setSolarSystemId($solarSystemId) + { + $this->container['solarSystemId'] = $solarSystemId; + + return $this; + } + + /** + * Gets corporationId + * + * @return int + */ + public function getCorporationId() + { + return $this->container['corporationId']; + } + + /** + * Sets corporationId + * + * @param int $corporationId corporation_id integer + * + * @return $this + */ + public function setCorporationId($corporationId) + { + $this->container['corporationId'] = $corporationId; + + return $this; + } + + /** + * Gets militiaCorporationId + * + * @return int + */ + public function getMilitiaCorporationId() + { + return $this->container['militiaCorporationId']; + } + + /** + * Sets militiaCorporationId + * + * @param int $militiaCorporationId militia_corporation_id integer + * + * @return $this + */ + public function setMilitiaCorporationId($militiaCorporationId) + { + $this->container['militiaCorporationId'] = $militiaCorporationId; + + return $this; + } + + /** + * Gets sizeFactor + * + * @return float + */ + public function getSizeFactor() + { + return $this->container['sizeFactor']; + } + + /** + * Sets sizeFactor + * + * @param float $sizeFactor size_factor number + * + * @return $this + */ + public function setSizeFactor($sizeFactor) + { + $this->container['sizeFactor'] = $sizeFactor; + + return $this; + } + + /** + * Gets stationCount + * + * @return int + */ + public function getStationCount() + { + return $this->container['stationCount']; + } + + /** + * Sets stationCount + * + * @param int $stationCount station_count integer + * + * @return $this + */ + public function setStationCount($stationCount) + { + $this->container['stationCount'] = $stationCount; + + return $this; + } + + /** + * Gets stationSystemCount + * + * @return int + */ + public function getStationSystemCount() + { + return $this->container['stationSystemCount']; + } + + /** + * Sets stationSystemCount + * + * @param int $stationSystemCount station_system_count integer + * + * @return $this + */ + public function setStationSystemCount($stationSystemCount) + { + $this->container['stationSystemCount'] = $stationSystemCount; + + return $this; + } + + /** + * Gets isUnique + * + * @return bool + */ + public function getIsUnique() + { + return $this->container['isUnique']; + } + + /** + * Sets isUnique + * + * @param bool $isUnique is_unique boolean + * + * @return $this + */ + public function setIsUnique($isUnique) + { + $this->container['isUnique'] = $isUnique; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseGraphicsGraphicIdNotFound.php b/src/nullx27/ESI/Models/GetUniverseGraphicsGraphicIdNotFound.php new file mode 100644 index 0000000..3a4b11e --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseGraphicsGraphicIdNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Not found message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseGraphicsGraphicIdOk.php b/src/nullx27/ESI/Models/GetUniverseGraphicsGraphicIdOk.php new file mode 100644 index 0000000..a29b521 --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseGraphicsGraphicIdOk.php @@ -0,0 +1,519 @@ + 'int', + 'graphicFile' => 'string', + 'sofRaceName' => 'string', + 'sofFationName' => 'string', + 'sofDna' => 'string', + 'sofHullName' => 'string', + 'collisionFile' => 'string', + 'iconFolder' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'graphicId' => 'int32', + 'graphicFile' => null, + 'sofRaceName' => null, + 'sofFationName' => null, + 'sofDna' => null, + 'sofHullName' => null, + 'collisionFile' => null, + 'iconFolder' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'graphicId' => 'graphic_id', + 'graphicFile' => 'graphic_file', + 'sofRaceName' => 'sof_race_name', + 'sofFationName' => 'sof_fation_name', + 'sofDna' => 'sof_dna', + 'sofHullName' => 'sof_hull_name', + 'collisionFile' => 'collision_file', + 'iconFolder' => 'icon_folder' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'graphicId' => 'setGraphicId', + 'graphicFile' => 'setGraphicFile', + 'sofRaceName' => 'setSofRaceName', + 'sofFationName' => 'setSofFationName', + 'sofDna' => 'setSofDna', + 'sofHullName' => 'setSofHullName', + 'collisionFile' => 'setCollisionFile', + 'iconFolder' => 'setIconFolder' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'graphicId' => 'getGraphicId', + 'graphicFile' => 'getGraphicFile', + 'sofRaceName' => 'getSofRaceName', + 'sofFationName' => 'getSofFationName', + 'sofDna' => 'getSofDna', + 'sofHullName' => 'getSofHullName', + 'collisionFile' => 'getCollisionFile', + 'iconFolder' => 'getIconFolder' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['graphicId'] = isset($data['graphicId']) ? $data['graphicId'] : null; + $this->container['graphicFile'] = isset($data['graphicFile']) ? $data['graphicFile'] : null; + $this->container['sofRaceName'] = isset($data['sofRaceName']) ? $data['sofRaceName'] : null; + $this->container['sofFationName'] = isset($data['sofFationName']) ? $data['sofFationName'] : null; + $this->container['sofDna'] = isset($data['sofDna']) ? $data['sofDna'] : null; + $this->container['sofHullName'] = isset($data['sofHullName']) ? $data['sofHullName'] : null; + $this->container['collisionFile'] = isset($data['collisionFile']) ? $data['collisionFile'] : null; + $this->container['iconFolder'] = isset($data['iconFolder']) ? $data['iconFolder'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['graphicId'] === null) { + $invalidProperties[] = "'graphicId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['graphicId'] === null) { + return false; + } + return true; + } + + + /** + * Gets graphicId + * + * @return int + */ + public function getGraphicId() + { + return $this->container['graphicId']; + } + + /** + * Sets graphicId + * + * @param int $graphicId graphic_id integer + * + * @return $this + */ + public function setGraphicId($graphicId) + { + $this->container['graphicId'] = $graphicId; + + return $this; + } + + /** + * Gets graphicFile + * + * @return string + */ + public function getGraphicFile() + { + return $this->container['graphicFile']; + } + + /** + * Sets graphicFile + * + * @param string $graphicFile graphic_file string + * + * @return $this + */ + public function setGraphicFile($graphicFile) + { + $this->container['graphicFile'] = $graphicFile; + + return $this; + } + + /** + * Gets sofRaceName + * + * @return string + */ + public function getSofRaceName() + { + return $this->container['sofRaceName']; + } + + /** + * Sets sofRaceName + * + * @param string $sofRaceName sof_race_name string + * + * @return $this + */ + public function setSofRaceName($sofRaceName) + { + $this->container['sofRaceName'] = $sofRaceName; + + return $this; + } + + /** + * Gets sofFationName + * + * @return string + */ + public function getSofFationName() + { + return $this->container['sofFationName']; + } + + /** + * Sets sofFationName + * + * @param string $sofFationName sof_fation_name string + * + * @return $this + */ + public function setSofFationName($sofFationName) + { + $this->container['sofFationName'] = $sofFationName; + + return $this; + } + + /** + * Gets sofDna + * + * @return string + */ + public function getSofDna() + { + return $this->container['sofDna']; + } + + /** + * Sets sofDna + * + * @param string $sofDna sof_dna string + * + * @return $this + */ + public function setSofDna($sofDna) + { + $this->container['sofDna'] = $sofDna; + + return $this; + } + + /** + * Gets sofHullName + * + * @return string + */ + public function getSofHullName() + { + return $this->container['sofHullName']; + } + + /** + * Sets sofHullName + * + * @param string $sofHullName sof_hull_name string + * + * @return $this + */ + public function setSofHullName($sofHullName) + { + $this->container['sofHullName'] = $sofHullName; + + return $this; + } + + /** + * Gets collisionFile + * + * @return string + */ + public function getCollisionFile() + { + return $this->container['collisionFile']; + } + + /** + * Sets collisionFile + * + * @param string $collisionFile collision_file string + * + * @return $this + */ + public function setCollisionFile($collisionFile) + { + $this->container['collisionFile'] = $collisionFile; + + return $this; + } + + /** + * Gets iconFolder + * + * @return string + */ + public function getIconFolder() + { + return $this->container['iconFolder']; + } + + /** + * Sets iconFolder + * + * @param string $iconFolder icon_folder string + * + * @return $this + */ + public function setIconFolder($iconFolder) + { + $this->container['iconFolder'] = $iconFolder; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseGroupsGroupIdNotFound.php b/src/nullx27/ESI/Models/GetUniverseGroupsGroupIdNotFound.php new file mode 100644 index 0000000..b9de94b --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseGroupsGroupIdNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Not found message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseGroupsGroupIdOk.php b/src/nullx27/ESI/Models/GetUniverseGroupsGroupIdOk.php new file mode 100644 index 0000000..7cd027f --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseGroupsGroupIdOk.php @@ -0,0 +1,453 @@ + 'int', + 'name' => 'string', + 'published' => 'bool', + 'categoryId' => 'int', + 'types' => 'int[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'groupId' => 'int32', + 'name' => null, + 'published' => null, + 'categoryId' => 'int32', + 'types' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'groupId' => 'group_id', + 'name' => 'name', + 'published' => 'published', + 'categoryId' => 'category_id', + 'types' => 'types' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'groupId' => 'setGroupId', + 'name' => 'setName', + 'published' => 'setPublished', + 'categoryId' => 'setCategoryId', + 'types' => 'setTypes' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'groupId' => 'getGroupId', + 'name' => 'getName', + 'published' => 'getPublished', + 'categoryId' => 'getCategoryId', + 'types' => 'getTypes' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['groupId'] = isset($data['groupId']) ? $data['groupId'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['published'] = isset($data['published']) ? $data['published'] : null; + $this->container['categoryId'] = isset($data['categoryId']) ? $data['categoryId'] : null; + $this->container['types'] = isset($data['types']) ? $data['types'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['groupId'] === null) { + $invalidProperties[] = "'groupId' can't be null"; + } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ($this->container['published'] === null) { + $invalidProperties[] = "'published' can't be null"; + } + if ($this->container['categoryId'] === null) { + $invalidProperties[] = "'categoryId' can't be null"; + } + if ($this->container['types'] === null) { + $invalidProperties[] = "'types' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['groupId'] === null) { + return false; + } + if ($this->container['name'] === null) { + return false; + } + if ($this->container['published'] === null) { + return false; + } + if ($this->container['categoryId'] === null) { + return false; + } + if ($this->container['types'] === null) { + return false; + } + return true; + } + + + /** + * Gets groupId + * + * @return int + */ + public function getGroupId() + { + return $this->container['groupId']; + } + + /** + * Sets groupId + * + * @param int $groupId group_id integer + * + * @return $this + */ + public function setGroupId($groupId) + { + $this->container['groupId'] = $groupId; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets published + * + * @return bool + */ + public function getPublished() + { + return $this->container['published']; + } + + /** + * Sets published + * + * @param bool $published published boolean + * + * @return $this + */ + public function setPublished($published) + { + $this->container['published'] = $published; + + return $this; + } + + /** + * Gets categoryId + * + * @return int + */ + public function getCategoryId() + { + return $this->container['categoryId']; + } + + /** + * Sets categoryId + * + * @param int $categoryId category_id integer + * + * @return $this + */ + public function setCategoryId($categoryId) + { + $this->container['categoryId'] = $categoryId; + + return $this; + } + + /** + * Gets types + * + * @return int[] + */ + public function getTypes() + { + return $this->container['types']; + } + + /** + * Sets types + * + * @param int[] $types types array + * + * @return $this + */ + public function setTypes($types) + { + $this->container['types'] = $types; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseMoonsMoonIdNotFound.php b/src/nullx27/ESI/Models/GetUniverseMoonsMoonIdNotFound.php new file mode 100644 index 0000000..80bc032 --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseMoonsMoonIdNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Not found message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseMoonsMoonIdOk.php b/src/nullx27/ESI/Models/GetUniverseMoonsMoonIdOk.php new file mode 100644 index 0000000..493772c --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseMoonsMoonIdOk.php @@ -0,0 +1,417 @@ + 'int', + 'name' => 'string', + 'position' => '\nullx27ESI\nullx27\ESI\Models\GetUniverseMoonsMoonIdPosition', + 'systemId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'moonId' => 'int32', + 'name' => null, + 'position' => null, + 'systemId' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'moonId' => 'moon_id', + 'name' => 'name', + 'position' => 'position', + 'systemId' => 'system_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'moonId' => 'setMoonId', + 'name' => 'setName', + 'position' => 'setPosition', + 'systemId' => 'setSystemId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'moonId' => 'getMoonId', + 'name' => 'getName', + 'position' => 'getPosition', + 'systemId' => 'getSystemId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['moonId'] = isset($data['moonId']) ? $data['moonId'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['position'] = isset($data['position']) ? $data['position'] : null; + $this->container['systemId'] = isset($data['systemId']) ? $data['systemId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['moonId'] === null) { + $invalidProperties[] = "'moonId' can't be null"; + } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ($this->container['position'] === null) { + $invalidProperties[] = "'position' can't be null"; + } + if ($this->container['systemId'] === null) { + $invalidProperties[] = "'systemId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['moonId'] === null) { + return false; + } + if ($this->container['name'] === null) { + return false; + } + if ($this->container['position'] === null) { + return false; + } + if ($this->container['systemId'] === null) { + return false; + } + return true; + } + + + /** + * Gets moonId + * + * @return int + */ + public function getMoonId() + { + return $this->container['moonId']; + } + + /** + * Sets moonId + * + * @param int $moonId moon_id integer + * + * @return $this + */ + public function setMoonId($moonId) + { + $this->container['moonId'] = $moonId; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets position + * + * @return \nullx27ESI\nullx27\ESI\Models\GetUniverseMoonsMoonIdPosition + */ + public function getPosition() + { + return $this->container['position']; + } + + /** + * Sets position + * + * @param \nullx27ESI\nullx27\ESI\Models\GetUniverseMoonsMoonIdPosition $position position + * + * @return $this + */ + public function setPosition($position) + { + $this->container['position'] = $position; + + return $this; + } + + /** + * Gets systemId + * + * @return int + */ + public function getSystemId() + { + return $this->container['systemId']; + } + + /** + * Sets systemId + * + * @param int $systemId The solar system this moon is in + * + * @return $this + */ + public function setSystemId($systemId) + { + $this->container['systemId'] = $systemId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseMoonsMoonIdPosition.php b/src/nullx27/ESI/Models/GetUniverseMoonsMoonIdPosition.php new file mode 100644 index 0000000..30c0c88 --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseMoonsMoonIdPosition.php @@ -0,0 +1,381 @@ + 'double', + 'y' => 'double', + 'z' => 'double' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'x' => 'double', + 'y' => 'double', + 'z' => 'double' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'x' => 'x', + 'y' => 'y', + 'z' => 'z' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'x' => 'setX', + 'y' => 'setY', + 'z' => 'setZ' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'x' => 'getX', + 'y' => 'getY', + 'z' => 'getZ' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['x'] = isset($data['x']) ? $data['x'] : null; + $this->container['y'] = isset($data['y']) ? $data['y'] : null; + $this->container['z'] = isset($data['z']) ? $data['z'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['x'] === null) { + $invalidProperties[] = "'x' can't be null"; + } + if ($this->container['y'] === null) { + $invalidProperties[] = "'y' can't be null"; + } + if ($this->container['z'] === null) { + $invalidProperties[] = "'z' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['x'] === null) { + return false; + } + if ($this->container['y'] === null) { + return false; + } + if ($this->container['z'] === null) { + return false; + } + return true; + } + + + /** + * Gets x + * + * @return double + */ + public function getX() + { + return $this->container['x']; + } + + /** + * Sets x + * + * @param double $x x number + * + * @return $this + */ + public function setX($x) + { + $this->container['x'] = $x; + + return $this; + } + + /** + * Gets y + * + * @return double + */ + public function getY() + { + return $this->container['y']; + } + + /** + * Sets y + * + * @param double $y y number + * + * @return $this + */ + public function setY($y) + { + $this->container['y'] = $y; + + return $this; + } + + /** + * Gets z + * + * @return double + */ + public function getZ() + { + return $this->container['z']; + } + + /** + * Sets z + * + * @param double $z z number + * + * @return $this + */ + public function setZ($z) + { + $this->container['z'] = $z; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniversePlanetsPlanetIdNotFound.php b/src/nullx27/ESI/Models/GetUniversePlanetsPlanetIdNotFound.php new file mode 100644 index 0000000..61fd034 --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniversePlanetsPlanetIdNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Not found message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniversePlanetsPlanetIdOk.php b/src/nullx27/ESI/Models/GetUniversePlanetsPlanetIdOk.php new file mode 100644 index 0000000..e666f0c --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniversePlanetsPlanetIdOk.php @@ -0,0 +1,453 @@ + 'int', + 'name' => 'string', + 'typeId' => 'int', + 'position' => '\nullx27ESI\nullx27\ESI\Models\GetUniversePlanetsPlanetIdPosition', + 'systemId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'planetId' => 'int32', + 'name' => null, + 'typeId' => 'int32', + 'position' => null, + 'systemId' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'planetId' => 'planet_id', + 'name' => 'name', + 'typeId' => 'type_id', + 'position' => 'position', + 'systemId' => 'system_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'planetId' => 'setPlanetId', + 'name' => 'setName', + 'typeId' => 'setTypeId', + 'position' => 'setPosition', + 'systemId' => 'setSystemId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'planetId' => 'getPlanetId', + 'name' => 'getName', + 'typeId' => 'getTypeId', + 'position' => 'getPosition', + 'systemId' => 'getSystemId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['planetId'] = isset($data['planetId']) ? $data['planetId'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['typeId'] = isset($data['typeId']) ? $data['typeId'] : null; + $this->container['position'] = isset($data['position']) ? $data['position'] : null; + $this->container['systemId'] = isset($data['systemId']) ? $data['systemId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['planetId'] === null) { + $invalidProperties[] = "'planetId' can't be null"; + } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ($this->container['typeId'] === null) { + $invalidProperties[] = "'typeId' can't be null"; + } + if ($this->container['position'] === null) { + $invalidProperties[] = "'position' can't be null"; + } + if ($this->container['systemId'] === null) { + $invalidProperties[] = "'systemId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['planetId'] === null) { + return false; + } + if ($this->container['name'] === null) { + return false; + } + if ($this->container['typeId'] === null) { + return false; + } + if ($this->container['position'] === null) { + return false; + } + if ($this->container['systemId'] === null) { + return false; + } + return true; + } + + + /** + * Gets planetId + * + * @return int + */ + public function getPlanetId() + { + return $this->container['planetId']; + } + + /** + * Sets planetId + * + * @param int $planetId planet_id integer + * + * @return $this + */ + public function setPlanetId($planetId) + { + $this->container['planetId'] = $planetId; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets typeId + * + * @return int + */ + public function getTypeId() + { + return $this->container['typeId']; + } + + /** + * Sets typeId + * + * @param int $typeId type_id integer + * + * @return $this + */ + public function setTypeId($typeId) + { + $this->container['typeId'] = $typeId; + + return $this; + } + + /** + * Gets position + * + * @return \nullx27ESI\nullx27\ESI\Models\GetUniversePlanetsPlanetIdPosition + */ + public function getPosition() + { + return $this->container['position']; + } + + /** + * Sets position + * + * @param \nullx27ESI\nullx27\ESI\Models\GetUniversePlanetsPlanetIdPosition $position position + * + * @return $this + */ + public function setPosition($position) + { + $this->container['position'] = $position; + + return $this; + } + + /** + * Gets systemId + * + * @return int + */ + public function getSystemId() + { + return $this->container['systemId']; + } + + /** + * Sets systemId + * + * @param int $systemId The solar system this planet is in + * + * @return $this + */ + public function setSystemId($systemId) + { + $this->container['systemId'] = $systemId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniversePlanetsPlanetIdPosition.php b/src/nullx27/ESI/Models/GetUniversePlanetsPlanetIdPosition.php new file mode 100644 index 0000000..e6dd153 --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniversePlanetsPlanetIdPosition.php @@ -0,0 +1,381 @@ + 'double', + 'y' => 'double', + 'z' => 'double' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'x' => 'double', + 'y' => 'double', + 'z' => 'double' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'x' => 'x', + 'y' => 'y', + 'z' => 'z' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'x' => 'setX', + 'y' => 'setY', + 'z' => 'setZ' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'x' => 'getX', + 'y' => 'getY', + 'z' => 'getZ' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['x'] = isset($data['x']) ? $data['x'] : null; + $this->container['y'] = isset($data['y']) ? $data['y'] : null; + $this->container['z'] = isset($data['z']) ? $data['z'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['x'] === null) { + $invalidProperties[] = "'x' can't be null"; + } + if ($this->container['y'] === null) { + $invalidProperties[] = "'y' can't be null"; + } + if ($this->container['z'] === null) { + $invalidProperties[] = "'z' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['x'] === null) { + return false; + } + if ($this->container['y'] === null) { + return false; + } + if ($this->container['z'] === null) { + return false; + } + return true; + } + + + /** + * Gets x + * + * @return double + */ + public function getX() + { + return $this->container['x']; + } + + /** + * Sets x + * + * @param double $x x number + * + * @return $this + */ + public function setX($x) + { + $this->container['x'] = $x; + + return $this; + } + + /** + * Gets y + * + * @return double + */ + public function getY() + { + return $this->container['y']; + } + + /** + * Sets y + * + * @param double $y y number + * + * @return $this + */ + public function setY($y) + { + $this->container['y'] = $y; + + return $this; + } + + /** + * Gets z + * + * @return double + */ + public function getZ() + { + return $this->container['z']; + } + + /** + * Sets z + * + * @param double $z z number + * + * @return $this + */ + public function setZ($z) + { + $this->container['z'] = $z; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseRaces200Ok.php b/src/nullx27/ESI/Models/GetUniverseRaces200Ok.php new file mode 100644 index 0000000..3641bdf --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseRaces200Ok.php @@ -0,0 +1,417 @@ + 'int', + 'name' => 'string', + 'description' => 'string', + 'allianceId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'raceId' => 'int32', + 'name' => null, + 'description' => null, + 'allianceId' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'raceId' => 'race_id', + 'name' => 'name', + 'description' => 'description', + 'allianceId' => 'alliance_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'raceId' => 'setRaceId', + 'name' => 'setName', + 'description' => 'setDescription', + 'allianceId' => 'setAllianceId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'raceId' => 'getRaceId', + 'name' => 'getName', + 'description' => 'getDescription', + 'allianceId' => 'getAllianceId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['raceId'] = isset($data['raceId']) ? $data['raceId'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['description'] = isset($data['description']) ? $data['description'] : null; + $this->container['allianceId'] = isset($data['allianceId']) ? $data['allianceId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['raceId'] === null) { + $invalidProperties[] = "'raceId' can't be null"; + } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ($this->container['description'] === null) { + $invalidProperties[] = "'description' can't be null"; + } + if ($this->container['allianceId'] === null) { + $invalidProperties[] = "'allianceId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['raceId'] === null) { + return false; + } + if ($this->container['name'] === null) { + return false; + } + if ($this->container['description'] === null) { + return false; + } + if ($this->container['allianceId'] === null) { + return false; + } + return true; + } + + + /** + * Gets raceId + * + * @return int + */ + public function getRaceId() + { + return $this->container['raceId']; + } + + /** + * Sets raceId + * + * @param int $raceId race_id integer + * + * @return $this + */ + public function setRaceId($raceId) + { + $this->container['raceId'] = $raceId; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets description + * + * @return string + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string $description description string + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets allianceId + * + * @return int + */ + public function getAllianceId() + { + return $this->container['allianceId']; + } + + /** + * Sets allianceId + * + * @param int $allianceId The alliance generally associated with this race + * + * @return $this + */ + public function setAllianceId($allianceId) + { + $this->container['allianceId'] = $allianceId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseRegionsRegionIdNotFound.php b/src/nullx27/ESI/Models/GetUniverseRegionsRegionIdNotFound.php new file mode 100644 index 0000000..2ce332f --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseRegionsRegionIdNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Not found message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseRegionsRegionIdOk.php b/src/nullx27/ESI/Models/GetUniverseRegionsRegionIdOk.php new file mode 100644 index 0000000..f48bb84 --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseRegionsRegionIdOk.php @@ -0,0 +1,411 @@ + 'int', + 'name' => 'string', + 'description' => 'string', + 'constellations' => 'int[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'regionId' => 'int32', + 'name' => null, + 'description' => null, + 'constellations' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'regionId' => 'region_id', + 'name' => 'name', + 'description' => 'description', + 'constellations' => 'constellations' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'regionId' => 'setRegionId', + 'name' => 'setName', + 'description' => 'setDescription', + 'constellations' => 'setConstellations' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'regionId' => 'getRegionId', + 'name' => 'getName', + 'description' => 'getDescription', + 'constellations' => 'getConstellations' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['regionId'] = isset($data['regionId']) ? $data['regionId'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['description'] = isset($data['description']) ? $data['description'] : null; + $this->container['constellations'] = isset($data['constellations']) ? $data['constellations'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['regionId'] === null) { + $invalidProperties[] = "'regionId' can't be null"; + } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ($this->container['constellations'] === null) { + $invalidProperties[] = "'constellations' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['regionId'] === null) { + return false; + } + if ($this->container['name'] === null) { + return false; + } + if ($this->container['constellations'] === null) { + return false; + } + return true; + } + + + /** + * Gets regionId + * + * @return int + */ + public function getRegionId() + { + return $this->container['regionId']; + } + + /** + * Sets regionId + * + * @param int $regionId region_id integer + * + * @return $this + */ + public function setRegionId($regionId) + { + $this->container['regionId'] = $regionId; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets description + * + * @return string + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string $description description string + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets constellations + * + * @return int[] + */ + public function getConstellations() + { + return $this->container['constellations']; + } + + /** + * Sets constellations + * + * @param int[] $constellations constellations array + * + * @return $this + */ + public function setConstellations($constellations) + { + $this->container['constellations'] = $constellations; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseSchematicsSchematicIdNotFound.php b/src/nullx27/ESI/Models/GetUniverseSchematicsSchematicIdNotFound.php new file mode 100644 index 0000000..2bf3105 --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseSchematicsSchematicIdNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error error message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseSchematicsSchematicIdOk.php b/src/nullx27/ESI/Models/GetUniverseSchematicsSchematicIdOk.php new file mode 100644 index 0000000..de27120 --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseSchematicsSchematicIdOk.php @@ -0,0 +1,345 @@ + 'string', + 'cycleTime' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'schematicName' => null, + 'cycleTime' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'schematicName' => 'schematic_name', + 'cycleTime' => 'cycle_time' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'schematicName' => 'setSchematicName', + 'cycleTime' => 'setCycleTime' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'schematicName' => 'getSchematicName', + 'cycleTime' => 'getCycleTime' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['schematicName'] = isset($data['schematicName']) ? $data['schematicName'] : null; + $this->container['cycleTime'] = isset($data['cycleTime']) ? $data['cycleTime'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['schematicName'] === null) { + $invalidProperties[] = "'schematicName' can't be null"; + } + if ($this->container['cycleTime'] === null) { + $invalidProperties[] = "'cycleTime' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['schematicName'] === null) { + return false; + } + if ($this->container['cycleTime'] === null) { + return false; + } + return true; + } + + + /** + * Gets schematicName + * + * @return string + */ + public function getSchematicName() + { + return $this->container['schematicName']; + } + + /** + * Sets schematicName + * + * @param string $schematicName schematic_name string + * + * @return $this + */ + public function setSchematicName($schematicName) + { + $this->container['schematicName'] = $schematicName; + + return $this; + } + + /** + * Gets cycleTime + * + * @return int + */ + public function getCycleTime() + { + return $this->container['cycleTime']; + } + + /** + * Sets cycleTime + * + * @param int $cycleTime Time in seconds to process a run + * + * @return $this + */ + public function setCycleTime($cycleTime) + { + $this->container['cycleTime'] = $cycleTime; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseStargatesStargateIdDestination.php b/src/nullx27/ESI/Models/GetUniverseStargatesStargateIdDestination.php new file mode 100644 index 0000000..5fb4d5e --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseStargatesStargateIdDestination.php @@ -0,0 +1,345 @@ + 'int', + 'stargateId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'systemId' => 'int32', + 'stargateId' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'systemId' => 'system_id', + 'stargateId' => 'stargate_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'systemId' => 'setSystemId', + 'stargateId' => 'setStargateId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'systemId' => 'getSystemId', + 'stargateId' => 'getStargateId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['systemId'] = isset($data['systemId']) ? $data['systemId'] : null; + $this->container['stargateId'] = isset($data['stargateId']) ? $data['stargateId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['systemId'] === null) { + $invalidProperties[] = "'systemId' can't be null"; + } + if ($this->container['stargateId'] === null) { + $invalidProperties[] = "'stargateId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['systemId'] === null) { + return false; + } + if ($this->container['stargateId'] === null) { + return false; + } + return true; + } + + + /** + * Gets systemId + * + * @return int + */ + public function getSystemId() + { + return $this->container['systemId']; + } + + /** + * Sets systemId + * + * @param int $systemId The solar system this stargate connects to + * + * @return $this + */ + public function setSystemId($systemId) + { + $this->container['systemId'] = $systemId; + + return $this; + } + + /** + * Gets stargateId + * + * @return int + */ + public function getStargateId() + { + return $this->container['stargateId']; + } + + /** + * Sets stargateId + * + * @param int $stargateId The stargate this stargate connects to + * + * @return $this + */ + public function setStargateId($stargateId) + { + $this->container['stargateId'] = $stargateId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseStargatesStargateIdNotFound.php b/src/nullx27/ESI/Models/GetUniverseStargatesStargateIdNotFound.php new file mode 100644 index 0000000..c230293 --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseStargatesStargateIdNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Not found message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseStargatesStargateIdOk.php b/src/nullx27/ESI/Models/GetUniverseStargatesStargateIdOk.php new file mode 100644 index 0000000..d7b803e --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseStargatesStargateIdOk.php @@ -0,0 +1,489 @@ + 'int', + 'name' => 'string', + 'typeId' => 'int', + 'position' => '\nullx27ESI\nullx27\ESI\Models\GetUniverseStargatesStargateIdPosition', + 'systemId' => 'int', + 'destination' => '\nullx27ESI\nullx27\ESI\Models\GetUniverseStargatesStargateIdDestination' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'stargateId' => 'int32', + 'name' => null, + 'typeId' => 'int32', + 'position' => null, + 'systemId' => 'int32', + 'destination' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'stargateId' => 'stargate_id', + 'name' => 'name', + 'typeId' => 'type_id', + 'position' => 'position', + 'systemId' => 'system_id', + 'destination' => 'destination' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'stargateId' => 'setStargateId', + 'name' => 'setName', + 'typeId' => 'setTypeId', + 'position' => 'setPosition', + 'systemId' => 'setSystemId', + 'destination' => 'setDestination' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'stargateId' => 'getStargateId', + 'name' => 'getName', + 'typeId' => 'getTypeId', + 'position' => 'getPosition', + 'systemId' => 'getSystemId', + 'destination' => 'getDestination' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['stargateId'] = isset($data['stargateId']) ? $data['stargateId'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['typeId'] = isset($data['typeId']) ? $data['typeId'] : null; + $this->container['position'] = isset($data['position']) ? $data['position'] : null; + $this->container['systemId'] = isset($data['systemId']) ? $data['systemId'] : null; + $this->container['destination'] = isset($data['destination']) ? $data['destination'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['stargateId'] === null) { + $invalidProperties[] = "'stargateId' can't be null"; + } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ($this->container['typeId'] === null) { + $invalidProperties[] = "'typeId' can't be null"; + } + if ($this->container['position'] === null) { + $invalidProperties[] = "'position' can't be null"; + } + if ($this->container['systemId'] === null) { + $invalidProperties[] = "'systemId' can't be null"; + } + if ($this->container['destination'] === null) { + $invalidProperties[] = "'destination' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['stargateId'] === null) { + return false; + } + if ($this->container['name'] === null) { + return false; + } + if ($this->container['typeId'] === null) { + return false; + } + if ($this->container['position'] === null) { + return false; + } + if ($this->container['systemId'] === null) { + return false; + } + if ($this->container['destination'] === null) { + return false; + } + return true; + } + + + /** + * Gets stargateId + * + * @return int + */ + public function getStargateId() + { + return $this->container['stargateId']; + } + + /** + * Sets stargateId + * + * @param int $stargateId stargate_id integer + * + * @return $this + */ + public function setStargateId($stargateId) + { + $this->container['stargateId'] = $stargateId; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets typeId + * + * @return int + */ + public function getTypeId() + { + return $this->container['typeId']; + } + + /** + * Sets typeId + * + * @param int $typeId type_id integer + * + * @return $this + */ + public function setTypeId($typeId) + { + $this->container['typeId'] = $typeId; + + return $this; + } + + /** + * Gets position + * + * @return \nullx27ESI\nullx27\ESI\Models\GetUniverseStargatesStargateIdPosition + */ + public function getPosition() + { + return $this->container['position']; + } + + /** + * Sets position + * + * @param \nullx27ESI\nullx27\ESI\Models\GetUniverseStargatesStargateIdPosition $position position + * + * @return $this + */ + public function setPosition($position) + { + $this->container['position'] = $position; + + return $this; + } + + /** + * Gets systemId + * + * @return int + */ + public function getSystemId() + { + return $this->container['systemId']; + } + + /** + * Sets systemId + * + * @param int $systemId The solar system this stargate is in + * + * @return $this + */ + public function setSystemId($systemId) + { + $this->container['systemId'] = $systemId; + + return $this; + } + + /** + * Gets destination + * + * @return \nullx27ESI\nullx27\ESI\Models\GetUniverseStargatesStargateIdDestination + */ + public function getDestination() + { + return $this->container['destination']; + } + + /** + * Sets destination + * + * @param \nullx27ESI\nullx27\ESI\Models\GetUniverseStargatesStargateIdDestination $destination destination + * + * @return $this + */ + public function setDestination($destination) + { + $this->container['destination'] = $destination; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseStargatesStargateIdPosition.php b/src/nullx27/ESI/Models/GetUniverseStargatesStargateIdPosition.php new file mode 100644 index 0000000..fdbf6b5 --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseStargatesStargateIdPosition.php @@ -0,0 +1,381 @@ + 'double', + 'y' => 'double', + 'z' => 'double' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'x' => 'double', + 'y' => 'double', + 'z' => 'double' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'x' => 'x', + 'y' => 'y', + 'z' => 'z' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'x' => 'setX', + 'y' => 'setY', + 'z' => 'setZ' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'x' => 'getX', + 'y' => 'getY', + 'z' => 'getZ' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['x'] = isset($data['x']) ? $data['x'] : null; + $this->container['y'] = isset($data['y']) ? $data['y'] : null; + $this->container['z'] = isset($data['z']) ? $data['z'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['x'] === null) { + $invalidProperties[] = "'x' can't be null"; + } + if ($this->container['y'] === null) { + $invalidProperties[] = "'y' can't be null"; + } + if ($this->container['z'] === null) { + $invalidProperties[] = "'z' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['x'] === null) { + return false; + } + if ($this->container['y'] === null) { + return false; + } + if ($this->container['z'] === null) { + return false; + } + return true; + } + + + /** + * Gets x + * + * @return double + */ + public function getX() + { + return $this->container['x']; + } + + /** + * Sets x + * + * @param double $x x number + * + * @return $this + */ + public function setX($x) + { + $this->container['x'] = $x; + + return $this; + } + + /** + * Gets y + * + * @return double + */ + public function getY() + { + return $this->container['y']; + } + + /** + * Sets y + * + * @param double $y y number + * + * @return $this + */ + public function setY($y) + { + $this->container['y'] = $y; + + return $this; + } + + /** + * Gets z + * + * @return double + */ + public function getZ() + { + return $this->container['z']; + } + + /** + * Sets z + * + * @param double $z z number + * + * @return $this + */ + public function setZ($z) + { + $this->container['z'] = $z; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseStarsStarIdOk.php b/src/nullx27/ESI/Models/GetUniverseStarsStarIdOk.php new file mode 100644 index 0000000..7e338db --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseStarsStarIdOk.php @@ -0,0 +1,771 @@ + 'string', + 'solarSystemId' => 'int', + 'typeId' => 'int', + 'age' => 'int', + 'luminosity' => 'float', + 'radius' => 'int', + 'spectralClass' => 'string', + 'temperature' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'name' => null, + 'solarSystemId' => 'int32', + 'typeId' => 'int32', + 'age' => 'int64', + 'luminosity' => 'float', + 'radius' => 'int64', + 'spectralClass' => null, + 'temperature' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'name' => 'name', + 'solarSystemId' => 'solar_system_id', + 'typeId' => 'type_id', + 'age' => 'age', + 'luminosity' => 'luminosity', + 'radius' => 'radius', + 'spectralClass' => 'spectral_class', + 'temperature' => 'temperature' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'name' => 'setName', + 'solarSystemId' => 'setSolarSystemId', + 'typeId' => 'setTypeId', + 'age' => 'setAge', + 'luminosity' => 'setLuminosity', + 'radius' => 'setRadius', + 'spectralClass' => 'setSpectralClass', + 'temperature' => 'setTemperature' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'name' => 'getName', + 'solarSystemId' => 'getSolarSystemId', + 'typeId' => 'getTypeId', + 'age' => 'getAge', + 'luminosity' => 'getLuminosity', + 'radius' => 'getRadius', + 'spectralClass' => 'getSpectralClass', + 'temperature' => 'getTemperature' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const SPECTRAL_CLASS_K2_V = 'K2 V'; + const SPECTRAL_CLASS_K4_V = 'K4 V'; + const SPECTRAL_CLASS_G2_V = 'G2 V'; + const SPECTRAL_CLASS_G8_V = 'G8 V'; + const SPECTRAL_CLASS_M7_V = 'M7 V'; + const SPECTRAL_CLASS_K7_V = 'K7 V'; + const SPECTRAL_CLASS_M2_V = 'M2 V'; + const SPECTRAL_CLASS_K5_V = 'K5 V'; + const SPECTRAL_CLASS_M3_V = 'M3 V'; + const SPECTRAL_CLASS_G0_V = 'G0 V'; + const SPECTRAL_CLASS_G7_V = 'G7 V'; + const SPECTRAL_CLASS_G3_V = 'G3 V'; + const SPECTRAL_CLASS_F9_V = 'F9 V'; + const SPECTRAL_CLASS_G5_V = 'G5 V'; + const SPECTRAL_CLASS_F6_V = 'F6 V'; + const SPECTRAL_CLASS_K8_V = 'K8 V'; + const SPECTRAL_CLASS_K9_V = 'K9 V'; + const SPECTRAL_CLASS_K6_V = 'K6 V'; + const SPECTRAL_CLASS_G9_V = 'G9 V'; + const SPECTRAL_CLASS_G6_V = 'G6 V'; + const SPECTRAL_CLASS_G4_VI = 'G4 VI'; + const SPECTRAL_CLASS_G4_V = 'G4 V'; + const SPECTRAL_CLASS_F8_V = 'F8 V'; + const SPECTRAL_CLASS_F2_V = 'F2 V'; + const SPECTRAL_CLASS_F1_V = 'F1 V'; + const SPECTRAL_CLASS_K3_V = 'K3 V'; + const SPECTRAL_CLASS_F0_VI = 'F0 VI'; + const SPECTRAL_CLASS_G1_VI = 'G1 VI'; + const SPECTRAL_CLASS_G0_VI = 'G0 VI'; + const SPECTRAL_CLASS_K1_V = 'K1 V'; + const SPECTRAL_CLASS_M4_V = 'M4 V'; + const SPECTRAL_CLASS_M1_V = 'M1 V'; + const SPECTRAL_CLASS_M6_V = 'M6 V'; + const SPECTRAL_CLASS_M0_V = 'M0 V'; + const SPECTRAL_CLASS_K2_IV = 'K2 IV'; + const SPECTRAL_CLASS_G2_VI = 'G2 VI'; + const SPECTRAL_CLASS_K0_V = 'K0 V'; + const SPECTRAL_CLASS_K5_IV = 'K5 IV'; + const SPECTRAL_CLASS_F5_VI = 'F5 VI'; + const SPECTRAL_CLASS_G6_VI = 'G6 VI'; + const SPECTRAL_CLASS_F6_VI = 'F6 VI'; + const SPECTRAL_CLASS_F2_IV = 'F2 IV'; + const SPECTRAL_CLASS_G3_VI = 'G3 VI'; + const SPECTRAL_CLASS_M8_V = 'M8 V'; + const SPECTRAL_CLASS_F1_VI = 'F1 VI'; + const SPECTRAL_CLASS_K1_IV = 'K1 IV'; + const SPECTRAL_CLASS_F7_V = 'F7 V'; + const SPECTRAL_CLASS_G5_VI = 'G5 VI'; + const SPECTRAL_CLASS_M5_V = 'M5 V'; + const SPECTRAL_CLASS_G7_VI = 'G7 VI'; + const SPECTRAL_CLASS_F5_V = 'F5 V'; + const SPECTRAL_CLASS_F4_VI = 'F4 VI'; + const SPECTRAL_CLASS_F8_VI = 'F8 VI'; + const SPECTRAL_CLASS_K3_IV = 'K3 IV'; + const SPECTRAL_CLASS_F4_IV = 'F4 IV'; + const SPECTRAL_CLASS_F0_V = 'F0 V'; + const SPECTRAL_CLASS_G7_IV = 'G7 IV'; + const SPECTRAL_CLASS_G8_VI = 'G8 VI'; + const SPECTRAL_CLASS_F2_VI = 'F2 VI'; + const SPECTRAL_CLASS_F4_V = 'F4 V'; + const SPECTRAL_CLASS_F7_VI = 'F7 VI'; + const SPECTRAL_CLASS_F3_V = 'F3 V'; + const SPECTRAL_CLASS_G1_V = 'G1 V'; + const SPECTRAL_CLASS_G9_VI = 'G9 VI'; + const SPECTRAL_CLASS_F3_IV = 'F3 IV'; + const SPECTRAL_CLASS_F9_VI = 'F9 VI'; + const SPECTRAL_CLASS_M9_V = 'M9 V'; + const SPECTRAL_CLASS_K0_IV = 'K0 IV'; + const SPECTRAL_CLASS_F1_IV = 'F1 IV'; + const SPECTRAL_CLASS_G4_IV = 'G4 IV'; + const SPECTRAL_CLASS_F3_VI = 'F3 VI'; + const SPECTRAL_CLASS_K4_IV = 'K4 IV'; + const SPECTRAL_CLASS_G5_IV = 'G5 IV'; + const SPECTRAL_CLASS_G3_IV = 'G3 IV'; + const SPECTRAL_CLASS_G1_IV = 'G1 IV'; + const SPECTRAL_CLASS_K7_IV = 'K7 IV'; + const SPECTRAL_CLASS_G0_IV = 'G0 IV'; + const SPECTRAL_CLASS_K6_IV = 'K6 IV'; + const SPECTRAL_CLASS_K9_IV = 'K9 IV'; + const SPECTRAL_CLASS_G2_IV = 'G2 IV'; + const SPECTRAL_CLASS_F9_IV = 'F9 IV'; + const SPECTRAL_CLASS_F0_IV = 'F0 IV'; + const SPECTRAL_CLASS_K8_IV = 'K8 IV'; + const SPECTRAL_CLASS_G8_IV = 'G8 IV'; + const SPECTRAL_CLASS_F6_IV = 'F6 IV'; + const SPECTRAL_CLASS_F5_IV = 'F5 IV'; + const SPECTRAL_CLASS_A0 = 'A0'; + const SPECTRAL_CLASS_A0_IV = 'A0IV'; + const SPECTRAL_CLASS_A0_IV2 = 'A0IV2'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getSpectralClassAllowableValues() + { + return [ + self::SPECTRAL_CLASS_K2_V, + self::SPECTRAL_CLASS_K4_V, + self::SPECTRAL_CLASS_G2_V, + self::SPECTRAL_CLASS_G8_V, + self::SPECTRAL_CLASS_M7_V, + self::SPECTRAL_CLASS_K7_V, + self::SPECTRAL_CLASS_M2_V, + self::SPECTRAL_CLASS_K5_V, + self::SPECTRAL_CLASS_M3_V, + self::SPECTRAL_CLASS_G0_V, + self::SPECTRAL_CLASS_G7_V, + self::SPECTRAL_CLASS_G3_V, + self::SPECTRAL_CLASS_F9_V, + self::SPECTRAL_CLASS_G5_V, + self::SPECTRAL_CLASS_F6_V, + self::SPECTRAL_CLASS_K8_V, + self::SPECTRAL_CLASS_K9_V, + self::SPECTRAL_CLASS_K6_V, + self::SPECTRAL_CLASS_G9_V, + self::SPECTRAL_CLASS_G6_V, + self::SPECTRAL_CLASS_G4_VI, + self::SPECTRAL_CLASS_G4_V, + self::SPECTRAL_CLASS_F8_V, + self::SPECTRAL_CLASS_F2_V, + self::SPECTRAL_CLASS_F1_V, + self::SPECTRAL_CLASS_K3_V, + self::SPECTRAL_CLASS_F0_VI, + self::SPECTRAL_CLASS_G1_VI, + self::SPECTRAL_CLASS_G0_VI, + self::SPECTRAL_CLASS_K1_V, + self::SPECTRAL_CLASS_M4_V, + self::SPECTRAL_CLASS_M1_V, + self::SPECTRAL_CLASS_M6_V, + self::SPECTRAL_CLASS_M0_V, + self::SPECTRAL_CLASS_K2_IV, + self::SPECTRAL_CLASS_G2_VI, + self::SPECTRAL_CLASS_K0_V, + self::SPECTRAL_CLASS_K5_IV, + self::SPECTRAL_CLASS_F5_VI, + self::SPECTRAL_CLASS_G6_VI, + self::SPECTRAL_CLASS_F6_VI, + self::SPECTRAL_CLASS_F2_IV, + self::SPECTRAL_CLASS_G3_VI, + self::SPECTRAL_CLASS_M8_V, + self::SPECTRAL_CLASS_F1_VI, + self::SPECTRAL_CLASS_K1_IV, + self::SPECTRAL_CLASS_F7_V, + self::SPECTRAL_CLASS_G5_VI, + self::SPECTRAL_CLASS_M5_V, + self::SPECTRAL_CLASS_G7_VI, + self::SPECTRAL_CLASS_F5_V, + self::SPECTRAL_CLASS_F4_VI, + self::SPECTRAL_CLASS_F8_VI, + self::SPECTRAL_CLASS_K3_IV, + self::SPECTRAL_CLASS_F4_IV, + self::SPECTRAL_CLASS_F0_V, + self::SPECTRAL_CLASS_G7_IV, + self::SPECTRAL_CLASS_G8_VI, + self::SPECTRAL_CLASS_F2_VI, + self::SPECTRAL_CLASS_F4_V, + self::SPECTRAL_CLASS_F7_VI, + self::SPECTRAL_CLASS_F3_V, + self::SPECTRAL_CLASS_G1_V, + self::SPECTRAL_CLASS_G9_VI, + self::SPECTRAL_CLASS_F3_IV, + self::SPECTRAL_CLASS_F9_VI, + self::SPECTRAL_CLASS_M9_V, + self::SPECTRAL_CLASS_K0_IV, + self::SPECTRAL_CLASS_F1_IV, + self::SPECTRAL_CLASS_G4_IV, + self::SPECTRAL_CLASS_F3_VI, + self::SPECTRAL_CLASS_K4_IV, + self::SPECTRAL_CLASS_G5_IV, + self::SPECTRAL_CLASS_G3_IV, + self::SPECTRAL_CLASS_G1_IV, + self::SPECTRAL_CLASS_K7_IV, + self::SPECTRAL_CLASS_G0_IV, + self::SPECTRAL_CLASS_K6_IV, + self::SPECTRAL_CLASS_K9_IV, + self::SPECTRAL_CLASS_G2_IV, + self::SPECTRAL_CLASS_F9_IV, + self::SPECTRAL_CLASS_F0_IV, + self::SPECTRAL_CLASS_K8_IV, + self::SPECTRAL_CLASS_G8_IV, + self::SPECTRAL_CLASS_F6_IV, + self::SPECTRAL_CLASS_F5_IV, + self::SPECTRAL_CLASS_A0, + self::SPECTRAL_CLASS_A0_IV, + self::SPECTRAL_CLASS_A0_IV2, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['solarSystemId'] = isset($data['solarSystemId']) ? $data['solarSystemId'] : null; + $this->container['typeId'] = isset($data['typeId']) ? $data['typeId'] : null; + $this->container['age'] = isset($data['age']) ? $data['age'] : null; + $this->container['luminosity'] = isset($data['luminosity']) ? $data['luminosity'] : null; + $this->container['radius'] = isset($data['radius']) ? $data['radius'] : null; + $this->container['spectralClass'] = isset($data['spectralClass']) ? $data['spectralClass'] : null; + $this->container['temperature'] = isset($data['temperature']) ? $data['temperature'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ($this->container['solarSystemId'] === null) { + $invalidProperties[] = "'solarSystemId' can't be null"; + } + if ($this->container['typeId'] === null) { + $invalidProperties[] = "'typeId' can't be null"; + } + if ($this->container['age'] === null) { + $invalidProperties[] = "'age' can't be null"; + } + if ($this->container['luminosity'] === null) { + $invalidProperties[] = "'luminosity' can't be null"; + } + if ($this->container['radius'] === null) { + $invalidProperties[] = "'radius' can't be null"; + } + if ($this->container['spectralClass'] === null) { + $invalidProperties[] = "'spectralClass' can't be null"; + } + $allowedValues = $this->getSpectralClassAllowableValues(); + if (!in_array($this->container['spectralClass'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'spectralClass', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['temperature'] === null) { + $invalidProperties[] = "'temperature' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['name'] === null) { + return false; + } + if ($this->container['solarSystemId'] === null) { + return false; + } + if ($this->container['typeId'] === null) { + return false; + } + if ($this->container['age'] === null) { + return false; + } + if ($this->container['luminosity'] === null) { + return false; + } + if ($this->container['radius'] === null) { + return false; + } + if ($this->container['spectralClass'] === null) { + return false; + } + $allowedValues = $this->getSpectralClassAllowableValues(); + if (!in_array($this->container['spectralClass'], $allowedValues)) { + return false; + } + if ($this->container['temperature'] === null) { + return false; + } + return true; + } + + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets solarSystemId + * + * @return int + */ + public function getSolarSystemId() + { + return $this->container['solarSystemId']; + } + + /** + * Sets solarSystemId + * + * @param int $solarSystemId solar_system_id integer + * + * @return $this + */ + public function setSolarSystemId($solarSystemId) + { + $this->container['solarSystemId'] = $solarSystemId; + + return $this; + } + + /** + * Gets typeId + * + * @return int + */ + public function getTypeId() + { + return $this->container['typeId']; + } + + /** + * Sets typeId + * + * @param int $typeId type_id integer + * + * @return $this + */ + public function setTypeId($typeId) + { + $this->container['typeId'] = $typeId; + + return $this; + } + + /** + * Gets age + * + * @return int + */ + public function getAge() + { + return $this->container['age']; + } + + /** + * Sets age + * + * @param int $age Age of star in years + * + * @return $this + */ + public function setAge($age) + { + $this->container['age'] = $age; + + return $this; + } + + /** + * Gets luminosity + * + * @return float + */ + public function getLuminosity() + { + return $this->container['luminosity']; + } + + /** + * Sets luminosity + * + * @param float $luminosity luminosity number + * + * @return $this + */ + public function setLuminosity($luminosity) + { + $this->container['luminosity'] = $luminosity; + + return $this; + } + + /** + * Gets radius + * + * @return int + */ + public function getRadius() + { + return $this->container['radius']; + } + + /** + * Sets radius + * + * @param int $radius radius integer + * + * @return $this + */ + public function setRadius($radius) + { + $this->container['radius'] = $radius; + + return $this; + } + + /** + * Gets spectralClass + * + * @return string + */ + public function getSpectralClass() + { + return $this->container['spectralClass']; + } + + /** + * Sets spectralClass + * + * @param string $spectralClass spectral_class string + * + * @return $this + */ + public function setSpectralClass($spectralClass) + { + $allowedValues = $this->getSpectralClassAllowableValues(); + if (!in_array($spectralClass, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'spectralClass', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['spectralClass'] = $spectralClass; + + return $this; + } + + /** + * Gets temperature + * + * @return int + */ + public function getTemperature() + { + return $this->container['temperature']; + } + + /** + * Sets temperature + * + * @param int $temperature temperature integer + * + * @return $this + */ + public function setTemperature($temperature) + { + $this->container['temperature'] = $temperature; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseStationsStationIdNotFound.php b/src/nullx27/ESI/Models/GetUniverseStationsStationIdNotFound.php new file mode 100644 index 0000000..c8db0b1 --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseStationsStationIdNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Not found message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseStationsStationIdOk.php b/src/nullx27/ESI/Models/GetUniverseStationsStationIdOk.php new file mode 100644 index 0000000..97f5399 --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseStationsStationIdOk.php @@ -0,0 +1,767 @@ + 'int', + 'name' => 'string', + 'owner' => 'int', + 'typeId' => 'int', + 'raceId' => 'int', + 'position' => '\nullx27ESI\nullx27\ESI\Models\GetUniverseStationsStationIdPosition', + 'systemId' => 'int', + 'reprocessingEfficiency' => 'float', + 'reprocessingStationsTake' => 'float', + 'maxDockableShipVolume' => 'float', + 'officeRentalCost' => 'float', + 'services' => 'string[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'stationId' => 'int32', + 'name' => null, + 'owner' => 'int32', + 'typeId' => 'int32', + 'raceId' => 'int32', + 'position' => null, + 'systemId' => 'int32', + 'reprocessingEfficiency' => 'float', + 'reprocessingStationsTake' => 'float', + 'maxDockableShipVolume' => 'float', + 'officeRentalCost' => 'float', + 'services' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'stationId' => 'station_id', + 'name' => 'name', + 'owner' => 'owner', + 'typeId' => 'type_id', + 'raceId' => 'race_id', + 'position' => 'position', + 'systemId' => 'system_id', + 'reprocessingEfficiency' => 'reprocessing_efficiency', + 'reprocessingStationsTake' => 'reprocessing_stations_take', + 'maxDockableShipVolume' => 'max_dockable_ship_volume', + 'officeRentalCost' => 'office_rental_cost', + 'services' => 'services' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'stationId' => 'setStationId', + 'name' => 'setName', + 'owner' => 'setOwner', + 'typeId' => 'setTypeId', + 'raceId' => 'setRaceId', + 'position' => 'setPosition', + 'systemId' => 'setSystemId', + 'reprocessingEfficiency' => 'setReprocessingEfficiency', + 'reprocessingStationsTake' => 'setReprocessingStationsTake', + 'maxDockableShipVolume' => 'setMaxDockableShipVolume', + 'officeRentalCost' => 'setOfficeRentalCost', + 'services' => 'setServices' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'stationId' => 'getStationId', + 'name' => 'getName', + 'owner' => 'getOwner', + 'typeId' => 'getTypeId', + 'raceId' => 'getRaceId', + 'position' => 'getPosition', + 'systemId' => 'getSystemId', + 'reprocessingEfficiency' => 'getReprocessingEfficiency', + 'reprocessingStationsTake' => 'getReprocessingStationsTake', + 'maxDockableShipVolume' => 'getMaxDockableShipVolume', + 'officeRentalCost' => 'getOfficeRentalCost', + 'services' => 'getServices' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const SERVICES_BOUNTY_MISSIONS = 'bounty-missions'; + const SERVICES_ASSASINATION_MISSIONS = 'assasination-missions'; + const SERVICES_COURIER_MISSIONS = 'courier-missions'; + const SERVICES_INTERBUS = 'interbus'; + const SERVICES_REPROCESSING_PLANT = 'reprocessing-plant'; + const SERVICES_REFINERY = 'refinery'; + const SERVICES_MARKET = 'market'; + const SERVICES_BLACK_MARKET = 'black-market'; + const SERVICES_STOCK_EXCHANGE = 'stock-exchange'; + const SERVICES_CLONING = 'cloning'; + const SERVICES_SURGERY = 'surgery'; + const SERVICES_DNA_THERAPY = 'dna-therapy'; + const SERVICES_REPAIR_FACILITIES = 'repair-facilities'; + const SERVICES_FACTORY = 'factory'; + const SERVICES_LABRATORY = 'labratory'; + const SERVICES_GAMBLING = 'gambling'; + const SERVICES_FITTING = 'fitting'; + const SERVICES_PAINTSHOP = 'paintshop'; + const SERVICES_NEWS = 'news'; + const SERVICES_STORAGE = 'storage'; + const SERVICES_INSURANCE = 'insurance'; + const SERVICES_DOCKING = 'docking'; + const SERVICES_OFFICE_RENTAL = 'office-rental'; + const SERVICES_JUMP_CLONE_FACILITY = 'jump-clone-facility'; + const SERVICES_LOYALTY_POINT_STORE = 'loyalty-point-store'; + const SERVICES_NAVY_OFFICES = 'navy-offices'; + const SERVICES_SECURITY_OFFICES = 'security-offices'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getServicesAllowableValues() + { + return [ + self::SERVICES_BOUNTY_MISSIONS, + self::SERVICES_ASSASINATION_MISSIONS, + self::SERVICES_COURIER_MISSIONS, + self::SERVICES_INTERBUS, + self::SERVICES_REPROCESSING_PLANT, + self::SERVICES_REFINERY, + self::SERVICES_MARKET, + self::SERVICES_BLACK_MARKET, + self::SERVICES_STOCK_EXCHANGE, + self::SERVICES_CLONING, + self::SERVICES_SURGERY, + self::SERVICES_DNA_THERAPY, + self::SERVICES_REPAIR_FACILITIES, + self::SERVICES_FACTORY, + self::SERVICES_LABRATORY, + self::SERVICES_GAMBLING, + self::SERVICES_FITTING, + self::SERVICES_PAINTSHOP, + self::SERVICES_NEWS, + self::SERVICES_STORAGE, + self::SERVICES_INSURANCE, + self::SERVICES_DOCKING, + self::SERVICES_OFFICE_RENTAL, + self::SERVICES_JUMP_CLONE_FACILITY, + self::SERVICES_LOYALTY_POINT_STORE, + self::SERVICES_NAVY_OFFICES, + self::SERVICES_SECURITY_OFFICES, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['stationId'] = isset($data['stationId']) ? $data['stationId'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['owner'] = isset($data['owner']) ? $data['owner'] : null; + $this->container['typeId'] = isset($data['typeId']) ? $data['typeId'] : null; + $this->container['raceId'] = isset($data['raceId']) ? $data['raceId'] : null; + $this->container['position'] = isset($data['position']) ? $data['position'] : null; + $this->container['systemId'] = isset($data['systemId']) ? $data['systemId'] : null; + $this->container['reprocessingEfficiency'] = isset($data['reprocessingEfficiency']) ? $data['reprocessingEfficiency'] : null; + $this->container['reprocessingStationsTake'] = isset($data['reprocessingStationsTake']) ? $data['reprocessingStationsTake'] : null; + $this->container['maxDockableShipVolume'] = isset($data['maxDockableShipVolume']) ? $data['maxDockableShipVolume'] : null; + $this->container['officeRentalCost'] = isset($data['officeRentalCost']) ? $data['officeRentalCost'] : null; + $this->container['services'] = isset($data['services']) ? $data['services'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['stationId'] === null) { + $invalidProperties[] = "'stationId' can't be null"; + } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ($this->container['typeId'] === null) { + $invalidProperties[] = "'typeId' can't be null"; + } + if ($this->container['position'] === null) { + $invalidProperties[] = "'position' can't be null"; + } + if ($this->container['systemId'] === null) { + $invalidProperties[] = "'systemId' can't be null"; + } + if ($this->container['reprocessingEfficiency'] === null) { + $invalidProperties[] = "'reprocessingEfficiency' can't be null"; + } + if ($this->container['reprocessingStationsTake'] === null) { + $invalidProperties[] = "'reprocessingStationsTake' can't be null"; + } + if ($this->container['maxDockableShipVolume'] === null) { + $invalidProperties[] = "'maxDockableShipVolume' can't be null"; + } + if ($this->container['officeRentalCost'] === null) { + $invalidProperties[] = "'officeRentalCost' can't be null"; + } + if ($this->container['services'] === null) { + $invalidProperties[] = "'services' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['stationId'] === null) { + return false; + } + if ($this->container['name'] === null) { + return false; + } + if ($this->container['typeId'] === null) { + return false; + } + if ($this->container['position'] === null) { + return false; + } + if ($this->container['systemId'] === null) { + return false; + } + if ($this->container['reprocessingEfficiency'] === null) { + return false; + } + if ($this->container['reprocessingStationsTake'] === null) { + return false; + } + if ($this->container['maxDockableShipVolume'] === null) { + return false; + } + if ($this->container['officeRentalCost'] === null) { + return false; + } + if ($this->container['services'] === null) { + return false; + } + return true; + } + + + /** + * Gets stationId + * + * @return int + */ + public function getStationId() + { + return $this->container['stationId']; + } + + /** + * Sets stationId + * + * @param int $stationId station_id integer + * + * @return $this + */ + public function setStationId($stationId) + { + $this->container['stationId'] = $stationId; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets owner + * + * @return int + */ + public function getOwner() + { + return $this->container['owner']; + } + + /** + * Sets owner + * + * @param int $owner ID of the corporation that controls this station + * + * @return $this + */ + public function setOwner($owner) + { + $this->container['owner'] = $owner; + + return $this; + } + + /** + * Gets typeId + * + * @return int + */ + public function getTypeId() + { + return $this->container['typeId']; + } + + /** + * Sets typeId + * + * @param int $typeId type_id integer + * + * @return $this + */ + public function setTypeId($typeId) + { + $this->container['typeId'] = $typeId; + + return $this; + } + + /** + * Gets raceId + * + * @return int + */ + public function getRaceId() + { + return $this->container['raceId']; + } + + /** + * Sets raceId + * + * @param int $raceId race_id integer + * + * @return $this + */ + public function setRaceId($raceId) + { + $this->container['raceId'] = $raceId; + + return $this; + } + + /** + * Gets position + * + * @return \nullx27ESI\nullx27\ESI\Models\GetUniverseStationsStationIdPosition + */ + public function getPosition() + { + return $this->container['position']; + } + + /** + * Sets position + * + * @param \nullx27ESI\nullx27\ESI\Models\GetUniverseStationsStationIdPosition $position position + * + * @return $this + */ + public function setPosition($position) + { + $this->container['position'] = $position; + + return $this; + } + + /** + * Gets systemId + * + * @return int + */ + public function getSystemId() + { + return $this->container['systemId']; + } + + /** + * Sets systemId + * + * @param int $systemId The solar system this station is in + * + * @return $this + */ + public function setSystemId($systemId) + { + $this->container['systemId'] = $systemId; + + return $this; + } + + /** + * Gets reprocessingEfficiency + * + * @return float + */ + public function getReprocessingEfficiency() + { + return $this->container['reprocessingEfficiency']; + } + + /** + * Sets reprocessingEfficiency + * + * @param float $reprocessingEfficiency reprocessing_efficiency number + * + * @return $this + */ + public function setReprocessingEfficiency($reprocessingEfficiency) + { + $this->container['reprocessingEfficiency'] = $reprocessingEfficiency; + + return $this; + } + + /** + * Gets reprocessingStationsTake + * + * @return float + */ + public function getReprocessingStationsTake() + { + return $this->container['reprocessingStationsTake']; + } + + /** + * Sets reprocessingStationsTake + * + * @param float $reprocessingStationsTake reprocessing_stations_take number + * + * @return $this + */ + public function setReprocessingStationsTake($reprocessingStationsTake) + { + $this->container['reprocessingStationsTake'] = $reprocessingStationsTake; + + return $this; + } + + /** + * Gets maxDockableShipVolume + * + * @return float + */ + public function getMaxDockableShipVolume() + { + return $this->container['maxDockableShipVolume']; + } + + /** + * Sets maxDockableShipVolume + * + * @param float $maxDockableShipVolume max_dockable_ship_volume number + * + * @return $this + */ + public function setMaxDockableShipVolume($maxDockableShipVolume) + { + $this->container['maxDockableShipVolume'] = $maxDockableShipVolume; + + return $this; + } + + /** + * Gets officeRentalCost + * + * @return float + */ + public function getOfficeRentalCost() + { + return $this->container['officeRentalCost']; + } + + /** + * Sets officeRentalCost + * + * @param float $officeRentalCost office_rental_cost number + * + * @return $this + */ + public function setOfficeRentalCost($officeRentalCost) + { + $this->container['officeRentalCost'] = $officeRentalCost; + + return $this; + } + + /** + * Gets services + * + * @return string[] + */ + public function getServices() + { + return $this->container['services']; + } + + /** + * Sets services + * + * @param string[] $services services array + * + * @return $this + */ + public function setServices($services) + { + $allowedValues = $this->getServicesAllowableValues(); + if (array_diff($services, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'services', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['services'] = $services; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseStationsStationIdPosition.php b/src/nullx27/ESI/Models/GetUniverseStationsStationIdPosition.php new file mode 100644 index 0000000..f2d3979 --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseStationsStationIdPosition.php @@ -0,0 +1,381 @@ + 'double', + 'y' => 'double', + 'z' => 'double' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'x' => 'double', + 'y' => 'double', + 'z' => 'double' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'x' => 'x', + 'y' => 'y', + 'z' => 'z' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'x' => 'setX', + 'y' => 'setY', + 'z' => 'setZ' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'x' => 'getX', + 'y' => 'getY', + 'z' => 'getZ' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['x'] = isset($data['x']) ? $data['x'] : null; + $this->container['y'] = isset($data['y']) ? $data['y'] : null; + $this->container['z'] = isset($data['z']) ? $data['z'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['x'] === null) { + $invalidProperties[] = "'x' can't be null"; + } + if ($this->container['y'] === null) { + $invalidProperties[] = "'y' can't be null"; + } + if ($this->container['z'] === null) { + $invalidProperties[] = "'z' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['x'] === null) { + return false; + } + if ($this->container['y'] === null) { + return false; + } + if ($this->container['z'] === null) { + return false; + } + return true; + } + + + /** + * Gets x + * + * @return double + */ + public function getX() + { + return $this->container['x']; + } + + /** + * Sets x + * + * @param double $x x number + * + * @return $this + */ + public function setX($x) + { + $this->container['x'] = $x; + + return $this; + } + + /** + * Gets y + * + * @return double + */ + public function getY() + { + return $this->container['y']; + } + + /** + * Sets y + * + * @param double $y y number + * + * @return $this + */ + public function setY($y) + { + $this->container['y'] = $y; + + return $this; + } + + /** + * Gets z + * + * @return double + */ + public function getZ() + { + return $this->container['z']; + } + + /** + * Sets z + * + * @param double $z z number + * + * @return $this + */ + public function setZ($z) + { + $this->container['z'] = $z; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseStructuresStructureIdNotFound.php b/src/nullx27/ESI/Models/GetUniverseStructuresStructureIdNotFound.php new file mode 100644 index 0000000..a1374ef --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseStructuresStructureIdNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Not found message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseStructuresStructureIdOk.php b/src/nullx27/ESI/Models/GetUniverseStructuresStructureIdOk.php new file mode 100644 index 0000000..edbadd1 --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseStructuresStructureIdOk.php @@ -0,0 +1,405 @@ + 'string', + 'solarSystemId' => 'int', + 'typeId' => 'int', + 'position' => '\nullx27ESI\nullx27\ESI\Models\GetUniverseStructuresStructureIdPosition' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'name' => null, + 'solarSystemId' => 'int32', + 'typeId' => 'int32', + 'position' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'name' => 'name', + 'solarSystemId' => 'solar_system_id', + 'typeId' => 'type_id', + 'position' => 'position' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'name' => 'setName', + 'solarSystemId' => 'setSolarSystemId', + 'typeId' => 'setTypeId', + 'position' => 'setPosition' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'name' => 'getName', + 'solarSystemId' => 'getSolarSystemId', + 'typeId' => 'getTypeId', + 'position' => 'getPosition' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['solarSystemId'] = isset($data['solarSystemId']) ? $data['solarSystemId'] : null; + $this->container['typeId'] = isset($data['typeId']) ? $data['typeId'] : null; + $this->container['position'] = isset($data['position']) ? $data['position'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ($this->container['solarSystemId'] === null) { + $invalidProperties[] = "'solarSystemId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['name'] === null) { + return false; + } + if ($this->container['solarSystemId'] === null) { + return false; + } + return true; + } + + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name The full name of the structure + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets solarSystemId + * + * @return int + */ + public function getSolarSystemId() + { + return $this->container['solarSystemId']; + } + + /** + * Sets solarSystemId + * + * @param int $solarSystemId solar_system_id integer + * + * @return $this + */ + public function setSolarSystemId($solarSystemId) + { + $this->container['solarSystemId'] = $solarSystemId; + + return $this; + } + + /** + * Gets typeId + * + * @return int + */ + public function getTypeId() + { + return $this->container['typeId']; + } + + /** + * Sets typeId + * + * @param int $typeId type_id integer + * + * @return $this + */ + public function setTypeId($typeId) + { + $this->container['typeId'] = $typeId; + + return $this; + } + + /** + * Gets position + * + * @return \nullx27ESI\nullx27\ESI\Models\GetUniverseStructuresStructureIdPosition + */ + public function getPosition() + { + return $this->container['position']; + } + + /** + * Sets position + * + * @param \nullx27ESI\nullx27\ESI\Models\GetUniverseStructuresStructureIdPosition $position position + * + * @return $this + */ + public function setPosition($position) + { + $this->container['position'] = $position; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseStructuresStructureIdPosition.php b/src/nullx27/ESI/Models/GetUniverseStructuresStructureIdPosition.php new file mode 100644 index 0000000..d33b549 --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseStructuresStructureIdPosition.php @@ -0,0 +1,381 @@ + 'double', + 'y' => 'double', + 'z' => 'double' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'x' => 'double', + 'y' => 'double', + 'z' => 'double' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'x' => 'x', + 'y' => 'y', + 'z' => 'z' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'x' => 'setX', + 'y' => 'setY', + 'z' => 'setZ' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'x' => 'getX', + 'y' => 'getY', + 'z' => 'getZ' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['x'] = isset($data['x']) ? $data['x'] : null; + $this->container['y'] = isset($data['y']) ? $data['y'] : null; + $this->container['z'] = isset($data['z']) ? $data['z'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['x'] === null) { + $invalidProperties[] = "'x' can't be null"; + } + if ($this->container['y'] === null) { + $invalidProperties[] = "'y' can't be null"; + } + if ($this->container['z'] === null) { + $invalidProperties[] = "'z' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['x'] === null) { + return false; + } + if ($this->container['y'] === null) { + return false; + } + if ($this->container['z'] === null) { + return false; + } + return true; + } + + + /** + * Gets x + * + * @return double + */ + public function getX() + { + return $this->container['x']; + } + + /** + * Sets x + * + * @param double $x x number + * + * @return $this + */ + public function setX($x) + { + $this->container['x'] = $x; + + return $this; + } + + /** + * Gets y + * + * @return double + */ + public function getY() + { + return $this->container['y']; + } + + /** + * Sets y + * + * @param double $y y number + * + * @return $this + */ + public function setY($y) + { + $this->container['y'] = $y; + + return $this; + } + + /** + * Gets z + * + * @return double + */ + public function getZ() + { + return $this->container['z']; + } + + /** + * Sets z + * + * @param double $z z number + * + * @return $this + */ + public function setZ($z) + { + $this->container['z'] = $z; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseSystemJumps200Ok.php b/src/nullx27/ESI/Models/GetUniverseSystemJumps200Ok.php new file mode 100644 index 0000000..c7849c5 --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseSystemJumps200Ok.php @@ -0,0 +1,345 @@ + 'int', + 'shipJumps' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'systemId' => 'int32', + 'shipJumps' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'systemId' => 'system_id', + 'shipJumps' => 'ship_jumps' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'systemId' => 'setSystemId', + 'shipJumps' => 'setShipJumps' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'systemId' => 'getSystemId', + 'shipJumps' => 'getShipJumps' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['systemId'] = isset($data['systemId']) ? $data['systemId'] : null; + $this->container['shipJumps'] = isset($data['shipJumps']) ? $data['shipJumps'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['systemId'] === null) { + $invalidProperties[] = "'systemId' can't be null"; + } + if ($this->container['shipJumps'] === null) { + $invalidProperties[] = "'shipJumps' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['systemId'] === null) { + return false; + } + if ($this->container['shipJumps'] === null) { + return false; + } + return true; + } + + + /** + * Gets systemId + * + * @return int + */ + public function getSystemId() + { + return $this->container['systemId']; + } + + /** + * Sets systemId + * + * @param int $systemId system_id integer + * + * @return $this + */ + public function setSystemId($systemId) + { + $this->container['systemId'] = $systemId; + + return $this; + } + + /** + * Gets shipJumps + * + * @return int + */ + public function getShipJumps() + { + return $this->container['shipJumps']; + } + + /** + * Sets shipJumps + * + * @param int $shipJumps ship_jumps integer + * + * @return $this + */ + public function setShipJumps($shipJumps) + { + $this->container['shipJumps'] = $shipJumps; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseSystemKills200Ok.php b/src/nullx27/ESI/Models/GetUniverseSystemKills200Ok.php new file mode 100644 index 0000000..89d4228 --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseSystemKills200Ok.php @@ -0,0 +1,417 @@ + 'int', + 'shipKills' => 'int', + 'npcKills' => 'int', + 'podKills' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'systemId' => 'int32', + 'shipKills' => 'int32', + 'npcKills' => 'int32', + 'podKills' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'systemId' => 'system_id', + 'shipKills' => 'ship_kills', + 'npcKills' => 'npc_kills', + 'podKills' => 'pod_kills' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'systemId' => 'setSystemId', + 'shipKills' => 'setShipKills', + 'npcKills' => 'setNpcKills', + 'podKills' => 'setPodKills' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'systemId' => 'getSystemId', + 'shipKills' => 'getShipKills', + 'npcKills' => 'getNpcKills', + 'podKills' => 'getPodKills' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['systemId'] = isset($data['systemId']) ? $data['systemId'] : null; + $this->container['shipKills'] = isset($data['shipKills']) ? $data['shipKills'] : null; + $this->container['npcKills'] = isset($data['npcKills']) ? $data['npcKills'] : null; + $this->container['podKills'] = isset($data['podKills']) ? $data['podKills'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['systemId'] === null) { + $invalidProperties[] = "'systemId' can't be null"; + } + if ($this->container['shipKills'] === null) { + $invalidProperties[] = "'shipKills' can't be null"; + } + if ($this->container['npcKills'] === null) { + $invalidProperties[] = "'npcKills' can't be null"; + } + if ($this->container['podKills'] === null) { + $invalidProperties[] = "'podKills' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['systemId'] === null) { + return false; + } + if ($this->container['shipKills'] === null) { + return false; + } + if ($this->container['npcKills'] === null) { + return false; + } + if ($this->container['podKills'] === null) { + return false; + } + return true; + } + + + /** + * Gets systemId + * + * @return int + */ + public function getSystemId() + { + return $this->container['systemId']; + } + + /** + * Sets systemId + * + * @param int $systemId system_id integer + * + * @return $this + */ + public function setSystemId($systemId) + { + $this->container['systemId'] = $systemId; + + return $this; + } + + /** + * Gets shipKills + * + * @return int + */ + public function getShipKills() + { + return $this->container['shipKills']; + } + + /** + * Sets shipKills + * + * @param int $shipKills Number of player ships killed in this system + * + * @return $this + */ + public function setShipKills($shipKills) + { + $this->container['shipKills'] = $shipKills; + + return $this; + } + + /** + * Gets npcKills + * + * @return int + */ + public function getNpcKills() + { + return $this->container['npcKills']; + } + + /** + * Sets npcKills + * + * @param int $npcKills Number of NPC ships killed in this system + * + * @return $this + */ + public function setNpcKills($npcKills) + { + $this->container['npcKills'] = $npcKills; + + return $this; + } + + /** + * Gets podKills + * + * @return int + */ + public function getPodKills() + { + return $this->container['podKills']; + } + + /** + * Sets podKills + * + * @param int $podKills Number of pods killed in this system + * + * @return $this + */ + public function setPodKills($podKills) + { + $this->container['podKills'] = $podKills; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseSystemsSystemIdNotFound.php b/src/nullx27/ESI/Models/GetUniverseSystemsSystemIdNotFound.php new file mode 100644 index 0000000..a8428dd --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseSystemsSystemIdNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Not found message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseSystemsSystemIdOk.php b/src/nullx27/ESI/Models/GetUniverseSystemsSystemIdOk.php new file mode 100644 index 0000000..b42d96f --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseSystemsSystemIdOk.php @@ -0,0 +1,615 @@ + 'int', + 'systemId' => 'int', + 'name' => 'string', + 'position' => '\nullx27ESI\nullx27\ESI\Models\GetUniverseSystemsSystemIdPosition', + 'securityStatus' => 'float', + 'securityClass' => 'string', + 'constellationId' => 'int', + 'planets' => '\nullx27ESI\nullx27\ESI\Models\GetUniverseSystemsSystemIdPlanet[]', + 'stargates' => 'int[]', + 'stations' => 'int[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'starId' => 'int32', + 'systemId' => 'int32', + 'name' => null, + 'position' => null, + 'securityStatus' => 'float', + 'securityClass' => null, + 'constellationId' => 'int32', + 'planets' => null, + 'stargates' => 'int32', + 'stations' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'starId' => 'star_id', + 'systemId' => 'system_id', + 'name' => 'name', + 'position' => 'position', + 'securityStatus' => 'security_status', + 'securityClass' => 'security_class', + 'constellationId' => 'constellation_id', + 'planets' => 'planets', + 'stargates' => 'stargates', + 'stations' => 'stations' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'starId' => 'setStarId', + 'systemId' => 'setSystemId', + 'name' => 'setName', + 'position' => 'setPosition', + 'securityStatus' => 'setSecurityStatus', + 'securityClass' => 'setSecurityClass', + 'constellationId' => 'setConstellationId', + 'planets' => 'setPlanets', + 'stargates' => 'setStargates', + 'stations' => 'setStations' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'starId' => 'getStarId', + 'systemId' => 'getSystemId', + 'name' => 'getName', + 'position' => 'getPosition', + 'securityStatus' => 'getSecurityStatus', + 'securityClass' => 'getSecurityClass', + 'constellationId' => 'getConstellationId', + 'planets' => 'getPlanets', + 'stargates' => 'getStargates', + 'stations' => 'getStations' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['starId'] = isset($data['starId']) ? $data['starId'] : null; + $this->container['systemId'] = isset($data['systemId']) ? $data['systemId'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['position'] = isset($data['position']) ? $data['position'] : null; + $this->container['securityStatus'] = isset($data['securityStatus']) ? $data['securityStatus'] : null; + $this->container['securityClass'] = isset($data['securityClass']) ? $data['securityClass'] : null; + $this->container['constellationId'] = isset($data['constellationId']) ? $data['constellationId'] : null; + $this->container['planets'] = isset($data['planets']) ? $data['planets'] : null; + $this->container['stargates'] = isset($data['stargates']) ? $data['stargates'] : null; + $this->container['stations'] = isset($data['stations']) ? $data['stations'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['starId'] === null) { + $invalidProperties[] = "'starId' can't be null"; + } + if ($this->container['systemId'] === null) { + $invalidProperties[] = "'systemId' can't be null"; + } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ($this->container['position'] === null) { + $invalidProperties[] = "'position' can't be null"; + } + if ($this->container['securityStatus'] === null) { + $invalidProperties[] = "'securityStatus' can't be null"; + } + if ($this->container['constellationId'] === null) { + $invalidProperties[] = "'constellationId' can't be null"; + } + if ($this->container['planets'] === null) { + $invalidProperties[] = "'planets' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['starId'] === null) { + return false; + } + if ($this->container['systemId'] === null) { + return false; + } + if ($this->container['name'] === null) { + return false; + } + if ($this->container['position'] === null) { + return false; + } + if ($this->container['securityStatus'] === null) { + return false; + } + if ($this->container['constellationId'] === null) { + return false; + } + if ($this->container['planets'] === null) { + return false; + } + return true; + } + + + /** + * Gets starId + * + * @return int + */ + public function getStarId() + { + return $this->container['starId']; + } + + /** + * Sets starId + * + * @param int $starId star_id integer + * + * @return $this + */ + public function setStarId($starId) + { + $this->container['starId'] = $starId; + + return $this; + } + + /** + * Gets systemId + * + * @return int + */ + public function getSystemId() + { + return $this->container['systemId']; + } + + /** + * Sets systemId + * + * @param int $systemId system_id integer + * + * @return $this + */ + public function setSystemId($systemId) + { + $this->container['systemId'] = $systemId; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets position + * + * @return \nullx27ESI\nullx27\ESI\Models\GetUniverseSystemsSystemIdPosition + */ + public function getPosition() + { + return $this->container['position']; + } + + /** + * Sets position + * + * @param \nullx27ESI\nullx27\ESI\Models\GetUniverseSystemsSystemIdPosition $position position + * + * @return $this + */ + public function setPosition($position) + { + $this->container['position'] = $position; + + return $this; + } + + /** + * Gets securityStatus + * + * @return float + */ + public function getSecurityStatus() + { + return $this->container['securityStatus']; + } + + /** + * Sets securityStatus + * + * @param float $securityStatus security_status number + * + * @return $this + */ + public function setSecurityStatus($securityStatus) + { + $this->container['securityStatus'] = $securityStatus; + + return $this; + } + + /** + * Gets securityClass + * + * @return string + */ + public function getSecurityClass() + { + return $this->container['securityClass']; + } + + /** + * Sets securityClass + * + * @param string $securityClass security_class string + * + * @return $this + */ + public function setSecurityClass($securityClass) + { + $this->container['securityClass'] = $securityClass; + + return $this; + } + + /** + * Gets constellationId + * + * @return int + */ + public function getConstellationId() + { + return $this->container['constellationId']; + } + + /** + * Sets constellationId + * + * @param int $constellationId The constellation this solar system is in + * + * @return $this + */ + public function setConstellationId($constellationId) + { + $this->container['constellationId'] = $constellationId; + + return $this; + } + + /** + * Gets planets + * + * @return \nullx27ESI\nullx27\ESI\Models\GetUniverseSystemsSystemIdPlanet[] + */ + public function getPlanets() + { + return $this->container['planets']; + } + + /** + * Sets planets + * + * @param \nullx27ESI\nullx27\ESI\Models\GetUniverseSystemsSystemIdPlanet[] $planets planets array + * + * @return $this + */ + public function setPlanets($planets) + { + $this->container['planets'] = $planets; + + return $this; + } + + /** + * Gets stargates + * + * @return int[] + */ + public function getStargates() + { + return $this->container['stargates']; + } + + /** + * Sets stargates + * + * @param int[] $stargates stargates array + * + * @return $this + */ + public function setStargates($stargates) + { + $this->container['stargates'] = $stargates; + + return $this; + } + + /** + * Gets stations + * + * @return int[] + */ + public function getStations() + { + return $this->container['stations']; + } + + /** + * Sets stations + * + * @param int[] $stations stations array + * + * @return $this + */ + public function setStations($stations) + { + $this->container['stations'] = $stations; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseSystemsSystemIdPlanet.php b/src/nullx27/ESI/Models/GetUniverseSystemsSystemIdPlanet.php new file mode 100644 index 0000000..82d5f7b --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseSystemsSystemIdPlanet.php @@ -0,0 +1,339 @@ + 'int', + 'moons' => 'int[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'planetId' => 'int32', + 'moons' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'planetId' => 'planet_id', + 'moons' => 'moons' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'planetId' => 'setPlanetId', + 'moons' => 'setMoons' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'planetId' => 'getPlanetId', + 'moons' => 'getMoons' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['planetId'] = isset($data['planetId']) ? $data['planetId'] : null; + $this->container['moons'] = isset($data['moons']) ? $data['moons'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['planetId'] === null) { + $invalidProperties[] = "'planetId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['planetId'] === null) { + return false; + } + return true; + } + + + /** + * Gets planetId + * + * @return int + */ + public function getPlanetId() + { + return $this->container['planetId']; + } + + /** + * Sets planetId + * + * @param int $planetId planet_id integer + * + * @return $this + */ + public function setPlanetId($planetId) + { + $this->container['planetId'] = $planetId; + + return $this; + } + + /** + * Gets moons + * + * @return int[] + */ + public function getMoons() + { + return $this->container['moons']; + } + + /** + * Sets moons + * + * @param int[] $moons moons array + * + * @return $this + */ + public function setMoons($moons) + { + $this->container['moons'] = $moons; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseSystemsSystemIdPosition.php b/src/nullx27/ESI/Models/GetUniverseSystemsSystemIdPosition.php new file mode 100644 index 0000000..02fc258 --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseSystemsSystemIdPosition.php @@ -0,0 +1,381 @@ + 'double', + 'y' => 'double', + 'z' => 'double' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'x' => 'double', + 'y' => 'double', + 'z' => 'double' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'x' => 'x', + 'y' => 'y', + 'z' => 'z' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'x' => 'setX', + 'y' => 'setY', + 'z' => 'setZ' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'x' => 'getX', + 'y' => 'getY', + 'z' => 'getZ' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['x'] = isset($data['x']) ? $data['x'] : null; + $this->container['y'] = isset($data['y']) ? $data['y'] : null; + $this->container['z'] = isset($data['z']) ? $data['z'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['x'] === null) { + $invalidProperties[] = "'x' can't be null"; + } + if ($this->container['y'] === null) { + $invalidProperties[] = "'y' can't be null"; + } + if ($this->container['z'] === null) { + $invalidProperties[] = "'z' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['x'] === null) { + return false; + } + if ($this->container['y'] === null) { + return false; + } + if ($this->container['z'] === null) { + return false; + } + return true; + } + + + /** + * Gets x + * + * @return double + */ + public function getX() + { + return $this->container['x']; + } + + /** + * Sets x + * + * @param double $x x number + * + * @return $this + */ + public function setX($x) + { + $this->container['x'] = $x; + + return $this; + } + + /** + * Gets y + * + * @return double + */ + public function getY() + { + return $this->container['y']; + } + + /** + * Sets y + * + * @param double $y y number + * + * @return $this + */ + public function setY($y) + { + $this->container['y'] = $y; + + return $this; + } + + /** + * Gets z + * + * @return double + */ + public function getZ() + { + return $this->container['z']; + } + + /** + * Sets z + * + * @param double $z z number + * + * @return $this + */ + public function setZ($z) + { + $this->container['z'] = $z; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseTypesTypeIdDogmaAttribute.php b/src/nullx27/ESI/Models/GetUniverseTypesTypeIdDogmaAttribute.php new file mode 100644 index 0000000..1f738f2 --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseTypesTypeIdDogmaAttribute.php @@ -0,0 +1,345 @@ + 'int', + 'value' => 'float' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'attributeId' => 'int32', + 'value' => 'float' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'attributeId' => 'attribute_id', + 'value' => 'value' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'attributeId' => 'setAttributeId', + 'value' => 'setValue' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'attributeId' => 'getAttributeId', + 'value' => 'getValue' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['attributeId'] = isset($data['attributeId']) ? $data['attributeId'] : null; + $this->container['value'] = isset($data['value']) ? $data['value'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['attributeId'] === null) { + $invalidProperties[] = "'attributeId' can't be null"; + } + if ($this->container['value'] === null) { + $invalidProperties[] = "'value' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['attributeId'] === null) { + return false; + } + if ($this->container['value'] === null) { + return false; + } + return true; + } + + + /** + * Gets attributeId + * + * @return int + */ + public function getAttributeId() + { + return $this->container['attributeId']; + } + + /** + * Sets attributeId + * + * @param int $attributeId attribute_id integer + * + * @return $this + */ + public function setAttributeId($attributeId) + { + $this->container['attributeId'] = $attributeId; + + return $this; + } + + /** + * Gets value + * + * @return float + */ + public function getValue() + { + return $this->container['value']; + } + + /** + * Sets value + * + * @param float $value value number + * + * @return $this + */ + public function setValue($value) + { + $this->container['value'] = $value; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseTypesTypeIdDogmaEffect.php b/src/nullx27/ESI/Models/GetUniverseTypesTypeIdDogmaEffect.php new file mode 100644 index 0000000..d99f6ce --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseTypesTypeIdDogmaEffect.php @@ -0,0 +1,345 @@ + 'int', + 'isDefault' => 'bool' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'effectId' => 'int32', + 'isDefault' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'effectId' => 'effect_id', + 'isDefault' => 'is_default' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'effectId' => 'setEffectId', + 'isDefault' => 'setIsDefault' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'effectId' => 'getEffectId', + 'isDefault' => 'getIsDefault' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['effectId'] = isset($data['effectId']) ? $data['effectId'] : null; + $this->container['isDefault'] = isset($data['isDefault']) ? $data['isDefault'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['effectId'] === null) { + $invalidProperties[] = "'effectId' can't be null"; + } + if ($this->container['isDefault'] === null) { + $invalidProperties[] = "'isDefault' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['effectId'] === null) { + return false; + } + if ($this->container['isDefault'] === null) { + return false; + } + return true; + } + + + /** + * Gets effectId + * + * @return int + */ + public function getEffectId() + { + return $this->container['effectId']; + } + + /** + * Sets effectId + * + * @param int $effectId effect_id integer + * + * @return $this + */ + public function setEffectId($effectId) + { + $this->container['effectId'] = $effectId; + + return $this; + } + + /** + * Gets isDefault + * + * @return bool + */ + public function getIsDefault() + { + return $this->container['isDefault']; + } + + /** + * Sets isDefault + * + * @param bool $isDefault is_default boolean + * + * @return $this + */ + public function setIsDefault($isDefault) + { + $this->container['isDefault'] = $isDefault; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseTypesTypeIdNotFound.php b/src/nullx27/ESI/Models/GetUniverseTypesTypeIdNotFound.php new file mode 100644 index 0000000..814377a --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseTypesTypeIdNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Not found message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetUniverseTypesTypeIdOk.php b/src/nullx27/ESI/Models/GetUniverseTypesTypeIdOk.php new file mode 100644 index 0000000..c10d72e --- /dev/null +++ b/src/nullx27/ESI/Models/GetUniverseTypesTypeIdOk.php @@ -0,0 +1,783 @@ + 'int', + 'name' => 'string', + 'description' => 'string', + 'published' => 'bool', + 'groupId' => 'int', + 'marketGroupId' => 'int', + 'radius' => 'float', + 'volume' => 'float', + 'packagedVolume' => 'float', + 'iconId' => 'int', + 'capacity' => 'float', + 'portionSize' => 'int', + 'mass' => 'float', + 'graphicId' => 'int', + 'dogmaAttributes' => '\nullx27ESI\nullx27\ESI\Models\GetUniverseTypesTypeIdDogmaAttribute[]', + 'dogmaEffects' => '\nullx27ESI\nullx27\ESI\Models\GetUniverseTypesTypeIdDogmaEffect[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'typeId' => 'int32', + 'name' => null, + 'description' => null, + 'published' => null, + 'groupId' => 'int32', + 'marketGroupId' => 'int32', + 'radius' => 'float', + 'volume' => 'float', + 'packagedVolume' => 'float', + 'iconId' => 'int32', + 'capacity' => 'float', + 'portionSize' => 'int32', + 'mass' => 'float', + 'graphicId' => 'int32', + 'dogmaAttributes' => null, + 'dogmaEffects' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'typeId' => 'type_id', + 'name' => 'name', + 'description' => 'description', + 'published' => 'published', + 'groupId' => 'group_id', + 'marketGroupId' => 'market_group_id', + 'radius' => 'radius', + 'volume' => 'volume', + 'packagedVolume' => 'packaged_volume', + 'iconId' => 'icon_id', + 'capacity' => 'capacity', + 'portionSize' => 'portion_size', + 'mass' => 'mass', + 'graphicId' => 'graphic_id', + 'dogmaAttributes' => 'dogma_attributes', + 'dogmaEffects' => 'dogma_effects' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'typeId' => 'setTypeId', + 'name' => 'setName', + 'description' => 'setDescription', + 'published' => 'setPublished', + 'groupId' => 'setGroupId', + 'marketGroupId' => 'setMarketGroupId', + 'radius' => 'setRadius', + 'volume' => 'setVolume', + 'packagedVolume' => 'setPackagedVolume', + 'iconId' => 'setIconId', + 'capacity' => 'setCapacity', + 'portionSize' => 'setPortionSize', + 'mass' => 'setMass', + 'graphicId' => 'setGraphicId', + 'dogmaAttributes' => 'setDogmaAttributes', + 'dogmaEffects' => 'setDogmaEffects' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'typeId' => 'getTypeId', + 'name' => 'getName', + 'description' => 'getDescription', + 'published' => 'getPublished', + 'groupId' => 'getGroupId', + 'marketGroupId' => 'getMarketGroupId', + 'radius' => 'getRadius', + 'volume' => 'getVolume', + 'packagedVolume' => 'getPackagedVolume', + 'iconId' => 'getIconId', + 'capacity' => 'getCapacity', + 'portionSize' => 'getPortionSize', + 'mass' => 'getMass', + 'graphicId' => 'getGraphicId', + 'dogmaAttributes' => 'getDogmaAttributes', + 'dogmaEffects' => 'getDogmaEffects' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['typeId'] = isset($data['typeId']) ? $data['typeId'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['description'] = isset($data['description']) ? $data['description'] : null; + $this->container['published'] = isset($data['published']) ? $data['published'] : null; + $this->container['groupId'] = isset($data['groupId']) ? $data['groupId'] : null; + $this->container['marketGroupId'] = isset($data['marketGroupId']) ? $data['marketGroupId'] : null; + $this->container['radius'] = isset($data['radius']) ? $data['radius'] : null; + $this->container['volume'] = isset($data['volume']) ? $data['volume'] : null; + $this->container['packagedVolume'] = isset($data['packagedVolume']) ? $data['packagedVolume'] : null; + $this->container['iconId'] = isset($data['iconId']) ? $data['iconId'] : null; + $this->container['capacity'] = isset($data['capacity']) ? $data['capacity'] : null; + $this->container['portionSize'] = isset($data['portionSize']) ? $data['portionSize'] : null; + $this->container['mass'] = isset($data['mass']) ? $data['mass'] : null; + $this->container['graphicId'] = isset($data['graphicId']) ? $data['graphicId'] : null; + $this->container['dogmaAttributes'] = isset($data['dogmaAttributes']) ? $data['dogmaAttributes'] : null; + $this->container['dogmaEffects'] = isset($data['dogmaEffects']) ? $data['dogmaEffects'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['typeId'] === null) { + $invalidProperties[] = "'typeId' can't be null"; + } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ($this->container['description'] === null) { + $invalidProperties[] = "'description' can't be null"; + } + if ($this->container['published'] === null) { + $invalidProperties[] = "'published' can't be null"; + } + if ($this->container['groupId'] === null) { + $invalidProperties[] = "'groupId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['typeId'] === null) { + return false; + } + if ($this->container['name'] === null) { + return false; + } + if ($this->container['description'] === null) { + return false; + } + if ($this->container['published'] === null) { + return false; + } + if ($this->container['groupId'] === null) { + return false; + } + return true; + } + + + /** + * Gets typeId + * + * @return int + */ + public function getTypeId() + { + return $this->container['typeId']; + } + + /** + * Sets typeId + * + * @param int $typeId type_id integer + * + * @return $this + */ + public function setTypeId($typeId) + { + $this->container['typeId'] = $typeId; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets description + * + * @return string + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string $description description string + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets published + * + * @return bool + */ + public function getPublished() + { + return $this->container['published']; + } + + /** + * Sets published + * + * @param bool $published published boolean + * + * @return $this + */ + public function setPublished($published) + { + $this->container['published'] = $published; + + return $this; + } + + /** + * Gets groupId + * + * @return int + */ + public function getGroupId() + { + return $this->container['groupId']; + } + + /** + * Sets groupId + * + * @param int $groupId group_id integer + * + * @return $this + */ + public function setGroupId($groupId) + { + $this->container['groupId'] = $groupId; + + return $this; + } + + /** + * Gets marketGroupId + * + * @return int + */ + public function getMarketGroupId() + { + return $this->container['marketGroupId']; + } + + /** + * Sets marketGroupId + * + * @param int $marketGroupId This only exists for types that can be put on the market + * + * @return $this + */ + public function setMarketGroupId($marketGroupId) + { + $this->container['marketGroupId'] = $marketGroupId; + + return $this; + } + + /** + * Gets radius + * + * @return float + */ + public function getRadius() + { + return $this->container['radius']; + } + + /** + * Sets radius + * + * @param float $radius radius number + * + * @return $this + */ + public function setRadius($radius) + { + $this->container['radius'] = $radius; + + return $this; + } + + /** + * Gets volume + * + * @return float + */ + public function getVolume() + { + return $this->container['volume']; + } + + /** + * Sets volume + * + * @param float $volume volume number + * + * @return $this + */ + public function setVolume($volume) + { + $this->container['volume'] = $volume; + + return $this; + } + + /** + * Gets packagedVolume + * + * @return float + */ + public function getPackagedVolume() + { + return $this->container['packagedVolume']; + } + + /** + * Sets packagedVolume + * + * @param float $packagedVolume packaged_volume number + * + * @return $this + */ + public function setPackagedVolume($packagedVolume) + { + $this->container['packagedVolume'] = $packagedVolume; + + return $this; + } + + /** + * Gets iconId + * + * @return int + */ + public function getIconId() + { + return $this->container['iconId']; + } + + /** + * Sets iconId + * + * @param int $iconId icon_id integer + * + * @return $this + */ + public function setIconId($iconId) + { + $this->container['iconId'] = $iconId; + + return $this; + } + + /** + * Gets capacity + * + * @return float + */ + public function getCapacity() + { + return $this->container['capacity']; + } + + /** + * Sets capacity + * + * @param float $capacity capacity number + * + * @return $this + */ + public function setCapacity($capacity) + { + $this->container['capacity'] = $capacity; + + return $this; + } + + /** + * Gets portionSize + * + * @return int + */ + public function getPortionSize() + { + return $this->container['portionSize']; + } + + /** + * Sets portionSize + * + * @param int $portionSize portion_size integer + * + * @return $this + */ + public function setPortionSize($portionSize) + { + $this->container['portionSize'] = $portionSize; + + return $this; + } + + /** + * Gets mass + * + * @return float + */ + public function getMass() + { + return $this->container['mass']; + } + + /** + * Sets mass + * + * @param float $mass mass number + * + * @return $this + */ + public function setMass($mass) + { + $this->container['mass'] = $mass; + + return $this; + } + + /** + * Gets graphicId + * + * @return int + */ + public function getGraphicId() + { + return $this->container['graphicId']; + } + + /** + * Sets graphicId + * + * @param int $graphicId graphic_id integer + * + * @return $this + */ + public function setGraphicId($graphicId) + { + $this->container['graphicId'] = $graphicId; + + return $this; + } + + /** + * Gets dogmaAttributes + * + * @return \nullx27ESI\nullx27\ESI\Models\GetUniverseTypesTypeIdDogmaAttribute[] + */ + public function getDogmaAttributes() + { + return $this->container['dogmaAttributes']; + } + + /** + * Sets dogmaAttributes + * + * @param \nullx27ESI\nullx27\ESI\Models\GetUniverseTypesTypeIdDogmaAttribute[] $dogmaAttributes dogma_attributes array + * + * @return $this + */ + public function setDogmaAttributes($dogmaAttributes) + { + $this->container['dogmaAttributes'] = $dogmaAttributes; + + return $this; + } + + /** + * Gets dogmaEffects + * + * @return \nullx27ESI\nullx27\ESI\Models\GetUniverseTypesTypeIdDogmaEffect[] + */ + public function getDogmaEffects() + { + return $this->container['dogmaEffects']; + } + + /** + * Sets dogmaEffects + * + * @param \nullx27ESI\nullx27\ESI\Models\GetUniverseTypesTypeIdDogmaEffect[] $dogmaEffects dogma_effects array + * + * @return $this + */ + public function setDogmaEffects($dogmaEffects) + { + $this->container['dogmaEffects'] = $dogmaEffects; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetWarsWarIdAggressor.php b/src/nullx27/ESI/Models/GetWarsWarIdAggressor.php new file mode 100644 index 0000000..9d7bcac --- /dev/null +++ b/src/nullx27/ESI/Models/GetWarsWarIdAggressor.php @@ -0,0 +1,405 @@ + 'int', + 'allianceId' => 'int', + 'shipsKilled' => 'int', + 'iskDestroyed' => 'float' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'corporationId' => 'int32', + 'allianceId' => 'int32', + 'shipsKilled' => 'int32', + 'iskDestroyed' => 'float' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'corporationId' => 'corporation_id', + 'allianceId' => 'alliance_id', + 'shipsKilled' => 'ships_killed', + 'iskDestroyed' => 'isk_destroyed' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'corporationId' => 'setCorporationId', + 'allianceId' => 'setAllianceId', + 'shipsKilled' => 'setShipsKilled', + 'iskDestroyed' => 'setIskDestroyed' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'corporationId' => 'getCorporationId', + 'allianceId' => 'getAllianceId', + 'shipsKilled' => 'getShipsKilled', + 'iskDestroyed' => 'getIskDestroyed' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['corporationId'] = isset($data['corporationId']) ? $data['corporationId'] : null; + $this->container['allianceId'] = isset($data['allianceId']) ? $data['allianceId'] : null; + $this->container['shipsKilled'] = isset($data['shipsKilled']) ? $data['shipsKilled'] : null; + $this->container['iskDestroyed'] = isset($data['iskDestroyed']) ? $data['iskDestroyed'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['shipsKilled'] === null) { + $invalidProperties[] = "'shipsKilled' can't be null"; + } + if ($this->container['iskDestroyed'] === null) { + $invalidProperties[] = "'iskDestroyed' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['shipsKilled'] === null) { + return false; + } + if ($this->container['iskDestroyed'] === null) { + return false; + } + return true; + } + + + /** + * Gets corporationId + * + * @return int + */ + public function getCorporationId() + { + return $this->container['corporationId']; + } + + /** + * Sets corporationId + * + * @param int $corporationId Corporation ID if and only if the aggressor is a corporation + * + * @return $this + */ + public function setCorporationId($corporationId) + { + $this->container['corporationId'] = $corporationId; + + return $this; + } + + /** + * Gets allianceId + * + * @return int + */ + public function getAllianceId() + { + return $this->container['allianceId']; + } + + /** + * Sets allianceId + * + * @param int $allianceId Alliance ID if and only if the aggressor is an alliance + * + * @return $this + */ + public function setAllianceId($allianceId) + { + $this->container['allianceId'] = $allianceId; + + return $this; + } + + /** + * Gets shipsKilled + * + * @return int + */ + public function getShipsKilled() + { + return $this->container['shipsKilled']; + } + + /** + * Sets shipsKilled + * + * @param int $shipsKilled The number of ships the aggressor has killed + * + * @return $this + */ + public function setShipsKilled($shipsKilled) + { + $this->container['shipsKilled'] = $shipsKilled; + + return $this; + } + + /** + * Gets iskDestroyed + * + * @return float + */ + public function getIskDestroyed() + { + return $this->container['iskDestroyed']; + } + + /** + * Sets iskDestroyed + * + * @param float $iskDestroyed ISK value of ships the aggressor has destroyed + * + * @return $this + */ + public function setIskDestroyed($iskDestroyed) + { + $this->container['iskDestroyed'] = $iskDestroyed; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetWarsWarIdAlly.php b/src/nullx27/ESI/Models/GetWarsWarIdAlly.php new file mode 100644 index 0000000..0c2d522 --- /dev/null +++ b/src/nullx27/ESI/Models/GetWarsWarIdAlly.php @@ -0,0 +1,333 @@ + 'int', + 'allianceId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'corporationId' => 'int32', + 'allianceId' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'corporationId' => 'corporation_id', + 'allianceId' => 'alliance_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'corporationId' => 'setCorporationId', + 'allianceId' => 'setAllianceId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'corporationId' => 'getCorporationId', + 'allianceId' => 'getAllianceId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['corporationId'] = isset($data['corporationId']) ? $data['corporationId'] : null; + $this->container['allianceId'] = isset($data['allianceId']) ? $data['allianceId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets corporationId + * + * @return int + */ + public function getCorporationId() + { + return $this->container['corporationId']; + } + + /** + * Sets corporationId + * + * @param int $corporationId Corporation ID if and only if this ally is a corporation + * + * @return $this + */ + public function setCorporationId($corporationId) + { + $this->container['corporationId'] = $corporationId; + + return $this; + } + + /** + * Gets allianceId + * + * @return int + */ + public function getAllianceId() + { + return $this->container['allianceId']; + } + + /** + * Sets allianceId + * + * @param int $allianceId Alliance ID if and only if this ally is an alliance + * + * @return $this + */ + public function setAllianceId($allianceId) + { + $this->container['allianceId'] = $allianceId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetWarsWarIdDefender.php b/src/nullx27/ESI/Models/GetWarsWarIdDefender.php new file mode 100644 index 0000000..5731635 --- /dev/null +++ b/src/nullx27/ESI/Models/GetWarsWarIdDefender.php @@ -0,0 +1,405 @@ + 'int', + 'allianceId' => 'int', + 'shipsKilled' => 'int', + 'iskDestroyed' => 'float' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'corporationId' => 'int32', + 'allianceId' => 'int32', + 'shipsKilled' => 'int32', + 'iskDestroyed' => 'float' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'corporationId' => 'corporation_id', + 'allianceId' => 'alliance_id', + 'shipsKilled' => 'ships_killed', + 'iskDestroyed' => 'isk_destroyed' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'corporationId' => 'setCorporationId', + 'allianceId' => 'setAllianceId', + 'shipsKilled' => 'setShipsKilled', + 'iskDestroyed' => 'setIskDestroyed' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'corporationId' => 'getCorporationId', + 'allianceId' => 'getAllianceId', + 'shipsKilled' => 'getShipsKilled', + 'iskDestroyed' => 'getIskDestroyed' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['corporationId'] = isset($data['corporationId']) ? $data['corporationId'] : null; + $this->container['allianceId'] = isset($data['allianceId']) ? $data['allianceId'] : null; + $this->container['shipsKilled'] = isset($data['shipsKilled']) ? $data['shipsKilled'] : null; + $this->container['iskDestroyed'] = isset($data['iskDestroyed']) ? $data['iskDestroyed'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['shipsKilled'] === null) { + $invalidProperties[] = "'shipsKilled' can't be null"; + } + if ($this->container['iskDestroyed'] === null) { + $invalidProperties[] = "'iskDestroyed' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['shipsKilled'] === null) { + return false; + } + if ($this->container['iskDestroyed'] === null) { + return false; + } + return true; + } + + + /** + * Gets corporationId + * + * @return int + */ + public function getCorporationId() + { + return $this->container['corporationId']; + } + + /** + * Sets corporationId + * + * @param int $corporationId Corporation ID if and only if the defender is a corporation + * + * @return $this + */ + public function setCorporationId($corporationId) + { + $this->container['corporationId'] = $corporationId; + + return $this; + } + + /** + * Gets allianceId + * + * @return int + */ + public function getAllianceId() + { + return $this->container['allianceId']; + } + + /** + * Sets allianceId + * + * @param int $allianceId Alliance ID if and only if the defender is an alliance + * + * @return $this + */ + public function setAllianceId($allianceId) + { + $this->container['allianceId'] = $allianceId; + + return $this; + } + + /** + * Gets shipsKilled + * + * @return int + */ + public function getShipsKilled() + { + return $this->container['shipsKilled']; + } + + /** + * Sets shipsKilled + * + * @param int $shipsKilled The number of ships the defender has killed + * + * @return $this + */ + public function setShipsKilled($shipsKilled) + { + $this->container['shipsKilled'] = $shipsKilled; + + return $this; + } + + /** + * Gets iskDestroyed + * + * @return float + */ + public function getIskDestroyed() + { + return $this->container['iskDestroyed']; + } + + /** + * Sets iskDestroyed + * + * @param float $iskDestroyed ISK value of ships the defender has killed + * + * @return $this + */ + public function setIskDestroyed($iskDestroyed) + { + $this->container['iskDestroyed'] = $iskDestroyed; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetWarsWarIdKillmails200Ok.php b/src/nullx27/ESI/Models/GetWarsWarIdKillmails200Ok.php new file mode 100644 index 0000000..c240911 --- /dev/null +++ b/src/nullx27/ESI/Models/GetWarsWarIdKillmails200Ok.php @@ -0,0 +1,345 @@ + 'int', + 'killmailHash' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'killmailId' => 'int32', + 'killmailHash' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'killmailId' => 'killmail_id', + 'killmailHash' => 'killmail_hash' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'killmailId' => 'setKillmailId', + 'killmailHash' => 'setKillmailHash' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'killmailId' => 'getKillmailId', + 'killmailHash' => 'getKillmailHash' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['killmailId'] = isset($data['killmailId']) ? $data['killmailId'] : null; + $this->container['killmailHash'] = isset($data['killmailHash']) ? $data['killmailHash'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['killmailId'] === null) { + $invalidProperties[] = "'killmailId' can't be null"; + } + if ($this->container['killmailHash'] === null) { + $invalidProperties[] = "'killmailHash' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['killmailId'] === null) { + return false; + } + if ($this->container['killmailHash'] === null) { + return false; + } + return true; + } + + + /** + * Gets killmailId + * + * @return int + */ + public function getKillmailId() + { + return $this->container['killmailId']; + } + + /** + * Sets killmailId + * + * @param int $killmailId ID of this killmail + * + * @return $this + */ + public function setKillmailId($killmailId) + { + $this->container['killmailId'] = $killmailId; + + return $this; + } + + /** + * Gets killmailHash + * + * @return string + */ + public function getKillmailHash() + { + return $this->container['killmailHash']; + } + + /** + * Sets killmailHash + * + * @param string $killmailHash A hash of this killmail + * + * @return $this + */ + public function setKillmailHash($killmailHash) + { + $this->container['killmailHash'] = $killmailHash; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetWarsWarIdKillmailsUnprocessableEntity.php b/src/nullx27/ESI/Models/GetWarsWarIdKillmailsUnprocessableEntity.php new file mode 100644 index 0000000..bb3729e --- /dev/null +++ b/src/nullx27/ESI/Models/GetWarsWarIdKillmailsUnprocessableEntity.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Unprocessable entity message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetWarsWarIdOk.php b/src/nullx27/ESI/Models/GetWarsWarIdOk.php new file mode 100644 index 0000000..deec346 --- /dev/null +++ b/src/nullx27/ESI/Models/GetWarsWarIdOk.php @@ -0,0 +1,609 @@ + 'int', + 'declared' => '\DateTime', + 'started' => '\DateTime', + 'retracted' => '\DateTime', + 'finished' => '\DateTime', + 'mutual' => 'bool', + 'openForAllies' => 'bool', + 'aggressor' => '\nullx27ESI\nullx27\ESI\Models\GetWarsWarIdAggressor', + 'defender' => '\nullx27ESI\nullx27\ESI\Models\GetWarsWarIdDefender', + 'allies' => '\nullx27ESI\nullx27\ESI\Models\GetWarsWarIdAlly[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'id' => 'int32', + 'declared' => 'date-time', + 'started' => 'date-time', + 'retracted' => 'date-time', + 'finished' => 'date-time', + 'mutual' => null, + 'openForAllies' => null, + 'aggressor' => null, + 'defender' => null, + 'allies' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'id' => 'id', + 'declared' => 'declared', + 'started' => 'started', + 'retracted' => 'retracted', + 'finished' => 'finished', + 'mutual' => 'mutual', + 'openForAllies' => 'open_for_allies', + 'aggressor' => 'aggressor', + 'defender' => 'defender', + 'allies' => 'allies' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId', + 'declared' => 'setDeclared', + 'started' => 'setStarted', + 'retracted' => 'setRetracted', + 'finished' => 'setFinished', + 'mutual' => 'setMutual', + 'openForAllies' => 'setOpenForAllies', + 'aggressor' => 'setAggressor', + 'defender' => 'setDefender', + 'allies' => 'setAllies' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId', + 'declared' => 'getDeclared', + 'started' => 'getStarted', + 'retracted' => 'getRetracted', + 'finished' => 'getFinished', + 'mutual' => 'getMutual', + 'openForAllies' => 'getOpenForAllies', + 'aggressor' => 'getAggressor', + 'defender' => 'getDefender', + 'allies' => 'getAllies' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['declared'] = isset($data['declared']) ? $data['declared'] : null; + $this->container['started'] = isset($data['started']) ? $data['started'] : null; + $this->container['retracted'] = isset($data['retracted']) ? $data['retracted'] : null; + $this->container['finished'] = isset($data['finished']) ? $data['finished'] : null; + $this->container['mutual'] = isset($data['mutual']) ? $data['mutual'] : null; + $this->container['openForAllies'] = isset($data['openForAllies']) ? $data['openForAllies'] : null; + $this->container['aggressor'] = isset($data['aggressor']) ? $data['aggressor'] : null; + $this->container['defender'] = isset($data['defender']) ? $data['defender'] : null; + $this->container['allies'] = isset($data['allies']) ? $data['allies'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['id'] === null) { + $invalidProperties[] = "'id' can't be null"; + } + if ($this->container['declared'] === null) { + $invalidProperties[] = "'declared' can't be null"; + } + if ($this->container['mutual'] === null) { + $invalidProperties[] = "'mutual' can't be null"; + } + if ($this->container['openForAllies'] === null) { + $invalidProperties[] = "'openForAllies' can't be null"; + } + if ($this->container['aggressor'] === null) { + $invalidProperties[] = "'aggressor' can't be null"; + } + if ($this->container['defender'] === null) { + $invalidProperties[] = "'defender' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['id'] === null) { + return false; + } + if ($this->container['declared'] === null) { + return false; + } + if ($this->container['mutual'] === null) { + return false; + } + if ($this->container['openForAllies'] === null) { + return false; + } + if ($this->container['aggressor'] === null) { + return false; + } + if ($this->container['defender'] === null) { + return false; + } + return true; + } + + + /** + * Gets id + * + * @return int + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int $id ID of the specified war + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets declared + * + * @return \DateTime + */ + public function getDeclared() + { + return $this->container['declared']; + } + + /** + * Sets declared + * + * @param \DateTime $declared Time that the war was declared + * + * @return $this + */ + public function setDeclared($declared) + { + $this->container['declared'] = $declared; + + return $this; + } + + /** + * Gets started + * + * @return \DateTime + */ + public function getStarted() + { + return $this->container['started']; + } + + /** + * Sets started + * + * @param \DateTime $started Time when the war started and both sides could shoot each other + * + * @return $this + */ + public function setStarted($started) + { + $this->container['started'] = $started; + + return $this; + } + + /** + * Gets retracted + * + * @return \DateTime + */ + public function getRetracted() + { + return $this->container['retracted']; + } + + /** + * Sets retracted + * + * @param \DateTime $retracted Time the war was retracted but both sides could still shoot each other + * + * @return $this + */ + public function setRetracted($retracted) + { + $this->container['retracted'] = $retracted; + + return $this; + } + + /** + * Gets finished + * + * @return \DateTime + */ + public function getFinished() + { + return $this->container['finished']; + } + + /** + * Sets finished + * + * @param \DateTime $finished Time the war ended and shooting was no longer allowed + * + * @return $this + */ + public function setFinished($finished) + { + $this->container['finished'] = $finished; + + return $this; + } + + /** + * Gets mutual + * + * @return bool + */ + public function getMutual() + { + return $this->container['mutual']; + } + + /** + * Sets mutual + * + * @param bool $mutual Was the war declared mutual by both parties + * + * @return $this + */ + public function setMutual($mutual) + { + $this->container['mutual'] = $mutual; + + return $this; + } + + /** + * Gets openForAllies + * + * @return bool + */ + public function getOpenForAllies() + { + return $this->container['openForAllies']; + } + + /** + * Sets openForAllies + * + * @param bool $openForAllies Is the war currently open for allies or not + * + * @return $this + */ + public function setOpenForAllies($openForAllies) + { + $this->container['openForAllies'] = $openForAllies; + + return $this; + } + + /** + * Gets aggressor + * + * @return \nullx27ESI\nullx27\ESI\Models\GetWarsWarIdAggressor + */ + public function getAggressor() + { + return $this->container['aggressor']; + } + + /** + * Sets aggressor + * + * @param \nullx27ESI\nullx27\ESI\Models\GetWarsWarIdAggressor $aggressor aggressor + * + * @return $this + */ + public function setAggressor($aggressor) + { + $this->container['aggressor'] = $aggressor; + + return $this; + } + + /** + * Gets defender + * + * @return \nullx27ESI\nullx27\ESI\Models\GetWarsWarIdDefender + */ + public function getDefender() + { + return $this->container['defender']; + } + + /** + * Sets defender + * + * @param \nullx27ESI\nullx27\ESI\Models\GetWarsWarIdDefender $defender defender + * + * @return $this + */ + public function setDefender($defender) + { + $this->container['defender'] = $defender; + + return $this; + } + + /** + * Gets allies + * + * @return \nullx27ESI\nullx27\ESI\Models\GetWarsWarIdAlly[] + */ + public function getAllies() + { + return $this->container['allies']; + } + + /** + * Sets allies + * + * @param \nullx27ESI\nullx27\ESI\Models\GetWarsWarIdAlly[] $allies allied corporations or alliances, each object contains either corporation_id or alliance_id + * + * @return $this + */ + public function setAllies($allies) + { + $this->container['allies'] = $allies; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/GetWarsWarIdUnprocessableEntity.php b/src/nullx27/ESI/Models/GetWarsWarIdUnprocessableEntity.php new file mode 100644 index 0000000..4c30096 --- /dev/null +++ b/src/nullx27/ESI/Models/GetWarsWarIdUnprocessableEntity.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Unprocessable entity message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/InternalServerError.php b/src/nullx27/ESI/Models/InternalServerError.php new file mode 100644 index 0000000..fedef35 --- /dev/null +++ b/src/nullx27/ESI/Models/InternalServerError.php @@ -0,0 +1,309 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['error'] === null) { + $invalidProperties[] = "'error' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['error'] === null) { + return false; + } + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Internal server error message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/ModelInterface.php b/src/nullx27/ESI/Models/ModelInterface.php new file mode 100644 index 0000000..5326651 --- /dev/null +++ b/src/nullx27/ESI/Models/ModelInterface.php @@ -0,0 +1,96 @@ + 'int', + 'corporationId' => 'int', + 'allianceId' => 'int', + 'factionId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'characterId' => 'int32', + 'corporationId' => 'int32', + 'allianceId' => 'int32', + 'factionId' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'characterId' => 'character_id', + 'corporationId' => 'corporation_id', + 'allianceId' => 'alliance_id', + 'factionId' => 'faction_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'characterId' => 'setCharacterId', + 'corporationId' => 'setCorporationId', + 'allianceId' => 'setAllianceId', + 'factionId' => 'setFactionId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'characterId' => 'getCharacterId', + 'corporationId' => 'getCorporationId', + 'allianceId' => 'getAllianceId', + 'factionId' => 'getFactionId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['characterId'] = isset($data['characterId']) ? $data['characterId'] : null; + $this->container['corporationId'] = isset($data['corporationId']) ? $data['corporationId'] : null; + $this->container['allianceId'] = isset($data['allianceId']) ? $data['allianceId'] : null; + $this->container['factionId'] = isset($data['factionId']) ? $data['factionId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['characterId'] === null) { + $invalidProperties[] = "'characterId' can't be null"; + } + if ($this->container['corporationId'] === null) { + $invalidProperties[] = "'corporationId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['characterId'] === null) { + return false; + } + if ($this->container['corporationId'] === null) { + return false; + } + return true; + } + + + /** + * Gets characterId + * + * @return int + */ + public function getCharacterId() + { + return $this->container['characterId']; + } + + /** + * Sets characterId + * + * @param int $characterId The character's ID + * + * @return $this + */ + public function setCharacterId($characterId) + { + $this->container['characterId'] = $characterId; + + return $this; + } + + /** + * Gets corporationId + * + * @return int + */ + public function getCorporationId() + { + return $this->container['corporationId']; + } + + /** + * Sets corporationId + * + * @param int $corporationId The character's corporation ID + * + * @return $this + */ + public function setCorporationId($corporationId) + { + $this->container['corporationId'] = $corporationId; + + return $this; + } + + /** + * Gets allianceId + * + * @return int + */ + public function getAllianceId() + { + return $this->container['allianceId']; + } + + /** + * Sets allianceId + * + * @param int $allianceId The character's alliance ID, if their corporation is in an alliance + * + * @return $this + */ + public function setAllianceId($allianceId) + { + $this->container['allianceId'] = $allianceId; + + return $this; + } + + /** + * Gets factionId + * + * @return int + */ + public function getFactionId() + { + return $this->container['factionId']; + } + + /** + * Sets factionId + * + * @param int $factionId The character's faction ID, if their corporation is in a faction + * + * @return $this + */ + public function setFactionId($factionId) + { + $this->container['factionId'] = $factionId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PostCharactersAffiliationNotFound.php b/src/nullx27/ESI/Models/PostCharactersAffiliationNotFound.php new file mode 100644 index 0000000..e6a8a90 --- /dev/null +++ b/src/nullx27/ESI/Models/PostCharactersAffiliationNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Not found message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PostCharactersCharacterIdAssetsLocations200Ok.php b/src/nullx27/ESI/Models/PostCharactersCharacterIdAssetsLocations200Ok.php new file mode 100644 index 0000000..312b889 --- /dev/null +++ b/src/nullx27/ESI/Models/PostCharactersCharacterIdAssetsLocations200Ok.php @@ -0,0 +1,345 @@ + 'int', + 'position' => '\nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdAssetsLocationsPosition' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'itemId' => 'int64', + 'position' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'itemId' => 'item_id', + 'position' => 'position' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'itemId' => 'setItemId', + 'position' => 'setPosition' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'itemId' => 'getItemId', + 'position' => 'getPosition' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['itemId'] = isset($data['itemId']) ? $data['itemId'] : null; + $this->container['position'] = isset($data['position']) ? $data['position'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['itemId'] === null) { + $invalidProperties[] = "'itemId' can't be null"; + } + if ($this->container['position'] === null) { + $invalidProperties[] = "'position' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['itemId'] === null) { + return false; + } + if ($this->container['position'] === null) { + return false; + } + return true; + } + + + /** + * Gets itemId + * + * @return int + */ + public function getItemId() + { + return $this->container['itemId']; + } + + /** + * Sets itemId + * + * @param int $itemId item_id integer + * + * @return $this + */ + public function setItemId($itemId) + { + $this->container['itemId'] = $itemId; + + return $this; + } + + /** + * Gets position + * + * @return \nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdAssetsLocationsPosition + */ + public function getPosition() + { + return $this->container['position']; + } + + /** + * Sets position + * + * @param \nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdAssetsLocationsPosition $position position + * + * @return $this + */ + public function setPosition($position) + { + $this->container['position'] = $position; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PostCharactersCharacterIdAssetsLocationsPosition.php b/src/nullx27/ESI/Models/PostCharactersCharacterIdAssetsLocationsPosition.php new file mode 100644 index 0000000..0068683 --- /dev/null +++ b/src/nullx27/ESI/Models/PostCharactersCharacterIdAssetsLocationsPosition.php @@ -0,0 +1,381 @@ + 'double', + 'y' => 'double', + 'z' => 'double' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'x' => 'double', + 'y' => 'double', + 'z' => 'double' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'x' => 'x', + 'y' => 'y', + 'z' => 'z' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'x' => 'setX', + 'y' => 'setY', + 'z' => 'setZ' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'x' => 'getX', + 'y' => 'getY', + 'z' => 'getZ' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['x'] = isset($data['x']) ? $data['x'] : null; + $this->container['y'] = isset($data['y']) ? $data['y'] : null; + $this->container['z'] = isset($data['z']) ? $data['z'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['x'] === null) { + $invalidProperties[] = "'x' can't be null"; + } + if ($this->container['y'] === null) { + $invalidProperties[] = "'y' can't be null"; + } + if ($this->container['z'] === null) { + $invalidProperties[] = "'z' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['x'] === null) { + return false; + } + if ($this->container['y'] === null) { + return false; + } + if ($this->container['z'] === null) { + return false; + } + return true; + } + + + /** + * Gets x + * + * @return double + */ + public function getX() + { + return $this->container['x']; + } + + /** + * Sets x + * + * @param double $x x number + * + * @return $this + */ + public function setX($x) + { + $this->container['x'] = $x; + + return $this; + } + + /** + * Gets y + * + * @return double + */ + public function getY() + { + return $this->container['y']; + } + + /** + * Sets y + * + * @param double $y y number + * + * @return $this + */ + public function setY($y) + { + $this->container['y'] = $y; + + return $this; + } + + /** + * Gets z + * + * @return double + */ + public function getZ() + { + return $this->container['z']; + } + + /** + * Sets z + * + * @param double $z z number + * + * @return $this + */ + public function setZ($z) + { + $this->container['z'] = $z; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PostCharactersCharacterIdAssetsNames200Ok.php b/src/nullx27/ESI/Models/PostCharactersCharacterIdAssetsNames200Ok.php new file mode 100644 index 0000000..94e0b0d --- /dev/null +++ b/src/nullx27/ESI/Models/PostCharactersCharacterIdAssetsNames200Ok.php @@ -0,0 +1,345 @@ + 'int', + 'name' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'itemId' => 'int64', + 'name' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'itemId' => 'item_id', + 'name' => 'name' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'itemId' => 'setItemId', + 'name' => 'setName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'itemId' => 'getItemId', + 'name' => 'getName' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['itemId'] = isset($data['itemId']) ? $data['itemId'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['itemId'] === null) { + $invalidProperties[] = "'itemId' can't be null"; + } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['itemId'] === null) { + return false; + } + if ($this->container['name'] === null) { + return false; + } + return true; + } + + + /** + * Gets itemId + * + * @return int + */ + public function getItemId() + { + return $this->container['itemId']; + } + + /** + * Sets itemId + * + * @param int $itemId item_id integer + * + * @return $this + */ + public function setItemId($itemId) + { + $this->container['itemId'] = $itemId; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PostCharactersCharacterIdFittingsCreated.php b/src/nullx27/ESI/Models/PostCharactersCharacterIdFittingsCreated.php new file mode 100644 index 0000000..03c7b73 --- /dev/null +++ b/src/nullx27/ESI/Models/PostCharactersCharacterIdFittingsCreated.php @@ -0,0 +1,309 @@ + 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'fittingId' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'fittingId' => 'fitting_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'fittingId' => 'setFittingId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'fittingId' => 'getFittingId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['fittingId'] = isset($data['fittingId']) ? $data['fittingId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['fittingId'] === null) { + $invalidProperties[] = "'fittingId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['fittingId'] === null) { + return false; + } + return true; + } + + + /** + * Gets fittingId + * + * @return int + */ + public function getFittingId() + { + return $this->container['fittingId']; + } + + /** + * Sets fittingId + * + * @param int $fittingId fitting_id integer + * + * @return $this + */ + public function setFittingId($fittingId) + { + $this->container['fittingId'] = $fittingId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PostCharactersCharacterIdFittingsFitting.php b/src/nullx27/ESI/Models/PostCharactersCharacterIdFittingsFitting.php new file mode 100644 index 0000000..a9d0bd4 --- /dev/null +++ b/src/nullx27/ESI/Models/PostCharactersCharacterIdFittingsFitting.php @@ -0,0 +1,459 @@ + 'string', + 'description' => 'string', + 'shipTypeId' => 'int', + 'items' => '\nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdFittingsItem[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'name' => null, + 'description' => null, + 'shipTypeId' => 'int32', + 'items' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'name' => 'name', + 'description' => 'description', + 'shipTypeId' => 'ship_type_id', + 'items' => 'items' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'name' => 'setName', + 'description' => 'setDescription', + 'shipTypeId' => 'setShipTypeId', + 'items' => 'setItems' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'name' => 'getName', + 'description' => 'getDescription', + 'shipTypeId' => 'getShipTypeId', + 'items' => 'getItems' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['description'] = isset($data['description']) ? $data['description'] : null; + $this->container['shipTypeId'] = isset($data['shipTypeId']) ? $data['shipTypeId'] : null; + $this->container['items'] = isset($data['items']) ? $data['items'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ((strlen($this->container['name']) > 50)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 50."; + } + + if ((strlen($this->container['name']) < 1)) { + $invalidProperties[] = "invalid value for 'name', the character length must be bigger than or equal to 1."; + } + + if ($this->container['description'] === null) { + $invalidProperties[] = "'description' can't be null"; + } + if ((strlen($this->container['description']) > 500)) { + $invalidProperties[] = "invalid value for 'description', the character length must be smaller than or equal to 500."; + } + + if ((strlen($this->container['description']) < 0)) { + $invalidProperties[] = "invalid value for 'description', the character length must be bigger than or equal to 0."; + } + + if ($this->container['shipTypeId'] === null) { + $invalidProperties[] = "'shipTypeId' can't be null"; + } + if ($this->container['items'] === null) { + $invalidProperties[] = "'items' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['name'] === null) { + return false; + } + if (strlen($this->container['name']) > 50) { + return false; + } + if (strlen($this->container['name']) < 1) { + return false; + } + if ($this->container['description'] === null) { + return false; + } + if (strlen($this->container['description']) > 500) { + return false; + } + if (strlen($this->container['description']) < 0) { + return false; + } + if ($this->container['shipTypeId'] === null) { + return false; + } + if ($this->container['items'] === null) { + return false; + } + return true; + } + + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + if ((strlen($name) > 50)) { + throw new \InvalidArgumentException('invalid length for $name when calling PostCharactersCharacterIdFittingsFitting., must be smaller than or equal to 50.'); + } + if ((strlen($name) < 1)) { + throw new \InvalidArgumentException('invalid length for $name when calling PostCharactersCharacterIdFittingsFitting., must be bigger than or equal to 1.'); + } + + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets description + * + * @return string + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string $description description string + * + * @return $this + */ + public function setDescription($description) + { + if ((strlen($description) > 500)) { + throw new \InvalidArgumentException('invalid length for $description when calling PostCharactersCharacterIdFittingsFitting., must be smaller than or equal to 500.'); + } + if ((strlen($description) < 0)) { + throw new \InvalidArgumentException('invalid length for $description when calling PostCharactersCharacterIdFittingsFitting., must be bigger than or equal to 0.'); + } + + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets shipTypeId + * + * @return int + */ + public function getShipTypeId() + { + return $this->container['shipTypeId']; + } + + /** + * Sets shipTypeId + * + * @param int $shipTypeId ship_type_id integer + * + * @return $this + */ + public function setShipTypeId($shipTypeId) + { + $this->container['shipTypeId'] = $shipTypeId; + + return $this; + } + + /** + * Gets items + * + * @return \nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdFittingsItem[] + */ + public function getItems() + { + return $this->container['items']; + } + + /** + * Sets items + * + * @param \nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdFittingsItem[] $items items array + * + * @return $this + */ + public function setItems($items) + { + $this->container['items'] = $items; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PostCharactersCharacterIdFittingsItem.php b/src/nullx27/ESI/Models/PostCharactersCharacterIdFittingsItem.php new file mode 100644 index 0000000..378e609 --- /dev/null +++ b/src/nullx27/ESI/Models/PostCharactersCharacterIdFittingsItem.php @@ -0,0 +1,381 @@ + 'int', + 'flag' => 'int', + 'quantity' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'typeId' => 'int32', + 'flag' => 'int32', + 'quantity' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'typeId' => 'type_id', + 'flag' => 'flag', + 'quantity' => 'quantity' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'typeId' => 'setTypeId', + 'flag' => 'setFlag', + 'quantity' => 'setQuantity' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'typeId' => 'getTypeId', + 'flag' => 'getFlag', + 'quantity' => 'getQuantity' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['typeId'] = isset($data['typeId']) ? $data['typeId'] : null; + $this->container['flag'] = isset($data['flag']) ? $data['flag'] : null; + $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['typeId'] === null) { + $invalidProperties[] = "'typeId' can't be null"; + } + if ($this->container['flag'] === null) { + $invalidProperties[] = "'flag' can't be null"; + } + if ($this->container['quantity'] === null) { + $invalidProperties[] = "'quantity' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['typeId'] === null) { + return false; + } + if ($this->container['flag'] === null) { + return false; + } + if ($this->container['quantity'] === null) { + return false; + } + return true; + } + + + /** + * Gets typeId + * + * @return int + */ + public function getTypeId() + { + return $this->container['typeId']; + } + + /** + * Sets typeId + * + * @param int $typeId type_id integer + * + * @return $this + */ + public function setTypeId($typeId) + { + $this->container['typeId'] = $typeId; + + return $this; + } + + /** + * Gets flag + * + * @return int + */ + public function getFlag() + { + return $this->container['flag']; + } + + /** + * Sets flag + * + * @param int $flag flag integer + * + * @return $this + */ + public function setFlag($flag) + { + $this->container['flag'] = $flag; + + return $this; + } + + /** + * Gets quantity + * + * @return int + */ + public function getQuantity() + { + return $this->container['quantity']; + } + + /** + * Sets quantity + * + * @param int $quantity quantity integer + * + * @return $this + */ + public function setQuantity($quantity) + { + $this->container['quantity'] = $quantity; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PostCharactersCharacterIdMailBadRequest.php b/src/nullx27/ESI/Models/PostCharactersCharacterIdMailBadRequest.php new file mode 100644 index 0000000..d340367 --- /dev/null +++ b/src/nullx27/ESI/Models/PostCharactersCharacterIdMailBadRequest.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Bad request message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PostCharactersCharacterIdMailLabelsLabel.php b/src/nullx27/ESI/Models/PostCharactersCharacterIdMailLabelsLabel.php new file mode 100644 index 0000000..1d2f793 --- /dev/null +++ b/src/nullx27/ESI/Models/PostCharactersCharacterIdMailLabelsLabel.php @@ -0,0 +1,428 @@ + 'string', + 'color' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'name' => null, + 'color' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'name' => 'name', + 'color' => 'color' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'name' => 'setName', + 'color' => 'setColor' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'name' => 'getName', + 'color' => 'getColor' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const COLOR__0000FE = '#0000fe'; + const COLOR__006634 = '#006634'; + const COLOR__0099FF = '#0099ff'; + const COLOR__00FF33 = '#00ff33'; + const COLOR__01FFFF = '#01ffff'; + const COLOR__349800 = '#349800'; + const COLOR__660066 = '#660066'; + const COLOR__666666 = '#666666'; + const COLOR__999999 = '#999999'; + const COLOR__99FFFF = '#99ffff'; + const COLOR__9A0000 = '#9a0000'; + const COLOR_CCFF9A = '#ccff9a'; + const COLOR_E6E6E6 = '#e6e6e6'; + const COLOR_FE0000 = '#fe0000'; + const COLOR_FF6600 = '#ff6600'; + const COLOR_FFFF01 = '#ffff01'; + const COLOR_FFFFCD = '#ffffcd'; + const COLOR_FFFFFF = '#ffffff'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getColorAllowableValues() + { + return [ + self::COLOR__0000FE, + self::COLOR__006634, + self::COLOR__0099FF, + self::COLOR__00FF33, + self::COLOR__01FFFF, + self::COLOR__349800, + self::COLOR__660066, + self::COLOR__666666, + self::COLOR__999999, + self::COLOR__99FFFF, + self::COLOR__9A0000, + self::COLOR_CCFF9A, + self::COLOR_E6E6E6, + self::COLOR_FE0000, + self::COLOR_FF6600, + self::COLOR_FFFF01, + self::COLOR_FFFFCD, + self::COLOR_FFFFFF, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['color'] = isset($data['color']) ? $data['color'] : '#ffffff'; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ((strlen($this->container['name']) > 40)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 40."; + } + + if ((strlen($this->container['name']) < 1)) { + $invalidProperties[] = "invalid value for 'name', the character length must be bigger than or equal to 1."; + } + + $allowedValues = $this->getColorAllowableValues(); + if (!in_array($this->container['color'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'color', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['name'] === null) { + return false; + } + if (strlen($this->container['name']) > 40) { + return false; + } + if (strlen($this->container['name']) < 1) { + return false; + } + $allowedValues = $this->getColorAllowableValues(); + if (!in_array($this->container['color'], $allowedValues)) { + return false; + } + return true; + } + + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + if ((strlen($name) > 40)) { + throw new \InvalidArgumentException('invalid length for $name when calling PostCharactersCharacterIdMailLabelsLabel., must be smaller than or equal to 40.'); + } + if ((strlen($name) < 1)) { + throw new \InvalidArgumentException('invalid length for $name when calling PostCharactersCharacterIdMailLabelsLabel., must be bigger than or equal to 1.'); + } + + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets color + * + * @return string + */ + public function getColor() + { + return $this->container['color']; + } + + /** + * Sets color + * + * @param string $color Hexadecimal string representing label color, in RGB format + * + * @return $this + */ + public function setColor($color) + { + $allowedValues = $this->getColorAllowableValues(); + if (!is_null($color) && !in_array($color, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'color', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['color'] = $color; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PostCharactersCharacterIdMailMail.php b/src/nullx27/ESI/Models/PostCharactersCharacterIdMailMail.php new file mode 100644 index 0000000..e921a93 --- /dev/null +++ b/src/nullx27/ESI/Models/PostCharactersCharacterIdMailMail.php @@ -0,0 +1,433 @@ + '\nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdMailRecipient[]', + 'subject' => 'string', + 'body' => 'string', + 'approvedCost' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'recipients' => null, + 'subject' => null, + 'body' => null, + 'approvedCost' => 'int64' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'recipients' => 'recipients', + 'subject' => 'subject', + 'body' => 'body', + 'approvedCost' => 'approved_cost' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'recipients' => 'setRecipients', + 'subject' => 'setSubject', + 'body' => 'setBody', + 'approvedCost' => 'setApprovedCost' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'recipients' => 'getRecipients', + 'subject' => 'getSubject', + 'body' => 'getBody', + 'approvedCost' => 'getApprovedCost' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['recipients'] = isset($data['recipients']) ? $data['recipients'] : null; + $this->container['subject'] = isset($data['subject']) ? $data['subject'] : null; + $this->container['body'] = isset($data['body']) ? $data['body'] : null; + $this->container['approvedCost'] = isset($data['approvedCost']) ? $data['approvedCost'] : 0; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['recipients'] === null) { + $invalidProperties[] = "'recipients' can't be null"; + } + if ($this->container['subject'] === null) { + $invalidProperties[] = "'subject' can't be null"; + } + if ((strlen($this->container['subject']) > 1000)) { + $invalidProperties[] = "invalid value for 'subject', the character length must be smaller than or equal to 1000."; + } + + if ($this->container['body'] === null) { + $invalidProperties[] = "'body' can't be null"; + } + if ((strlen($this->container['body']) > 10000)) { + $invalidProperties[] = "invalid value for 'body', the character length must be smaller than or equal to 10000."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['recipients'] === null) { + return false; + } + if ($this->container['subject'] === null) { + return false; + } + if (strlen($this->container['subject']) > 1000) { + return false; + } + if ($this->container['body'] === null) { + return false; + } + if (strlen($this->container['body']) > 10000) { + return false; + } + return true; + } + + + /** + * Gets recipients + * + * @return \nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdMailRecipient[] + */ + public function getRecipients() + { + return $this->container['recipients']; + } + + /** + * Sets recipients + * + * @param \nullx27ESI\nullx27\ESI\Models\PostCharactersCharacterIdMailRecipient[] $recipients recipients array + * + * @return $this + */ + public function setRecipients($recipients) + { + $this->container['recipients'] = $recipients; + + return $this; + } + + /** + * Gets subject + * + * @return string + */ + public function getSubject() + { + return $this->container['subject']; + } + + /** + * Sets subject + * + * @param string $subject subject string + * + * @return $this + */ + public function setSubject($subject) + { + if ((strlen($subject) > 1000)) { + throw new \InvalidArgumentException('invalid length for $subject when calling PostCharactersCharacterIdMailMail., must be smaller than or equal to 1000.'); + } + + $this->container['subject'] = $subject; + + return $this; + } + + /** + * Gets body + * + * @return string + */ + public function getBody() + { + return $this->container['body']; + } + + /** + * Sets body + * + * @param string $body body string + * + * @return $this + */ + public function setBody($body) + { + if ((strlen($body) > 10000)) { + throw new \InvalidArgumentException('invalid length for $body when calling PostCharactersCharacterIdMailMail., must be smaller than or equal to 10000.'); + } + + $this->container['body'] = $body; + + return $this; + } + + /** + * Gets approvedCost + * + * @return int + */ + public function getApprovedCost() + { + return $this->container['approvedCost']; + } + + /** + * Sets approvedCost + * + * @param int $approvedCost approved_cost integer + * + * @return $this + */ + public function setApprovedCost($approvedCost) + { + $this->container['approvedCost'] = $approvedCost; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PostCharactersCharacterIdMailRecipient.php b/src/nullx27/ESI/Models/PostCharactersCharacterIdMailRecipient.php new file mode 100644 index 0000000..57601b6 --- /dev/null +++ b/src/nullx27/ESI/Models/PostCharactersCharacterIdMailRecipient.php @@ -0,0 +1,385 @@ + 'string', + 'recipientId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'recipientType' => null, + 'recipientId' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'recipientType' => 'recipient_type', + 'recipientId' => 'recipient_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'recipientType' => 'setRecipientType', + 'recipientId' => 'setRecipientId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'recipientType' => 'getRecipientType', + 'recipientId' => 'getRecipientId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const RECIPIENT_TYPE_ALLIANCE = 'alliance'; + const RECIPIENT_TYPE_CHARACTER = 'character'; + const RECIPIENT_TYPE_CORPORATION = 'corporation'; + const RECIPIENT_TYPE_MAILING_LIST = 'mailing_list'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getRecipientTypeAllowableValues() + { + return [ + self::RECIPIENT_TYPE_ALLIANCE, + self::RECIPIENT_TYPE_CHARACTER, + self::RECIPIENT_TYPE_CORPORATION, + self::RECIPIENT_TYPE_MAILING_LIST, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['recipientType'] = isset($data['recipientType']) ? $data['recipientType'] : null; + $this->container['recipientId'] = isset($data['recipientId']) ? $data['recipientId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['recipientType'] === null) { + $invalidProperties[] = "'recipientType' can't be null"; + } + $allowedValues = $this->getRecipientTypeAllowableValues(); + if (!in_array($this->container['recipientType'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'recipientType', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['recipientId'] === null) { + $invalidProperties[] = "'recipientId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['recipientType'] === null) { + return false; + } + $allowedValues = $this->getRecipientTypeAllowableValues(); + if (!in_array($this->container['recipientType'], $allowedValues)) { + return false; + } + if ($this->container['recipientId'] === null) { + return false; + } + return true; + } + + + /** + * Gets recipientType + * + * @return string + */ + public function getRecipientType() + { + return $this->container['recipientType']; + } + + /** + * Sets recipientType + * + * @param string $recipientType recipient_type string + * + * @return $this + */ + public function setRecipientType($recipientType) + { + $allowedValues = $this->getRecipientTypeAllowableValues(); + if (!in_array($recipientType, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'recipientType', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['recipientType'] = $recipientType; + + return $this; + } + + /** + * Gets recipientId + * + * @return int + */ + public function getRecipientId() + { + return $this->container['recipientId']; + } + + /** + * Sets recipientId + * + * @param int $recipientId recipient_id integer + * + * @return $this + */ + public function setRecipientId($recipientId) + { + $this->container['recipientId'] = $recipientId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PostCorporationsCorporationIdAssetsLocations200Ok.php b/src/nullx27/ESI/Models/PostCorporationsCorporationIdAssetsLocations200Ok.php new file mode 100644 index 0000000..8afe0ea --- /dev/null +++ b/src/nullx27/ESI/Models/PostCorporationsCorporationIdAssetsLocations200Ok.php @@ -0,0 +1,345 @@ + 'int', + 'position' => '\nullx27ESI\nullx27\ESI\Models\PostCorporationsCorporationIdAssetsLocationsPosition' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'itemId' => 'int64', + 'position' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'itemId' => 'item_id', + 'position' => 'position' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'itemId' => 'setItemId', + 'position' => 'setPosition' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'itemId' => 'getItemId', + 'position' => 'getPosition' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['itemId'] = isset($data['itemId']) ? $data['itemId'] : null; + $this->container['position'] = isset($data['position']) ? $data['position'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['itemId'] === null) { + $invalidProperties[] = "'itemId' can't be null"; + } + if ($this->container['position'] === null) { + $invalidProperties[] = "'position' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['itemId'] === null) { + return false; + } + if ($this->container['position'] === null) { + return false; + } + return true; + } + + + /** + * Gets itemId + * + * @return int + */ + public function getItemId() + { + return $this->container['itemId']; + } + + /** + * Sets itemId + * + * @param int $itemId item_id integer + * + * @return $this + */ + public function setItemId($itemId) + { + $this->container['itemId'] = $itemId; + + return $this; + } + + /** + * Gets position + * + * @return \nullx27ESI\nullx27\ESI\Models\PostCorporationsCorporationIdAssetsLocationsPosition + */ + public function getPosition() + { + return $this->container['position']; + } + + /** + * Sets position + * + * @param \nullx27ESI\nullx27\ESI\Models\PostCorporationsCorporationIdAssetsLocationsPosition $position position + * + * @return $this + */ + public function setPosition($position) + { + $this->container['position'] = $position; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PostCorporationsCorporationIdAssetsLocationsPosition.php b/src/nullx27/ESI/Models/PostCorporationsCorporationIdAssetsLocationsPosition.php new file mode 100644 index 0000000..9ff76e8 --- /dev/null +++ b/src/nullx27/ESI/Models/PostCorporationsCorporationIdAssetsLocationsPosition.php @@ -0,0 +1,381 @@ + 'double', + 'y' => 'double', + 'z' => 'double' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'x' => 'double', + 'y' => 'double', + 'z' => 'double' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'x' => 'x', + 'y' => 'y', + 'z' => 'z' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'x' => 'setX', + 'y' => 'setY', + 'z' => 'setZ' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'x' => 'getX', + 'y' => 'getY', + 'z' => 'getZ' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['x'] = isset($data['x']) ? $data['x'] : null; + $this->container['y'] = isset($data['y']) ? $data['y'] : null; + $this->container['z'] = isset($data['z']) ? $data['z'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['x'] === null) { + $invalidProperties[] = "'x' can't be null"; + } + if ($this->container['y'] === null) { + $invalidProperties[] = "'y' can't be null"; + } + if ($this->container['z'] === null) { + $invalidProperties[] = "'z' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['x'] === null) { + return false; + } + if ($this->container['y'] === null) { + return false; + } + if ($this->container['z'] === null) { + return false; + } + return true; + } + + + /** + * Gets x + * + * @return double + */ + public function getX() + { + return $this->container['x']; + } + + /** + * Sets x + * + * @param double $x x number + * + * @return $this + */ + public function setX($x) + { + $this->container['x'] = $x; + + return $this; + } + + /** + * Gets y + * + * @return double + */ + public function getY() + { + return $this->container['y']; + } + + /** + * Sets y + * + * @param double $y y number + * + * @return $this + */ + public function setY($y) + { + $this->container['y'] = $y; + + return $this; + } + + /** + * Gets z + * + * @return double + */ + public function getZ() + { + return $this->container['z']; + } + + /** + * Sets z + * + * @param double $z z number + * + * @return $this + */ + public function setZ($z) + { + $this->container['z'] = $z; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PostCorporationsCorporationIdAssetsNames200Ok.php b/src/nullx27/ESI/Models/PostCorporationsCorporationIdAssetsNames200Ok.php new file mode 100644 index 0000000..9598384 --- /dev/null +++ b/src/nullx27/ESI/Models/PostCorporationsCorporationIdAssetsNames200Ok.php @@ -0,0 +1,345 @@ + 'int', + 'name' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'itemId' => 'int64', + 'name' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'itemId' => 'item_id', + 'name' => 'name' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'itemId' => 'setItemId', + 'name' => 'setName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'itemId' => 'getItemId', + 'name' => 'getName' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['itemId'] = isset($data['itemId']) ? $data['itemId'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['itemId'] === null) { + $invalidProperties[] = "'itemId' can't be null"; + } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['itemId'] === null) { + return false; + } + if ($this->container['name'] === null) { + return false; + } + return true; + } + + + /** + * Gets itemId + * + * @return int + */ + public function getItemId() + { + return $this->container['itemId']; + } + + /** + * Sets itemId + * + * @param int $itemId item_id integer + * + * @return $this + */ + public function setItemId($itemId) + { + $this->container['itemId'] = $itemId; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PostFleetsFleetIdMembersInvitation.php b/src/nullx27/ESI/Models/PostFleetsFleetIdMembersInvitation.php new file mode 100644 index 0000000..e79284a --- /dev/null +++ b/src/nullx27/ESI/Models/PostFleetsFleetIdMembersInvitation.php @@ -0,0 +1,469 @@ + 'int', + 'role' => 'string', + 'wingId' => 'int', + 'squadId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'characterId' => 'int32', + 'role' => null, + 'wingId' => 'int64', + 'squadId' => 'int64' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'characterId' => 'character_id', + 'role' => 'role', + 'wingId' => 'wing_id', + 'squadId' => 'squad_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'characterId' => 'setCharacterId', + 'role' => 'setRole', + 'wingId' => 'setWingId', + 'squadId' => 'setSquadId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'characterId' => 'getCharacterId', + 'role' => 'getRole', + 'wingId' => 'getWingId', + 'squadId' => 'getSquadId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const ROLE_FLEET_COMMANDER = 'fleet_commander'; + const ROLE_WING_COMMANDER = 'wing_commander'; + const ROLE_SQUAD_COMMANDER = 'squad_commander'; + const ROLE_SQUAD_MEMBER = 'squad_member'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getRoleAllowableValues() + { + return [ + self::ROLE_FLEET_COMMANDER, + self::ROLE_WING_COMMANDER, + self::ROLE_SQUAD_COMMANDER, + self::ROLE_SQUAD_MEMBER, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['characterId'] = isset($data['characterId']) ? $data['characterId'] : null; + $this->container['role'] = isset($data['role']) ? $data['role'] : null; + $this->container['wingId'] = isset($data['wingId']) ? $data['wingId'] : null; + $this->container['squadId'] = isset($data['squadId']) ? $data['squadId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['characterId'] === null) { + $invalidProperties[] = "'characterId' can't be null"; + } + if ($this->container['role'] === null) { + $invalidProperties[] = "'role' can't be null"; + } + $allowedValues = $this->getRoleAllowableValues(); + if (!in_array($this->container['role'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'role', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if (!is_null($this->container['wingId']) && ($this->container['wingId'] < 0)) { + $invalidProperties[] = "invalid value for 'wingId', must be bigger than or equal to 0."; + } + + if (!is_null($this->container['squadId']) && ($this->container['squadId'] < 0)) { + $invalidProperties[] = "invalid value for 'squadId', must be bigger than or equal to 0."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['characterId'] === null) { + return false; + } + if ($this->container['role'] === null) { + return false; + } + $allowedValues = $this->getRoleAllowableValues(); + if (!in_array($this->container['role'], $allowedValues)) { + return false; + } + if ($this->container['wingId'] < 0) { + return false; + } + if ($this->container['squadId'] < 0) { + return false; + } + return true; + } + + + /** + * Gets characterId + * + * @return int + */ + public function getCharacterId() + { + return $this->container['characterId']; + } + + /** + * Sets characterId + * + * @param int $characterId The character you want to invite + * + * @return $this + */ + public function setCharacterId($characterId) + { + $this->container['characterId'] = $characterId; + + return $this; + } + + /** + * Gets role + * + * @return string + */ + public function getRole() + { + return $this->container['role']; + } + + /** + * Sets role + * + * @param string $role If a character is invited with the `fleet_commander` role, neither `wing_id` or `squad_id` should be specified. If a character is invited with the `wing_commander` role, only `wing_id` should be specified. If a character is invited with the `squad_commander` role, both `wing_id` and `squad_id` should be specified. If a character is invited with the `squad_member` role, `wing_id` and `squad_id` should either both be specified or not specified at all. If they aren’t specified, the invited character will join any squad with available positions. + * + * @return $this + */ + public function setRole($role) + { + $allowedValues = $this->getRoleAllowableValues(); + if (!in_array($role, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'role', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['role'] = $role; + + return $this; + } + + /** + * Gets wingId + * + * @return int + */ + public function getWingId() + { + return $this->container['wingId']; + } + + /** + * Sets wingId + * + * @param int $wingId wing_id integer + * + * @return $this + */ + public function setWingId($wingId) + { + + if (!is_null($wingId) && ($wingId < 0)) { + throw new \InvalidArgumentException('invalid value for $wingId when calling PostFleetsFleetIdMembersInvitation., must be bigger than or equal to 0.'); + } + + $this->container['wingId'] = $wingId; + + return $this; + } + + /** + * Gets squadId + * + * @return int + */ + public function getSquadId() + { + return $this->container['squadId']; + } + + /** + * Sets squadId + * + * @param int $squadId squad_id integer + * + * @return $this + */ + public function setSquadId($squadId) + { + + if (!is_null($squadId) && ($squadId < 0)) { + throw new \InvalidArgumentException('invalid value for $squadId when calling PostFleetsFleetIdMembersInvitation., must be bigger than or equal to 0.'); + } + + $this->container['squadId'] = $squadId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PostFleetsFleetIdMembersNotFound.php b/src/nullx27/ESI/Models/PostFleetsFleetIdMembersNotFound.php new file mode 100644 index 0000000..33b6599 --- /dev/null +++ b/src/nullx27/ESI/Models/PostFleetsFleetIdMembersNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Not found message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PostFleetsFleetIdMembersUnprocessableEntity.php b/src/nullx27/ESI/Models/PostFleetsFleetIdMembersUnprocessableEntity.php new file mode 100644 index 0000000..60177fb --- /dev/null +++ b/src/nullx27/ESI/Models/PostFleetsFleetIdMembersUnprocessableEntity.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error error message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PostFleetsFleetIdWingsCreated.php b/src/nullx27/ESI/Models/PostFleetsFleetIdWingsCreated.php new file mode 100644 index 0000000..3ad46f7 --- /dev/null +++ b/src/nullx27/ESI/Models/PostFleetsFleetIdWingsCreated.php @@ -0,0 +1,309 @@ + 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'wingId' => 'int64' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'wingId' => 'wing_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'wingId' => 'setWingId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'wingId' => 'getWingId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['wingId'] = isset($data['wingId']) ? $data['wingId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['wingId'] === null) { + $invalidProperties[] = "'wingId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['wingId'] === null) { + return false; + } + return true; + } + + + /** + * Gets wingId + * + * @return int + */ + public function getWingId() + { + return $this->container['wingId']; + } + + /** + * Sets wingId + * + * @param int $wingId The wing_id of the newly created wing + * + * @return $this + */ + public function setWingId($wingId) + { + $this->container['wingId'] = $wingId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PostFleetsFleetIdWingsNotFound.php b/src/nullx27/ESI/Models/PostFleetsFleetIdWingsNotFound.php new file mode 100644 index 0000000..bd343d2 --- /dev/null +++ b/src/nullx27/ESI/Models/PostFleetsFleetIdWingsNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Not found message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PostFleetsFleetIdWingsWingIdSquadsCreated.php b/src/nullx27/ESI/Models/PostFleetsFleetIdWingsWingIdSquadsCreated.php new file mode 100644 index 0000000..84d44ff --- /dev/null +++ b/src/nullx27/ESI/Models/PostFleetsFleetIdWingsWingIdSquadsCreated.php @@ -0,0 +1,309 @@ + 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'squadId' => 'int64' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'squadId' => 'squad_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'squadId' => 'setSquadId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'squadId' => 'getSquadId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['squadId'] = isset($data['squadId']) ? $data['squadId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['squadId'] === null) { + $invalidProperties[] = "'squadId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['squadId'] === null) { + return false; + } + return true; + } + + + /** + * Gets squadId + * + * @return int + */ + public function getSquadId() + { + return $this->container['squadId']; + } + + /** + * Sets squadId + * + * @param int $squadId The squad_id of the newly created squad + * + * @return $this + */ + public function setSquadId($squadId) + { + $this->container['squadId'] = $squadId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PostFleetsFleetIdWingsWingIdSquadsNotFound.php b/src/nullx27/ESI/Models/PostFleetsFleetIdWingsWingIdSquadsNotFound.php new file mode 100644 index 0000000..f1c42ad --- /dev/null +++ b/src/nullx27/ESI/Models/PostFleetsFleetIdWingsWingIdSquadsNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Not found message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PostUiOpenwindowNewmailNewMail.php b/src/nullx27/ESI/Models/PostUiOpenwindowNewmailNewMail.php new file mode 100644 index 0000000..18ec184 --- /dev/null +++ b/src/nullx27/ESI/Models/PostUiOpenwindowNewmailNewMail.php @@ -0,0 +1,463 @@ + 'string', + 'body' => 'string', + 'recipients' => 'int[]', + 'toMailingListId' => 'int', + 'toCorpOrAllianceId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'subject' => null, + 'body' => null, + 'recipients' => 'int32', + 'toMailingListId' => 'int32', + 'toCorpOrAllianceId' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'subject' => 'subject', + 'body' => 'body', + 'recipients' => 'recipients', + 'toMailingListId' => 'to_mailing_list_id', + 'toCorpOrAllianceId' => 'to_corp_or_alliance_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'subject' => 'setSubject', + 'body' => 'setBody', + 'recipients' => 'setRecipients', + 'toMailingListId' => 'setToMailingListId', + 'toCorpOrAllianceId' => 'setToCorpOrAllianceId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'subject' => 'getSubject', + 'body' => 'getBody', + 'recipients' => 'getRecipients', + 'toMailingListId' => 'getToMailingListId', + 'toCorpOrAllianceId' => 'getToCorpOrAllianceId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['subject'] = isset($data['subject']) ? $data['subject'] : null; + $this->container['body'] = isset($data['body']) ? $data['body'] : null; + $this->container['recipients'] = isset($data['recipients']) ? $data['recipients'] : null; + $this->container['toMailingListId'] = isset($data['toMailingListId']) ? $data['toMailingListId'] : null; + $this->container['toCorpOrAllianceId'] = isset($data['toCorpOrAllianceId']) ? $data['toCorpOrAllianceId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['subject'] === null) { + $invalidProperties[] = "'subject' can't be null"; + } + if ((strlen($this->container['subject']) > 1000)) { + $invalidProperties[] = "invalid value for 'subject', the character length must be smaller than or equal to 1000."; + } + + if ($this->container['body'] === null) { + $invalidProperties[] = "'body' can't be null"; + } + if ((strlen($this->container['body']) > 10000)) { + $invalidProperties[] = "invalid value for 'body', the character length must be smaller than or equal to 10000."; + } + + if ($this->container['recipients'] === null) { + $invalidProperties[] = "'recipients' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['subject'] === null) { + return false; + } + if (strlen($this->container['subject']) > 1000) { + return false; + } + if ($this->container['body'] === null) { + return false; + } + if (strlen($this->container['body']) > 10000) { + return false; + } + if ($this->container['recipients'] === null) { + return false; + } + return true; + } + + + /** + * Gets subject + * + * @return string + */ + public function getSubject() + { + return $this->container['subject']; + } + + /** + * Sets subject + * + * @param string $subject subject string + * + * @return $this + */ + public function setSubject($subject) + { + if ((strlen($subject) > 1000)) { + throw new \InvalidArgumentException('invalid length for $subject when calling PostUiOpenwindowNewmailNewMail., must be smaller than or equal to 1000.'); + } + + $this->container['subject'] = $subject; + + return $this; + } + + /** + * Gets body + * + * @return string + */ + public function getBody() + { + return $this->container['body']; + } + + /** + * Sets body + * + * @param string $body body string + * + * @return $this + */ + public function setBody($body) + { + if ((strlen($body) > 10000)) { + throw new \InvalidArgumentException('invalid length for $body when calling PostUiOpenwindowNewmailNewMail., must be smaller than or equal to 10000.'); + } + + $this->container['body'] = $body; + + return $this; + } + + /** + * Gets recipients + * + * @return int[] + */ + public function getRecipients() + { + return $this->container['recipients']; + } + + /** + * Sets recipients + * + * @param int[] $recipients recipients array + * + * @return $this + */ + public function setRecipients($recipients) + { + $this->container['recipients'] = $recipients; + + return $this; + } + + /** + * Gets toMailingListId + * + * @return int + */ + public function getToMailingListId() + { + return $this->container['toMailingListId']; + } + + /** + * Sets toMailingListId + * + * @param int $toMailingListId Corporations, alliances and mailing lists are all types of mailing groups. You may only send to one mailing group, at a time, so you may fill out either this field or the to_corp_or_alliance_ids field + * + * @return $this + */ + public function setToMailingListId($toMailingListId) + { + $this->container['toMailingListId'] = $toMailingListId; + + return $this; + } + + /** + * Gets toCorpOrAllianceId + * + * @return int + */ + public function getToCorpOrAllianceId() + { + return $this->container['toCorpOrAllianceId']; + } + + /** + * Sets toCorpOrAllianceId + * + * @param int $toCorpOrAllianceId to_corp_or_alliance_id integer + * + * @return $this + */ + public function setToCorpOrAllianceId($toCorpOrAllianceId) + { + $this->container['toCorpOrAllianceId'] = $toCorpOrAllianceId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PostUiOpenwindowNewmailUnprocessableEntity.php b/src/nullx27/ESI/Models/PostUiOpenwindowNewmailUnprocessableEntity.php new file mode 100644 index 0000000..830b3e4 --- /dev/null +++ b/src/nullx27/ESI/Models/PostUiOpenwindowNewmailUnprocessableEntity.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Unprocessable entity message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PostUniverseIdsAgent.php b/src/nullx27/ESI/Models/PostUniverseIdsAgent.php new file mode 100644 index 0000000..d7650ae --- /dev/null +++ b/src/nullx27/ESI/Models/PostUniverseIdsAgent.php @@ -0,0 +1,333 @@ + 'int', + 'name' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'id' => 'int32', + 'name' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'id' => 'id', + 'name' => 'name' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId', + 'name' => 'setName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId', + 'name' => 'getName' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets id + * + * @return int + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int $id id integer + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PostUniverseIdsAlliance.php b/src/nullx27/ESI/Models/PostUniverseIdsAlliance.php new file mode 100644 index 0000000..35b14d4 --- /dev/null +++ b/src/nullx27/ESI/Models/PostUniverseIdsAlliance.php @@ -0,0 +1,333 @@ + 'int', + 'name' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'id' => 'int32', + 'name' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'id' => 'id', + 'name' => 'name' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId', + 'name' => 'setName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId', + 'name' => 'getName' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets id + * + * @return int + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int $id id integer + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PostUniverseIdsCharacter.php b/src/nullx27/ESI/Models/PostUniverseIdsCharacter.php new file mode 100644 index 0000000..86c2ca8 --- /dev/null +++ b/src/nullx27/ESI/Models/PostUniverseIdsCharacter.php @@ -0,0 +1,333 @@ + 'int', + 'name' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'id' => 'int32', + 'name' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'id' => 'id', + 'name' => 'name' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId', + 'name' => 'setName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId', + 'name' => 'getName' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets id + * + * @return int + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int $id id integer + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PostUniverseIdsConstellation.php b/src/nullx27/ESI/Models/PostUniverseIdsConstellation.php new file mode 100644 index 0000000..e924734 --- /dev/null +++ b/src/nullx27/ESI/Models/PostUniverseIdsConstellation.php @@ -0,0 +1,333 @@ + 'int', + 'name' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'id' => 'int32', + 'name' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'id' => 'id', + 'name' => 'name' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId', + 'name' => 'setName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId', + 'name' => 'getName' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets id + * + * @return int + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int $id id integer + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PostUniverseIdsCorporation.php b/src/nullx27/ESI/Models/PostUniverseIdsCorporation.php new file mode 100644 index 0000000..3d81d21 --- /dev/null +++ b/src/nullx27/ESI/Models/PostUniverseIdsCorporation.php @@ -0,0 +1,333 @@ + 'int', + 'name' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'id' => 'int32', + 'name' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'id' => 'id', + 'name' => 'name' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId', + 'name' => 'setName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId', + 'name' => 'getName' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets id + * + * @return int + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int $id id integer + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PostUniverseIdsFaction.php b/src/nullx27/ESI/Models/PostUniverseIdsFaction.php new file mode 100644 index 0000000..a20e7b8 --- /dev/null +++ b/src/nullx27/ESI/Models/PostUniverseIdsFaction.php @@ -0,0 +1,333 @@ + 'int', + 'name' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'id' => 'int32', + 'name' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'id' => 'id', + 'name' => 'name' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId', + 'name' => 'setName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId', + 'name' => 'getName' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets id + * + * @return int + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int $id id integer + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PostUniverseIdsInventoryType.php b/src/nullx27/ESI/Models/PostUniverseIdsInventoryType.php new file mode 100644 index 0000000..66e6d6b --- /dev/null +++ b/src/nullx27/ESI/Models/PostUniverseIdsInventoryType.php @@ -0,0 +1,333 @@ + 'int', + 'name' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'id' => 'int32', + 'name' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'id' => 'id', + 'name' => 'name' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId', + 'name' => 'setName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId', + 'name' => 'getName' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets id + * + * @return int + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int $id id integer + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PostUniverseIdsOk.php b/src/nullx27/ESI/Models/PostUniverseIdsOk.php new file mode 100644 index 0000000..75d1c5a --- /dev/null +++ b/src/nullx27/ESI/Models/PostUniverseIdsOk.php @@ -0,0 +1,573 @@ + '\nullx27ESI\nullx27\ESI\Models\PostUniverseIdsAgent[]', + 'alliances' => '\nullx27ESI\nullx27\ESI\Models\PostUniverseIdsAlliance[]', + 'characters' => '\nullx27ESI\nullx27\ESI\Models\PostUniverseIdsCharacter[]', + 'constellations' => '\nullx27ESI\nullx27\ESI\Models\PostUniverseIdsConstellation[]', + 'corporations' => '\nullx27ESI\nullx27\ESI\Models\PostUniverseIdsCorporation[]', + 'factions' => '\nullx27ESI\nullx27\ESI\Models\PostUniverseIdsFaction[]', + 'inventoryTypes' => '\nullx27ESI\nullx27\ESI\Models\PostUniverseIdsInventoryType[]', + 'regions' => '\nullx27ESI\nullx27\ESI\Models\PostUniverseIdsRegion[]', + 'systems' => '\nullx27ESI\nullx27\ESI\Models\PostUniverseIdsSystem[]', + 'stations' => '\nullx27ESI\nullx27\ESI\Models\PostUniverseIdsStation[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'agents' => null, + 'alliances' => null, + 'characters' => null, + 'constellations' => null, + 'corporations' => null, + 'factions' => null, + 'inventoryTypes' => null, + 'regions' => null, + 'systems' => null, + 'stations' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'agents' => 'agents', + 'alliances' => 'alliances', + 'characters' => 'characters', + 'constellations' => 'constellations', + 'corporations' => 'corporations', + 'factions' => 'factions', + 'inventoryTypes' => 'inventory_types', + 'regions' => 'regions', + 'systems' => 'systems', + 'stations' => 'stations' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'agents' => 'setAgents', + 'alliances' => 'setAlliances', + 'characters' => 'setCharacters', + 'constellations' => 'setConstellations', + 'corporations' => 'setCorporations', + 'factions' => 'setFactions', + 'inventoryTypes' => 'setInventoryTypes', + 'regions' => 'setRegions', + 'systems' => 'setSystems', + 'stations' => 'setStations' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'agents' => 'getAgents', + 'alliances' => 'getAlliances', + 'characters' => 'getCharacters', + 'constellations' => 'getConstellations', + 'corporations' => 'getCorporations', + 'factions' => 'getFactions', + 'inventoryTypes' => 'getInventoryTypes', + 'regions' => 'getRegions', + 'systems' => 'getSystems', + 'stations' => 'getStations' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['agents'] = isset($data['agents']) ? $data['agents'] : null; + $this->container['alliances'] = isset($data['alliances']) ? $data['alliances'] : null; + $this->container['characters'] = isset($data['characters']) ? $data['characters'] : null; + $this->container['constellations'] = isset($data['constellations']) ? $data['constellations'] : null; + $this->container['corporations'] = isset($data['corporations']) ? $data['corporations'] : null; + $this->container['factions'] = isset($data['factions']) ? $data['factions'] : null; + $this->container['inventoryTypes'] = isset($data['inventoryTypes']) ? $data['inventoryTypes'] : null; + $this->container['regions'] = isset($data['regions']) ? $data['regions'] : null; + $this->container['systems'] = isset($data['systems']) ? $data['systems'] : null; + $this->container['stations'] = isset($data['stations']) ? $data['stations'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets agents + * + * @return \nullx27ESI\nullx27\ESI\Models\PostUniverseIdsAgent[] + */ + public function getAgents() + { + return $this->container['agents']; + } + + /** + * Sets agents + * + * @param \nullx27ESI\nullx27\ESI\Models\PostUniverseIdsAgent[] $agents agents array + * + * @return $this + */ + public function setAgents($agents) + { + $this->container['agents'] = $agents; + + return $this; + } + + /** + * Gets alliances + * + * @return \nullx27ESI\nullx27\ESI\Models\PostUniverseIdsAlliance[] + */ + public function getAlliances() + { + return $this->container['alliances']; + } + + /** + * Sets alliances + * + * @param \nullx27ESI\nullx27\ESI\Models\PostUniverseIdsAlliance[] $alliances alliances array + * + * @return $this + */ + public function setAlliances($alliances) + { + $this->container['alliances'] = $alliances; + + return $this; + } + + /** + * Gets characters + * + * @return \nullx27ESI\nullx27\ESI\Models\PostUniverseIdsCharacter[] + */ + public function getCharacters() + { + return $this->container['characters']; + } + + /** + * Sets characters + * + * @param \nullx27ESI\nullx27\ESI\Models\PostUniverseIdsCharacter[] $characters characters array + * + * @return $this + */ + public function setCharacters($characters) + { + $this->container['characters'] = $characters; + + return $this; + } + + /** + * Gets constellations + * + * @return \nullx27ESI\nullx27\ESI\Models\PostUniverseIdsConstellation[] + */ + public function getConstellations() + { + return $this->container['constellations']; + } + + /** + * Sets constellations + * + * @param \nullx27ESI\nullx27\ESI\Models\PostUniverseIdsConstellation[] $constellations constellations array + * + * @return $this + */ + public function setConstellations($constellations) + { + $this->container['constellations'] = $constellations; + + return $this; + } + + /** + * Gets corporations + * + * @return \nullx27ESI\nullx27\ESI\Models\PostUniverseIdsCorporation[] + */ + public function getCorporations() + { + return $this->container['corporations']; + } + + /** + * Sets corporations + * + * @param \nullx27ESI\nullx27\ESI\Models\PostUniverseIdsCorporation[] $corporations corporations array + * + * @return $this + */ + public function setCorporations($corporations) + { + $this->container['corporations'] = $corporations; + + return $this; + } + + /** + * Gets factions + * + * @return \nullx27ESI\nullx27\ESI\Models\PostUniverseIdsFaction[] + */ + public function getFactions() + { + return $this->container['factions']; + } + + /** + * Sets factions + * + * @param \nullx27ESI\nullx27\ESI\Models\PostUniverseIdsFaction[] $factions factions array + * + * @return $this + */ + public function setFactions($factions) + { + $this->container['factions'] = $factions; + + return $this; + } + + /** + * Gets inventoryTypes + * + * @return \nullx27ESI\nullx27\ESI\Models\PostUniverseIdsInventoryType[] + */ + public function getInventoryTypes() + { + return $this->container['inventoryTypes']; + } + + /** + * Sets inventoryTypes + * + * @param \nullx27ESI\nullx27\ESI\Models\PostUniverseIdsInventoryType[] $inventoryTypes inventory_types array + * + * @return $this + */ + public function setInventoryTypes($inventoryTypes) + { + $this->container['inventoryTypes'] = $inventoryTypes; + + return $this; + } + + /** + * Gets regions + * + * @return \nullx27ESI\nullx27\ESI\Models\PostUniverseIdsRegion[] + */ + public function getRegions() + { + return $this->container['regions']; + } + + /** + * Sets regions + * + * @param \nullx27ESI\nullx27\ESI\Models\PostUniverseIdsRegion[] $regions regions array + * + * @return $this + */ + public function setRegions($regions) + { + $this->container['regions'] = $regions; + + return $this; + } + + /** + * Gets systems + * + * @return \nullx27ESI\nullx27\ESI\Models\PostUniverseIdsSystem[] + */ + public function getSystems() + { + return $this->container['systems']; + } + + /** + * Sets systems + * + * @param \nullx27ESI\nullx27\ESI\Models\PostUniverseIdsSystem[] $systems systems array + * + * @return $this + */ + public function setSystems($systems) + { + $this->container['systems'] = $systems; + + return $this; + } + + /** + * Gets stations + * + * @return \nullx27ESI\nullx27\ESI\Models\PostUniverseIdsStation[] + */ + public function getStations() + { + return $this->container['stations']; + } + + /** + * Sets stations + * + * @param \nullx27ESI\nullx27\ESI\Models\PostUniverseIdsStation[] $stations stations array + * + * @return $this + */ + public function setStations($stations) + { + $this->container['stations'] = $stations; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PostUniverseIdsRegion.php b/src/nullx27/ESI/Models/PostUniverseIdsRegion.php new file mode 100644 index 0000000..19049df --- /dev/null +++ b/src/nullx27/ESI/Models/PostUniverseIdsRegion.php @@ -0,0 +1,333 @@ + 'int', + 'name' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'id' => 'int32', + 'name' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'id' => 'id', + 'name' => 'name' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId', + 'name' => 'setName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId', + 'name' => 'getName' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets id + * + * @return int + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int $id id integer + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PostUniverseIdsServiceUnavailable.php b/src/nullx27/ESI/Models/PostUniverseIdsServiceUnavailable.php new file mode 100644 index 0000000..b5cc692 --- /dev/null +++ b/src/nullx27/ESI/Models/PostUniverseIdsServiceUnavailable.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Service unavailable message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PostUniverseIdsStation.php b/src/nullx27/ESI/Models/PostUniverseIdsStation.php new file mode 100644 index 0000000..d56ebbf --- /dev/null +++ b/src/nullx27/ESI/Models/PostUniverseIdsStation.php @@ -0,0 +1,333 @@ + 'int', + 'name' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'id' => 'int32', + 'name' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'id' => 'id', + 'name' => 'name' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId', + 'name' => 'setName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId', + 'name' => 'getName' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets id + * + * @return int + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int $id id integer + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PostUniverseIdsSystem.php b/src/nullx27/ESI/Models/PostUniverseIdsSystem.php new file mode 100644 index 0000000..2c8cd12 --- /dev/null +++ b/src/nullx27/ESI/Models/PostUniverseIdsSystem.php @@ -0,0 +1,333 @@ + 'int', + 'name' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'id' => 'int32', + 'name' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'id' => 'id', + 'name' => 'name' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId', + 'name' => 'setName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId', + 'name' => 'getName' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets id + * + * @return int + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int $id id integer + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PostUniverseNames200Ok.php b/src/nullx27/ESI/Models/PostUniverseNames200Ok.php new file mode 100644 index 0000000..9055d95 --- /dev/null +++ b/src/nullx27/ESI/Models/PostUniverseNames200Ok.php @@ -0,0 +1,429 @@ + 'int', + 'name' => 'string', + 'category' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'id' => 'int32', + 'name' => null, + 'category' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'id' => 'id', + 'name' => 'name', + 'category' => 'category' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId', + 'name' => 'setName', + 'category' => 'setCategory' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId', + 'name' => 'getName', + 'category' => 'getCategory' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const CATEGORY_ALLIANCE = 'alliance'; + const CATEGORY_CHARACTER = 'character'; + const CATEGORY_CONSTELLATION = 'constellation'; + const CATEGORY_CORPORATION = 'corporation'; + const CATEGORY_INVENTORY_TYPE = 'inventory_type'; + const CATEGORY_REGION = 'region'; + const CATEGORY_SOLAR_SYSTEM = 'solar_system'; + const CATEGORY_STATION = 'station'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getCategoryAllowableValues() + { + return [ + self::CATEGORY_ALLIANCE, + self::CATEGORY_CHARACTER, + self::CATEGORY_CONSTELLATION, + self::CATEGORY_CORPORATION, + self::CATEGORY_INVENTORY_TYPE, + self::CATEGORY_REGION, + self::CATEGORY_SOLAR_SYSTEM, + self::CATEGORY_STATION, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['category'] = isset($data['category']) ? $data['category'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['id'] === null) { + $invalidProperties[] = "'id' can't be null"; + } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ($this->container['category'] === null) { + $invalidProperties[] = "'category' can't be null"; + } + $allowedValues = $this->getCategoryAllowableValues(); + if (!in_array($this->container['category'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'category', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['id'] === null) { + return false; + } + if ($this->container['name'] === null) { + return false; + } + if ($this->container['category'] === null) { + return false; + } + $allowedValues = $this->getCategoryAllowableValues(); + if (!in_array($this->container['category'], $allowedValues)) { + return false; + } + return true; + } + + + /** + * Gets id + * + * @return int + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int $id id integer + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets category + * + * @return string + */ + public function getCategory() + { + return $this->container['category']; + } + + /** + * Sets category + * + * @param string $category category string + * + * @return $this + */ + public function setCategory($category) + { + $allowedValues = $this->getCategoryAllowableValues(); + if (!in_array($category, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'category', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['category'] = $category; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PostUniverseNamesNotFound.php b/src/nullx27/ESI/Models/PostUniverseNamesNotFound.php new file mode 100644 index 0000000..f3f6ed1 --- /dev/null +++ b/src/nullx27/ESI/Models/PostUniverseNamesNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Not found message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PutCharactersCharacterIdCalendarEventIdResponse.php b/src/nullx27/ESI/Models/PutCharactersCharacterIdCalendarEventIdResponse.php new file mode 100644 index 0000000..4b526e0 --- /dev/null +++ b/src/nullx27/ESI/Models/PutCharactersCharacterIdCalendarEventIdResponse.php @@ -0,0 +1,347 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'response' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'response' => 'response' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'response' => 'setResponse' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'response' => 'getResponse' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const RESPONSE_ACCEPTED = 'accepted'; + const RESPONSE_DECLINED = 'declined'; + const RESPONSE_TENTATIVE = 'tentative'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getResponseAllowableValues() + { + return [ + self::RESPONSE_ACCEPTED, + self::RESPONSE_DECLINED, + self::RESPONSE_TENTATIVE, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['response'] = isset($data['response']) ? $data['response'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['response'] === null) { + $invalidProperties[] = "'response' can't be null"; + } + $allowedValues = $this->getResponseAllowableValues(); + if (!in_array($this->container['response'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'response', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['response'] === null) { + return false; + } + $allowedValues = $this->getResponseAllowableValues(); + if (!in_array($this->container['response'], $allowedValues)) { + return false; + } + return true; + } + + + /** + * Gets response + * + * @return string + */ + public function getResponse() + { + return $this->container['response']; + } + + /** + * Sets response + * + * @param string $response response string + * + * @return $this + */ + public function setResponse($response) + { + $allowedValues = $this->getResponseAllowableValues(); + if (!in_array($response, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'response', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['response'] = $response; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PutCharactersCharacterIdMailMailIdBadRequest.php b/src/nullx27/ESI/Models/PutCharactersCharacterIdMailMailIdBadRequest.php new file mode 100644 index 0000000..83cfcb7 --- /dev/null +++ b/src/nullx27/ESI/Models/PutCharactersCharacterIdMailMailIdBadRequest.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Bad request message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PutCharactersCharacterIdMailMailIdContents.php b/src/nullx27/ESI/Models/PutCharactersCharacterIdMailMailIdContents.php new file mode 100644 index 0000000..012804f --- /dev/null +++ b/src/nullx27/ESI/Models/PutCharactersCharacterIdMailMailIdContents.php @@ -0,0 +1,333 @@ + 'bool', + 'labels' => 'int[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'read' => null, + 'labels' => 'int64' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'read' => 'read', + 'labels' => 'labels' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'read' => 'setRead', + 'labels' => 'setLabels' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'read' => 'getRead', + 'labels' => 'getLabels' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['read'] = isset($data['read']) ? $data['read'] : null; + $this->container['labels'] = isset($data['labels']) ? $data['labels'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets read + * + * @return bool + */ + public function getRead() + { + return $this->container['read']; + } + + /** + * Sets read + * + * @param bool $read Whether the mail is flagged as read + * + * @return $this + */ + public function setRead($read) + { + $this->container['read'] = $read; + + return $this; + } + + /** + * Gets labels + * + * @return int[] + */ + public function getLabels() + { + return $this->container['labels']; + } + + /** + * Sets labels + * + * @param int[] $labels Labels to assign to the mail. Pre-existing labels are unassigned. + * + * @return $this + */ + public function setLabels($labels) + { + $this->container['labels'] = $labels; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PutCorporationsCorporationIdStructuresStructureIdNewSchedule.php b/src/nullx27/ESI/Models/PutCorporationsCorporationIdStructuresStructureIdNewSchedule.php new file mode 100644 index 0000000..c46b1af --- /dev/null +++ b/src/nullx27/ESI/Models/PutCorporationsCorporationIdStructuresStructureIdNewSchedule.php @@ -0,0 +1,389 @@ + 'int', + 'hour' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'day' => 'int32', + 'hour' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'day' => 'day', + 'hour' => 'hour' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'day' => 'setDay', + 'hour' => 'setHour' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'day' => 'getDay', + 'hour' => 'getHour' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['day'] = isset($data['day']) ? $data['day'] : null; + $this->container['hour'] = isset($data['hour']) ? $data['hour'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['day'] === null) { + $invalidProperties[] = "'day' can't be null"; + } + if (($this->container['day'] > 6)) { + $invalidProperties[] = "invalid value for 'day', must be smaller than or equal to 6."; + } + + if (($this->container['day'] < 0)) { + $invalidProperties[] = "invalid value for 'day', must be bigger than or equal to 0."; + } + + if ($this->container['hour'] === null) { + $invalidProperties[] = "'hour' can't be null"; + } + if (($this->container['hour'] > 23)) { + $invalidProperties[] = "invalid value for 'hour', must be smaller than or equal to 23."; + } + + if (($this->container['hour'] < 0)) { + $invalidProperties[] = "invalid value for 'hour', must be bigger than or equal to 0."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['day'] === null) { + return false; + } + if ($this->container['day'] > 6) { + return false; + } + if ($this->container['day'] < 0) { + return false; + } + if ($this->container['hour'] === null) { + return false; + } + if ($this->container['hour'] > 23) { + return false; + } + if ($this->container['hour'] < 0) { + return false; + } + return true; + } + + + /** + * Gets day + * + * @return int + */ + public function getDay() + { + return $this->container['day']; + } + + /** + * Sets day + * + * @param int $day Day of the week, zero-indexed to Monday + * + * @return $this + */ + public function setDay($day) + { + + if (($day > 6)) { + throw new \InvalidArgumentException('invalid value for $day when calling PutCorporationsCorporationIdStructuresStructureIdNewSchedule., must be smaller than or equal to 6.'); + } + if (($day < 0)) { + throw new \InvalidArgumentException('invalid value for $day when calling PutCorporationsCorporationIdStructuresStructureIdNewSchedule., must be bigger than or equal to 0.'); + } + + $this->container['day'] = $day; + + return $this; + } + + /** + * Gets hour + * + * @return int + */ + public function getHour() + { + return $this->container['hour']; + } + + /** + * Sets hour + * + * @param int $hour Hour of the day evetime, zero-indexed to midnight + * + * @return $this + */ + public function setHour($hour) + { + + if (($hour > 23)) { + throw new \InvalidArgumentException('invalid value for $hour when calling PutCorporationsCorporationIdStructuresStructureIdNewSchedule., must be smaller than or equal to 23.'); + } + if (($hour < 0)) { + throw new \InvalidArgumentException('invalid value for $hour when calling PutCorporationsCorporationIdStructuresStructureIdNewSchedule., must be bigger than or equal to 0.'); + } + + $this->container['hour'] = $hour; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PutFleetsFleetIdBadRequest.php b/src/nullx27/ESI/Models/PutFleetsFleetIdBadRequest.php new file mode 100644 index 0000000..1b33ec0 --- /dev/null +++ b/src/nullx27/ESI/Models/PutFleetsFleetIdBadRequest.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Bad request message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PutFleetsFleetIdMembersMemberIdMovement.php b/src/nullx27/ESI/Models/PutFleetsFleetIdMembersMemberIdMovement.php new file mode 100644 index 0000000..1e0b75d --- /dev/null +++ b/src/nullx27/ESI/Models/PutFleetsFleetIdMembersMemberIdMovement.php @@ -0,0 +1,433 @@ + 'string', + 'wingId' => 'int', + 'squadId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'role' => null, + 'wingId' => 'int64', + 'squadId' => 'int64' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'role' => 'role', + 'wingId' => 'wing_id', + 'squadId' => 'squad_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'role' => 'setRole', + 'wingId' => 'setWingId', + 'squadId' => 'setSquadId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'role' => 'getRole', + 'wingId' => 'getWingId', + 'squadId' => 'getSquadId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + const ROLE_FLEET_COMMANDER = 'fleet_commander'; + const ROLE_WING_COMMANDER = 'wing_commander'; + const ROLE_SQUAD_COMMANDER = 'squad_commander'; + const ROLE_SQUAD_MEMBER = 'squad_member'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getRoleAllowableValues() + { + return [ + self::ROLE_FLEET_COMMANDER, + self::ROLE_WING_COMMANDER, + self::ROLE_SQUAD_COMMANDER, + self::ROLE_SQUAD_MEMBER, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['role'] = isset($data['role']) ? $data['role'] : null; + $this->container['wingId'] = isset($data['wingId']) ? $data['wingId'] : null; + $this->container['squadId'] = isset($data['squadId']) ? $data['squadId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['role'] === null) { + $invalidProperties[] = "'role' can't be null"; + } + $allowedValues = $this->getRoleAllowableValues(); + if (!in_array($this->container['role'], $allowedValues)) { + $invalidProperties[] = sprintf( + "invalid value for 'role', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if (!is_null($this->container['wingId']) && ($this->container['wingId'] < 0)) { + $invalidProperties[] = "invalid value for 'wingId', must be bigger than or equal to 0."; + } + + if (!is_null($this->container['squadId']) && ($this->container['squadId'] < 0)) { + $invalidProperties[] = "invalid value for 'squadId', must be bigger than or equal to 0."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['role'] === null) { + return false; + } + $allowedValues = $this->getRoleAllowableValues(); + if (!in_array($this->container['role'], $allowedValues)) { + return false; + } + if ($this->container['wingId'] < 0) { + return false; + } + if ($this->container['squadId'] < 0) { + return false; + } + return true; + } + + + /** + * Gets role + * + * @return string + */ + public function getRole() + { + return $this->container['role']; + } + + /** + * Sets role + * + * @param string $role If a character is moved to the `fleet_commander` role, neither `wing_id` or `squad_id` should be specified. If a character is moved to the `wing_commander` role, only `wing_id` should be specified. If a character is moved to the `squad_commander` role, both `wing_id` and `squad_id` should be specified. If a character is moved to the `squad_member` role, both `wing_id` and `squad_id` should be specified. + * + * @return $this + */ + public function setRole($role) + { + $allowedValues = $this->getRoleAllowableValues(); + if (!in_array($role, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'role', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['role'] = $role; + + return $this; + } + + /** + * Gets wingId + * + * @return int + */ + public function getWingId() + { + return $this->container['wingId']; + } + + /** + * Sets wingId + * + * @param int $wingId wing_id integer + * + * @return $this + */ + public function setWingId($wingId) + { + + if (!is_null($wingId) && ($wingId < 0)) { + throw new \InvalidArgumentException('invalid value for $wingId when calling PutFleetsFleetIdMembersMemberIdMovement., must be bigger than or equal to 0.'); + } + + $this->container['wingId'] = $wingId; + + return $this; + } + + /** + * Gets squadId + * + * @return int + */ + public function getSquadId() + { + return $this->container['squadId']; + } + + /** + * Sets squadId + * + * @param int $squadId squad_id integer + * + * @return $this + */ + public function setSquadId($squadId) + { + + if (!is_null($squadId) && ($squadId < 0)) { + throw new \InvalidArgumentException('invalid value for $squadId when calling PutFleetsFleetIdMembersMemberIdMovement., must be bigger than or equal to 0.'); + } + + $this->container['squadId'] = $squadId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PutFleetsFleetIdMembersMemberIdNotFound.php b/src/nullx27/ESI/Models/PutFleetsFleetIdMembersMemberIdNotFound.php new file mode 100644 index 0000000..4e0a9a3 --- /dev/null +++ b/src/nullx27/ESI/Models/PutFleetsFleetIdMembersMemberIdNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Not found message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PutFleetsFleetIdMembersMemberIdUnprocessableEntity.php b/src/nullx27/ESI/Models/PutFleetsFleetIdMembersMemberIdUnprocessableEntity.php new file mode 100644 index 0000000..0b716cb --- /dev/null +++ b/src/nullx27/ESI/Models/PutFleetsFleetIdMembersMemberIdUnprocessableEntity.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error error message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PutFleetsFleetIdNewSettings.php b/src/nullx27/ESI/Models/PutFleetsFleetIdNewSettings.php new file mode 100644 index 0000000..4ab1a5c --- /dev/null +++ b/src/nullx27/ESI/Models/PutFleetsFleetIdNewSettings.php @@ -0,0 +1,333 @@ + 'string', + 'isFreeMove' => 'bool' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'motd' => null, + 'isFreeMove' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'motd' => 'motd', + 'isFreeMove' => 'is_free_move' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'motd' => 'setMotd', + 'isFreeMove' => 'setIsFreeMove' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'motd' => 'getMotd', + 'isFreeMove' => 'getIsFreeMove' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['motd'] = isset($data['motd']) ? $data['motd'] : null; + $this->container['isFreeMove'] = isset($data['isFreeMove']) ? $data['isFreeMove'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets motd + * + * @return string + */ + public function getMotd() + { + return $this->container['motd']; + } + + /** + * Sets motd + * + * @param string $motd New fleet MOTD in CCP flavoured HTML + * + * @return $this + */ + public function setMotd($motd) + { + $this->container['motd'] = $motd; + + return $this; + } + + /** + * Gets isFreeMove + * + * @return bool + */ + public function getIsFreeMove() + { + return $this->container['isFreeMove']; + } + + /** + * Sets isFreeMove + * + * @param bool $isFreeMove Should free-move be enabled in the fleet + * + * @return $this + */ + public function setIsFreeMove($isFreeMove) + { + $this->container['isFreeMove'] = $isFreeMove; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PutFleetsFleetIdNotFound.php b/src/nullx27/ESI/Models/PutFleetsFleetIdNotFound.php new file mode 100644 index 0000000..2933062 --- /dev/null +++ b/src/nullx27/ESI/Models/PutFleetsFleetIdNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Not found message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PutFleetsFleetIdSquadsSquadIdNaming.php b/src/nullx27/ESI/Models/PutFleetsFleetIdSquadsSquadIdNaming.php new file mode 100644 index 0000000..4c6ff1a --- /dev/null +++ b/src/nullx27/ESI/Models/PutFleetsFleetIdSquadsSquadIdNaming.php @@ -0,0 +1,320 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'name' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'name' => 'name' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'name' => 'setName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'name' => 'getName' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ((strlen($this->container['name']) > 10)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 10."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['name'] === null) { + return false; + } + if (strlen($this->container['name']) > 10) { + return false; + } + return true; + } + + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + if ((strlen($name) > 10)) { + throw new \InvalidArgumentException('invalid length for $name when calling PutFleetsFleetIdSquadsSquadIdNaming., must be smaller than or equal to 10.'); + } + + $this->container['name'] = $name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PutFleetsFleetIdSquadsSquadIdNotFound.php b/src/nullx27/ESI/Models/PutFleetsFleetIdSquadsSquadIdNotFound.php new file mode 100644 index 0000000..b51caf1 --- /dev/null +++ b/src/nullx27/ESI/Models/PutFleetsFleetIdSquadsSquadIdNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Not found message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PutFleetsFleetIdWingsWingIdNaming.php b/src/nullx27/ESI/Models/PutFleetsFleetIdWingsWingIdNaming.php new file mode 100644 index 0000000..372e226 --- /dev/null +++ b/src/nullx27/ESI/Models/PutFleetsFleetIdWingsWingIdNaming.php @@ -0,0 +1,320 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'name' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'name' => 'name' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'name' => 'setName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'name' => 'getName' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ((strlen($this->container['name']) > 10)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 10."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + if ($this->container['name'] === null) { + return false; + } + if (strlen($this->container['name']) > 10) { + return false; + } + return true; + } + + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name string + * + * @return $this + */ + public function setName($name) + { + if ((strlen($name) > 10)) { + throw new \InvalidArgumentException('invalid length for $name when calling PutFleetsFleetIdWingsWingIdNaming., must be smaller than or equal to 10.'); + } + + $this->container['name'] = $name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/nullx27/ESI/Models/PutFleetsFleetIdWingsWingIdNotFound.php b/src/nullx27/ESI/Models/PutFleetsFleetIdWingsWingIdNotFound.php new file mode 100644 index 0000000..bdbbee5 --- /dev/null +++ b/src/nullx27/ESI/Models/PutFleetsFleetIdWingsWingIdNotFound.php @@ -0,0 +1,303 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + + return true; + } + + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Not found message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/test/Api/ContractsApiTest.php b/test/Api/ContractsApiTest.php new file mode 100644 index 0000000..48a5dac --- /dev/null +++ b/test/Api/ContractsApiTest.php @@ -0,0 +1,133 @@ +