install: begin rework
This commit is contained in:
15
ModpackUpdater.Model/ModpackConfig.vb
Normal file
15
ModpackUpdater.Model/ModpackConfig.vb
Normal file
@@ -0,0 +1,15 @@
|
||||
Imports System.Net.Http
|
||||
|
||||
Imports Newtonsoft.Json
|
||||
|
||||
Public Class ModpackConfig
|
||||
|
||||
Public Property UpdateUrl As String
|
||||
Public Property InstallUrl As String
|
||||
|
||||
Public Shared Function LoadFromUrl(url As String)
|
||||
Dim result As String = New HttpClient().GetStringAsync(url).Result
|
||||
Return JsonConvert.DeserializeObject(Of ModpackConfig)(result)
|
||||
End Function
|
||||
|
||||
End Class
|
||||
Reference in New Issue
Block a user