mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-18 22:36:27 +01:00
Merge branch 'dev' of https://git.krews.org/nitro/nitro-renderer into dev
This commit is contained in:
commit
24e84b844b
File diff suppressed because one or more lines are too long
@ -1,3 +1,2 @@
|
||||
export * from './CallForHelpDisabledNotifyMessageEvent';
|
||||
export * from './CallForHelpResultMessageEvent';
|
||||
export * from './TalentTrackEvent';
|
||||
|
@ -47,6 +47,7 @@ export * from './room/unit/chat';
|
||||
export * from './roomevents';
|
||||
export * from './security';
|
||||
export * from './sound';
|
||||
export * from './talent';
|
||||
export * from './user';
|
||||
export * from './user/access';
|
||||
export * from './user/data';
|
||||
|
@ -1,8 +1,8 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { TalentTrackParser } from '../../parser/help/TalentTrackParser';
|
||||
import { TalentTrackParser } from '../../parser/talent/TalentTrackParser';
|
||||
|
||||
export class TalentTrackEvent extends MessageEvent implements IMessageEvent
|
||||
export class TalentTrackMessageEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
@ -0,0 +1 @@
|
||||
export * from './TalentTrackMessageEvent';
|
@ -343,4 +343,33 @@ export class OutgoingHeader
|
||||
public static GET_YOUTUBE_DISPLAY_STATUS = 336;
|
||||
public static SET_YOUTUBE_DISPLAY_PLAYLIST = 2069;
|
||||
public static GO_TO_FLAT = 685;
|
||||
public static CALL_FOR_HELP_FROM_FORUM_MESSAGE = 1412;
|
||||
public static CALL_FOR_HELP_FROM_FORUM_THREAD = 534;
|
||||
public static CALL_FOR_HELP_FROM_IM = 2950;
|
||||
public static CALL_FOR_HELP_FROM_PHOTO = 2492;
|
||||
public static CALL_FOR_HELP_FROM_SELFIE = 2755;
|
||||
public static CHAT_REVIEW_GUIDE_DECIDES = 3365;
|
||||
public static CHAT_REVIEW_GUIDE_DETACHED = 2501;
|
||||
public static CHAT_REVIEW_GUIDE_VOTE = 3961;
|
||||
public static CHAT_REVIEW_SESSION_CREATE = 3060;
|
||||
public static DELETE_PENDING_CALLS_FOR_HELP = 3605;
|
||||
public static GET_CFH_STATUS = 2746;
|
||||
public static GET_FAQ_CATEGORY = 3445;
|
||||
public static GET_FAQ_TEXT = 1849;
|
||||
public static GET_GUIDE_REPORTING_STATUS = 3786;
|
||||
public static GET_PENDING_CALLS_FOR_HELP = 3267;
|
||||
public static GET_QUIZ_QUESTIONS = 1296;
|
||||
public static GUIDE_SESSION_CREATE = 3338;
|
||||
public static GUIDE_SESSION_FEEDBACK = 477;
|
||||
public static GUIDE_SESSION_GET_REQUESTER_ROOM = 1052;
|
||||
public static GUIDE_SESSION_GUIDE_DECIDES = 1424;
|
||||
public static GUIDE_SESSION_INVITE_REQUESTER = 234;
|
||||
public static GUIDE_SESSION_IS_TYPING = 519;
|
||||
public static GUIDE_SESSION_MESSAGE = 3899
|
||||
public static GUIDE_SESSION_ON_DUTY_UPDATE = 1922;
|
||||
public static GUIDE_SESSION_REPORT = 3969;
|
||||
public static GUIDE_SESSION_REQUESTER_CANCELS = 291;
|
||||
public static GUIDE_SESSION_RESOLVED = 887;
|
||||
public static POST_QUIZ_ANSWERS = 3720;
|
||||
public static SEARCH_FAQS = 2031;
|
||||
}
|
||||
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class CallForHelpFromForumMessageMessageComposer implements IMessageComposer<ConstructorParameters<typeof CallForHelpFromForumMessageMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof CallForHelpFromForumMessageMessageComposer>;
|
||||
|
||||
constructor(k:number, _arg_2:number, _arg_3:number, _arg_4:number, _arg_5:string)
|
||||
{
|
||||
this._data = [k, _arg_2, _arg_3, _arg_4, _arg_5];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class CallForHelpFromForumThreadMessageComposer implements IMessageComposer<ConstructorParameters<typeof CallForHelpFromForumThreadMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof CallForHelpFromForumThreadMessageComposer>;
|
||||
|
||||
constructor(k:number, _arg_2:number, _arg_3:number, _arg_4:string)
|
||||
{
|
||||
this._data = [k, _arg_2, _arg_3, _arg_4];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class CallForHelpFromIMMessageComposer implements IMessageComposer<any>
|
||||
{
|
||||
private _data: any;
|
||||
|
||||
constructor(message:string, topicId:number, reportedUserId:number, chatEntries:(string|number)[])
|
||||
{
|
||||
this._data = [message, topicId, reportedUserId, chatEntries.length / 2, ...chatEntries];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class CallForHelpFromPhotoMessageComposer implements IMessageComposer<ConstructorParameters<typeof CallForHelpFromPhotoMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof CallForHelpFromPhotoMessageComposer>;
|
||||
|
||||
constructor(k:string, _arg_2:number, _arg_3:number, _arg_4:number, _arg_5:number)
|
||||
{
|
||||
this._data = [k, _arg_2, _arg_3, _arg_4, _arg_5];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class CallForHelpFromSelfieMessageComposer implements IMessageComposer<ConstructorParameters<typeof CallForHelpFromSelfieMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof CallForHelpFromSelfieMessageComposer>;
|
||||
|
||||
constructor(k:string, _arg_2:number, _arg_3:number, _arg_4:string, _arg_5:number)
|
||||
{
|
||||
this._data = [k, _arg_2, _arg_3, _arg_4, _arg_5];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class ChatReviewGuideDecidesOnOfferMessageComposer implements IMessageComposer<ConstructorParameters<typeof ChatReviewGuideDecidesOnOfferMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof ChatReviewGuideDecidesOnOfferMessageComposer>;
|
||||
|
||||
constructor(k:boolean)
|
||||
{
|
||||
this._data = [k];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class ChatReviewGuideDetachedMessageComposer implements IMessageComposer<ConstructorParameters<typeof ChatReviewGuideDetachedMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof ChatReviewGuideDetachedMessageComposer>;
|
||||
|
||||
constructor()
|
||||
{
|
||||
this._data = [];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class ChatReviewGuideVoteMessageComposer implements IMessageComposer<ConstructorParameters<typeof ChatReviewGuideVoteMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof ChatReviewGuideVoteMessageComposer>;
|
||||
|
||||
constructor(k:number)
|
||||
{
|
||||
this._data = [k];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class ChatReviewSessionCreateMessageComposer implements IMessageComposer<ConstructorParameters<typeof ChatReviewSessionCreateMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof ChatReviewSessionCreateMessageComposer>;
|
||||
|
||||
constructor(k:number, _arg_2:number)
|
||||
{
|
||||
this._data = [k, _arg_2];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class DeletePendingCallsForHelpMessageComposer implements IMessageComposer<ConstructorParameters<typeof DeletePendingCallsForHelpMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof DeletePendingCallsForHelpMessageComposer>;
|
||||
|
||||
constructor()
|
||||
{
|
||||
this._data = [];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class GetCfhStatusMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetCfhStatusMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof GetCfhStatusMessageComposer>;
|
||||
|
||||
constructor(k:boolean)
|
||||
{
|
||||
this._data = [k];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class GetFaqCategoryMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetFaqCategoryMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof GetFaqCategoryMessageComposer>;
|
||||
|
||||
constructor(categoryId:number)
|
||||
{
|
||||
this._data = [categoryId];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class GetFaqTextMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetFaqTextMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof GetFaqTextMessageComposer>;
|
||||
|
||||
constructor(questionId:number)
|
||||
{
|
||||
this._data = [questionId];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class GetGuideReportingStatusMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetGuideReportingStatusMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof GetGuideReportingStatusMessageComposer>;
|
||||
|
||||
constructor()
|
||||
{
|
||||
this._data = [];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class GetPendingCallsForHelpMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetPendingCallsForHelpMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof GetPendingCallsForHelpMessageComposer>;
|
||||
|
||||
constructor()
|
||||
{
|
||||
this._data = [];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class GetQuizQuestionsComposer implements IMessageComposer<ConstructorParameters<typeof GetQuizQuestionsComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof GetQuizQuestionsComposer>;
|
||||
|
||||
constructor(k:string)
|
||||
{
|
||||
this._data = [k];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class GuideSessionCreateMessageComposer implements IMessageComposer<ConstructorParameters<typeof GuideSessionCreateMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof GuideSessionCreateMessageComposer>;
|
||||
|
||||
constructor(k:number, _arg_2:string)
|
||||
{
|
||||
this._data = [k, _arg_2];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class GuideSessionFeedbackMessageComposer implements IMessageComposer<ConstructorParameters<typeof GuideSessionFeedbackMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof GuideSessionFeedbackMessageComposer>;
|
||||
|
||||
constructor(k:boolean)
|
||||
{
|
||||
this._data = [k];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class GuideSessionGetRequesterRoomMessageComposer implements IMessageComposer<ConstructorParameters<typeof GuideSessionGetRequesterRoomMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof GuideSessionGetRequesterRoomMessageComposer>;
|
||||
|
||||
constructor()
|
||||
{
|
||||
this._data = [];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class GuideSessionGuideDecidesMessageComposer implements IMessageComposer<ConstructorParameters<typeof GuideSessionGuideDecidesMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof GuideSessionGuideDecidesMessageComposer>;
|
||||
|
||||
constructor(k:boolean)
|
||||
{
|
||||
this._data = [k];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class GuideSessionInviteRequesterMessageComposer implements IMessageComposer<ConstructorParameters<typeof GuideSessionInviteRequesterMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof GuideSessionInviteRequesterMessageComposer>;
|
||||
|
||||
constructor()
|
||||
{
|
||||
this._data = [];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class GuideSessionIsTypingMessageComposer implements IMessageComposer<ConstructorParameters<typeof GuideSessionIsTypingMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof GuideSessionIsTypingMessageComposer>;
|
||||
|
||||
constructor(k:boolean)
|
||||
{
|
||||
this._data = [k];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class GuideSessionMessageMessageComposer implements IMessageComposer<ConstructorParameters<typeof GuideSessionMessageMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof GuideSessionMessageMessageComposer>;
|
||||
|
||||
constructor(k:string)
|
||||
{
|
||||
this._data = [k];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class GuideSessionOnDutyUpdateMessageComposer implements IMessageComposer<ConstructorParameters<typeof GuideSessionOnDutyUpdateMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof GuideSessionOnDutyUpdateMessageComposer>;
|
||||
|
||||
constructor(k:boolean, _arg_2:boolean, _arg_3:boolean, _arg_4:boolean)
|
||||
{
|
||||
this._data = [k, _arg_2, _arg_3, _arg_4];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class GuideSessionReportMessageComposer implements IMessageComposer<ConstructorParameters<typeof GuideSessionReportMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof GuideSessionReportMessageComposer>;
|
||||
|
||||
constructor(k:string)
|
||||
{
|
||||
this._data = [k];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class GuideSessionRequesterCancelsMessageComposer implements IMessageComposer<ConstructorParameters<typeof GuideSessionRequesterCancelsMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof GuideSessionRequesterCancelsMessageComposer>;
|
||||
|
||||
constructor()
|
||||
{
|
||||
this._data = [];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class GuideSessionResolvedMessageComposer implements IMessageComposer<ConstructorParameters<typeof GuideSessionResolvedMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof GuideSessionResolvedMessageComposer>;
|
||||
|
||||
constructor()
|
||||
{
|
||||
this._data = [];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class PostQuizAnswersComposer implements IMessageComposer<any>
|
||||
{
|
||||
private _data: any;
|
||||
|
||||
constructor(quizCode:string, answerIds:number[])
|
||||
{
|
||||
this._data = [quizCode, answerIds.length, ...answerIds];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class SearchFaqsMessageComposer implements IMessageComposer<ConstructorParameters<typeof SearchFaqsMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof SearchFaqsMessageComposer>;
|
||||
|
||||
constructor(k:string)
|
||||
{
|
||||
this._data = [k];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -1 +1,30 @@
|
||||
export * from './CallForHelpFromForumMessageMessageComposer';
|
||||
export * from './CallForHelpFromForumThreadMessageComposer';
|
||||
export * from './CallForHelpFromIMMessageComposer';
|
||||
export * from './CallForHelpFromPhotoMessageComposer';
|
||||
export * from './CallForHelpFromSelfieMessageComposer';
|
||||
export * from './CallForHelpMessageComposer';
|
||||
export * from './ChatReviewGuideDecidesOnOfferMessageComposer';
|
||||
export * from './ChatReviewGuideDetachedMessageComposer';
|
||||
export * from './ChatReviewGuideVoteMessageComposer';
|
||||
export * from './ChatReviewSessionCreateMessageComposer';
|
||||
export * from './DeletePendingCallsForHelpMessageComposer';
|
||||
export * from './GetCfhStatusMessageComposer';
|
||||
export * from './GetFaqCategoryMessageComposer';
|
||||
export * from './GetFaqTextMessageComposer';
|
||||
export * from './GetGuideReportingStatusMessageComposer';
|
||||
export * from './GetPendingCallsForHelpMessageComposer';
|
||||
export * from './GetQuizQuestionsComposer';
|
||||
export * from './GuideSessionCreateMessageComposer';
|
||||
export * from './GuideSessionFeedbackMessageComposer';
|
||||
export * from './GuideSessionGetRequesterRoomMessageComposer';
|
||||
export * from './GuideSessionGuideDecidesMessageComposer';
|
||||
export * from './GuideSessionInviteRequesterMessageComposer';
|
||||
export * from './GuideSessionIsTypingMessageComposer';
|
||||
export * from './GuideSessionMessageMessageComposer';
|
||||
export * from './GuideSessionOnDutyUpdateMessageComposer';
|
||||
export * from './GuideSessionReportMessageComposer';
|
||||
export * from './GuideSessionRequesterCancelsMessageComposer';
|
||||
export * from './GuideSessionResolvedMessageComposer';
|
||||
export * from './PostQuizAnswersComposer';
|
||||
export * from './SearchFaqsMessageComposer';
|
||||
|
@ -1,45 +0,0 @@
|
||||
import { TalentTrackLevelAchievement } from './TalentTrackLevelAchievement';
|
||||
import { TalentTrackLevelItem } from './TalentTrackLevelItem';
|
||||
|
||||
export class TalentTrackLevel
|
||||
{
|
||||
private _level: number;
|
||||
private _state: number;
|
||||
private _achievements: TalentTrackLevelAchievement[]
|
||||
private _perks: string[];
|
||||
private _items: TalentTrackLevelItem[];
|
||||
|
||||
constructor(level: number, state: number, achievements: TalentTrackLevelAchievement[], perks: string[], items: TalentTrackLevelItem[])
|
||||
{
|
||||
this._level = level;
|
||||
this._state = state;
|
||||
this._achievements = achievements;
|
||||
this._perks = perks;
|
||||
this._items = items;
|
||||
}
|
||||
|
||||
public get level(): number
|
||||
{
|
||||
return this._level;
|
||||
}
|
||||
|
||||
public get state(): number
|
||||
{
|
||||
return this._state;
|
||||
}
|
||||
|
||||
public get achievements(): TalentTrackLevelAchievement[]
|
||||
{
|
||||
return this._achievements;
|
||||
}
|
||||
|
||||
public get perks(): string[]
|
||||
{
|
||||
return this._perks;
|
||||
}
|
||||
|
||||
public get items(): TalentTrackLevelItem[]
|
||||
{
|
||||
return this._items;
|
||||
}
|
||||
}
|
@ -1,49 +0,0 @@
|
||||
export class TalentTrackLevelAchievement
|
||||
{
|
||||
private _id: number;
|
||||
private _index: number;
|
||||
private _achievementCode: string;
|
||||
private _state: number;
|
||||
private _progress: number;
|
||||
private _achievementProgress: number;
|
||||
|
||||
constructor(id: number, index: number, achievementCode: string, state: number, progress: number, achievementProgress: number)
|
||||
{
|
||||
this._id = id;
|
||||
this._index = index;
|
||||
this._achievementCode = achievementCode;
|
||||
this._state = state;
|
||||
this._progress = progress;
|
||||
this._achievementProgress = achievementProgress;
|
||||
}
|
||||
|
||||
public get id(): number
|
||||
{
|
||||
return this._id;
|
||||
}
|
||||
|
||||
public get index(): number
|
||||
{
|
||||
return this._index;
|
||||
}
|
||||
|
||||
public get achievementCode(): string
|
||||
{
|
||||
return this._achievementCode;
|
||||
}
|
||||
|
||||
public get state(): number
|
||||
{
|
||||
return this._state;
|
||||
}
|
||||
|
||||
public get progress(): number
|
||||
{
|
||||
return this._progress;
|
||||
}
|
||||
|
||||
public get achievementProgress(): number
|
||||
{
|
||||
return this._achievementProgress;
|
||||
}
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
export class TalentTrackLevelItem
|
||||
{
|
||||
private _name: string;
|
||||
private _unknownInt: number;
|
||||
|
||||
constructor(name: string, unknownInt: number)
|
||||
{
|
||||
this._name = name;
|
||||
this._unknownInt = unknownInt;
|
||||
}
|
||||
|
||||
public get name(): string
|
||||
{
|
||||
return this._name;
|
||||
}
|
||||
|
||||
public get unknownInt(): number
|
||||
{
|
||||
return this._unknownInt;
|
||||
}
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
export * from './TalentTrackLevel';
|
||||
export * from './TalentTrackLevelAchievement';
|
||||
export * from './TalentTrackLevelItem';
|
@ -1,4 +1,2 @@
|
||||
export * from './CallForHelpDisabledNotifyMessageParser';
|
||||
export * from './CallForHelpResultMessageParser';
|
||||
export * from './common';
|
||||
export * from './TalentTrackParser';
|
||||
|
@ -24,4 +24,5 @@ export * from './room';
|
||||
export * from './roomevents';
|
||||
export * from './security';
|
||||
export * from './sound';
|
||||
export * from './talent';
|
||||
export * from './user';
|
||||
|
@ -0,0 +1,45 @@
|
||||
import { TalentTrackRewardProduct } from './TalentTrackRewardProduct';
|
||||
import { TalentTrackTask } from './TalentTrackTask';
|
||||
|
||||
export class TalentTrackLevel
|
||||
{
|
||||
private _level: number;
|
||||
private _state: number;
|
||||
private _tasks: TalentTrackTask[]
|
||||
private _rewardPerks: string[];
|
||||
private _rewardProducts: TalentTrackRewardProduct[];
|
||||
|
||||
constructor(level: number, state: number, achievements: TalentTrackTask[], perks: string[], items: TalentTrackRewardProduct[])
|
||||
{
|
||||
this._level = level;
|
||||
this._state = state;
|
||||
this._tasks = achievements;
|
||||
this._rewardPerks = perks;
|
||||
this._rewardProducts = items;
|
||||
}
|
||||
|
||||
public get level(): number
|
||||
{
|
||||
return this._level;
|
||||
}
|
||||
|
||||
public get state(): number
|
||||
{
|
||||
return this._state;
|
||||
}
|
||||
|
||||
public get tasks(): TalentTrackTask[]
|
||||
{
|
||||
return this._tasks;
|
||||
}
|
||||
|
||||
public get perks(): string[]
|
||||
{
|
||||
return this._rewardPerks;
|
||||
}
|
||||
|
||||
public get items(): TalentTrackRewardProduct[]
|
||||
{
|
||||
return this._rewardProducts;
|
||||
}
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
import { IMessageDataWrapper, IMessageParser } from '../../../../../core';
|
||||
import { TalentTrackLevel } from './common/TalentTrackLevel';
|
||||
import { TalentTrackLevelAchievement } from './common/TalentTrackLevelAchievement';
|
||||
import { TalentTrackLevelItem } from './common/TalentTrackLevelItem';
|
||||
import { TalentTrackLevel } from './TalentTrackLevel';
|
||||
import { TalentTrackRewardProduct } from './TalentTrackRewardProduct';
|
||||
import { TalentTrackTask } from './TalentTrackTask';
|
||||
|
||||
export class TalentTrackParser implements IMessageParser
|
||||
{
|
||||
@ -30,7 +30,7 @@ export class TalentTrackParser implements IMessageParser
|
||||
const levelId = wrapper.readInt();
|
||||
const levelState = wrapper.readInt();
|
||||
|
||||
const levelAchievements: TalentTrackLevelAchievement[] = [];
|
||||
const levelAchievements: TalentTrackTask[] = [];
|
||||
const achievementsCount = wrapper.readInt();
|
||||
|
||||
for(let j = 0; j < achievementsCount; j++)
|
||||
@ -42,7 +42,7 @@ export class TalentTrackParser implements IMessageParser
|
||||
const progress = wrapper.readInt();
|
||||
const achievementProgress = wrapper.readInt();
|
||||
|
||||
levelAchievements.push(new TalentTrackLevelAchievement(id, index, code, state, progress, achievementProgress));
|
||||
levelAchievements.push(new TalentTrackTask(id, index, code, state, progress, achievementProgress));
|
||||
}
|
||||
|
||||
const levelPerks: string[] = [];
|
||||
@ -50,7 +50,7 @@ export class TalentTrackParser implements IMessageParser
|
||||
|
||||
for(let j = 0; j < perksCount; j++) levelPerks.push(wrapper.readString());
|
||||
|
||||
const levelItems: TalentTrackLevelItem[] = [];
|
||||
const levelItems: TalentTrackRewardProduct[] = [];
|
||||
const itemsCount = wrapper.readInt();
|
||||
|
||||
for(let j = 0; j < itemsCount; j++)
|
||||
@ -58,7 +58,7 @@ export class TalentTrackParser implements IMessageParser
|
||||
const name = wrapper.readString();
|
||||
const unknownInt = wrapper.readInt();
|
||||
|
||||
levelItems.push(new TalentTrackLevelItem(name, unknownInt));
|
||||
levelItems.push(new TalentTrackRewardProduct(name, unknownInt));
|
||||
}
|
||||
|
||||
this._levels.push(new TalentTrackLevel(levelId, levelState, levelAchievements, levelPerks, levelItems));
|
@ -0,0 +1,21 @@
|
||||
export class TalentTrackRewardProduct
|
||||
{
|
||||
private _productCode: string;
|
||||
private _vipDays: number;
|
||||
|
||||
constructor(name: string, unknownInt: number)
|
||||
{
|
||||
this._productCode = name;
|
||||
this._vipDays = unknownInt;
|
||||
}
|
||||
|
||||
public get productCode(): string
|
||||
{
|
||||
return this._productCode;
|
||||
}
|
||||
|
||||
public get vipDays(): number
|
||||
{
|
||||
return this._vipDays;
|
||||
}
|
||||
}
|
@ -0,0 +1,49 @@
|
||||
export class TalentTrackTask
|
||||
{
|
||||
private _id: number;
|
||||
private _requiredLevel: number;
|
||||
private _badgeCode: string;
|
||||
private _state: number;
|
||||
private _currentScore: number;
|
||||
private _totalScore: number;
|
||||
|
||||
constructor(id: number, requiredLevel: number, badgeCode: string, state: number, currentScore: number, totalScore: number)
|
||||
{
|
||||
this._id = id;
|
||||
this._requiredLevel = requiredLevel;
|
||||
this._badgeCode = badgeCode;
|
||||
this._state = state;
|
||||
this._currentScore = currentScore;
|
||||
this._totalScore = totalScore;
|
||||
}
|
||||
|
||||
public get id(): number
|
||||
{
|
||||
return this._id;
|
||||
}
|
||||
|
||||
public get requiredLevel(): number
|
||||
{
|
||||
return this._requiredLevel;
|
||||
}
|
||||
|
||||
public get badgeCode(): string
|
||||
{
|
||||
return this._badgeCode;
|
||||
}
|
||||
|
||||
public get state(): number
|
||||
{
|
||||
return this._state;
|
||||
}
|
||||
|
||||
public get currentScore(): number
|
||||
{
|
||||
return this._currentScore;
|
||||
}
|
||||
|
||||
public get totalScore(): number
|
||||
{
|
||||
return this._totalScore;
|
||||
}
|
||||
}
|
4
src/nitro/communication/messages/parser/talent/index.ts
Normal file
4
src/nitro/communication/messages/parser/talent/index.ts
Normal file
@ -0,0 +1,4 @@
|
||||
export * from './TalentTrackLevel';
|
||||
export * from './TalentTrackParser';
|
||||
export * from './TalentTrackRewardProduct';
|
||||
export * from './TalentTrackTask';
|
Loading…
Reference in New Issue
Block a user