UNPKG

diffusion

Version:

Diffusion JavaScript client

24 lines (19 loc) 651 B
function EventMetadataImpl(sequence, timestamp, author) { this.sequence = sequence; this.timestamp = timestamp; this.author = author; } EventMetadataImpl.prototype.equals = function(other) { if (other && other instanceof EventMetadataImpl) { return this.sequence === other.sequence && this.timestamp === other.timestamp && this.author === other.author; } return false; }; EventMetadataImpl.prototype.toString = function() { return "sequence=" + this.sequence + " timestamp=" + this.timestamp + " author=" + this.author; }; module.exports = EventMetadataImpl;