UNPKG

fastcomments-sdk

Version:

FastComments API Client - A SDK for interacting with the FastComments API

73 lines 2.9 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * fastcomments * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 0.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfPageUsersOnlineResponse = instanceOfPageUsersOnlineResponse; exports.PageUsersOnlineResponseFromJSON = PageUsersOnlineResponseFromJSON; exports.PageUsersOnlineResponseFromJSONTyped = PageUsersOnlineResponseFromJSONTyped; exports.PageUsersOnlineResponseToJSON = PageUsersOnlineResponseToJSON; exports.PageUsersOnlineResponseToJSONTyped = PageUsersOnlineResponseToJSONTyped; const PageUserEntry_1 = require("./PageUserEntry"); const APIStatus_1 = require("./APIStatus"); /** * Check if a given object implements the PageUsersOnlineResponse interface. */ function instanceOfPageUsersOnlineResponse(value) { if (!('nextAfterUserId' in value) || value['nextAfterUserId'] === undefined) return false; if (!('nextAfterName' in value) || value['nextAfterName'] === undefined) return false; if (!('totalCount' in value) || value['totalCount'] === undefined) return false; if (!('anonCount' in value) || value['anonCount'] === undefined) return false; if (!('users' in value) || value['users'] === undefined) return false; if (!('status' in value) || value['status'] === undefined) return false; return true; } function PageUsersOnlineResponseFromJSON(json) { return PageUsersOnlineResponseFromJSONTyped(json, false); } function PageUsersOnlineResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'nextAfterUserId': json['nextAfterUserId'], 'nextAfterName': json['nextAfterName'], 'totalCount': json['totalCount'], 'anonCount': json['anonCount'], 'users': (json['users'].map(PageUserEntry_1.PageUserEntryFromJSON)), 'status': (0, APIStatus_1.APIStatusFromJSON)(json['status']), }; } function PageUsersOnlineResponseToJSON(json) { return PageUsersOnlineResponseToJSONTyped(json, false); } function PageUsersOnlineResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'nextAfterUserId': value['nextAfterUserId'], 'nextAfterName': value['nextAfterName'], 'totalCount': value['totalCount'], 'anonCount': value['anonCount'], 'users': (value['users'].map(PageUserEntry_1.PageUserEntryToJSON)), 'status': (0, APIStatus_1.APIStatusToJSON)(value['status']), }; } //# sourceMappingURL=PageUsersOnlineResponse.js.map