C# Class ImgurNet.ApiEndpoints.ConversationEndpoint

Inheritance: BaseEndpoint
Afficher le fichier Open project: 0xdeafcafe/ImgurNet Class Usage Examples

Méthodes publiques

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

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

ConversationEndpoint() public méthode

public ConversationEndpoint ( Imgur imgurClient ) : System
imgurClient Imgur
Résultat System

CreateConversationAsync() public méthode

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

DeleteConversationAsync() public méthode

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

GetConversationAsync() public méthode

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

GetConversationListAsync() public méthode

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

ReportConversationSenderAsync() public méthode

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