forked from mystiq/hydrogen-web
33 lines
617 B
JavaScript
33 lines
617 B
JavaScript
import BaseEntry, {PENDING_FRAGMENT_ID} from "./BaseEntry.js";
|
|
|
|
export default class PendingEventEntry extends BaseEntry {
|
|
constructor(pendingEvent) {
|
|
super(null);
|
|
this._pendingEvent = pendingEvent;
|
|
}
|
|
|
|
get fragmentId() {
|
|
return PENDING_FRAGMENT_ID;
|
|
}
|
|
|
|
get entryIndex() {
|
|
return this._pendingEvent.queueIndex;
|
|
}
|
|
|
|
get content() {
|
|
return this._pendingEvent.content;
|
|
}
|
|
|
|
get event() {
|
|
return null;
|
|
}
|
|
|
|
get type() {
|
|
return this._pendingEvent.eventType;
|
|
}
|
|
|
|
get id() {
|
|
return this._pendingEvent.txnId;
|
|
}
|
|
}
|