2026-05-09 18:17:59 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
using ElectronNET.API.Converter;
|
|
|
|
|
|
|
|
|
|
|
|
namespace ElectronNET.API.Entities
|
2019-05-20 01:08:26 +02:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
///
|
|
|
|
|
|
/// </summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// <remarks>Up-to-date with electron-updater 6.7.2</remarks>
|
2019-05-20 01:08:26 +02:00
|
|
|
|
public class UpdateInfo
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// Gets or sets the version.
|
2019-05-20 01:08:26 +02:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string Version { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// Gets or sets the files included in this update.
|
2019-05-20 01:08:26 +02:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public UpdateFileInfo[] Files { get; set; } = new UpdateFileInfo[0];
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// Gets or sets the release name.
|
2019-05-20 01:08:26 +02:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string ReleaseName { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// Gets or sets the release notes.
|
2019-05-20 01:08:26 +02:00
|
|
|
|
/// </summary>
|
2026-05-09 18:17:59 +02:00
|
|
|
|
[JsonConverter(typeof(ReleaseNotesConverter))]
|
|
|
|
|
|
public ReleaseNoteInfo[] ReleaseNotes { get; set; } = Array.Empty<ReleaseNoteInfo>();
|
2019-05-20 01:08:26 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// Gets or sets the release date.
|
2019-05-20 01:08:26 +02:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string ReleaseDate { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// Gets or sets the staged rollout percentage, 0-100.
|
2019-05-20 01:08:26 +02:00
|
|
|
|
/// </summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
public double StagingPercentage { get; set; }
|
2019-05-20 01:08:26 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|