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,5 @@
|
||||
export class CallForHelpResult
|
||||
{
|
||||
public static readonly TOO_MANY_PENDING_CALLS_CODE = 1;
|
||||
public static readonly HAS_ABUSIVE_CALL_CODE = 2;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
export const GetCloseReasonKey = (code: number) =>
|
||||
{
|
||||
if(code === 1) return 'useless';
|
||||
|
||||
if(code === 2) return 'abusive';
|
||||
|
||||
return 'resolved';
|
||||
};
|
||||
@@ -0,0 +1,19 @@
|
||||
import { IChatEntry } from '../chat-history';
|
||||
|
||||
export interface IHelpReport
|
||||
{
|
||||
reportType: number;
|
||||
reportedUserId: number;
|
||||
reportedChats: IChatEntry[];
|
||||
cfhCategory: number;
|
||||
cfhTopic: number;
|
||||
roomId: number;
|
||||
roomName: string;
|
||||
groupId: number;
|
||||
threadId: number;
|
||||
messageId: number;
|
||||
extraData: string;
|
||||
roomObjectId: number;
|
||||
message: string;
|
||||
currentStep: number;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
export interface IReportedUser
|
||||
{
|
||||
id: number;
|
||||
username: string;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
export class ReportState
|
||||
{
|
||||
public static readonly SELECT_USER = 0;
|
||||
public static readonly SELECT_CHATS = 1;
|
||||
public static readonly SELECT_TOPICS = 2;
|
||||
public static readonly INPUT_REPORT_MESSAGE = 3;
|
||||
public static readonly REPORT_SUMMARY = 4;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
export class ReportType
|
||||
{
|
||||
public static readonly EMERGENCY = 1;
|
||||
public static readonly GUIDE = 2;
|
||||
public static readonly IM = 3;
|
||||
public static readonly ROOM = 4;
|
||||
public static readonly BULLY = 6;
|
||||
public static readonly THREAD = 7;
|
||||
public static readonly MESSAGE = 8;
|
||||
public static readonly PHOTO = 9;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
export * from './CallForHelpResult';
|
||||
export * from './GetCloseReasonKey';
|
||||
export * from './IHelpReport';
|
||||
export * from './IReportedUser';
|
||||
export * from './ReportState';
|
||||
export * from './ReportType';
|
||||
Reference in New Issue
Block a user