Exemplo n.º 1
0
 /// <summary>
 /// Cancels or removes transfers. If transfer is in SEEDING state, stops seeding. Else, removes transfer entry. Does not remove their files.
 /// </summary>
 public async Task CancelTransfers(CancelTransfersRequest request)
 {
     await _apiClient.ExecutePostAsync("transfers/cancel", request);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Update account settings
 /// </summary>
 public async Task UpdateAccountSettings(UpdateAccountSettingsRequest request)
 {
     await _apiClient.ExecutePostAsync("account/settings", request);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Share file(s) with one or more friends
 /// </summary>
 public async Task ShareFiles(ShareFilesRequest request)
 {
     await _apiClient.ExecutePostAsync("files/share", request);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Clear events
 /// </summary>
 public async Task DeleteEvents()
 {
     await _apiClient.ExecutePostAsync("events/delete");
 }
Exemplo n.º 5
0
 /// <summary>
 /// Rename a file or folder
 /// </summary>
 public async Task RenameFile(RenameFileRequest request)
 {
     await _apiClient.ExecutePostAsync("files/rename", request);
 }
Exemplo n.º 6
0
 /// <summary>
 /// Pauses the RSS feed, so that it is not polled for new items anymore.
 /// </summary>
 public async Task PauseFeed(long feedId)
 {
     await _apiClient.ExecutePostAsync($"rss/{feedId}/pause");
 }
Exemplo n.º 7
0
 /// <summary>
 /// Send friend request
 /// </summary>
 public async Task SendFriendRequest(string username)
 {
     await _apiClient.ExecutePostAsync($"friends/{username}/request");
 }