예제 #1
0
 internal BringInTheme(string key, API api, Catalog.Models.GroupDetail theme, Catalog.Models.Codes info)
 {
     this.key   = key;
     this.theme = theme;
     this.api   = api;
     this.info  = info;
     Days       = new Queue <Charts>(0x20);
 }
예제 #2
0
        static Tendency[] GetTendencies(Catalog.Models.GroupDetail gd)
        {
            var tendencies = new Tendency[gd.Tick.Length];

            for (int i = 0; i < gd.Tick.Length; i++)
            {
                tendencies[i] = new Tendency
                {
                    Code        = gd.Code,
                    Tick        = gd.Tick[i],
                    Inclination = double.IsNaN(gd.Inclination[i]) ? 0 : gd.Inclination[i]
                }
            }
            ;
            return(tendencies);
        }