UNPKG

ravendb

Version:
47 lines 1.09 kB
export class CounterOperation { _type; _counterName; _delta; _changeVector; serialize() { return { Type: this._type, CounterName: this._counterName, Delta: this._delta }; } get type() { return this._type; } set type(value) { this._type = value; } get counterName() { return this._counterName; } set counterName(value) { this._counterName = value; } get delta() { return this._delta; } set delta(value) { this._delta = value; } get changeVector() { return this._changeVector; } set changeVector(changeVector) { this._changeVector = changeVector; } static create(counterName, type, delta) { const operation = new CounterOperation(); operation.counterName = counterName; operation.type = type; if (arguments.length === 3) { operation.delta = delta; } return operation; } } //# sourceMappingURL=CounterOperation.js.map