@fnt-eve/esi-client-typescript
Version:
[](https://www.npmjs.com/package/@fnt-eve/esi-client-typescript)
80 lines (79 loc) • 2.65 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
/**
* EVE Swagger Interface
* An OpenAPI for EVE Online
*
* The version of the OpenAPI document: 1.36
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
* @export
*/
export const GetIncursions200OkStateEnum = {
Withdrawing: 'withdrawing',
Mobilizing: 'mobilizing',
Established: 'established'
};
/**
* Check if a given object implements the GetIncursions200Ok interface.
*/
export function instanceOfGetIncursions200Ok(value) {
if (!('constellationId' in value) || value['constellationId'] === undefined)
return false;
if (!('factionId' in value) || value['factionId'] === undefined)
return false;
if (!('hasBoss' in value) || value['hasBoss'] === undefined)
return false;
if (!('infestedSolarSystems' in value) || value['infestedSolarSystems'] === undefined)
return false;
if (!('influence' in value) || value['influence'] === undefined)
return false;
if (!('stagingSolarSystemId' in value) || value['stagingSolarSystemId'] === undefined)
return false;
if (!('state' in value) || value['state'] === undefined)
return false;
if (!('type' in value) || value['type'] === undefined)
return false;
return true;
}
export function GetIncursions200OkFromJSON(json) {
return GetIncursions200OkFromJSONTyped(json, false);
}
export function GetIncursions200OkFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'constellationId': json['constellation_id'],
'factionId': json['faction_id'],
'hasBoss': json['has_boss'],
'infestedSolarSystems': json['infested_solar_systems'],
'influence': json['influence'],
'stagingSolarSystemId': json['staging_solar_system_id'],
'state': json['state'],
'type': json['type'],
};
}
export function GetIncursions200OkToJSON(json) {
return GetIncursions200OkToJSONTyped(json, false);
}
export function GetIncursions200OkToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'constellation_id': value['constellationId'],
'faction_id': value['factionId'],
'has_boss': value['hasBoss'],
'infested_solar_systems': value['infestedSolarSystems'],
'influence': value['influence'],
'staging_solar_system_id': value['stagingSolarSystemId'],
'state': value['state'],
'type': value['type'],
};
}