26 lines
482 B
TypeScript
26 lines
482 B
TypeScript
import { IMessageDataWrapper } from '../../../../../core';
|
|
|
|
export class FriendCategoryData
|
|
{
|
|
private _id: number;
|
|
private _name: string;
|
|
|
|
constructor(wrapper: IMessageDataWrapper)
|
|
{
|
|
if(!wrapper) throw new Error('invalid_wrapper');
|
|
|
|
this._id = wrapper.readInt();
|
|
this._name = wrapper.readString();
|
|
}
|
|
|
|
public get id(): number
|
|
{
|
|
return this._id;
|
|
}
|
|
|
|
public get name(): string
|
|
{
|
|
return this._name;
|
|
}
|
|
}
|