-
-
Notifications
You must be signed in to change notification settings - Fork 747
Expand file tree
/
Copy pathUpdateInfo.cs
More file actions
44 lines (38 loc) · 1.24 KB
/
Copy pathUpdateInfo.cs
File metadata and controls
44 lines (38 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
using System;
using System.Text.Json.Serialization;
using ElectronNET.API.Converter;
namespace ElectronNET.API.Entities
{
/// <summary>
///
/// </summary>
/// <remarks>Up-to-date with electron-updater 6.7.2</remarks>
public class UpdateInfo
{
/// <summary>
/// Gets or sets the version.
/// </summary>
public string Version { get; set; }
/// <summary>
/// Gets or sets the files included in this update.
/// </summary>
public UpdateFileInfo[] Files { get; set; } = new UpdateFileInfo[0];
/// <summary>
/// Gets or sets the release name.
/// </summary>
public string ReleaseName { get; set; }
/// <summary>
/// Gets or sets the release notes.
/// </summary>
[JsonConverter(typeof(ReleaseNotesConverter))]
public ReleaseNoteInfo[] ReleaseNotes { get; set; } = Array.Empty<ReleaseNoteInfo>();
/// <summary>
/// Gets or sets the release date.
/// </summary>
public string ReleaseDate { get; set; }
/// <summary>
/// Gets or sets the staged rollout percentage, 0-100.
/// </summary>
public double StagingPercentage { get; set; }
}
}