示例#1
0
        BloggerPost[] IMetaWeblog.GetRecentPosts(string key, string blogid, string username, string password, int numberOfPosts)
        {
            DotNetNuke.Entities.Users.UserInfo ui = Authenticate(username, password);
            var bp = new BloggerPost();

            if (ui.UserID > 0)
            {
                var posts = new List <BloggerPost>();

                bp.content     = "test post";
                bp.dateCreated = DateTime.Now;
                bp.postid      = "1";
                bp.userid      = "1";
                // TODO: Implement your own logic to get posts and set the posts

                return(posts.ToArray());
            }
            throw new XmlRpcFaultException(0, Localization.GetString("FailedAuthentication.Text", LocalResourceFile));
        }
示例#2
0
        BloggerPost[] IMetaWeblog.GetRecentPosts(string key, string blogid, string username, string password, int numberOfPosts)
        {
            DotNetNuke.Entities.Users.UserInfo ui = Authenticate(username, password);
            var bp = new BloggerPost();
            if (ui.UserID > 0)
            {
                var posts = new List<BloggerPost>();

                bp.content = "test post";
                bp.dateCreated = DateTime.Now;
                bp.postid = "1";
                bp.userid = "1";
                // TODO: Implement your own logic to get posts and set the posts

                return posts.ToArray();
            }
            throw new XmlRpcFaultException(0, Localization.GetString("FailedAuthentication.Text", LocalResourceFile));
        }