// -------------------------------------------------------------------------------------------------------------------- // // This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. // // // Provides information about an update check. // // -------------------------------------------------------------------------------------------------------------------- namespace HandBrakeWPF.Model { using System; /// /// Provides information about an update check. /// public struct UpdateCheckInformation { /// /// Gets or sets a value indicating whether a New Version is Available. /// public bool NewVersionAvailable { get; set; } /// /// Gets a value indicating whether an Error Occurred. /// public bool ErrorOccured { get { return this.Error != null; } } /// /// Gets or sets Information about an update to HandBrake /// public Uri DescriptionUrl { get; set; } /// /// Gets or sets HandBrake's version from the appcast.xml file. /// public string Version { get; set; } /// /// Gets or sets HandBrake's Build from the appcast.xml file. /// public string Build { get; set; } /// /// Gets or sets the URL for update file. /// public string DownloadFile { get; set; } /// /// Gets or sets the error that occurred, if any. This will be null if no error occurred. /// public Exception Error { get; set; } /// /// Gets or sets the expected DSA SHA256 Signature /// public string Signature { get; set; } } }