@fnt-eve/esi-client-typescript
Version:
[](https://www.npmjs.com/package/@fnt-eve/esi-client-typescript)
73 lines (72 loc) • 2.43 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 GetFwSystems200OkContestedEnum = {
Captured: 'captured',
Contested: 'contested',
Uncontested: 'uncontested',
Vulnerable: 'vulnerable'
};
/**
* Check if a given object implements the GetFwSystems200Ok interface.
*/
export function instanceOfGetFwSystems200Ok(value) {
if (!('contested' in value) || value['contested'] === undefined)
return false;
if (!('occupierFactionId' in value) || value['occupierFactionId'] === undefined)
return false;
if (!('ownerFactionId' in value) || value['ownerFactionId'] === undefined)
return false;
if (!('solarSystemId' in value) || value['solarSystemId'] === undefined)
return false;
if (!('victoryPoints' in value) || value['victoryPoints'] === undefined)
return false;
if (!('victoryPointsThreshold' in value) || value['victoryPointsThreshold'] === undefined)
return false;
return true;
}
export function GetFwSystems200OkFromJSON(json) {
return GetFwSystems200OkFromJSONTyped(json, false);
}
export function GetFwSystems200OkFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'contested': json['contested'],
'occupierFactionId': json['occupier_faction_id'],
'ownerFactionId': json['owner_faction_id'],
'solarSystemId': json['solar_system_id'],
'victoryPoints': json['victory_points'],
'victoryPointsThreshold': json['victory_points_threshold'],
};
}
export function GetFwSystems200OkToJSON(json) {
return GetFwSystems200OkToJSONTyped(json, false);
}
export function GetFwSystems200OkToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'contested': value['contested'],
'occupier_faction_id': value['occupierFactionId'],
'owner_faction_id': value['ownerFactionId'],
'solar_system_id': value['solarSystemId'],
'victory_points': value['victoryPoints'],
'victory_points_threshold': value['victoryPointsThreshold'],
};
}