예제 #1
0
        /// <summary>
        /// 判断用户是否存在
        /// </summary>
        /// <param name="content"></param>
        /// <param name="type"></param>
        /// <returns></returns>
        public static bool ExistUser(string content, ExistUserEnum type)
        {
            var u =
                YunClient.Instance.Execute(new ExistUserRequest
            {
                Content = content,
                Type    = (int)type
            });

            return(!u.IsError && u.Result);
        }
예제 #2
0
        /// <summary>
        /// 判断用户是否存在
        /// </summary>
        /// <param name="content"></param>
        /// <param name="type"></param>
        /// <returns></returns>
        public static bool ExistUser(string content, ExistUserEnum type)
        {
            var u =
                YunClient.Instance.Execute(new ExistUserRequest
                {
                    Content = content,
                    Type = (int)type
                });

            return !u.IsError && u.Result;
        }