Package com.blockchyp.client.dto
Class SurveyDataPoint
java.lang.Object
com.blockchyp.client.dto.SurveyDataPoint
Models a request to retrieve or manipulate survey questions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets a narrative description of the answer.Gets a unique identifier for a specific answer type.floatGets the average transaction amount for a given answer.intGets the number of responses.floatGets response rate as a percentage of total transactions.voidsetAnswerDescription(String value) Sets a narrative description of the answer.voidsetAnswerKey(String value) Sets a unique identifier for a specific answer type.voidsetAverageTransaction(float value) Sets the average transaction amount for a given answer.voidsetResponseCount(int value) Sets the number of responses.voidsetResponsePercentage(float value) Sets response rate as a percentage of total transactions.
-
Constructor Details
-
SurveyDataPoint
public SurveyDataPoint()
-
-
Method Details
-
setAnswerKey
Sets a unique identifier for a specific answer type.- Parameters:
value- a unique identifier for a specific answer type.
-
getAnswerKey
Gets a unique identifier for a specific answer type.- Returns:
- a unique identifier for a specific answer type.
-
setAnswerDescription
Sets a narrative description of the answer.- Parameters:
value- a narrative description of the answer.
-
getAnswerDescription
Gets a narrative description of the answer.- Returns:
- a narrative description of the answer.
-
setResponseCount
public void setResponseCount(int value) Sets the number of responses.- Parameters:
value- the number of responses.
-
getResponseCount
public int getResponseCount()Gets the number of responses.- Returns:
- the number of responses.
-
setResponsePercentage
public void setResponsePercentage(float value) Sets response rate as a percentage of total transactions.- Parameters:
value- response rate as a percentage of total transactions.
-
getResponsePercentage
public float getResponsePercentage()Gets response rate as a percentage of total transactions.- Returns:
- response rate as a percentage of total transactions.
-
setAverageTransaction
public void setAverageTransaction(float value) Sets the average transaction amount for a given answer.- Parameters:
value- the average transaction amount for a given answer.
-
getAverageTransaction
public float getAverageTransaction()Gets the average transaction amount for a given answer.- Returns:
- the average transaction amount for a given answer.
-