Esempio n. 1
0
        // Displaying summary of Subscription
        static void testGetSubscriptionsFromAccount(long accID)
        {
            List <Subscription> subscriptions = new List <Subscription>();
            SubscriptionService subservice    = new SubscriptionService();

            subscriptions = subservice.getSubscriptionsFromAccount(accID);
            Console.WriteLine("\nDisplaying all Subscriptions for user with account ID {0}...", accID);
            foreach (Subscription s in subscriptions)
            {
                Console.WriteLine("-----------------------------------------------------------------------");
                Console.WriteLine(s);
            }
        }
Esempio n. 2
0
 // Return the JSON representation of the list of Subscriptions associated with the given Account
 public string getSubscriptionsFromAccount(long accID)
 {
     return(SubService.getJSON(SubService.getSubscriptionsFromAccount(accID)));
 }