package com.ecwid.mailchimp.method.campaign;

import com.ecwid.mailchimp.MailChimpMethod;
import java.util.Map;

/**
 * See:
 * <a href="http://apidocs.mailchimp.com/api/1.3/campaigncreate.func.php">
 *      http://apidocs.mailchimp.com/api/1.3/campaigncreate.func.php
 * </a>
 *
 * @author Massimo Lusetti <mlusetti@gmail.com>
 *
 */
@MailChimpMethod.Name("campaignCreate")
public class CampaignCreateMethod extends CampaingRelatedMethod<String>
{
    @Field
    public String type;
    @Field
    public Map<String, Object> options;
    @Field
    public Map<String, String> content;


    /**
     * Get the class object representing method result type.
     */
    @Override
    public Class<String> getResultType()
    {
        return String.class;
    }
}

@@ -477,31 +477,25 @@
 g type;%0A
-    
+%09
 @Field%0A
-    
+%09
 public M
@@ -522,16 +522,66 @@
 ptions;%0A
+%09@Field%0A%09public Map%3CString, Object%3E segment_opts;%0A
     @Fie

handle segmentantion (used for static ones)