#region S# License
/******************************************************************************************
NOTICE!!! This program and source code is owned and licensed by
StockSharp, LLC, www.stocksharp.com
Viewing or use of this code requires your acceptance of the license
agreement found at https://github.com/StockSharp/StockSharp/blob/master/LICENSE
Removal of this comment is a violation of the license agreement.
Project: StockSharp.Community.Community
File: StrategyData.cs
Created: 2015, 11, 11, 2:32 PM
Copyright 2010 by StockSharp, LLC
*******************************************************************************************/
#endregion S# License
namespace StockSharp.Community
{
using System;
using System.Runtime.Serialization;
using StockSharp.Localization;
///
/// Strategy content types.
///
[DataContract]
public enum StrategyContentTypes
{
///
/// Source code (if the strategy is distributed in source code).
///
[EnumMember]
SourceCode,
///
/// The compiled build (if the strategy is distributed as a finished build).
///
[EnumMember]
CompiledAssembly,
///
/// Schema in visual designer (if the strategy is distributed as a schema).
///
[EnumMember]
Schema,
///
/// Encrypted version of .
///
[EnumMember]
EncryptedSchema,
///
/// The compiled executable (.exe) application.
///
[EnumMember]
StandaloneApp,
///
/// Indicator.
///
[EnumMember]
Indicator,
}
///
/// Strategy price types.
///
[DataContract]
public enum StrategyPriceTypes
{
///
/// Lifetime.
///
[EnumMember]
[EnumDisplayNameLoc(LocalizedStrings.LifetimeKey)]
Lifetime,
///
/// Per month.
///
[EnumMember]
[EnumDisplayNameLoc(LocalizedStrings.PerMonthKey)]
PerMonth,
///
/// Annual.
///
[EnumMember]
[EnumDisplayNameLoc(LocalizedStrings.AnnualKey)]
Annual
}
///
/// The strategy data.
///
[DataContract]
public class StrategyData
{
///
/// Identifier.
///
[DataMember]
public long Id { get; set; }
///
/// The creation date.
///
[DataMember]
public DateTime CreationDate { get; set; }
///
/// Name.
///
[DataMember]
public string Name { get; set; }
///
/// Strategy description.
///
[DataMember]
public string Description { get; set; }
///
/// Strategy tags.
///
[DataMember]
public string Tags { get; set; }
/////
///// Name (ru).
/////
//[DataMember]
//public string RuName { get; set; }
/////
///// Strategy description (ru).
/////
//[DataMember]
//public string RuDescription { get; set; }
///
/// The identifier of a topic in the forum where the strategy is discussed.
///
[DataMember]
public int DescriptionId { get; set; }
///
/// Type of .
///
[DataMember]
public StrategyPriceTypes PriceType { get; set; }
///
/// The purchase price.
///
[DataMember]
public decimal Price { get; set; }
/////
///// Is the in USD.
/////
//[DataMember]
//public bool IsUsd { get; set; }
///
/// Type of .
///
[DataMember]
public StrategyContentTypes ContentType { get; set; }
/////
///// Content name (file name etc.).
/////
//[DataMember]
//public string ContentName { get; set; }
///
/// Content.
///
[DataMember]
public long Content { get; set; }
///
/// The author identifier.
///
[DataMember]
public long Author { get; set; }
///
/// The picture identifier.
///
[DataMember]
public long? Picture { get; set; }
///
/// The content revision.
///
[DataMember]
public int Revision { get; set; }
///
/// User ID.
///
[DataMember]
public string UserId { get; set; }
///
/// Only visible to author.
///
[DataMember]
public bool IsPrivate { get; set; }
///
/// Is colocation available for the strategy.
///
[DataMember]
public bool IsColocation { get; set; }
///
/// Promo price.
///
[DataMember]
public decimal? PromoPrice { get; set; }
///
/// Promo end date.
///
[DataMember]
public DateTime? PromoEnd { get; set; }
}
}