mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-31 11:12:35 +01:00
Fix Group Information Parser
This commit is contained in:
parent
8e3e2962bc
commit
829756bf56
@ -11,6 +11,7 @@ export class GroupInformationParser implements IMessageParser
|
|||||||
private _roomName: string;
|
private _roomName: string;
|
||||||
private _membershipType: number;
|
private _membershipType: number;
|
||||||
private _membersCount: number;
|
private _membersCount: number;
|
||||||
|
private _isFavorite: boolean;
|
||||||
private _createdAt: string;
|
private _createdAt: string;
|
||||||
private _isOwner: boolean;
|
private _isOwner: boolean;
|
||||||
private _isAdmin: boolean;
|
private _isAdmin: boolean;
|
||||||
@ -30,6 +31,7 @@ export class GroupInformationParser implements IMessageParser
|
|||||||
this._roomName = null;
|
this._roomName = null;
|
||||||
this._membershipType = 0;
|
this._membershipType = 0;
|
||||||
this._membersCount = 0;
|
this._membersCount = 0;
|
||||||
|
this._isFavorite = false;
|
||||||
this._createdAt = null;
|
this._createdAt = null;
|
||||||
this._isOwner = false;
|
this._isOwner = false;
|
||||||
this._isAdmin = false;
|
this._isAdmin = false;
|
||||||
@ -55,7 +57,7 @@ export class GroupInformationParser implements IMessageParser
|
|||||||
this._roomName = wrapper.readString();
|
this._roomName = wrapper.readString();
|
||||||
this._membershipType = wrapper.readInt();
|
this._membershipType = wrapper.readInt();
|
||||||
this._membersCount = wrapper.readInt();
|
this._membersCount = wrapper.readInt();
|
||||||
wrapper.readBoolean();
|
this._isFavorite = wrapper.readBoolean();
|
||||||
this._createdAt = wrapper.readString();
|
this._createdAt = wrapper.readString();
|
||||||
this._isOwner = wrapper.readBoolean();
|
this._isOwner = wrapper.readBoolean();
|
||||||
this._isAdmin = wrapper.readBoolean();
|
this._isAdmin = wrapper.readBoolean();
|
||||||
@ -112,6 +114,11 @@ export class GroupInformationParser implements IMessageParser
|
|||||||
return this._membersCount;
|
return this._membersCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public get isFavorite(): boolean
|
||||||
|
{
|
||||||
|
return this._isFavorite;
|
||||||
|
}
|
||||||
|
|
||||||
public get createdAt(): string
|
public get createdAt(): string
|
||||||
{
|
{
|
||||||
return this._createdAt;
|
return this._createdAt;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user