namespace Muchinfo.MTPClient.Data.Model.QuoteItem
{
///
/// PreciousMetalQuoteItem类
///
public class PreciousMetalQuoteItem : QuoteItemBase2
{
#region Fields
///
/// 日增仓
///
private int _dayAddPositions;
///
/// 昨结算
///
private decimal _lastSettlement;
///
/// 每手单位
///
private string _lotUnit;
///
/// 持仓
///
private long _positions;
///
/// 报价单位
///
private string _quoteUnit;
#endregion Fields
#region Properties
#region Public Properties
///
/// 日增仓
///
public int DayAddPositions
{
get
{
return _dayAddPositions;
}
set
{
Set(() => DayAddPositions, ref _dayAddPositions, value);
}
}
///
/// 昨结算
///
public decimal LastSettlement
{
get
{
return _lastSettlement;
}
set
{
Set(() => LastSettlement, ref _lastSettlement, value);
}
}
///
/// 每手单位
///
public string LotUnit
{
get
{
return _lotUnit;
}
set
{
Set(() => LotUnit, ref _lotUnit, value);
}
}
///
/// 持仓
///
public long Positions
{
get
{
return _positions;
}
set
{
Set(() => Positions, ref _positions, value);
}
}
///
/// 报价单位
///
public string QuoteUnit
{
get
{
return _quoteUnit;
}
set
{
Set(() => QuoteUnit, ref _quoteUnit, value);
}
}
#endregion Public Properties
#endregion Properties
#region Methods
#region Public Methods
///
/// 更新对象属性值(只更新需要字段)
///
/// The item.
public override void UpdateFrom(QuoteItemBase item)
{
base.UpdateFrom(item);
var pmItem = item as PreciousMetalQuoteItem;
if (pmItem == null)
{
return;
}
this.DayAddPositions = pmItem.DayAddPositions;
this.Positions = pmItem.Positions;
}
#endregion Public Methods
#endregion Methods
}
}