mirror of
https://github.com/StockSharp/StockSharp.git
synced 2026-12-06 17:42:13 +00:00
48 lines
1.6 KiB
C#
48 lines
1.6 KiB
C#
namespace StockSharp.Community
|
|
{
|
|
using System.ServiceModel;
|
|
|
|
/// <summary>
|
|
/// The interface describing the feedback service <see cref="IStrategyService"/>.
|
|
/// </summary>
|
|
[ServiceContract]
|
|
public interface IStrategyServiceCallback
|
|
{
|
|
/// <summary>
|
|
/// A new strategy is created.
|
|
/// </summary>
|
|
/// <param name="strategy">The strategy data.</param>
|
|
[OperationContract(IsOneWay = true)]
|
|
void Created(StrategyData strategy);
|
|
|
|
/// <summary>
|
|
/// The strategy is removed.
|
|
/// </summary>
|
|
/// <param name="strategyId">The strategy identifier.</param>
|
|
[OperationContract(IsOneWay = true)]
|
|
void Deleted(long strategyId);
|
|
|
|
/// <summary>
|
|
/// The strategy update.
|
|
/// </summary>
|
|
/// <param name="strategy">The strategy data.</param>
|
|
[OperationContract(IsOneWay = true)]
|
|
void Updated(StrategyData strategy);
|
|
|
|
/// <summary>
|
|
/// The user subscribed to the strategy. To be send to the user who created the strategy via <see cref="IStrategyService.CreateStrategy"/>.
|
|
/// </summary>
|
|
/// <param name="strategyId">The strategy identifier.</param>
|
|
/// <param name="userId">User id.</param>
|
|
[OperationContract(IsOneWay = true)]
|
|
void Subscribed(long strategyId, long userId);
|
|
|
|
/// <summary>
|
|
/// The user unsubscribed from the strategy. To be send to the user who created the strategy via <see cref="IStrategyService.CreateStrategy"/>.
|
|
/// </summary>
|
|
/// <param name="strategyId">The strategy identifier.</param>
|
|
/// <param name="userId">User id.</param>
|
|
[OperationContract(IsOneWay = true)]
|
|
void UnSubscribed(long strategyId, long userId);
|
|
}
|
|
} |