UNPKG

diffusion

Version:

Diffusion JavaScript client

48 lines (47 loc) 2.38 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.GetSessionLocksResultSerialiser = exports.GetSessionLocksResultSerialiserClass = void 0; var Codec = require("./../../io/codec"); var serialiser_1 = require("./../../serialisers/serialiser"); var get_session_locks_result_1 = require("./get-session-locks-result"); var session_lock_details_serialiser_1 = require("./session-lock-details-serialiser"); /** * Serialiser for {@link GetSessionLocksResult} */ var GetSessionLocksResultSerialiserClass = /** @class */ (function (_super) { __extends(GetSessionLocksResultSerialiserClass, _super); function GetSessionLocksResultSerialiserClass() { return _super !== null && _super.apply(this, arguments) || this; } /** * Read a {@link GetSessionLocksResult} from the stream * * @param bis the input stream * @return the {@link GetSessionLocksResult} that was read */ GetSessionLocksResultSerialiserClass.prototype.read = function (bis) { var details = Codec.readDictionary(bis, session_lock_details_serialiser_1.SessionLockDetailsSerialiser.read); return new get_session_locks_result_1.GetSessionLocksResult(details); }; return GetSessionLocksResultSerialiserClass; }(serialiser_1.AbstractSerialiser)); exports.GetSessionLocksResultSerialiserClass = GetSessionLocksResultSerialiserClass; /** * The {@link GetSessionLocksResultSerialiser} singleton */ // eslint-disable-next-line @typescript-eslint/naming-convention exports.GetSessionLocksResultSerialiser = new GetSessionLocksResultSerialiserClass();