public async Task <Timeline> GetUserTimelineAsync(string token) { ICoubService coubService = new CoubService(token); var timeline = await coubService.Timelines.GetUserTimelineAsync(1, 20); return(timeline); }
public async Task <IEnumerable <Tag> > SearchTagsAsync(string search) { ICoubService coubService = new CoubService(string.Empty); var searchResult = await coubService.GeneralSearch.SearchTagsAsync(search); return(searchResult); }
public async Task <Timeline> GetTegTimelineAsync(string token, string tag) { ICoubService coubService = new CoubService(token); var timeline = await coubService.Timelines.GetTagFeedTimelineAsync(tag, 1, 1, TimelineManager.ChannelTimelineOrderBy.LikesCount); return(timeline); }
public async Task <GeneralSearchResult> SearchCoubsAsync(string search) { ICoubService coubService = new CoubService(string.Empty); var searchResult = await coubService.GeneralSearch.SearchCoubsAsync(search, 1, 20, SearchService.CoubSearchOrderBy.ViewsCount); return(searchResult); }
public async Task <Coub> MakeRecoubAsync(string token, int coubId, int channelId) { ICoubService coubService = new CoubService(token); var recoub = await coubService.Recoubs.MakeRecoubAsync(coubId, channelId); return(recoub); }
public async Task <Coub> GetCoubAsync(string token, string permalink) { ICoubService coubService = new CoubService(token); var coub = await coubService.Coubs.GetCoubAsync(permalink); return(coub); }
public async Task <Channel> GetChannelAsync(string token, string channelId) { ICoubService coubService = new CoubService(token); var channel = await coubService.Channels.GetChannelAsync(channelId); return(channel); }
public async Task <Coub> EditCoubAsync(string token, string permalink, string title, string[] tags) { ICoubService coubService = new CoubService(token); var coub = await coubService.Coubs.GetCoubAsync(permalink); var coubEdit = await coubService.Coubs.EditCoubAsync(coub.Permalink, new EditCoub() { Title = title, ChannelId = coub.ChannelId, OriginalVisibilityType = [email protected](), Tags = tags }); return(coubEdit); }