2019-07-27 14:10:56 +05:30
|
|
|
import BaseEntry, {PENDING_FRAGMENT_ID} from "./BaseEntry.js";
|
2019-07-27 01:33:57 +05:30
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|