码迷,mamicode.com
首页 > 其他好文 > 详细

DownloadInfo

时间:2017-11-03 20:16:16      阅读:156      评论:0      收藏:0      [点我收藏+]

标签:system   ase   text   开始时间   rtti   rac   mod   soft   practice   

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Practices.Prism.Mvvm;
using System.Collections;
using FileDownload.Common;

namespace FileDownload.Models
{
    public class DownloadInfo:BindableBase
    {
        public IDictionary<string, object> Extra { get; set; } = new Dictionary<string, object>();

        private string url;

        public string Url
        {
            get { return Url; }
            set { if(url != value) SetProperty(ref url, value); }
        }

        private string fileName;

        public string FileName
        {
            get { return fileName; }
            set { if (fileName != value) SetProperty(ref fileName, value); }
        }

        private DataLength totalSize;

        public DataLength TotalSize
        {
            get { return totalSize; }
            set { if (totalSize != value) SetProperty(ref totalSize, value); }
        }


        private DataLength speed;

        public DataLength Speed
        {
            get { return speed; }
            set { if (speed != value) SetProperty(ref speed, value); }
        }

        private double progress;

        public double Progress
        {
            get { return progress; }
            set { SetProperty(ref progress, value); }
        }

        private Common.DownloadState state;

        public Common.DownloadState State
        {
            get { return state; }
            set { if (state != value) SetProperty(ref state, value); }
        }

        private string timeNeed;
        /// <summary>
        /// 预计用时
        /// </summary>
        public string TimeNeed
        {
            get { return timeNeed; }
            set { if (timeNeed != value) SetProperty(ref timeNeed, value); }
        }

        private string startTime;
        /// <summary>
        /// 开始时间
        /// </summary>
        public string StartTime
        {
            get { return startTime; }
            set { if (startTime != value) SetProperty(ref startTime, value); }
        }

        private string completeTime;
        /// <summary>
        /// 完成时间
        /// </summary>
        public string CompleteTime
        {
            get { return completeTime; }
            set { if (completeTime != value) SetProperty(ref completeTime, value); }
        }

        private string totalTime;
        /// <summary>
        /// 已用时
        /// </summary>
        public string TotalTime
        {
            get { return totalTime; }
            set { if (totalTime != value) SetProperty(ref totalTime, value); }
        }
    }
}

 

DownloadInfo

标签:system   ase   text   开始时间   rtti   rac   mod   soft   practice   

原文地址:http://www.cnblogs.com/RedSky/p/7717022.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!