com.twilio.sdk.resource.factory.Factory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of twilio-java-sdk Show documentation
Show all versions of twilio-java-sdk Show documentation
Release Candidate for Next-Gen Twilio Java Helper Library
package com.twilio.sdk.resource.factory;
import java.util.List;
import java.util.Map;
import org.apache.http.NameValuePair;
import com.twilio.sdk.TwilioRestException;
/**
* A factory for creating resources.
*/
public interface Factory {
/**
* Creates a Resource
*
* @param params the params list
* @return a Participant
* @throws com.twilio.sdk.TwilioRestException
*/
public T create(Map params) throws TwilioRestException;
/**
* Creates a Resource
*
* @param params the params list
* @return a Participant
* @throws TwilioRestException
*/
public T create(List params) throws TwilioRestException;
}