src/services/searchSuggestionService/Suggestion.ts
Class to standarize the structure of the suggestions
Properties |
|
Accessors |
constructor(userInput: string, suggestion: string, index: number)
|
Private _index |
Type : number
|
Private _suggestion |
Type : string
|
Private _userInput |
Type : string
|
suggestion | ||||||
getsuggestion()
|
||||||
Returns de _suggestion attribute of the class
Returns :
string
|
||||||
setsuggestion(suggestion: string)
|
||||||
Sets the _suggestion attribute of the class
Parameters :
Returns :
void
|
index | ||||||
getindex()
|
||||||
Returns the _index attribute of the class |
||||||
setindex(index: number)
|
||||||
Sets the _index attribute of the class This index indicates in which position of the source array it was
Parameters :
Returns :
void
|
userInput | ||||||
getuserInput()
|
||||||
Returns the _userInput attribute of the class |
||||||
setuserInput(userInput: string)
|
||||||
Sets the _userInput attribute of the class It indicated the original input which resulted in the current suggestion
Parameters :
Returns :
void
|