Exemplo n.º 1
0
 public static async Task <List <ScriptInfo> > GetScripts(ScriptRepo repo)
 {
     using (GHWebClient wc = new GHWebClient())
     {
         return(JsonConvert.DeserializeObject <List <ScriptInfo> >(await wc.DownloadStringTaskAsync(repo.ContentsUrl)).Where(x => x.FileName.EndsWith(".cs") && (x.Parent = repo) != null).ToList());
     }
 }
Exemplo n.º 2
0
 public static async Task <List <UpdateInfo> > GetReleases()
 {
     using GHWebClient wc = new GHWebClient();
     return(JsonConvert.DeserializeObject <List <UpdateInfo> >(await wc.DownloadStringTaskAsync(ApiUrl)));
 }