//----------------------------------------------------------------
//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
{
///
/// 预警服务接口
///
public interface IWarningService
{
///
/// 获取当前交易账号预警
///
/// The trade account.
/// List{Warning}.
ObservableCollection GetWarnings(TradeAccount tradeAccount);
///
/// 添加预警
///
/// The warning.
/// The tradeAccount.
/// System.Int32.
int AddWarning(Warning warning, TradeAccount tradeAccount);
///
/// 更新预警
///
/// The warning.
/// The tradeAccount.
/// System.Int32.
int UpdateWarning(Warning warning, TradeAccount tradeAccount);
///
/// 删除预警
///
/// The warning.
/// The tradeAccount.
/// System.Int32.
int DeleteWarning(int warningId, TradeAccount tradeAccount);
///
/// 启动/关闭预警
///
/// The warning id.
/// The tradeAccount.
/// System.Int32.
int StartOrPauseWarning(int warningId, TradeAccount tradeAccount);
Dictionary GetSpaceTime();
Dictionary GetRepeatNumber();
List> GetWarningItem(int warningType);
}
}