@fnt-eve/esi-client-typescript
Version:
[](https://www.npmjs.com/package/@fnt-eve/esi-client-typescript)
67 lines (66 loc) • 2.24 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 GetCharactersCharacterIdContacts200OkContactTypeEnum = {
Character: 'character',
Corporation: 'corporation',
Alliance: 'alliance',
Faction: 'faction'
};
/**
* Check if a given object implements the GetCharactersCharacterIdContacts200Ok interface.
*/
export function instanceOfGetCharactersCharacterIdContacts200Ok(value) {
if (!('contactId' in value) || value['contactId'] === undefined)
return false;
if (!('contactType' in value) || value['contactType'] === undefined)
return false;
if (!('standing' in value) || value['standing'] === undefined)
return false;
return true;
}
export function GetCharactersCharacterIdContacts200OkFromJSON(json) {
return GetCharactersCharacterIdContacts200OkFromJSONTyped(json, false);
}
export function GetCharactersCharacterIdContacts200OkFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'contactId': json['contact_id'],
'contactType': json['contact_type'],
'isBlocked': json['is_blocked'] == null ? undefined : json['is_blocked'],
'isWatched': json['is_watched'] == null ? undefined : json['is_watched'],
'labelIds': json['label_ids'] == null ? undefined : json['label_ids'],
'standing': json['standing'],
};
}
export function GetCharactersCharacterIdContacts200OkToJSON(json) {
return GetCharactersCharacterIdContacts200OkToJSONTyped(json, false);
}
export function GetCharactersCharacterIdContacts200OkToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'contact_id': value['contactId'],
'contact_type': value['contactType'],
'is_blocked': value['isBlocked'],
'is_watched': value['isWatched'],
'label_ids': value['labelIds'],
'standing': value['standing'],
};
}