mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-19 23:16:21 +00:00
🆙 Init V3
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
export class GuideSessionState
|
||||
{
|
||||
public static readonly NONE: string = 'NONE';
|
||||
public static readonly ERROR: string = 'ERROR';
|
||||
public static readonly REJECTED: string = 'REJECTED';
|
||||
public static readonly USER_CREATE: string = 'USER_CREATE';
|
||||
public static readonly USER_PENDING: string = 'USER_PENDING';
|
||||
public static readonly USER_ONGOING: string = 'USER_ONGOING';
|
||||
public static readonly USER_FEEDBACK: string = 'USER_FEEDBACK';
|
||||
public static readonly USER_NO_HELPERS: string = 'USER_NO_HELPERS';
|
||||
public static readonly USER_SOMETHING_WRONG: string = 'USER_SOMETHING_WRONG';
|
||||
public static readonly USER_THANKS: string = 'USER_THANKS';
|
||||
public static readonly USER_GUIDE_DISCONNECTED: string = 'USER_GUIDE_DISCONNECTED';
|
||||
public static readonly GUIDE_TOOL_MENU: string = 'GUIDE_TOOL_MENU';
|
||||
public static readonly GUIDE_ACCEPT: string = 'GUIDE_ACCEPT';
|
||||
public static readonly GUIDE_ONGOING: string = 'GUIDE_ONGOING';
|
||||
public static readonly GUIDE_CLOSED: string = 'GUIDE_CLOSED';
|
||||
public static readonly GUARDIAN_CHAT_REVIEW_ACCEPT: string = 'GUARDIAN_CHAT_REVIEW_ACCEPT';
|
||||
public static readonly GUARDIAN_CHAT_REVIEW_WAIT_FOR_VOTERS: string = 'GUARDIAN_CHAT_REVIEW_WAIT_FOR_VOTERS';
|
||||
public static readonly GUARDIAN_CHAT_REVIEW_VOTE: string = 'GUARDIAN_CHAT_REVIEW_VOTE';
|
||||
public static readonly GUARDIAN_CHAT_REVIEW_WAIT_FOR_RESULTS: string = 'GUARDIAN_CHAT_REVIEW_WAIT_FOR_RESULTS';
|
||||
public static readonly GUARDIAN_CHAT_REVIEW_RESULTS: string = 'GUARDIAN_CHAT_REVIEW_RESULTS';
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
export class GuideToolMessage
|
||||
{
|
||||
private _message: string;
|
||||
private _roomId: number;
|
||||
|
||||
constructor(message: string, roomId?: number)
|
||||
{
|
||||
this._message = message;
|
||||
this._roomId = roomId;
|
||||
}
|
||||
|
||||
public get message(): string
|
||||
{
|
||||
return this._message;
|
||||
}
|
||||
|
||||
public get roomId(): number
|
||||
{
|
||||
return this._roomId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
import { GuideToolMessage } from './GuideToolMessage';
|
||||
|
||||
export class GuideToolMessageGroup
|
||||
{
|
||||
private _userId: number;
|
||||
private _messages: GuideToolMessage[];
|
||||
|
||||
constructor(userId: number)
|
||||
{
|
||||
this._userId = userId;
|
||||
this._messages = [];
|
||||
}
|
||||
|
||||
public addChat(message: GuideToolMessage): void
|
||||
{
|
||||
this._messages.push(message);
|
||||
}
|
||||
|
||||
public get userId(): number
|
||||
{
|
||||
return this._userId;
|
||||
}
|
||||
|
||||
public get messages(): GuideToolMessage[]
|
||||
{
|
||||
return this._messages;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
export * from './GuideSessionState';
|
||||
export * from './GuideToolMessage';
|
||||
export * from './GuideToolMessageGroup';
|
||||
Reference in New Issue
Block a user