markus / MarkusAutoUpdate / src / NetSparkle / UpdateInfo.cs @ master
이력 | 보기 | 이력해설 | 다운로드 (1.17 KB)
1 |
using NetSparkleUpdater.Enums; |
---|---|
2 |
using System; |
3 |
using System.Collections.Generic; |
4 |
using System.Linq; |
5 |
using System.Text; |
6 |
using System.Threading.Tasks; |
7 |
|
8 |
namespace NetSparkleUpdater |
9 |
{ |
10 |
/// <summary> |
11 |
/// A simple class to hold information on potential updates to a software product. |
12 |
/// </summary> |
13 |
public class UpdateInfo |
14 |
{ |
15 |
/// <summary> |
16 |
/// Update availability. |
17 |
/// </summary> |
18 |
public UpdateStatus Status { get; set; } |
19 |
/// <summary> |
20 |
/// Any available updates for the product. |
21 |
/// </summary> |
22 |
public List<AppCastItem> Updates { get; set; } |
23 |
/// <summary> |
24 |
/// Constructor for SparkleUpdate when there are some updates available. |
25 |
/// </summary> |
26 |
public UpdateInfo(UpdateStatus status, List<AppCastItem> updates) |
27 |
{ |
28 |
Status = status; |
29 |
Updates = updates; |
30 |
} |
31 |
/// <summary> |
32 |
/// Constructor for SparkleUpdate for when there aren't any updates available. Updates are automatically set to null. |
33 |
/// </summary> |
34 |
public UpdateInfo(UpdateStatus status) |
35 |
{ |
36 |
Status = status; |
37 |
Updates = null; |
38 |
} |
39 |
} |
40 |
} |