Interface BaseType
- All Known Subinterfaces:
Account,ConnectionParams,Email,NamedType,SendClassification,Subscriber,SubscriptionList
public interface BaseType
This is the base type for all entities defined for email provider interface.
It has setter and getter methods for an identifier (id) to identify the entities.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a custom parameter to the entity.getId()Get the id of the entity.Get a custom param valueGet entity config parameters (if any).voidSet the id of the entityvoidSet entity config parameters (if any).
-
Method Details
-
getId
String getId()Get the id of the entity.- Returns:
- The identifier of the entity
-
setId
Set the id of the entity- Parameters:
id- Entity identifier.
-
getParams
Get entity config parameters (if any). These have been added to take care of any email provder specific paramaters.- Returns:
- a map containing custom properties.
-
setParams
Set entity config parameters (if any). These have been added to take care of any email provder specific paramaters.- Parameters:
params- A map containing custom parameters.
-
addParam
Add a custom parameter to the entity.- Parameters:
paramName- The parameter nameparamValue- The parameter value
-
getParam
Get a custom param value- Parameters:
paramName- name of parameter- Returns:
- value of parameter
-