@fnt-eve/esi-client-typescript
Version:
[](https://www.npmjs.com/package/@fnt-eve/esi-client-typescript)
60 lines (59 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.
*/
/**
* Check if a given object implements the GetCharactersCharacterIdNotificationsContacts200Ok interface.
*/
export function instanceOfGetCharactersCharacterIdNotificationsContacts200Ok(value) {
if (!('message' in value) || value['message'] === undefined)
return false;
if (!('notificationId' in value) || value['notificationId'] === undefined)
return false;
if (!('sendDate' in value) || value['sendDate'] === undefined)
return false;
if (!('senderCharacterId' in value) || value['senderCharacterId'] === undefined)
return false;
if (!('standingLevel' in value) || value['standingLevel'] === undefined)
return false;
return true;
}
export function GetCharactersCharacterIdNotificationsContacts200OkFromJSON(json) {
return GetCharactersCharacterIdNotificationsContacts200OkFromJSONTyped(json, false);
}
export function GetCharactersCharacterIdNotificationsContacts200OkFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'message': json['message'],
'notificationId': json['notification_id'],
'sendDate': (new Date(json['send_date'])),
'senderCharacterId': json['sender_character_id'],
'standingLevel': json['standing_level'],
};
}
export function GetCharactersCharacterIdNotificationsContacts200OkToJSON(json) {
return GetCharactersCharacterIdNotificationsContacts200OkToJSONTyped(json, false);
}
export function GetCharactersCharacterIdNotificationsContacts200OkToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'message': value['message'],
'notification_id': value['notificationId'],
'send_date': ((value['sendDate']).toISOString()),
'sender_character_id': value['senderCharacterId'],
'standing_level': value['standingLevel'],
};
}