Fix Group Information Parser

This commit is contained in:
MyNameIsBatman 2021-08-30 20:02:37 -03:00
parent 8e3e2962bc
commit 829756bf56

View File

@ -11,6 +11,7 @@ export class GroupInformationParser implements IMessageParser
private _roomName: string;
private _membershipType: number;
private _membersCount: number;
private _isFavorite: boolean;
private _createdAt: string;
private _isOwner: boolean;
private _isAdmin: boolean;
@ -30,6 +31,7 @@ export class GroupInformationParser implements IMessageParser
this._roomName = null;
this._membershipType = 0;
this._membersCount = 0;
this._isFavorite = false;
this._createdAt = null;
this._isOwner = false;
this._isAdmin = false;
@ -55,7 +57,7 @@ export class GroupInformationParser implements IMessageParser
this._roomName = wrapper.readString();
this._membershipType = wrapper.readInt();
this._membersCount = wrapper.readInt();
wrapper.readBoolean();
this._isFavorite = wrapper.readBoolean();
this._createdAt = wrapper.readString();
this._isOwner = wrapper.readBoolean();
this._isAdmin = wrapper.readBoolean();
@ -112,6 +114,11 @@ export class GroupInformationParser implements IMessageParser
return this._membersCount;
}
public get isFavorite(): boolean
{
return this._isFavorite;
}
public get createdAt(): string
{
return this._createdAt;