Esempio n. 1
0
        /// <summary>
        /// 获取用户是否接受定向提问
        /// </summary>
        /// <param name="userId">用户id</param>
        /// <returns>是否接受定向提问</returns>
        public bool IsAcceptQuestion(long userId)
        {
            OwnerDataService ownerDataService = new OwnerDataService(TenantTypeIds.Instance().User());

            string accept = ownerDataService.GetString(userId, OwnerDataKeys.Instance().AcceptQuestion());

            return(string.IsNullOrEmpty(accept) ? false : bool.Parse(accept));
        }
Esempio n. 2
0
        /// <summary>
        /// 获取用户在用户在问答中的简介
        /// </summary>
        /// <param name="userId">用户id</param>
        /// <returns>用户在问答中的简介</returns>
        public string GetUserDescription(long userId)
        {
            OwnerDataService ownerDataService = new OwnerDataService(TenantTypeIds.Instance().User());

            return(ownerDataService.GetString(userId, OwnerDataKeys.Instance().UserDescription()));
        }