C# 클래스 Rapptor.Api.PostsService

상속: IPostsService
파일 보기 프로젝트 열기: jdscolam/Rapptor 1 사용 예제들

공개 메소드들

메소드 설명
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