예제 #1
0
        public static Subscription[] getSubscriptions(BitAPI BA)
        {
            string s = BA.listSubscriptions();
            Subs   SUBS;

            try
            {
                SUBS = JsonConvert.DeserializeObject <Subs>(s);
            }
            catch
            {
                SUBS = new Subs();
            }
            if (SUBS.Sub == null)
            {
                return(new Subscription[] { });
            }
            return(SUBS.Sub);
        }
예제 #2
0
 public static Subscription[] getSubscriptions(BitAPI BA)
 {
     string s = BA.listSubscriptions();
     Subs SUBS;
     try
     {
         SUBS = JsonConvert.DeserializeObject<Subs>(s);
     }
     catch
     {
         SUBS = new Subs();
     }
     if (SUBS.Sub == null)
     {
         return new Subscription[] { };
     }
     return SUBS.Sub;
 }