Fix PerkData

This commit is contained in:
MyNameIsBatman 2021-11-26 18:15:46 -03:00
parent 74f000a466
commit 2c4fac898b
2 changed files with 10 additions and 10 deletions

View File

@ -22,8 +22,8 @@ export class PerkAllowancesMessageParser implements IMessageParser
for(let i = 0; i < size; i++) this._perks.push(new PerkData(
wrapper.readString(),
wrapper.readBoolean(),
wrapper.readString()
wrapper.readString(),
wrapper.readBoolean()
));
return true;

View File

@ -1,14 +1,14 @@
export class PerkData
{
private _code: string;
private _isAllowed: boolean;
private _errorMessage: string;
private _isAllowed: boolean;
constructor(code: string, isAllowed: boolean, errorMessage: string)
constructor(code: string, errorMessage: string, isAllowed: boolean)
{
this._code = code;
this._isAllowed = isAllowed;
this._errorMessage = errorMessage;
this._isAllowed = isAllowed;
}
public get code(): string
@ -16,13 +16,13 @@ export class PerkData
return this._code;
}
public get isAllowed(): boolean
{
return this._isAllowed;
}
public get errorMessage(): string
{
return this._errorMessage;
}
public get isAllowed(): boolean
{
return this._isAllowed;
}
}