Ejemplo n.º 1
0
        public static Result<List<CampaignMonitorAPI.List>> GetLists(string apiKey, string clientID)
        {
            CampaignMonitorAPIWrapper.CampaignMonitorAPI.api _api = new CampaignMonitorAPI.api();

            object o = _api.GetClientLists(apiKey, clientID);

            if (o is CampaignMonitorAPI.Result)
                return new Result<List<CampaignMonitorAPI.List>>((CampaignMonitorAPI.Result)o, null);
            else
                return new Result<List<CampaignMonitorAPI.List>>(0, "Success", new List<CampaignMonitorAPI.List>((IEnumerable<CampaignMonitorAPI.List>)o));
        }