C# Class ImgurNet.ApiEndpoints.ConversationEndpoint

Inheritance: BaseEndpoint
Mostra file Open project: 0xdeafcafe/ImgurNet Class Usage Examples

Public Methods

Method Description
BlockConversationSenderAsync ( string username ) : Task>

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

ConversationEndpoint ( Imgur imgurClient ) : System

CreateConversationAsync ( string recipientUsername, string messageBody ) : Task>

Create a new conversation

DeleteConversationAsync ( int id ) : Task>

Delete a conversation

GetConversationAsync ( int id ) : Task>

Get list of all conversations for the authenticated in user

GetConversationListAsync ( ) : Task>

Get list of all conversations for the authenticated in user

ReportConversationSenderAsync ( string username ) : Task>

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

Method Details

BlockConversationSenderAsync() public method

Block the user from sending messages to the user that is logged in.
public BlockConversationSenderAsync ( string username ) : Task>
username string The username of the person to block
return Task>

ConversationEndpoint() public method

public ConversationEndpoint ( Imgur imgurClient ) : System
imgurClient Imgur
return System

CreateConversationAsync() public method

Create a new conversation
public CreateConversationAsync ( string recipientUsername, string messageBody ) : Task>
recipientUsername string The username of the recipient
messageBody string The body of the message
return Task>

DeleteConversationAsync() public method

Delete a conversation
public DeleteConversationAsync ( int id ) : Task>
id int The Id of the conversation
return Task>

GetConversationAsync() public method

Get list of all conversations for the authenticated in user
public GetConversationAsync ( int id ) : Task>
id int The Id of the conversation
return Task>

GetConversationListAsync() public method

Get list of all conversations for the authenticated in user
public GetConversationListAsync ( ) : Task>
return Task>

ReportConversationSenderAsync() public method

Report a user for sending messages that are against the Terms of Service.
public ReportConversationSenderAsync ( string username ) : Task>
username string The username of the sender
return Task>