Exemplo n.º 1
0
        public static Result<List<CampaignMonitorAPI.ListCustomField>> GetCustomFields(string apiKey, string listID)
        {
            CampaignMonitorAPIWrapper.CampaignMonitorAPI.api _api = new CampaignMonitorAPI.api();

            object o = _api.GetListCustomFields(apiKey, listID);

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