fastcomments-sdk
Version:
FastComments API Client - A SDK for interacting with the FastComments API
59 lines • 2.17 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.instanceOfGetCommentBanStatusResponse = instanceOfGetCommentBanStatusResponse;
exports.GetCommentBanStatusResponseFromJSON = GetCommentBanStatusResponseFromJSON;
exports.GetCommentBanStatusResponseFromJSONTyped = GetCommentBanStatusResponseFromJSONTyped;
exports.GetCommentBanStatusResponseToJSON = GetCommentBanStatusResponseToJSON;
exports.GetCommentBanStatusResponseToJSONTyped = GetCommentBanStatusResponseToJSONTyped;
/**
* Check if a given object implements the GetCommentBanStatusResponse interface.
*/
function instanceOfGetCommentBanStatusResponse(value) {
if (!('status' in value) || value['status'] === undefined)
return false;
if (!('emailDomain' in value) || value['emailDomain'] === undefined)
return false;
if (!('canIPBan' in value) || value['canIPBan'] === undefined)
return false;
return true;
}
function GetCommentBanStatusResponseFromJSON(json) {
return GetCommentBanStatusResponseFromJSONTyped(json, false);
}
function GetCommentBanStatusResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'status': json['status'],
'emailDomain': json['emailDomain'],
'canIPBan': json['canIPBan'],
};
}
function GetCommentBanStatusResponseToJSON(json) {
return GetCommentBanStatusResponseToJSONTyped(json, false);
}
function GetCommentBanStatusResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'status': value['status'],
'emailDomain': value['emailDomain'],
'canIPBan': value['canIPBan'],
};
}
//# sourceMappingURL=GetCommentBanStatusResponse.js.map