UNPKG

diffusion

Version:

Diffusion JavaScript client

48 lines (47 loc) 2.36 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.GetSessionLockResultSerialiser = exports.GetSessionLockResultSerialiserClass = void 0; var Codec = require("./../../io/codec"); var serialiser_1 = require("./../../serialisers/serialiser"); var get_session_lock_result_1 = require("./get-session-lock-result"); var session_lock_details_serialiser_1 = require("./session-lock-details-serialiser"); /** * Serialiser for {@link GetSessionLockResult} */ var GetSessionLockResultSerialiserClass = /** @class */ (function (_super) { __extends(GetSessionLockResultSerialiserClass, _super); function GetSessionLockResultSerialiserClass() { return _super !== null && _super.apply(this, arguments) || this; } /** * Read a {@link GetSessionLockResult} from the stream * * @param bis the input stream * @return the {@link GetSessionLockResult} that was read */ GetSessionLockResultSerialiserClass.prototype.read = function (bis) { var details = Codec.readOptional(bis, session_lock_details_serialiser_1.SessionLockDetailsSerialiser.read); return new get_session_lock_result_1.GetSessionLockResult(details); }; return GetSessionLockResultSerialiserClass; }(serialiser_1.AbstractSerialiser)); exports.GetSessionLockResultSerialiserClass = GetSessionLockResultSerialiserClass; /** * The {@link GetSessionLockResultSerialiser} singleton */ // eslint-disable-next-line @typescript-eslint/naming-convention exports.GetSessionLockResultSerialiser = new GetSessionLockResultSerialiserClass();