UpdateChannel.cs 714 B

12345678910111213141516171819
  1. namespace PixiEditor.UpdateModule;
  2. public class UpdateChannel
  3. {
  4. public string Name { get; }
  5. public string RepositoryOwner { get; }
  6. public string RepositoryName { get; }
  7. public string ApiUrl { get; }
  8. public string IncompatibleFileApiUrl { get; }
  9. public UpdateChannel(string name, string repositoryOwner, string repositoryName)
  10. {
  11. Name = name;
  12. RepositoryOwner = repositoryOwner;
  13. RepositoryName = repositoryName;
  14. ApiUrl = $"https://api.github.com/repos/{repositoryOwner}/{repositoryName}/releases/latest";
  15. IncompatibleFileApiUrl = "https://raw.githubusercontent.com/" + $"{repositoryOwner}/{repositoryName}/" + "{0}/incompatible.json";
  16. }
  17. }