public TemplateResponse deleteTemplate(MandrillRequestWithName deleteRequest) throws RequestFailedException {
return (TemplateResponse) request.postRequest(deleteRequest, ServiceMethods.Templates.DELETE, TemplateResponse.class);
}
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;
}