Ejemplo n.º 1
0
        private static void PrintAllCampaigns()
        {
            PrintTableName("Campaigns");
            PrintCampaignTableRow("Id", "Name", "Subject", "FromName");

            DataReader<ApiCampaign> campaigns = new DataReader<ApiCampaign>(GetCampaignsPaged);
            foreach (ApiCampaign campaign in campaigns.ReadAll())
            {
                PrintCampaignTableRow(campaign.Id.ToString(), campaign.Name, campaign.Subject, campaign.FromName);
            }
        }
Ejemplo n.º 2
0
        private static void PrintAllAddressBooks()
        {
            PrintTableName("Address Books");
            PrintAddressBookRow("Id", "Name");

            DataReader<ApiAddressBook> addressBooks = new DataReader<ApiAddressBook>(GetAddressBooksPaged);
            foreach (ApiAddressBook addressBook in addressBooks.ReadAll())
            {
                PrintAddressBookRow(addressBook.Id.ToString(), addressBook.Name);
            }
        }