forked from eesast/THUAI7
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request eesast#216 from DreamEnderKing/dev
Log system updated and add download report.
- Loading branch information
Showing
5 changed files
with
127 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
using installer.ViewModel; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace installer.Data | ||
{ | ||
public class DownloadReport : NotificationObject | ||
{ | ||
// 是否开启大文件跟踪 | ||
public bool BigFileTraceEnabled | ||
{ | ||
get => bFTE; set | ||
{ | ||
if (bFTE != value) OnPropertyChanged(); | ||
bFTE = value; | ||
} | ||
} | ||
|
||
// 下载文件数量 | ||
public long Count | ||
{ | ||
get => cot; set | ||
{ | ||
if (cot != value) OnPropertyChanged(); | ||
cot = value; | ||
} | ||
} | ||
|
||
// 下载完成的文件数量 | ||
public long ComCount | ||
{ | ||
get => com; set | ||
{ | ||
if (com != value) OnPropertyChanged(); | ||
com = value; | ||
} | ||
} | ||
|
||
// 文件大小 | ||
public long Total | ||
{ | ||
get => tot; set | ||
{ | ||
if (tot != value) OnPropertyChanged(); | ||
tot = value; | ||
} | ||
} | ||
|
||
// 已完成大小 | ||
public long Completed | ||
{ | ||
get => cop; set | ||
{ | ||
if (cop != value) OnPropertyChanged(); | ||
cop = value; | ||
} | ||
} | ||
|
||
private bool bFTE; | ||
private long cot; | ||
private long com; | ||
private long tot; | ||
private long cop; | ||
} | ||
} |
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
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