UNPKG

fastcomments-sdk

Version:

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

73 lines 2.46 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.VoteBodyParamsVoteDirEnum = void 0; exports.instanceOfVoteBodyParams = instanceOfVoteBodyParams; exports.VoteBodyParamsFromJSON = VoteBodyParamsFromJSON; exports.VoteBodyParamsFromJSONTyped = VoteBodyParamsFromJSONTyped; exports.VoteBodyParamsToJSON = VoteBodyParamsToJSON; exports.VoteBodyParamsToJSONTyped = VoteBodyParamsToJSONTyped; /** * @export * @enum {string} */ var VoteBodyParamsVoteDirEnum; (function (VoteBodyParamsVoteDirEnum) { VoteBodyParamsVoteDirEnum["up"] = "up"; VoteBodyParamsVoteDirEnum["down"] = "down"; })(VoteBodyParamsVoteDirEnum || (exports.VoteBodyParamsVoteDirEnum = VoteBodyParamsVoteDirEnum = {})); /** * Check if a given object implements the VoteBodyParams interface. */ function instanceOfVoteBodyParams(value) { if (!('commenterEmail' in value) || value['commenterEmail'] === undefined) return false; if (!('commenterName' in value) || value['commenterName'] === undefined) return false; if (!('voteDir' in value) || value['voteDir'] === undefined) return false; if (!('url' in value) || value['url'] === undefined) return false; return true; } function VoteBodyParamsFromJSON(json) { return VoteBodyParamsFromJSONTyped(json, false); } function VoteBodyParamsFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'commenterEmail': json['commenterEmail'], 'commenterName': json['commenterName'], 'voteDir': json['voteDir'], 'url': json['url'], }; } function VoteBodyParamsToJSON(json) { return VoteBodyParamsToJSONTyped(json, false); } function VoteBodyParamsToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'commenterEmail': value['commenterEmail'], 'commenterName': value['commenterName'], 'voteDir': value['voteDir'], 'url': value['url'], }; } //# sourceMappingURL=VoteBodyParams.js.map