@altostra/core
Version:
Core library for shared types and logic
1 lines • 410 B
JavaScript
;Object.defineProperty(exports,"__esModule",{value:!0}),exports.ConnectionId=void 0;const Resources_1=require("../Resources");class ConnectionId{constructor(o,t){(0,Resources_1.isResourceId)(o)?(this.from=o,this.to=t):(this.from=o.from,this.to=o.to)}equal(o){return this.from===o.from&&this.to===o.to}static fromConnection(o){return new ConnectionId(o.from,o.to)}}exports.ConnectionId=ConnectionId;