Search in sources :

Example 1 with TemplateListResponse

use of com.cribbstechnologies.clients.mandrill.model.response.templates.TemplateListResponse in project Java-Mandrill-Wrapper by cribbstechnologies.

the class MandrillTemplatesRequest method getTemplates.

public TemplateListResponse getTemplates(BaseMandrillRequest listRequest) throws RequestFailedException {
    TemplateListResponse response = new TemplateListResponse();
    response.setList(((BaseMandrillAnonymousListResponse<TemplateResponse>) request.postRequest(listRequest, ServiceMethods.Templates.LIST, TemplateResponse.class, templatesListReference)).getList());
    return response;
}
Also used : TemplateListResponse(com.cribbstechnologies.clients.mandrill.model.response.templates.TemplateListResponse) TemplateResponse(com.cribbstechnologies.clients.mandrill.model.response.templates.TemplateResponse)

Aggregations

TemplateListResponse (com.cribbstechnologies.clients.mandrill.model.response.templates.TemplateListResponse)1 TemplateResponse (com.cribbstechnologies.clients.mandrill.model.response.templates.TemplateResponse)1