add missing property to issue close alert

This commit is contained in:
dank074 2022-01-07 00:26:53 -06:00
parent c32b800fee
commit 7486a9cde1

View File

@ -3,11 +3,12 @@ import { IMessageDataWrapper, IMessageParser } from '../../../../../core';
export class IssueCloseNotificationMessageParser implements IMessageParser export class IssueCloseNotificationMessageParser implements IMessageParser
{ {
private _closeReason: number; private _closeReason: number;
private _messageText: string;
public flush(): boolean public flush(): boolean
{ {
this._closeReason = 0; this._closeReason = 0;
this._messageText = '';
return true; return true;
} }
@ -16,6 +17,7 @@ export class IssueCloseNotificationMessageParser implements IMessageParser
if(!wrapper) return false; if(!wrapper) return false;
this._closeReason = wrapper.readInt(); this._closeReason = wrapper.readInt();
this._messageText = wrapper.readString();
return true; return true;
} }
@ -24,4 +26,9 @@ export class IssueCloseNotificationMessageParser implements IMessageParser
{ {
return this._closeReason; return this._closeReason;
} }
public get messageText(): string
{
return this._messageText;
}
} }