Package com.blockchyp.client.dto
Class SurveyResultsRequest
java.lang.Object
com.blockchyp.client.dto.SurveyResultsRequest
- All Implemented Interfaces:
ITimeoutRequest
Models a request to retrieve survey results.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets an optional end date for filtering response data.Gets id of a single question.Gets an optional start date for filtering response data.intGets the request timeout in seconds.booleanisTest()Gets whether or not to route transaction to the test gateway.voidsetEndDate(String value) Sets an optional end date for filtering response data.voidsetQuestionId(String value) Sets id of a single question.voidsetStartDate(String value) Sets an optional start date for filtering response data.voidsetTest(boolean value) Sets whether or not to route transaction to the test gateway.voidsetTimeout(int value) Sets the request timeout in seconds.
-
Constructor Details
-
SurveyResultsRequest
public SurveyResultsRequest()
-
-
Method Details
-
setTimeout
public void setTimeout(int value) Sets the request timeout in seconds.- Parameters:
value- the request timeout in seconds.
-
getTimeout
public int getTimeout()Gets the request timeout in seconds.- Specified by:
getTimeoutin interfaceITimeoutRequest- Returns:
- the request timeout in seconds.
-
setTest
public void setTest(boolean value) Sets whether or not to route transaction to the test gateway.- Parameters:
value- whether or not to route transaction to the test gateway.
-
isTest
public boolean isTest()Gets whether or not to route transaction to the test gateway.- Specified by:
isTestin interfaceITimeoutRequest- Returns:
- whether or not to route transaction to the test gateway.
-
setQuestionId
Sets id of a single question.- Parameters:
value- id of a single question.
-
getQuestionId
Gets id of a single question.- Returns:
- id of a single question.
-
setStartDate
Sets an optional start date for filtering response data.- Parameters:
value- an optional start date for filtering response data.
-
getStartDate
Gets an optional start date for filtering response data.- Returns:
- an optional start date for filtering response data.
-
setEndDate
Sets an optional end date for filtering response data.- Parameters:
value- an optional end date for filtering response data.
-
getEndDate
Gets an optional end date for filtering response data.- Returns:
- an optional end date for filtering response data.
-