com.ecwid.mailchimp
Class MailChimpMethod<R>

java.lang.Object
  extended by java.util.AbstractMap<String,Object>
      extended by com.ecwid.mailchimp.MailChimpObject
          extended by com.ecwid.mailchimp.MailChimpMethod<R>
All Implemented Interfaces:
Serializable, Map<String,Object>
Direct Known Subclasses:
CampaignEcommOrderAddMethod, CampaignSegmentTestMethod, CampaingRelatedMethod, GenerateTextFromHtmlMethod, GetAccountDetailsMethod, HasListIdMethod, HasUsernameAndPasswordMethod, InterestGroupingDelMethod, ListInterestGroupingDelMethod, ListMethod, ListsMethod, ListsRelatedMethod, OrderAddMethod, TemplatesMethod

public abstract class MailChimpMethod<R>
extends MailChimpObject

Abstract class representing MailChimp API calls.

Only a limited number of MailChimp API methods have wrappers in the current version of ecwid-mailchimp. If you need to wrap a method which is not in the list, you can easily create the wrapper by extending this class.

Author:
Vasily Karyaev
See Also:
Serialized Form

Nested Class Summary
static interface MailChimpMethod.Method
          This annotation marks subclasses of MailChimpMethod to specify the corresponding API method meta-info.
 
Nested classes/interfaces inherited from class com.ecwid.mailchimp.MailChimpObject
MailChimpObject.Field
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
 String apikey
          API key to access MailChimp service.
 
Constructor Summary
MailChimpMethod()
           
 
Method Summary
 MailChimpMethod.Method getMetaInfo()
          Get the MailChimp API method meta-info.
 Type getResultType()
          Get the method result type.
 
Methods inherited from class com.ecwid.mailchimp.MailChimpObject
as, clear, containsKey, entrySet, fromJson, get, getReflectiveMappingTypes, getReflectiveMappingTypes, keySet, put, remove, size, toJson
 
Methods inherited from class java.util.AbstractMap
clone, containsValue, equals, hashCode, isEmpty, putAll, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

apikey

@MailChimpObject.Field
public String apikey
API key to access MailChimp service.

Constructor Detail

MailChimpMethod

public MailChimpMethod()
Method Detail

getMetaInfo

public final MailChimpMethod.Method getMetaInfo()
Get the MailChimp API method meta-info.

Throws:
IllegalArgumentException - if neither this class nor any of its superclasses are annotated with MailChimpMethod.Method.

getResultType

public final Type getResultType()
Get the method result type.



Copyright © 2012-2014 Ecwid, Inc. All Rights Reserved.