IAppVersion.cs 793 B

1234567891011121314151617181920212223242526272829
  1. namespace InABox.Avalonia.Platform;
  2. /// <summary>
  3. /// LatestVersion plugin
  4. /// </summary>
  5. public interface IAppVersion : ILoggable
  6. {
  7. /// <summary>
  8. /// Gets the version number of the current app's installed version.
  9. /// </summary>
  10. /// <value>The current app's installed version number.</value>
  11. string InstalledVersionNumber();
  12. /// <summary>
  13. /// Checks if the current app is the latest version available in the public store.
  14. /// </summary>
  15. /// <returns>True if the current app is the latest version available, false otherwise.</returns>
  16. Task<bool> IsUsingLatestVersion();
  17. Task<AppInfo> GetLatestVersion(bool force);
  18. /// <summary>
  19. /// Opens the current app in the public store.
  20. /// </summary>
  21. Task OpenAppInStore();
  22. }