示例#1
0
        public static string GetInjectableAtom(string atom, AtomTarget target)
        {
            if (!targetNames.ContainsKey(target))
            {
                throw new ArgumentOutOfRangeException(nameof(target));
            }

            return(GetInjectableAtom(atom, targetNames[target]));
        }
示例#2
0
 public void Update(AtomTarget tgt, string ticker)
 {
     if (tgt == AtomTarget.EDINET)
     {
         update("http://resource.ufocatch.com/atom/edinetx/query/" + ticker);
     }
     else if (tgt == AtomTarget.TDnet)
     {
         update("http://resource.ufocatch.com/atom/TDnetx/query/" + ticker);
     }
 }
示例#3
0
 public void Update(AtomTarget tgt)
 {
     if (tgt == AtomTarget.EDINET)
     {
         update("http://resource.ufocatch.com/atom/edinetx");
     }
     else if (tgt == AtomTarget.TDnet)
     {
         update("http://resource.ufocatch.com/atom/TDnetx");
     }
 }
示例#4
0
 public AtomDownloader(AtomTarget src)
 {
     Source = src;
     xp     = new XmlProvider();
 }
 public void GetInjectableAtomTest(AtomType atom, AtomTarget target)
 {
     Assert.NotNull(Atom.GetInjectableAtom(atom, target));
 }