public Task <NicoRepoEntriesResponse> GetLoginUserNicoRepoEntriesAsync(NicoRepoType type, NicoRepoDisplayTarget target, string untilId = null) { Dictionary <string, string> param = new Dictionary <string, string>(); if (type != NicoRepoType.All) { param.Add("object%5Btype%5D", type.ToString().ToCamelCase()); param.Add("type", type switch { NicoRepoType.Video => "upload", NicoRepoType.Program => "onair", NicoRepoType.Image => "add", NicoRepoType.ComicStory => "add", NicoRepoType.Article => "add", NicoRepoType.Game => "add", _ => throw new NotSupportedException() });
public Task <NicoRepoEntriesResponse> GetLoginUserNicoRepoAsync(NicoRepoType type, NicoRepoDisplayTarget target, NicoRepoEntriesResponse prevRes = null) { return(_niconicoSession.ToolkitContext.NicoRepo.GetLoginUserNicoRepoEntriesAsync(type, target, prevRes?.Meta?.MinId)); }