Example #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);
        }
Example #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;
 }