fastcomments-sdk
Version:
FastComments API Client - A SDK for interacting with the FastComments API
69 lines • 3.08 kB
JavaScript
;
/* 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.GetBannedUsersFromCommentResponseCodeEnum = void 0;
exports.instanceOfGetBannedUsersFromCommentResponse = instanceOfGetBannedUsersFromCommentResponse;
exports.GetBannedUsersFromCommentResponseFromJSON = GetBannedUsersFromCommentResponseFromJSON;
exports.GetBannedUsersFromCommentResponseFromJSONTyped = GetBannedUsersFromCommentResponseFromJSONTyped;
exports.GetBannedUsersFromCommentResponseToJSON = GetBannedUsersFromCommentResponseToJSON;
exports.GetBannedUsersFromCommentResponseToJSONTyped = GetBannedUsersFromCommentResponseToJSONTyped;
const APIBannedUserWithMultiMatchInfo_1 = require("./APIBannedUserWithMultiMatchInfo");
const APIStatus_1 = require("./APIStatus");
/**
* @export
* @enum {string}
*/
var GetBannedUsersFromCommentResponseCodeEnum;
(function (GetBannedUsersFromCommentResponseCodeEnum) {
GetBannedUsersFromCommentResponseCodeEnum["not_found"] = "not-found";
GetBannedUsersFromCommentResponseCodeEnum["not_logged_in"] = "not-logged-in";
})(GetBannedUsersFromCommentResponseCodeEnum || (exports.GetBannedUsersFromCommentResponseCodeEnum = GetBannedUsersFromCommentResponseCodeEnum = {}));
/**
* Check if a given object implements the GetBannedUsersFromCommentResponse interface.
*/
function instanceOfGetBannedUsersFromCommentResponse(value) {
if (!('bannedUsers' in value) || value['bannedUsers'] === undefined)
return false;
if (!('status' in value) || value['status'] === undefined)
return false;
return true;
}
function GetBannedUsersFromCommentResponseFromJSON(json) {
return GetBannedUsersFromCommentResponseFromJSONTyped(json, false);
}
function GetBannedUsersFromCommentResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'bannedUsers': (json['bannedUsers'].map(APIBannedUserWithMultiMatchInfo_1.APIBannedUserWithMultiMatchInfoFromJSON)),
'code': json['code'] == null ? undefined : json['code'],
'status': (0, APIStatus_1.APIStatusFromJSON)(json['status']),
};
}
function GetBannedUsersFromCommentResponseToJSON(json) {
return GetBannedUsersFromCommentResponseToJSONTyped(json, false);
}
function GetBannedUsersFromCommentResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'bannedUsers': (value['bannedUsers'].map(APIBannedUserWithMultiMatchInfo_1.APIBannedUserWithMultiMatchInfoToJSON)),
'code': value['code'],
'status': (0, APIStatus_1.APIStatusToJSON)(value['status']),
};
}
//# sourceMappingURL=GetBannedUsersFromCommentResponse.js.map