# Interface: RequestSubscribeSystemMessageParams ‹Err

RequestSubscribeSystemMessageParamsErr›()

# Type parameters:

Err: MogsRes

# Type parameters

Err: MogsRes

# Properties

# Readonly msgTypeList

msgTypeList: keyof string[]

系统订阅消息类型列表

description 一次调用最多可订阅 3 种类型的消息。

description 目前支持两种类型:

  • 'SYS_MSG_TYPE_INTERACTIVE':好友互动提醒;
  • 'SYS_MSG_TYPE_RANK':排行榜超越提醒;

Returns: keyof string[]

# Methods

# Optional complete

complete(res: RequestSubscribeSystemMessageRes | Err): void

Inherited from MogsParams.complete

接口调用结束的回调函数(调用成功、失败都会执行)

# 参数:

属性 类型
res RequestSubscribeSystemMessageRes | Err

# 返回值:

void


# Optional fail

fail(err: Err): void

Inherited from MogsParams.fail

接口调用失败的回调函数

# 参数:

属性 类型
err Err

# 返回值:

void


# Optional success

success(res: RequestSubscribeSystemMessageRes): void

Inherited from MogsParams.success

接口调用成功的回调函数

# 参数:

属性 类型
res RequestSubscribeSystemMessageRes

RequestSubscribeSystemMessageRes

属性 类型 描述
errMsg string API 调用成功/失败的消息

# 返回值:

void