-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
108 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/c#/GeneralUpdate.Common/Internal/Exception/OSSDownloadArgs.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System; | ||
|
||
namespace GeneralUpdate.Common.Internal; | ||
|
||
public class OSSDownloadArgs : EventArgs | ||
{ | ||
public long ReadLength { get; set; } | ||
|
||
public long TotalLength { get; set; } | ||
|
||
public OSSDownloadArgs(long readLength, long totalLength) | ||
{ | ||
ReadLength = readLength; | ||
TotalLength = totalLength; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Empty file.
Empty file.
24 changes: 0 additions & 24 deletions
24
src/c#/GeneralUpdate.Maui.OSS/Domain/Entity/ParamsAndroid.cs
This file was deleted.
Oops, something went wrong.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
namespace GeneralUpdate.Maui.OSS.Internal | ||
{ | ||
public class ParamsAndroid | ||
{ | ||
public string Url { get; set; } | ||
|
||
public string Apk { get; set; } | ||
|
||
public string CurrentVersion { get; set; } | ||
|
||
public string Authority { get; set; } | ||
|
||
public string VersionFileName { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace GeneralUpdate.Maui.OSS.Internal | ||
{ | ||
public class VersionInfo | ||
{ | ||
/// <summary> | ||
/// Update package release time. | ||
/// </summary> | ||
[JsonPropertyName("PubTime")] | ||
public long PubTime { get; set; } | ||
|
||
/// <summary> | ||
/// Update package name. | ||
/// </summary> | ||
[JsonPropertyName("Name")] | ||
public string Name { get; set; } | ||
|
||
/// <summary> | ||
/// Compare and verify with the downloaded update package. | ||
/// </summary> | ||
[JsonPropertyName("Hash")] | ||
public string Hash { get; set; } | ||
|
||
/// <summary> | ||
/// The version number. | ||
/// </summary> | ||
[JsonPropertyName("Version")] | ||
public string Version { get; set; } | ||
|
||
/// <summary> | ||
/// Remote service url address. | ||
/// </summary> | ||
[JsonPropertyName("Url")] | ||
public string Url { get; set; } | ||
} | ||
} |
Oops, something went wrong.