Class ScreenshotRequests
- java.lang.Object
-
- com.github.angleshq.angles.api.requests.BaseRequests
-
- com.github.angleshq.angles.api.requests.ScreenshotRequests
-
public class ScreenshotRequests extends BaseRequests
-
-
Field Summary
-
Fields inherited from class com.github.angleshq.angles.api.requests.BaseRequests
baseUrl, client, gson
-
-
Constructor Summary
Constructors Constructor Description ScreenshotRequests(String baseUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageCompareResponsebaselineCompare(String screenshotId)Screenshotcreate(CreateScreenshot createScreenshot)Booleandelete(String screenshotId)Screenshotget(String screenshotId)Screenshot[]get(String buildId, String view, Integer limit, Integer skip)Screenshotupdate(String screenshotId, UpdateScreenshot updateRequest)-
Methods inherited from class com.github.angleshq.angles.api.requests.BaseRequests
getDefaultErrorMessage, processErrorResponse, processResponse, sendDelete, sendJSONGet, sendJSONGet, sendJSONPost, sendJSONPut, sendMultiPartEntity
-
-
-
-
Constructor Detail
-
ScreenshotRequests
public ScreenshotRequests(String baseUrl)
-
-
Method Detail
-
create
public Screenshot create(CreateScreenshot createScreenshot) throws IOException, AnglesServerException
- Throws:
IOExceptionAnglesServerException
-
get
public Screenshot[] get(String buildId, String view, Integer limit, Integer skip) throws IOException, URISyntaxException, AnglesServerException
-
get
public Screenshot get(String screenshotId) throws IOException, AnglesServerException
- Throws:
IOExceptionAnglesServerException
-
baselineCompare
public ImageCompareResponse baselineCompare(String screenshotId) throws IOException, AnglesServerException
- Throws:
IOExceptionAnglesServerException
-
delete
public Boolean delete(String screenshotId) throws IOException, AnglesServerException
- Throws:
IOExceptionAnglesServerException
-
update
public Screenshot update(String screenshotId, UpdateScreenshot updateRequest) throws IOException, AnglesServerException
- Throws:
IOExceptionAnglesServerException
-
-