Пример #1
0
        public BlogInfo[] getUsersBlogs(string appKey, string username, string password)
        {
            int uid = ValidateUser(username, password);
            if (uid < 1)
                throw new XmlRpcFaultException(0, "用户不存在");
            Entity.SpaceConfigInfo s = Space.Spaces.GetSpaceConfigByUserId(uid);

            BlogInfo bloginfo = new BlogInfo();
            bloginfo.blogid = s.SpaceID.ToString();
            bloginfo.blogName = s.Spacetitle;
            string forumurl = "http://" + DNTRequest.GetCurrentFullHost() + BaseConfigs.GetForumPath.ToLower();

            bloginfo.url = forumurl + "space/?uid=" + uid;
            return new BlogInfo[] { bloginfo };
        }