16 lines
388 B
VB.net
16 lines
388 B
VB.net
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
|