update structure

This commit is contained in:
2024-04-21 09:36:33 +02:00
parent 34fa5fbffe
commit fd701f3615
24 changed files with 57 additions and 290 deletions

View File

@@ -0,0 +1,23 @@
Imports ModpackUpdater.Model
Public Class UpdateCheckResult
Public Property IsLegacy As Boolean
Public ReadOnly Property SyncFiles As New List(Of UpdateSyncFile)
Public Property CurrentVersion As Version
Public Property LatestVersion As Version
Public ReadOnly Property UpdateActions As New List(Of UpdateAction)
Public Property HasError As Boolean
Public ReadOnly Property HasUpdates As Boolean
Get
If IsLegacy Then
Return SyncFiles.Where(Function(n) n.SyncAction <> UpdateSyncAction.None).Any
Else
Return CurrentVersion < LatestVersion
End If
End Get
End Property
End Class