C# 클래스 Imgur.API.Endpoints.Impl.ConversationEndpoint

Implementation of conversation related actions.
상속: EndpointBase, IConversationEndpoint
파일 보기 프로젝트 열기: DamienDennehy/Imgur.API 1 사용 예제들

Private Properties

프로퍼티 타입 설명
ConversationEndpoint System

공개 메소드들

메소드 설명
BlockSenderAsync ( string username ) : Task

Block the user from sending messages to the user that is logged in. OAuth authentication required.

ConversationEndpoint ( IApiClient apiClient ) : System

Initializes a new instance of the ConversationEndpoint class.

CreateConversationAsync ( string recipient, string body ) : Task

Create a new message. OAuth authentication required.

DeleteConversationAsync ( string conversationId ) : Task

Delete a conversation by the given id. OAuth authentication required.

GetConversationAsync ( string conversationId, int page = null, int offset = null ) : Task

Get information about a specific conversation. Includes messages. OAuth authentication required.

GetConversationsAsync ( ) : Task>

Get list of all conversations for the logged in user. OAuth authentication required.

ReportSenderAsync ( string username ) : Task

Report a user for sending messages that are against the Terms of Service. OAuth authentication required.

비공개 메소드들

메소드 설명
ConversationEndpoint ( IApiClient apiClient, HttpClient httpClient ) : System

Initializes a new instance of the ConversationEndpoint class.

메소드 상세

BlockSenderAsync() 공개 메소드

Block the user from sending messages to the user that is logged in. OAuth authentication required.
/// Thrown when a null reference is passed to a method that does not accept it as a /// valid argument. /// Thrown when an error is found in a response from an Imgur endpoint. Thrown when an error is found in a response from a Mashape endpoint.
public BlockSenderAsync ( string username ) : Task
username string The sender that should be blocked.
리턴 Task

ConversationEndpoint() 공개 메소드

Initializes a new instance of the ConversationEndpoint class.
public ConversationEndpoint ( IApiClient apiClient ) : System
apiClient IApiClient The type of client that will be used for authentication.
리턴 System

CreateConversationAsync() 공개 메소드

Create a new message. OAuth authentication required.
/// Thrown when a null reference is passed to a method that does not accept it as a /// valid argument. /// Thrown when an error is found in a response from an Imgur endpoint. Thrown when an error is found in a response from a Mashape endpoint.
public CreateConversationAsync ( string recipient, string body ) : Task
recipient string The recipient username, this person will receive the message.
body string The message itself, similar to the body of an email.
리턴 Task

DeleteConversationAsync() 공개 메소드

Delete a conversation by the given id. OAuth authentication required.
/// Thrown when a null reference is passed to a method that does not accept it as a /// valid argument. /// Thrown when an error is found in a response from an Imgur endpoint. Thrown when an error is found in a response from a Mashape endpoint.
public DeleteConversationAsync ( string conversationId ) : Task
conversationId string The conversation id.
리턴 Task

GetConversationAsync() 공개 메소드

Get information about a specific conversation. Includes messages. OAuth authentication required.
/// Thrown when a null reference is passed to a method that does not accept it as a /// valid argument. /// Thrown when an error is found in a response from an Imgur endpoint. Thrown when an error is found in a response from a Mashape endpoint.
public GetConversationAsync ( string conversationId, int page = null, int offset = null ) : Task
conversationId string The conversation id.
page int /// Page of message thread. Starting at 1 for the most recent 25 messages and counting upwards. Default: /// null ///
offset int Additional offset in current page.
리턴 Task

GetConversationsAsync() 공개 메소드

Get list of all conversations for the logged in user. OAuth authentication required.
/// Thrown when a null reference is passed to a method that does not accept it as a /// valid argument. /// Thrown when an error is found in a response from an Imgur endpoint. Thrown when an error is found in a response from a Mashape endpoint.
public GetConversationsAsync ( ) : Task>
리턴 Task>

ReportSenderAsync() 공개 메소드

Report a user for sending messages that are against the Terms of Service. OAuth authentication required.
/// Thrown when a null reference is passed to a method that does not accept it as a /// valid argument. /// Thrown when an error is found in a response from an Imgur endpoint. Thrown when an error is found in a response from a Mashape endpoint.
public ReportSenderAsync ( string username ) : Task
username string The sender that should be reported.
리턴 Task