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