use of com.cribbstechnologies.clients.mandrill.model.response.tags.TagSeriesResponse in project Java-Mandrill-Wrapper by cribbstechnologies.
the class MandrillTagsRequest method getAllTimeSeries.
public TagSeriesResponse getAllTimeSeries(BaseMandrillRequest tagsRequest) throws RequestFailedException {
TagSeriesResponse response = new TagSeriesResponse();
response.setList(((BaseMandrillAnonymousListResponse<TagWithTime>) request.postRequest(tagsRequest, ServiceMethods.Tags.ALL_TIME_SERIES, TagSeriesResponse.class, timeTagReference)).getList());
return response;
}
use of com.cribbstechnologies.clients.mandrill.model.response.tags.TagSeriesResponse in project Java-Mandrill-Wrapper by cribbstechnologies.
the class MandrillTagsRequest method getTimeSeries.
public TagSeriesResponse getTimeSeries(MandrillRequestWithTag tagsRequest) throws RequestFailedException {
TagSeriesResponse response = new TagSeriesResponse();
response.setList(((BaseMandrillAnonymousListResponse<TagWithTime>) request.postRequest(tagsRequest, ServiceMethods.Tags.TIME_SERIES, TagSeriesResponse.class, timeTagReference)).getList());
return response;
}
use of com.cribbstechnologies.clients.mandrill.model.response.tags.TagSeriesResponse in project Java-Mandrill-Wrapper by cribbstechnologies.
the class TagsTest method testGetTimeSeries.
@Test
public void testGetTimeSeries() {
MandrillRequestWithTag request = new MandrillRequestWithTag();
request.setTag("tag1");
try {
TagSeriesResponse response = tagsRequest.getTimeSeries(request);
} catch (RequestFailedException e) {
e.printStackTrace();
fail(e.getMessage());
}
}
Aggregations