Make a few classes/structs public in spark_core
They are referenced in spark proj, so prob should have always been public.
This commit is contained in:
1 parent
75c86f7b69
commit
c27cd8ca54
6 files changed
+10
-10
No files matched your search
@@ -2,18 +2,18 @@
|
||||
|
||||
namespace mbts.user.settings
|
||||
{
|
||||
internal interface ISecurityBasedSettingsFactory
|
||||
public interface ISecurityBasedSettingsFactory
|
||||
{
|
||||
SecurityBasedSettings get(Venue exchange, SecurityType type, string symbol);
|
||||
}
|
||||
|
||||
internal interface ISecurityBasedSettingsFactory<T> : ISecurityBasedSettingsFactory where T : class
|
||||
public interface ISecurityBasedSettingsFactory<T> : ISecurityBasedSettingsFactory where T : class
|
||||
{
|
||||
}
|
||||
|
||||
[ProtoBuf.ProtoContract]
|
||||
[ProtoBuf.ProtoInclude(100, typeof(SecurityTickSettings))]
|
||||
internal abstract class SecurityBasedSettings
|
||||
public abstract class SecurityBasedSettings
|
||||
{
|
||||
protected SecurityBasedSettings() { }
|
||||
protected SecurityBasedSettings(SecurityTuple security) {
|
||||
@@ -23,4 +23,4 @@ namespace mbts.user.settings
|
||||
[ProtoBuf.ProtoMember(1)]
|
||||
public SecurityTuple security;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -11,7 +11,7 @@ namespace mbts
|
||||
/// Wraps up a security type, security name and exchange
|
||||
[ProtoContract]
|
||||
[Serializable]
|
||||
class SecurityTuple : IComparable<SecurityTuple>, IEquatable<SecurityTuple>
|
||||
public class SecurityTuple : IComparable<SecurityTuple>, IEquatable<SecurityTuple>
|
||||
{
|
||||
[ProtoMember(1)]
|
||||
public readonly SecurityType security_type;
|
||||
@@ -30,7 +30,7 @@ namespace mbts
|
||||
security_name = the_security_name;
|
||||
security_exchange = the_security_exchange;
|
||||
}
|
||||
public SecurityTuple(co2.UserSymbol u) : this(u.type, u.symbol, u.exchange) { }
|
||||
internal SecurityTuple(co2.UserSymbol u) : this(u.type, u.symbol, u.exchange) { }
|
||||
|
||||
public bool is_empty() { return Equals(empty); }
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ using System.ComponentModel;
|
||||
|
||||
namespace mbts.user.settings {
|
||||
[ProtoContract]
|
||||
class RegionalTickFactors : IEquatable<RegionalTickFactors> {
|
||||
public class RegionalTickFactors : IEquatable<RegionalTickFactors> {
|
||||
[ProtoMember(1)]
|
||||
readonly TickFactors _low_tick;
|
||||
[ProtoMember(2)]
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
namespace mbts.user.settings
|
||||
{
|
||||
[ProtoContract]
|
||||
class SecurityTickSettings : SecurityBasedSettings
|
||||
public class SecurityTickSettings : SecurityBasedSettings
|
||||
{
|
||||
public SecurityTickSettings() {
|
||||
price_tick = new RegionalTickFactors();
|
||||
|
||||
@@ -8,7 +8,7 @@ using System.Globalization;
|
||||
using static bts.utils.MathUtils;
|
||||
|
||||
namespace mbts {
|
||||
static class TickExtensions {
|
||||
public static class TickExtensions {
|
||||
const string _nan_text = "-";
|
||||
|
||||
#region Public Extensions (is_valid, format, parse, tick_up, tick_down)
|
||||
|
||||
@@ -4,7 +4,7 @@ using System.ComponentModel;
|
||||
|
||||
namespace mbts.user.settings {
|
||||
[ProtoContract]
|
||||
class TickFactors : IEquatable<TickFactors> {
|
||||
public class TickFactors : IEquatable<TickFactors> {
|
||||
[ProtoMember(1), DefaultValue(100.0)]
|
||||
readonly double _tick_base;
|
||||
[ProtoMember(2), DefaultValue(1.0)]
|
||||
|
||||
Reference in new issue
Block a user