using System; using System.Threading.Tasks; namespace InABox.Mobile { public class LatestVersionException : Exception { public LatestVersionException(string message) : base(message) { } public LatestVersionException(Exception innerException) : base("", innerException) { } public LatestVersionException(string message, Exception innerException) : base(message, innerException) { } } public class AppInfo { public String Version { get; set; } public DateTime Date { get; set; } public String Notes { get; set; } } /// /// LatestVersion plugin /// public interface IAppVersion { /// /// Gets the version number of the current app's installed version. /// /// The current app's installed version number. string InstalledVersionNumber { get; } /// /// Checks if the current app is the latest version available in the public store. /// /// True if the current app is the latest version available, false otherwise. Task IsUsingLatestVersion(); Task GetLatestVersion(bool force); /// /// Opens the current app in the public store. /// Task OpenAppInStore(); } }