C# Класс Rapptor.Api.PostsService

Наследование: IPostsService
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CreatePost ( CreatePostRequest createPostRequest ) : ResponseEnvelope

Creates a new post as the current AccessToken.

DeletePost ( string postId ) : ResponseEnvelope

Deletes a post by postId as the current AccessToken.

GetGeneralParameters ( PostStreamGeneralParameters postStreamGeneralParameters ) : IEnumerable

Parses a PostStreamGeneralParameters into the proper request parameters for App.net.

GetPostRequestParameters ( CreatePostRequest createPostRequest ) : IEnumerable

Parses a CreatePostRequest instance into the proper request parameters for App.net.

PostsService ( IApiCaller apiCaller ) : System.Collections.Generic
Repost ( string postId ) : ResponseEnvelope
RetrieveCurrentUsersStream ( PostStreamGeneralParameters postStreamGeneralParameters = null ) : ResponseEnvelope>

Retrieves the stream for the current AccessToken. NOTE: Unless changed by the postStreamGeneralParameters, only the latest 20 posts will be returned.

RetrieveGlobalStream ( PostStreamGeneralParameters postStreamGeneralParameters = null ) : ResponseEnvelope>

Retrieves the global stream for the current AccessToken. NOTE: Unless changed by the postStreamGeneralParameters, only the latest 20 posts will be returned.

RetrievePost ( string postId ) : ResponseEnvelope

Retrieves a post by postId.

RetrievePostReplies ( string postId, PostStreamGeneralParameters postStreamGeneralParameters = null ) : ResponseEnvelope>

Retrieves a list of posts that have replied to the given postId.

RetrievePostsCreatedByUser ( string userId, PostStreamGeneralParameters postStreamGeneralParameters = null ) : ResponseEnvelope>

Retrieves a list of posts created by a given userId.

RetrievePostsMentioningUser ( string userId, PostStreamGeneralParameters postStreamGeneralParameters = null ) : ResponseEnvelope>

Retrieves a list of posts where the given userId was mentioned.

RetrievePostsStarredByUser ( string userId, PostStreamGeneralParameters postStreamGeneralParameters = null ) : ResponseEnvelope>

Retrieves a list of posts starred by a given userId.

RetrieveTaggedPosts ( string hashtag, PostStreamGeneralParameters postStreamGeneralParameters = null ) : ResponseEnvelope>

Retrieves posts matching the given hashtag. NOTE: Unless changed by the postStreamGeneralParameters, only the latest 20 posts will be returned.

StarPost ( string postId ) : ResponseEnvelope
Unrepost ( string postId ) : ResponseEnvelope
UnstarPost ( string postId ) : ResponseEnvelope

Описание методов

CreatePost() публичный Метод

Creates a new post as the current AccessToken.
public CreatePost ( CreatePostRequest createPostRequest ) : ResponseEnvelope
createPostRequest Rapptor.Domain.Request.CreatePostRequest
Результат ResponseEnvelope

DeletePost() публичный Метод

Deletes a post by postId as the current AccessToken.
public DeletePost ( string postId ) : ResponseEnvelope
postId string
Результат ResponseEnvelope

GetGeneralParameters() публичный статический Метод

Parses a PostStreamGeneralParameters into the proper request parameters for App.net.
public static GetGeneralParameters ( PostStreamGeneralParameters postStreamGeneralParameters ) : IEnumerable
postStreamGeneralParameters PostStreamGeneralParameters
Результат IEnumerable

GetPostRequestParameters() публичный статический Метод

Parses a CreatePostRequest instance into the proper request parameters for App.net.
public static GetPostRequestParameters ( CreatePostRequest createPostRequest ) : IEnumerable
createPostRequest Rapptor.Domain.Request.CreatePostRequest
Результат IEnumerable

PostsService() публичный Метод

public PostsService ( IApiCaller apiCaller ) : System.Collections.Generic
apiCaller IApiCaller
Результат System.Collections.Generic

Repost() публичный Метод

public Repost ( string postId ) : ResponseEnvelope
postId string
Результат ResponseEnvelope

RetrieveCurrentUsersStream() публичный Метод

Retrieves the stream for the current AccessToken. NOTE: Unless changed by the postStreamGeneralParameters, only the latest 20 posts will be returned.
public RetrieveCurrentUsersStream ( PostStreamGeneralParameters postStreamGeneralParameters = null ) : ResponseEnvelope>
postStreamGeneralParameters PostStreamGeneralParameters
Результат ResponseEnvelope>

RetrieveGlobalStream() публичный Метод

Retrieves the global stream for the current AccessToken. NOTE: Unless changed by the postStreamGeneralParameters, only the latest 20 posts will be returned.
public RetrieveGlobalStream ( PostStreamGeneralParameters postStreamGeneralParameters = null ) : ResponseEnvelope>
postStreamGeneralParameters PostStreamGeneralParameters
Результат ResponseEnvelope>

RetrievePost() публичный Метод

Retrieves a post by postId.
public RetrievePost ( string postId ) : ResponseEnvelope
postId string
Результат ResponseEnvelope

RetrievePostReplies() публичный Метод

Retrieves a list of posts that have replied to the given postId.
public RetrievePostReplies ( string postId, PostStreamGeneralParameters postStreamGeneralParameters = null ) : ResponseEnvelope>
postId string
postStreamGeneralParameters PostStreamGeneralParameters
Результат ResponseEnvelope>

RetrievePostsCreatedByUser() публичный Метод

Retrieves a list of posts created by a given userId.
public RetrievePostsCreatedByUser ( string userId, PostStreamGeneralParameters postStreamGeneralParameters = null ) : ResponseEnvelope>
userId string May be a userId, Username, or "me" for the current user.
postStreamGeneralParameters PostStreamGeneralParameters
Результат ResponseEnvelope>

RetrievePostsMentioningUser() публичный Метод

Retrieves a list of posts where the given userId was mentioned.
public RetrievePostsMentioningUser ( string userId, PostStreamGeneralParameters postStreamGeneralParameters = null ) : ResponseEnvelope>
userId string May be a userId, Username, or "me" for the current user.
postStreamGeneralParameters PostStreamGeneralParameters
Результат ResponseEnvelope>

RetrievePostsStarredByUser() публичный Метод

Retrieves a list of posts starred by a given userId.
public RetrievePostsStarredByUser ( string userId, PostStreamGeneralParameters postStreamGeneralParameters = null ) : ResponseEnvelope>
userId string May be a userId, Username, or "me" for the current user.
postStreamGeneralParameters PostStreamGeneralParameters
Результат ResponseEnvelope>

RetrieveTaggedPosts() публичный Метод

Retrieves posts matching the given hashtag. NOTE: Unless changed by the postStreamGeneralParameters, only the latest 20 posts will be returned.
public RetrieveTaggedPosts ( string hashtag, PostStreamGeneralParameters postStreamGeneralParameters = null ) : ResponseEnvelope>
hashtag string The hashtag to search without the # character.
postStreamGeneralParameters PostStreamGeneralParameters
Результат ResponseEnvelope>

StarPost() публичный Метод

public StarPost ( string postId ) : ResponseEnvelope
postId string
Результат ResponseEnvelope

Unrepost() публичный Метод

public Unrepost ( string postId ) : ResponseEnvelope
postId string
Результат ResponseEnvelope

UnstarPost() публичный Метод

public UnstarPost ( string postId ) : ResponseEnvelope
postId string
Результат ResponseEnvelope