This commit is contained in:
Bill 2021-08-30 19:04:23 -04:00
commit 7fc62d8cb9

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;
@ -29,7 +30,8 @@ export class GroupInformationParser implements IMessageParser
this._roomId = 0;
this._roomName = null;
this._membershipType = 0;
this._membersCount = 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;