mirror of https://github.com/leiurayer/downkyi
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
805 B
31 lines
805 B
using System;
|
|
|
|
namespace DownKyi.Models
|
|
{
|
|
[Serializable]
|
|
public class Downloaded// : DownloadBase
|
|
{
|
|
public Downloaded() : base()
|
|
{
|
|
}
|
|
|
|
// 下载速度
|
|
public string MaxSpeedDisplay { get; set; }
|
|
|
|
// 完成时间戳
|
|
public long FinishedTimestamp { get; set; }
|
|
public void SetFinishedTimestamp(long finishedTimestamp)
|
|
{
|
|
FinishedTimestamp = finishedTimestamp;
|
|
|
|
DateTime startTime = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1)); // 当地时区
|
|
DateTime dateTime = startTime.AddSeconds(finishedTimestamp);
|
|
FinishedTime = dateTime.ToString("yyyy-MM-dd HH:mm:ss");
|
|
}
|
|
|
|
// 完成时间
|
|
public string FinishedTime { get; set; }
|
|
|
|
}
|
|
}
|