Ejemplo n.º 1
0
 /// <summary>
 /// Makes <see cref="GithubUpdateFetcher"/>
 /// </summary>
 /// <param name="applicationName">The applications name</param>
 /// <param name="ownerUsername">The owners username</param>
 /// <param name="repoName">The name of the repo the updates are sourced from</param>
 /// <param name="updateChannel">What channel you want to look at</param>
 public GithubUpdateFetcher(string applicationName, string ownerUsername, string repoName,
                            string updateChannel = default)
 {
     @this           = this;
     ApplicationName = applicationName;
     OwnerUsername   = ownerUsername;
     RepoName        = repoName;
     UpdateChannel   = updateChannel;
 }
Ejemplo n.º 2
0
 internal GithubUpdateEntry(long releaseId, string sha1, string filename, long filesize, bool updateRequired, ref GithubUpdateFetcher githubUpdateFetcher)
 {
     ReleaseId           = releaseId;
     GithubUpdateFetcher = githubUpdateFetcher;
     Filename            = filename.Trim();
     Filesize            = filesize;
     SHA1           = sha1.Trim();
     UpdateRequired = updateRequired;
 }