订阅或退订指定用户状态相关错误码

最近更新时间:2022-09-20 05:17:40

typedef NS_ENUM(NSInteger, ARtmPeerSubscriptionStatusErrorCode) {
    
    /**
     0: 方法调用成功,或订阅退订操作成功。
     */
    ARtmPeerSubscriptionStatusErrorOk = 0,
    
    /**
     1: 通用未知错误。订阅或退订操作失败。
     */
    ARtmPeerSubscriptionStatusErrorFailure = 1,
    
    /**
     2: 无效的输入参数。
     */
    ARtmPeerSubscriptionStatusErrorInvalidArgument = 2,
    
    /**
     3: 预留错误码
     */
    ARtmPeerSubscriptionStatusErrorRejected = 3,
    
    /**
     4: The SDK fails to receive a response from the server in 10 seconds. The current timeout is set as 10 seconds. Possible reasons: The user is in the \ref A::rtm::CONNECTION_STATE_ABORTED "CONNECTION_STATE_ABORTED" or \ref A::rtm::CONNECTION_STATE_RECONNECTING "CONNECTION_STATE_RECONNECTING" state.
     */
    ARtmPeerSubscriptionStatusErrorTimeout = 4,
    
    /**
     5: 方法调用过于频繁。超过 10 次每 5 秒的限制。
     */
    ARtmPeerSubscriptionStatusErrorTooOften = 5,
    
    /**
     6: 订阅人数超过 512 人的上限。
     */
    ARtmPeerSubscriptionStatusErrorOverflow = 6,
    
    /**
     101: ar云平台 RTM 服务未完成初始化。
     */
    ARtmPeerSubscriptionStatusErrorNotInitialized = 101,
    
    /**
     102: 本次操作前未调用 loginByToken 方法或者 loginByToken 方法调用未成功。
     */
    ARtmPeerSubscriptionStatusErrorNotLoggedIn = 102,
};