mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-24 06:40:52 +01:00
29 lines
542 B
TypeScript
29 lines
542 B
TypeScript
|
import { MessengerThreadChat } from './MessengerThreadChat';
|
||
|
|
||
|
export class MessengerThreadChatGroup
|
||
|
{
|
||
|
private _userId: number;
|
||
|
private _chats: MessengerThreadChat[];
|
||
|
|
||
|
constructor(userId: number)
|
||
|
{
|
||
|
this._userId = userId;
|
||
|
this._chats = [];
|
||
|
}
|
||
|
|
||
|
public addChat(message: MessengerThreadChat): void
|
||
|
{
|
||
|
this._chats.push(message);
|
||
|
}
|
||
|
|
||
|
public get userId(): number
|
||
|
{
|
||
|
return this._userId;
|
||
|
}
|
||
|
|
||
|
public get chats(): MessengerThreadChat[]
|
||
|
{
|
||
|
return this._chats;
|
||
|
}
|
||
|
}
|