Package com.ubs.backend.classes.database
Class Result
java.lang.Object
com.ubs.backend.classes.database.ResultParent
com.ubs.backend.classes.database.Result
Dataclass to store all Results with their answer, tag, upvotes, downvotes and usages
- Since:
- 17.07.2021
- Author:
- Marc Andri Fuchs
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.ubs.backend.classes.database.ResultParent
getDownvotes, getId, getTag, getUpvotes, getUsages, setDownvotes, setId, setTag, setUpvotes, setUsages
-
Field Details
-
answer
The Answer for the Tag- Since:
- 17.07.2021
- See Also:
Answer
-
-
Constructor Details
-
Result
Default Constructor If you create an answer in code, please use this one- Parameters:
answer- the Answer which will be matched with the Tagtag- the Tag for this Result- Since:
- 17.07.2021
-
Result
All-args constructor- Parameters:
answer- the Answer which will be matched with the Tagtag- the Tag for this Resultupvotes- the amount of Upvotesdownvotes- the amount of Downvotes- Since:
- 17.07.2021
-
Result
public Result()No-args constructor- Since:
- 17.07.2021
-
-
Method Details
-
getAnswer
-
setAnswer
-
toString
- Overrides:
toStringin classResultParent
-