using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XYY.Service.Standard.Finance.Charging.UserRate
{
    /// <summary>
    /// 用户汇率
    /// </summary>
    public class UserRateBase
    {
        public UserRateBase(string currency, DateTime startTime, double rate)
        {
            this.Currency = currency;
            this.DateTimeVersion = int.Parse(startTime.ToString("yyyyMMdd"));
            this.Rate = rate;
            this.Key = "UserRate" + this.Currency;
        }

        public string Key
        {
            get; set;
        }

        /// <summary>
        /// 币种
        /// </summary>
        public string Currency
        {
            get; set;
        }

        /// <summary>
        /// 时间版本
        /// </summary>
        public long DateTimeVersion
        {
            get; set;
        }

        /// <summary>
        /// 税率
        /// </summary>
        public double Rate
        {
            get; set;
        }
    }
}
