| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- //----------------------------------------------------------------
- //Module Name: IWarningService
- //Purpose:
- //CopyRight: Muchinfo
- //History:
- //----------------------------------------------------------------
- //DateTime Author Description
- //----------------------------------------------------------------
- //2014-04-15 deng.yinping Create
- //----------------------------------------------------------------
- using Muchinfo.MTPClient.Data.Model;
- using Muchinfo.MTPClient.Data.Model.Account;
- using System.Collections.Generic;
- using System.Collections.ObjectModel;
- namespace Muchinfo.MTPClient.IService
- {
- /// <summary>
- /// 预警服务接口
- /// </summary>
- public interface IWarningService
- {
- /// <summary>
- /// 获取当前交易账号预警
- /// </summary>
- /// <param name="tradeAccount">The trade account.</param>
- /// <returns>List{Warning}.</returns>
- ObservableCollection<Warning> GetWarnings(TradeAccount tradeAccount);
- /// <summary>
- /// 添加预警
- /// </summary>
- /// <param name="warning">The warning.</param>
- /// <param name="tradeAccount">The tradeAccount.</param>
- /// <returns>System.Int32.</returns>
- int AddWarning(Warning warning, TradeAccount tradeAccount);
- /// <summary>
- /// 更新预警
- /// </summary>
- /// <param name="warning">The warning.</param>
- /// <param name="tradeAccount">The tradeAccount.</param>
- /// <returns>System.Int32.</returns>
- int UpdateWarning(Warning warning, TradeAccount tradeAccount);
- /// <summary>
- /// 删除预警
- /// </summary>
- /// <param name="warningId">The warning.</param>
- /// <param name="tradeAccount">The tradeAccount.</param>
- /// <returns>System.Int32.</returns>
- int DeleteWarning(int warningId, TradeAccount tradeAccount);
- /// <summary>
- /// 启动/关闭预警
- /// </summary>
- /// <param name="warningId">The warning id.</param>
- /// <param name="tradeAccount">The tradeAccount.</param>
- /// <returns>System.Int32.</returns>
- int StartOrPauseWarning(int warningId, TradeAccount tradeAccount);
- Dictionary<int, string> GetSpaceTime();
- Dictionary<int, string> GetRepeatNumber();
- List<KeyValuePair<string, string>> GetWarningItem(int warningType);
- }
- }
|