public class SurveyQuestion extends Object implements ITimeoutRequest, IAbstractAcknowledgement
Constructor and Description |
---|
SurveyQuestion() |
Modifier and Type | Method and Description |
---|---|
void |
addResponse(SurveyDataPoint value)
Adds a the set of response data points.
|
String |
getError()
Gets the error, if an error occurred.
|
String |
getId()
Gets internal id for a survey question.
|
int |
getOrdinal()
Gets ordinal number indicating the position of the survey question in the post
transaction sequence.
|
String |
getQuestionText()
Gets the full text of the transaction.
|
String |
getQuestionType()
Gets the type of question.
|
int |
getResponseCount()
Gets the total number of responses during the query period if results are
requested.
|
String |
getResponseDescription()
Gets a narrative description of the transaction result.
|
float |
getResponseRate()
Gets the response rate, expressed as a ratio, if results are requested.
|
Collection<SurveyDataPoint> |
getResponses()
Gets the set of response data points.
|
int |
getTimeout()
Gets the request timeout in seconds.
|
int |
getTransactionCount()
Gets the total number of transactions processed during the query period if results
are requested.
|
boolean |
isEnabled()
Gets determines whether or not the question will be presented post transaction.
|
boolean |
isSuccess()
Gets whether or not the request succeeded.
|
boolean |
isTest()
Gets whether or not to route transaction to the test gateway.
|
void |
setEnabled(boolean value)
Sets determines whether or not the question will be presented post transaction.
|
void |
setError(String value)
Sets the error, if an error occurred.
|
void |
setId(String value)
Sets internal id for a survey question.
|
void |
setOrdinal(int value)
Sets ordinal number indicating the position of the survey question in the post
transaction sequence.
|
void |
setQuestionText(String value)
Sets the full text of the transaction.
|
void |
setQuestionType(String value)
Sets the type of question.
|
void |
setResponseCount(int value)
Sets the total number of responses during the query period if results are
requested.
|
void |
setResponseDescription(String value)
Sets a narrative description of the transaction result.
|
void |
setResponseRate(float value)
Sets the response rate, expressed as a ratio, if results are requested.
|
void |
setResponses(Collection<SurveyDataPoint> value)
Sets the set of response data points.
|
void |
setSuccess(boolean value)
Sets whether or not the request succeeded.
|
void |
setTest(boolean value)
Sets whether or not to route transaction to the test gateway.
|
void |
setTimeout(int value)
Sets the request timeout in seconds.
|
void |
setTransactionCount(int value)
Sets the total number of transactions processed during the query period if results
are requested.
|
public void setTimeout(int value)
value
- the request timeout in seconds.public int getTimeout()
getTimeout
in interface ITimeoutRequest
public void setTest(boolean value)
value
- whether or not to route transaction to the test gateway.public boolean isTest()
isTest
in interface ITimeoutRequest
public void setSuccess(boolean value)
value
- whether or not the request succeeded.public boolean isSuccess()
isSuccess
in interface IAbstractAcknowledgement
public void setError(String value)
value
- the error, if an error occurred.public String getError()
getError
in interface IAbstractAcknowledgement
public void setResponseDescription(String value)
value
- a narrative description of the transaction result.public String getResponseDescription()
getResponseDescription
in interface IAbstractAcknowledgement
public void setId(String value)
value
- internal id for a survey question.public String getId()
public void setOrdinal(int value)
value
- ordinal number indicating the position of the survey question in the
post transaction sequence.public int getOrdinal()
public void setEnabled(boolean value)
value
- determines whether or not the question will be presented post
transaction.public boolean isEnabled()
public void setQuestionText(String value)
value
- the full text of the transaction.public String getQuestionText()
public void setQuestionType(String value)
value
- the type of question. Valid values are 'yes_no' and 'scaled'.public String getQuestionType()
public void setTransactionCount(int value)
value
- the total number of transactions processed during the query period if
results are requested.public int getTransactionCount()
public void setResponseCount(int value)
value
- the total number of responses during the query period if results are
requested.public int getResponseCount()
public void setResponseRate(float value)
value
- the response rate, expressed as a ratio, if results are requested.public float getResponseRate()
public void setResponses(Collection<SurveyDataPoint> value)
value
- the set of response data points.public Collection<SurveyDataPoint> getResponses()
public void addResponse(SurveyDataPoint value)
value
- the set of response data points.Copyright © 2022 BlockChyp, Inc.. All rights reserved.