C# Class Rapptor.Api.PostsService

Inheritance: IPostsService
Afficher le fichier Open project: jdscolam/Rapptor Class Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

CreatePost() public méthode

Creates a new post as the current AccessToken.
public CreatePost ( CreatePostRequest createPostRequest ) : ResponseEnvelope
createPostRequest Rapptor.Domain.Request.CreatePostRequest
Résultat ResponseEnvelope

DeletePost() public méthode

Deletes a post by postId as the current AccessToken.
public DeletePost ( string postId ) : ResponseEnvelope
postId string
Résultat ResponseEnvelope

GetGeneralParameters() public static méthode

Parses a PostStreamGeneralParameters into the proper request parameters for App.net.
public static GetGeneralParameters ( PostStreamGeneralParameters postStreamGeneralParameters ) : IEnumerable
postStreamGeneralParameters PostStreamGeneralParameters
Résultat IEnumerable

GetPostRequestParameters() public static méthode

Parses a CreatePostRequest instance into the proper request parameters for App.net.
public static GetPostRequestParameters ( CreatePostRequest createPostRequest ) : IEnumerable
createPostRequest Rapptor.Domain.Request.CreatePostRequest
Résultat IEnumerable

PostsService() public méthode

public PostsService ( IApiCaller apiCaller ) : System.Collections.Generic
apiCaller IApiCaller
Résultat System.Collections.Generic

Repost() public méthode

public Repost ( string postId ) : ResponseEnvelope
postId string
Résultat ResponseEnvelope

RetrieveCurrentUsersStream() public méthode

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
Résultat ResponseEnvelope>

RetrieveGlobalStream() public méthode

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
Résultat ResponseEnvelope>

RetrievePost() public méthode

Retrieves a post by postId.
public RetrievePost ( string postId ) : ResponseEnvelope
postId string
Résultat ResponseEnvelope

RetrievePostReplies() public méthode

Retrieves a list of posts that have replied to the given postId.
public RetrievePostReplies ( string postId, PostStreamGeneralParameters postStreamGeneralParameters = null ) : ResponseEnvelope>
postId string
postStreamGeneralParameters PostStreamGeneralParameters
Résultat ResponseEnvelope>

RetrievePostsCreatedByUser() public méthode

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
Résultat ResponseEnvelope>

RetrievePostsMentioningUser() public méthode

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
Résultat ResponseEnvelope>

RetrievePostsStarredByUser() public méthode

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
Résultat ResponseEnvelope>

RetrieveTaggedPosts() public méthode

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
Résultat ResponseEnvelope>

StarPost() public méthode

public StarPost ( string postId ) : ResponseEnvelope
postId string
Résultat ResponseEnvelope

Unrepost() public méthode

public Unrepost ( string postId ) : ResponseEnvelope
postId string
Résultat ResponseEnvelope

UnstarPost() public méthode

public UnstarPost ( string postId ) : ResponseEnvelope
postId string
Résultat ResponseEnvelope