Class WorkingTimePeriod
- Namespace
- StockSharp.Messages
- Assembly
- StockSharp.Messages.dll
Schedule validity period.
[DataContract]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Schedule", Description = "ScheduleValidityPeriod")]
public class WorkingTimePeriod : Cloneable<WorkingTimePeriod>, IPersistable
- Inheritance
-
WorkingTimePeriod
- Implements
-
IPersistable
- Extension Methods
Constructors
WorkingTimePeriod()
public WorkingTimePeriod()
Properties
SpecialDays
Work schedule for days with different from Times schedules.
public IDictionary<DayOfWeek, Range<TimeSpan>[]> SpecialDays { get; set; }
Property Value
- IDictionary<DayOfWeek, Range<TimeSpan>[]>
Till
Schedule expiration date.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Till", Description = "WorkingTimeTill", GroupName = "General")]
public DateTime Till { get; set; }
Property Value
Times
Work schedule within day.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Schedule", Description = "WorkScheduleDay", GroupName = "General")]
public List<Range<TimeSpan>> Times { get; set; }
Property Value
Methods
Clone()
Create a copy of WorkingTimePeriod.
public override WorkingTimePeriod Clone()
Returns
- WorkingTimePeriod
Copy.
Load(SettingsStorage)
Load settings.
public void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
Save(SettingsStorage)
Save settings.
public void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
ToString()
public override string ToString()