Class History
- java.lang.Object
-
- net.thexcoders.aladin_bot_backend.models.History
-
public class History extends Object
History Model to store the History of the transactions between the client and the bot to be used later to feed and improve the accuracy of the training Model.- See Also:
CategorizerImpl.CategoryResult,Date,*
-
-
Constructor Summary
Constructors Constructor Description History(String input, CategorizerImpl.CategoryResult output, String lang)History Model Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchangeState(int state)Change the state of the instance of History based in the state entered as a Parameterorg.springframework.ui.ModelMaptoModelmap()Generating a ModelMap instance using the instance attributes.
-
-
-
Field Detail
-
FR
public static final String FR
- See Also:
- Constant Field Values
-
EN
public static final String EN
- See Also:
- Constant Field Values
-
VALIDATED
public static final String VALIDATED
- See Also:
- Constant Field Values
-
REJECTED
public static final String REJECTED
- See Also:
- Constant Field Values
-
WAITING
public static final String WAITING
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
History
public History(String input, CategorizerImpl.CategoryResult output, String lang)
History Model Constructor- Parameters:
input- a String representing the user Inputoutput- the CategoryResult instance that represents the output of the botlang- A string representing the language in which the communication has been done.
-
-
Method Detail
-
toModelmap
public org.springframework.ui.ModelMap toModelmap()
Generating a ModelMap instance using the instance attributes.
-
changeState
public void changeState(int state)
Change the state of the instance of History based in the state entered as a Parameter- Parameters:
state- Integer referring to the target state to change the value to
-
-