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,35 @@
|
||||
export const GetIssueCategoryName = (categoryId: number) =>
|
||||
{
|
||||
switch(categoryId)
|
||||
{
|
||||
case 1:
|
||||
case 2:
|
||||
return 'Normal';
|
||||
case 3:
|
||||
return 'Automatic';
|
||||
case 4:
|
||||
return 'Automatic IM';
|
||||
case 5:
|
||||
return 'Guide System';
|
||||
case 6:
|
||||
return 'IM';
|
||||
case 7:
|
||||
return 'Room';
|
||||
case 8:
|
||||
return 'Panic';
|
||||
case 9:
|
||||
return 'Guardian';
|
||||
case 10:
|
||||
return 'Automatic Helper';
|
||||
case 11:
|
||||
return 'Discussion';
|
||||
case 12:
|
||||
return 'Selfie';
|
||||
case 14:
|
||||
return 'Photo';
|
||||
case 15:
|
||||
return 'Ambassador';
|
||||
}
|
||||
|
||||
return 'Unknown';
|
||||
};
|
||||
@@ -0,0 +1,5 @@
|
||||
export interface ISelectedUser
|
||||
{
|
||||
userId: number;
|
||||
username: string;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
export interface IUserInfo
|
||||
{
|
||||
nameKey: string;
|
||||
nameKeyFallback: string;
|
||||
value: string;
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
export class ModActionDefinition
|
||||
{
|
||||
public static ALERT: number = 1;
|
||||
public static MUTE: number = 2;
|
||||
public static BAN: number = 3;
|
||||
public static KICK: number = 4;
|
||||
public static TRADE_LOCK: number = 5;
|
||||
public static MESSAGE: number = 6;
|
||||
|
||||
private readonly _actionId: number;
|
||||
private readonly _name: string;
|
||||
private readonly _actionType: number;
|
||||
private readonly _sanctionTypeId: number;
|
||||
private readonly _actionLengthHours: number;
|
||||
|
||||
constructor(actionId: number, actionName: string, actionType: number, sanctionTypeId: number, actionLengthHours:number)
|
||||
{
|
||||
this._actionId = actionId;
|
||||
this._name = actionName;
|
||||
this._actionType = actionType;
|
||||
this._sanctionTypeId = sanctionTypeId;
|
||||
this._actionLengthHours = actionLengthHours;
|
||||
}
|
||||
|
||||
public get actionId(): number
|
||||
{
|
||||
return this._actionId;
|
||||
}
|
||||
|
||||
public get name(): string
|
||||
{
|
||||
return this._name;
|
||||
}
|
||||
|
||||
public get actionType(): number
|
||||
{
|
||||
return this._actionType;
|
||||
}
|
||||
|
||||
public get sanctionTypeId(): number
|
||||
{
|
||||
return this._sanctionTypeId;
|
||||
}
|
||||
|
||||
public get actionLengthHours(): number
|
||||
{
|
||||
return this._actionLengthHours;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
export * from './GetIssueCategoryName';
|
||||
export * from './ISelectedUser';
|
||||
export * from './IUserInfo';
|
||||
export * from './ModActionDefinition';
|
||||
Reference in New Issue
Block a user