UNPKG

diffusion

Version:

Diffusion JavaScript client

31 lines (30 loc) 1.03 kB
"use strict"; /** * @module Services.TopicAdd */ Object.defineProperty(exports, "__esModule", { value: true }); exports.TopicAddResponse = exports.TopicAddResponseStatus = void 0; /** * Response code returned by the server for a TOPIC_ADD request */ var TopicAddResponseStatus; (function (TopicAddResponseStatus) { TopicAddResponseStatus[TopicAddResponseStatus["OK"] = 0] = "OK"; TopicAddResponseStatus[TopicAddResponseStatus["EXISTS"] = 1] = "EXISTS"; })(TopicAddResponseStatus = exports.TopicAddResponseStatus || (exports.TopicAddResponseStatus = {})); /** * Server response from a TOPIC_ADD request. */ var TopicAddResponse = /** @class */ (function () { /** * Create a new TopicAddResponse instance * * @param status the status of the add topic request * @param reason if the request has failed, this contains the reason */ function TopicAddResponse(status) { this.status = status; } return TopicAddResponse; }()); exports.TopicAddResponse = TopicAddResponse;