mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-18 22:36:27 +01:00
add missing property to issue close alert
This commit is contained in:
parent
c32b800fee
commit
7486a9cde1
@ -3,11 +3,12 @@ import { IMessageDataWrapper, IMessageParser } from '../../../../../core';
|
||||
export class IssueCloseNotificationMessageParser implements IMessageParser
|
||||
{
|
||||
private _closeReason: number;
|
||||
private _messageText: string;
|
||||
|
||||
public flush(): boolean
|
||||
{
|
||||
this._closeReason = 0;
|
||||
|
||||
this._messageText = '';
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -16,6 +17,7 @@ export class IssueCloseNotificationMessageParser implements IMessageParser
|
||||
if(!wrapper) return false;
|
||||
|
||||
this._closeReason = wrapper.readInt();
|
||||
this._messageText = wrapper.readString();
|
||||
|
||||
return true;
|
||||
}
|
||||
@ -24,4 +26,9 @@ export class IssueCloseNotificationMessageParser implements IMessageParser
|
||||
{
|
||||
return this._closeReason;
|
||||
}
|
||||
|
||||
public get messageText(): string
|
||||
{
|
||||
return this._messageText;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user