@xmobitea/gn-server
Version:
GearN Server by XmobiTea (Pro)
75 lines (74 loc) • 2.56 kB
TypeScript
export declare class CodeHelper {
private static returnCodeHelper;
private static requestTypeHelper;
private static requestRoleHelper;
private static secretRoleHelper;
private static invalidMemberHelper;
/**
* Returns the return code name.
* @param returnCode Provides the return code value used by this operation.
* @returns Returns the return code name.
*/
static getReturnCodeName(returnCode: number): string;
/**
* Returns the request type name.
* @param requestType Provides the request type value used by this operation.
* @returns Returns the request type name.
*/
static getRequestTypeName(requestType: number): string;
/**
* Returns the request role name.
* @param requestRole Provides the request role value used by this operation.
* @returns Returns the request role name.
*/
static getRequestRoleName(requestRole: number): string;
/**
* Returns the secret role name.
* @param secretRole Provides the secret role value used by this operation.
* @returns Returns the secret role name.
*/
static getSecretRoleName(secretRole: number): string;
static getInvalidMemberName(invalidMember: number): string;
/**
* Executes the init workflow.
*/
static init(): void;
/**
* Sets the return code dictionary.
*/
private static setReturnCodeDic;
/**
* Adds the return code dictionary.
* @param returnCode Provides the return code value used by this operation.
*/
static addReturnCodeDic(returnCode: any): void;
/**
* Sets the request type dictionary.
*/
private static setRequestTypeDic;
/**
* Adds the request type dictionary.
* @param requestType Provides the request type value used by this operation.
*/
static addRequestTypeDic(requestType: any): void;
/**
* Sets the request role dictionary.
*/
private static setRequestRoleDic;
/**
* Adds the request role dictionary.
* @param requestRole Provides the request role value used by this operation.
*/
static addRequestRoleDic(requestRole: any): void;
/**
* Sets the secret role dictionary.
*/
private static setSecretRoleDic;
/**
* Adds the secret role dictionary.
* @param secretRole Provides the secret role value used by this operation.
*/
static addSecretRoleDic(secretRole: any): void;
private static setInvalidMemberDic;
static addInvalidMemberDic(invalidMember: any): void;
}