2020-10-16 08:06:03 +00:00
|
|
|
"use strict";
|
2020-10-02 12:01:51 +00:00
|
|
|
|
2020-09-29 15:11:43 +00:00
|
|
|
/**
|
|
|
|
* Object obtained in response to an attempt to login to the portal.
|
|
|
|
*/
|
|
|
|
class LoginResult {
|
2020-10-21 13:31:11 +00:00
|
|
|
constructor(success, message) {
|
2020-10-16 07:45:58 +00:00
|
|
|
/**
|
|
|
|
* Result of the login operation
|
|
|
|
* @type Boolean
|
|
|
|
*/
|
2020-10-21 13:31:11 +00:00
|
|
|
this.success = success;
|
2020-10-16 07:45:58 +00:00
|
|
|
/**
|
|
|
|
* Login response message
|
|
|
|
* @type String
|
|
|
|
*/
|
2020-10-21 13:31:11 +00:00
|
|
|
this.message = message;
|
2020-10-16 07:45:58 +00:00
|
|
|
}
|
2020-09-29 15:11:43 +00:00
|
|
|
}
|
2020-10-16 08:05:28 +00:00
|
|
|
module.exports = LoginResult;
|