Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

Protected _bindedCustomEventHandlers

_bindedCustomEventHandlers: CustomEventHandlers = ...

绑定了 this 上下文的 message 以外事件处理器

Protected _bindedMsgHandlers

_bindedMsgHandlers: MsgHandlers = ...

绑定了 this 上下文的 msg 处理器

Protected _bindedSocketIOEventsHandlers

_bindedSocketIOEventsHandlers: CustomEventHandlers = ...

socket.io 事件处理

Protected _liveApi

_liveApi: default

直播后台 api ajax 工具

Protected _otherApi

_otherApi: default

其他 api ajax 工具

Protected _watchApi

_watchApi: default

观看页接口工具

answer

answerQuestionResCode

answerQuestionResCode: typeof AnswerQuestionResCode

提交答案响应状态码常量

events

events: typeof QuestionnaireEvents

questionItemTypes

questionItemTypes: typeof QuestionItemTypes

questionnaireList

questionnaireList: QuestionContent<QuestionItem>[] = []

Private Optional receivedResultPromise

receivedResultPromise: Promise<void>

socketIOEvents

socketIOEvents: typeof SocketIOEvents = ...

socket.io 原生事件名称

Accessors

Protected SDKEventEmitter

  • get SDKEventEmitter(): EventEmitter
  • Returns EventEmitter

Methods

answerQuestion

  • answerQuestion(answers: string[], questionnaireId: string): Promise<AnswerQuestionRes>
  • 提交问卷

    Parameters

    • answers: string[]

      提交问卷答案, 字符串数组如['a','cd','测试']

    • questionnaireId: string

      问卷Id

    Returns Promise<AnswerQuestionRes>

    状态码

Protected asyncGetXAuthToken

  • asyncGetXAuthToken(data: asyncGetterGeneratorParams): Promise<unknown>
  • Parameters

    • data: asyncGetterGeneratorParams

    Returns Promise<unknown>

bindSocketIOEvents

  • bindSocketIOEvents(): void

commitEvaluationAnswer

destroy

  • destroy(): void
  • 销毁实例

    Returns void

getAppPendantList

getEvaluationContent

  • 获取风险测评问卷内容

    Parameters

    • isMock: boolean

    Returns Promise<EvaluationQuestionnaireData>

    风险测评问卷内容

getOssQuestion

  • Parameters

    • ossUrl: string

    Returns Promise<QuestionItem[]>

getQnTimer

  • getQnTimer(questionnaireId: string): Promise<{ leftTime: number }>
  • 获取考试问卷倒计时

    Parameters

    • questionnaireId: string

    Returns Promise<{ leftTime: number }>

getQuestionnaireList

Protected handlePersonResult

  • Parameters

    Returns Promise<void>

off

on

trackLog

  • trackLog(data: ITrackEventData): Promise<void>
  • Parameters

    • data: ITrackEventData

    Returns Promise<void>

unbindCustomEvent

unbindEventHandlers

Protected wrapCustomHandlers

Protected wrapSocketIOEventHandlers

Generated using TypeDoc