BlueFenix.MetaWeblog/IMetaWeblog.cs

(完整代码) 2KB

using System;
using CookComputing.XmlRpc;

namespace BlueFenix.MetaWeblog
{
    /// <summary>
    /// Summary description for IMetaWeblog.
    /// </summary>
    public interface IMetaWeblog
    {
        [return: XmlRpcReturnValue(Description = "Always returns true.")]
        [XmlRpcMethod("metaWeblog.deletePost", Description = "Deletes a post.")]
        bool metaWeblogDeletePost(string appKey, string postid, string username, string password, [XmlRpcParameter(Description = "Where applicable, this specifies whether the blog should be republished after the post has been deleted.")] bool publish);

        [XmlRpcMethod("metaWeblog.editPost", Description = "Updates and existing post to a designated blog using the metaWeblog API. Returns true if completed.")]
        bool metaWeblogEditPost(string postid, string username, string password, Post post, bool publish);

        [XmlRpcMethod("metaWeblog.getCategories", Description = "Retrieves a list of valid categories for a post using the metaWeblog API. Returns the metaWeblog categories struct collection.")]
        CategoryInfo[] metaWeblogGetCategories(string blogid, string username, string password);

        [XmlRpcMethod("metaWeblog.getPost", Description = "Retrieves an existing post using the metaWeblog API. Returns the metaWeblog struct.")]
        Post metaWeblogGetPost(string postid, string username, string password);

        [XmlRpcMethod("metaWeblog.getRecentPosts", Description = "Retrieves a list of the most recent existing post using the metaWeblog API. Returns the metaWeblog struct collection.")]
        Post[] metaWeblogGetRecentPosts(string blogid, string username, string password, int numberOfPosts);

        [XmlRpcMethod("metaWeblog.getUsersBlogs", Description = "Returns information on all the blogs a given user is a member.")]
        BlogInfo[] metaWeblogGetUsersBlogs(string appKey, string username, string password);

        [XmlRpcMethod("metaWeblog.newPost", Description = "Makes a new post to a designated blog using the metaWeblog API. Returns postid as a string.")]
        string metaWeblogNewPost(string blogid, string username, string password, Post post, bool publish);

        [XmlRpcMethod("metaWeblog.newMediaObject", Description = "Uploads a file to your webserver. Returns the URL of the uploaded file.")]
        MediaObjectLocation metaWeblogNewMediaObject(string blogid, string username, string password, MediaObject file);
    }
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。