OSDN Git Service

add win/C# diff files
[handbrake-jp/handbrake-jp.git] / win / C# / HandBrake.Framework / Model / UpdateCheckInformation.cs.diff
diff --git a/win/C#/HandBrake.Framework/Model/UpdateCheckInformation.cs.diff b/win/C#/HandBrake.Framework/Model/UpdateCheckInformation.cs.diff
new file mode 100644 (file)
index 0000000..70c9e79
--- /dev/null
@@ -0,0 +1,45 @@
+diff --git a/win/C#/HandBrake.Framework/Model/UpdateCheckInformation.cs b/win/C#/HandBrake.Framework/Model/UpdateCheckInformation.cs
+new file mode 100644
+index 0000000..ff59dce
+--- /dev/null
++++ b/win/C#/HandBrake.Framework/Model/UpdateCheckInformation.cs
+@@ -0,0 +1,39 @@
++/*  UpdateCheckInformation.cs $\r
++    This file is part of the HandBrake source code.\r
++    Homepage: <http://handbrake.fr>.\r
++    It may be used under the terms of the GNU General Public License. */\r
++\r
++namespace HandBrake.Framework.Model\r
++{\r
++    using System;\r
++    using HandBrake.Framework.Services.Interfaces;\r
++\r
++    /// <summary>\r
++    /// Provides information about an update check.\r
++    /// </summary>\r
++    public struct UpdateCheckInformation\r
++    {\r
++        /// <summary>\r
++        /// Gets or sets a value indicating whether a New Version is Available.\r
++        /// </summary>\r
++        public bool NewVersionAvailable { get; set; }\r
++\r
++        /// <summary>\r
++        /// Gets a value indicating whether an Error Occured.\r
++        /// </summary>\r
++        public bool ErrorOccured\r
++        {\r
++            get { return this.Error != null; }\r
++        }\r
++\r
++        /// <summary>\r
++        /// Gets or sets information about the new build, if any. This will be null if there is no new verison.\r
++        /// </summary>\r
++        public IAppcastReader BuildInformation { get; set; }\r
++\r
++        /// <summary>\r
++        /// Gets or sets the error that occurred, if any. This will be null if no error occured.\r
++        /// </summary>\r
++        public Exception Error { get; set; }\r
++    }\r
++}\r