public string campaignCreate(string type, MCCampaignOpts options, MCCampaignContent content, MCSegmentOpts segment_opts, MCCampaignTypeOpts type_opts)
 {
     return this.api.campaignCreate(this.apikey, type, options, content, segment_opts, type_opts);
 }
    public void campaign_segementtest()
    {
        string list_id = "YOUR_LIST_ID";
            MCSegmentOpts segment_opts = new MCSegmentOpts();
            segment_opts.match = "any";

            segment_opts.conditions = new MCSegmentCond[2];
            segment_opts.conditions[0].op = "like";
            segment_opts.conditions[0].field = "email";
            segment_opts.conditions[0].value = "@";
            segment_opts.conditions[1].op = "like";
            segment_opts.conditions[1].field = "email";
            segment_opts.conditions[1].value = "mailchimp";

            int result = this.api.campaignSegmentTest(list_id, segment_opts);

            Console.WriteLine("Your segments matched "+result+" members");
    }
 public bool campaignUpdate(string cid, string name, MCSegmentOpts val)
 {
     return this.api.campaignUpdateMCSO(this.apikey, cid, name, val);
 }
 public string campaignCreate(string type, MCCampaignOpts options, MCCampaignContent content, MCSegmentOpts segment_opts)
 {
     MCCampaignTypeOpts type_opts = new MCCampaignTypeOpts();
     return this.campaignCreate(type, options, content, segment_opts, type_opts);
 }
 /**
  ** campaignSegmentTest() method definition
  **/
 public int campaignSegmentTest(string id, MCSegmentOpts segment_opts)
 {
     return this.api.campaignSegmentTest(this.apikey, id, segment_opts);
 }
 public bool campaignUpdate(string cid, string name, MCSegmentOpts val)
 {
     return(this.api.campaignUpdateMCSO(this.apikey, cid, name, val));
 }
 public string campaignCreate(string type, MCCampaignOpts options, MCCampaignContent content, MCSegmentOpts segment_opts, MCCampaignTypeOpts type_opts)
 {
     return(this.api.campaignCreate(this.apikey, type, options, content, segment_opts, type_opts));
 }
        /**
        ** campaignCreate() method definitions
        **/
        public string campaignCreate(string type, MCCampaignOpts options, MCCampaignContent content)
        {
            MCSegmentOpts segment_opts = new MCSegmentOpts();

            return(this.campaignCreate(type, options, content, segment_opts));
        }
 /**
 ** campaignSegmentTest() method definition
 **/
 public int campaignSegmentTest(string id, MCSegmentOpts segment_opts)
 {
     return(this.api.campaignSegmentTest(this.apikey, id, segment_opts));
 }