mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-19 06:46:28 +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
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user