示例#1
0
        /// <summary>
        /// 取得登录校验用信息(Json格式).
        /// </summary>
        /// <returns>登录校验用信息(Json格式).</returns>
        /// <param name="iUserInfo">易接用户信息.</param>
        private string GetLoginCheckInfoJson(OneSdkUserInfo iUserInfo)
        {
            var checkInfo = new OneSdkLoginCheckInfo();

            checkInfo.Apply(iUserInfo);

            // 详细数据
            var jsonData = UtilsJson <OneSdkLoginCheckInfo> .ConvertToJsonString(checkInfo);

            if (!string.IsNullOrEmpty(jsonData))
            {
                return(jsonData);
            }
            Error("createLoginCheckURL():JsonConvert Failed!!!(Data:{0})",
                  checkInfo.ToString());
            UpdateStatus(SdkStatus.LoginCheckFailed);
            return(null);
        }
示例#2
0
        /// <summary>
        /// 取得登录校验用信息(Json格式).
        /// </summary>
        /// <returns>登录校验用信息(Json格式).</returns>
        /// <param name="iUserInfo">易接用户信息.</param>
        private string GetLoginCheckInfoJson(OneSDKUserInfo iUserInfo)
        {
            OneSDKLoginCheckInfo _checkInfo = new OneSDKLoginCheckInfo();

            if (null == _checkInfo)
            {
                this.UpdateStatus(SDKStatus.LoginCheckFailed);
                return(null);
            }
            _checkInfo.Apply(iUserInfo);

            // 详细数据
            string _jsonData = UtilsJson <OneSDKLoginCheckInfo> .ConvertToJsonString(_checkInfo);

            if (true == string.IsNullOrEmpty(_jsonData))
            {
                this.Error("createLoginCheckURL():JsonConvert Failed!!!(Data:{0})",
                           _checkInfo.ToString());
                this.UpdateStatus(SDKStatus.LoginCheckFailed);
                return(null);
            }
            return(_jsonData);
        }
示例#3
0
 /// <summary>
 /// 当前对象的字符串化文字
 /// </summary>
 /// <returns>字符串化文字</returns>
 public override string ToString()
 {
     return(UtilsJson <JsonDataBase> .ConvertToJsonString(this));
 }
示例#4
0
 /// <summary>
 /// 当前对象的字符串化文字
 /// </summary>
 /// <returns>字符串化文字</returns>
 public override string ToString()
 {
     return(UtilsJson <OptionsDataBase <T1, T2> > .ConvertToJsonString(this));
 }