public class DialogRequest extends Object
| Constructor and Description |
|---|
DialogRequest(Map<String,String> addressMap,
Map<String,String> addressCcMap,
Map<String,String> addressBccMap,
AdapterType adapterType,
String adapterID,
String senderName,
String subject,
String url)
A detailed consturctor which can be used to send a broadcast with a
specific senderName
|
DialogRequest(String address,
AdapterType adapterType,
String adapterId,
String senderName,
String subject,
String url)
A consturctor which can be used to trigger an outbound request
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAdapterID() |
AdapterType |
getAdapterType() |
String |
getAddress() |
Map<String,String> |
getAddressBccMap() |
Map<String,String> |
getAddressCcMap() |
Collection<String> |
getAddressList() |
Map<String,String> |
getAddressMap() |
HashMap<String,String> |
getAllAddresses()
Collates all the addresses in the address, addressList, addressMaps
|
String |
getSenderName() |
String |
getSubject() |
String |
getUrl() |
boolean |
isValidRequest()
Just validates the request payload
|
void |
setAdapterID(String adapterID) |
void |
setAdapterType(AdapterType adapterType) |
void |
setAddress(String address) |
void |
setAddressBccMap(Map<String,String> addressBccMap) |
void |
setAddressCcMap(Map<String,String> addressCcMap) |
void |
setAddressList(Collection<String> addressList) |
void |
setAddressMap(Map<String,String> addressMap) |
void |
setSenderName(String senderName) |
void |
setSubject(String subject) |
void |
setUrl(String url) |
public DialogRequest(Map<String,String> addressMap, Map<String,String> addressCcMap, Map<String,String> addressBccMap, AdapterType adapterType, String adapterID, String senderName, String subject, String url)
addressMap - The key value pairs of addressCcMap - The key value pairs of addressBccMap - The key value pairs of adapterType - The type of communication opted for this outbound dialog. The
first adapter of the given type is chosen if there are
multiple ones exist. Usually either one of adapterType or
adapterID is passed, although this constructor ignores the
adapterType if the adapterID is present. An error is returned
if its set outside of this constructor.adapterID - The id identifying a particular mode of communication. These
values can be retried from ://portal.ask-fast.com in the adapters section.senderName - A senderName can be attached for medium types: SMS, EMAIL. For
SMS, the length should not exceed 11 charecters.subject - Only valid for an email adapter. The subject of the message to
be senturl - This can be one of: Question json as
response. Question.QUESTION_TYPE_COMMENT AskFastRestClient.createDialog(Dialog) methodpublic DialogRequest(String address, AdapterType adapterType, String adapterId, String senderName, String subject, String url)
address - The address of the receipient. E.g. Phonenumber for Call, SMS
and Email for Email adpater.adapterType - The type of communication opted for this outbound dialog. The
first adapter of the given type is chosen if there are
multiple ones exist. Usually either one of adapterType or
adapterID is passed, although this constructor ignores the
adapterType if the adapterID is present. An error is returned
if its set outside of this constructor.adapterID - The id identifying a particular mode of communication. These
values can be retried from ://portal.ask-fast.com in the adapters section.senderName - A senderName can be attached for medium types: SMS, EMAIL. For
SMS, the length should not exceed 11 charecters.subject - Only valid for an email adapter. The subject of the message to
be senturl - This can be one of: Question json as
response. Question.QUESTION_TYPE_COMMENT AskFastRestClient.createDialog(Dialog) methodpublic String getAddress()
public void setAddress(String address)
public Collection<String> getAddressList()
public void setAddressList(Collection<String> addressList)
public String getSenderName()
public void setSenderName(String senderName)
public String getSubject()
public void setSubject(String subject)
public String getUrl()
public void setUrl(String url)
public AdapterType getAdapterType()
public void setAdapterType(AdapterType adapterType)
public String getAdapterID()
public void setAdapterID(String adapterID)
public HashMap<String,String> getAllAddresses()
public boolean isValidRequest()
Copyright © 2015 AskFast BV. All rights reserved.