Class EventEvaluation - ShutUpPaulo/TecProg_2016-01 GitHub Wiki
Class EventEvaluation
Class Attributes
Name | Type | Description | Default Value |
---|---|---|---|
rating | Float | It's a float number used to store the rating given by an user | --- |
userId | Integer | It's an integer number used to store the user identifier | --- |
userEvaluatedId | Integer | It's an integer number used to store the evaluation of the user identifier | --- |
EVALUATION_IS_INVALID | String | Stores an error message about an invalid evaluation insertion | "Hey, a avaliação deve estar entre 0 e 5" |
USER_ID_IS_INVALID | String | Stores an error message of invalid insertion of the user identification | "O identificador do usuário é inválido" |
USER_EVALUATED_ID_IS_INVALID | String | Stores an error message about invalid evaluation of user identification | "O identificador do usuário avaliado é inválido" |
Methods
EventEvaluation
Return type: Constructor;
Arguments: Float rating, Integer userId, Integer eventId;
Description: Creates a new EventEvaluation object that is used to evaluate the user login;
getRating
Return type: Float;
Arguments: No arguments;
Description: Method used to returns the rating of the event;
setRating
Return type: Void;
Arguments: Float rating;
Description: Method used to sets a rating to the event;
getUserId
Return type: Integer ;
Arguments: No arguments;
Description: Method used to gets the user identification to verify if it is already registered in the system;
setUserId
Return type: Void;
Arguments: Integer userId;
Description: Method used to sets an identifier number to the user;
getEventId
Return type: Integer;
Arguments: No arguments ;
Description: Method used to gets an identifier to each event;
setEventId
Return type: Void;
Arguments: Integer eventId;
Description: Method used to sets an identifier to each event;