unsub from feed
This commit is contained in:
parent
bbf090eae9
commit
c53752d305
@ -692,11 +692,21 @@ namespace ttrss_co_client.ttrss
|
||||
var apiResponse = await get<Dictionary<string, Dictionary<string, int>>>(json);
|
||||
return apiResponse["status"]["code"];
|
||||
}
|
||||
public async Task UnsubscribeFeed()
|
||||
public async Task<bool> UnsubscribeFeed(int feed_id)
|
||||
{
|
||||
assertInitialized();
|
||||
assertApiLevel(5);
|
||||
throw new NotImplementedException();
|
||||
|
||||
var json = JsonContent.Create(new
|
||||
{
|
||||
op = "unsubscribeFeed",
|
||||
sid = this.SessionId,
|
||||
feed_id = feed_id.ToString()
|
||||
});
|
||||
|
||||
var apiResponse = await get<Dictionary<string, string>>(json);
|
||||
|
||||
return apiResponse.ContainsKey("status") && apiResponse["status"]?.ToLower() == "ok";
|
||||
}
|
||||
public async Task GetFeedTree()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user