/// <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; }
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; }