You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
146 lines
3.4 KiB
146 lines
3.4 KiB
1 year ago
|
//
|
||
|
// JCAccountConstants.h
|
||
|
// JCSDKOC
|
||
|
//
|
||
|
// Created by chendi on 2018/6/21.
|
||
|
// Copyright © 2018 juphoon. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import <Foundation/Foundation.h>
|
||
|
|
||
|
/// @addtogroup 错误码
|
||
|
/// @{
|
||
|
|
||
|
/**
|
||
|
* 账号错误原因
|
||
|
*/
|
||
|
typedef NS_ENUM(NSInteger, JCAccountReason) {
|
||
|
/// 正常
|
||
|
JCAccountReasonNone,
|
||
|
/// 未登录
|
||
|
JCAccountReasonNotLogin,
|
||
|
/// 函数调用失败
|
||
|
JCAccountReasonCallFunctionError,
|
||
|
/// 超时
|
||
|
JCAccountReasonTimeOut,
|
||
|
/// 网络异常
|
||
|
JCAccountReasonNetWork,
|
||
|
/// 参数错误
|
||
|
JCAccountReasonInvalid,
|
||
|
/// 内部获得 Agent 失败
|
||
|
JCAccountReasonGetAgent,
|
||
|
/// 服务器错误
|
||
|
JCAccountReasonServer,
|
||
|
/// 更新时间无效
|
||
|
JCAccountReasonUpdateTimeInvalid,
|
||
|
/// 禁止操作
|
||
|
JCAccountReasonPermissionDenied,
|
||
|
/// Uid 找不到
|
||
|
JCAccountReasonUidNotFound,
|
||
|
/// 关系不存在
|
||
|
JCAccountReasonChangeNotExists,
|
||
|
/// 关系已存在
|
||
|
JCAccountReasonAddAlreadyExists,
|
||
|
/// 不能添加自己
|
||
|
JCAccountReasonAddSelf,
|
||
|
/// 关系类型错误
|
||
|
JCAccountReasonRelationTypeInvalid,
|
||
|
/// 删除的关系不存在
|
||
|
JCAccountReasonRemoveNotExist,
|
||
|
/// 状态类型错误
|
||
|
JCAccountReasonStatusTypeError,
|
||
|
/// 只允许一个创建者
|
||
|
JCAccountReasonWriteOwnerError,
|
||
|
/// 写入属性错误
|
||
|
JCAccountReasonSetWriteProperty,
|
||
|
/// 类型不被允许
|
||
|
JCAccountReasonApplyTypeGranted,
|
||
|
/// 缺少群名
|
||
|
JCAccountReasonLackOfGroupName,
|
||
|
/// 未知的群类型
|
||
|
JCAccountReasonUnknownGroupType,
|
||
|
/// 非群主
|
||
|
JCAccountReasonOwnerNotInvoker,
|
||
|
/// 不在群中
|
||
|
JCAccountReasonNotInGroup,
|
||
|
/// 在黑名单中
|
||
|
JCAccountReasonBlacklist,
|
||
|
/// 群已满
|
||
|
JCAccountReasonCapacityFull,
|
||
|
/// 不属于群
|
||
|
JCAccountReasonNotBelongToGroup,
|
||
|
/// 权限不够
|
||
|
JCAccountReasonWriteExceedRight,
|
||
|
/// 查询Uid错误
|
||
|
JCAccountReasonQueryUid,
|
||
|
/// 数据库错误
|
||
|
JCAccountReasonDBError,
|
||
|
/// 没找到关系
|
||
|
JCAccountReasonRelationNotFound,
|
||
|
/// 无属性
|
||
|
JCAccountReasonRelationNoProperty,
|
||
|
/// 其他错误
|
||
|
JCAccountReasonOther = 100
|
||
|
};
|
||
|
/// @}
|
||
|
|
||
|
/// @addtogroup 账号模块
|
||
|
///@{
|
||
|
|
||
|
/**
|
||
|
* 用户状态
|
||
|
*/
|
||
|
typedef NS_ENUM(NSInteger, JCAccountUserStatus) {
|
||
|
/// 查询异常
|
||
|
JCAccountUserStatusError,
|
||
|
/// 用户未注册
|
||
|
JCAccountUserStatusNotFound,
|
||
|
/// 用户离线
|
||
|
JCAccountUserStatusOffline,
|
||
|
/// 用户推送状态
|
||
|
JCAccountUserStatusPush,
|
||
|
/// 用户在线
|
||
|
JCAccountUserStatusOnline
|
||
|
};
|
||
|
|
||
|
/**
|
||
|
* 联系人变化状态
|
||
|
*/
|
||
|
typedef NS_ENUM(NSInteger, JCAccountContactChangeState) {
|
||
|
/// 新增
|
||
|
JCAccountContactChangeStateAdd = 0,
|
||
|
/// 更新
|
||
|
JCAccountContactChangeStateUpdate,
|
||
|
/// 删除
|
||
|
JCAccountContactChangeStateRemove,
|
||
|
};
|
||
|
|
||
|
/**
|
||
|
* 联系人关系类型
|
||
|
*/
|
||
|
typedef NS_ENUM(NSInteger, JCAccountContactType) {
|
||
|
/// 无关系
|
||
|
JCAccountContactTypeNone = -1,
|
||
|
/// 陌生人
|
||
|
JCAccountContactTypeStranger = 15,
|
||
|
/// 系统联系人
|
||
|
JCAccountContactTypeSystem = 18,
|
||
|
};
|
||
|
/// @}
|
||
|
|
||
|
/// @cond Doxygen_All
|
||
|
/**
|
||
|
* 自定义状态
|
||
|
*/
|
||
|
typedef NS_ENUM(NSInteger, JCAccountCustomStatusType) {
|
||
|
/// 自定义状态0
|
||
|
JCAccountCustomStatusType0 = 0,
|
||
|
/// 自定义状态1
|
||
|
JCAccountCustomStatusType1 = 1,
|
||
|
/// 自定义状态2
|
||
|
JCAccountCustomStatusType2 = 2,
|
||
|
/// 自定义状态3
|
||
|
JCAccountCustomStatusType3 = 3,
|
||
|
};
|
||
|
/// @endCond
|