-
Notifications
You must be signed in to change notification settings - Fork 38
/
ICandlesSource.cs
58 lines (48 loc) · 2.72 KB
/
ICandlesSource.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
Copyright 2019 Dennis Geller.
This file is part of FancyCandles.
FancyCandles is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
FancyCandles is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with FancyCandles. If not, see<https://www.gnu.org/licenses/>. */
using System.Collections.Generic;
namespace FancyCandles
{
///<summary>Represents a collection of candles, that can be used as a value for the <see cref="CandleChart.CandlesSource"/> property of the <see cref="CandleChart"/> class.</summary>
///<seealso cref = "ICandle">Interface ICandle</seealso>
public interface ICandlesSource : IList<ICandle>
{
///<summary>Gets the time frame of the candle collection.</summary>
///<value>The time frame of the candle collection.</value>
TimeFrame TimeFrame { get; }
}
///<summary>Represents a collection of candles obtained from <see cref="ICandlesSourceProvider"/>, that can be used as a value for the <see cref="CandleChart.CandlesSource"/> property of the <see cref="CandleChart"/> class.</summary>
///<seealso cref = "ICandlesSourceProvider">Interface ICandlesSourceProvider</seealso>
public interface ICandlesSourceFromProvider : ICandlesSource
{
///<summary>Gets the unique ID of the security, this candle collection relates to.</summary>
///<value>The unique ID of the security, this candle collection relates to.</value>
///<remarks>
///<see cref="ICandlesSourceProvider"/> widely operates with the <see cref="ISecurityInfo.SecID"/> value.
///<see cref="ISecurityInfo.SecID"/> allows you to uniquely identify one security among others this <see cref="ICandlesSourceProvider"/> provide you access to.
///</remarks>
string SecID { get; }
}
///<summary>Represents some resource that a counter of its users.</summary>
public interface IResourceWithUserCounter
{
///<summary>Gets the number of users of this resource.</summary>
///<value>Gets the number of users of this resource.</value>
int UserCount { get; }
///<summary>Increments the number of users of this resource.</summary>
void IncreaseUserCount();
///<summary>Decrements the number of users of this resource.</summary>
void DecreaseUserCount();
}
}