コード例 #1
0
        /// <summary>
        /// 初始化用户信息
        /// </summary>
        /// <param name="id"></param>
        private async void InitUserInfo(string id)
        {
            var temperrorCode = 0;
            var temperrorMsg  = string.Empty;
            await Task.Run(() =>
            {
                CurrentProfile = AntSdkService.AntSdkGetUserInfo(id, ref temperrorCode, ref temperrorMsg);
            });

            SetUserInfo();
        }
コード例 #2
0
        /// <summary>
        /// 查询用户信息
        /// </summary>
        /// <param name="id"></param>
        public static AntSdkUserInfo QueryUserInfo(string id)
        {
            var isExist = AntSdkService.AntSdkListContactsEntity.users.FirstOrDefault(v => v.userId == id);

            if (isExist == null)
            {
                return(null);
            }
            var errCode = 0;
            var errMsg  = string.Empty;
            //TODO:AntSdk_Modify
            //DONE:AntSdk_Modify
            var user = AntSdkService.AntSdkGetUserInfo(id, ref errCode, ref errMsg);

            return(user ?? null);
        }