OrionUsers class
Abstracts the endpoints of the users service
- Inheritance
-
- Object
- BaseClient
- OrionUsers
Constructors
Properties
- api ↔ String
-
the api version
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- host ↔ String
-
the host of the service
getter/setter pairinherited
- https ↔ bool
-
getter/setter pairinherited
- port ↔ String
-
the port of the service
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- wsEndpoint ↔ String
-
getter/setter pairinherited
- wsURL ↔ String
-
the result url
getter/setter pairinherited
Methods
-
authenticate(
String email, String password) → Future< Response> - Authenticates the users services and returns Future<http.Response>
-
changeServiceConnection(
bool https, String host, String port) → void -
Method used to change parameters to connect in users service
bool https
indicates if the client will use http or httpsString host
the host of the serviceString port
the port used by the serviceinherited -
createAuthenticate(
String name, String email, String password) → Future< Response> - Creates and authenticates a user in the users services and returns Future<http.Response>
-
createUser(
String name, String email, String password) → Future< Response> - Creates a user in the users services and returns Future<http.Response>
-
deleteUser(
String email, String jwt) → Future< Response> - Deletes a user in the users services and returns Future<http.Response>
-
forgotUser(
String email) → Future< Response> - Send a hash by email in the users services and returns Future<http.Response>
-
listUser(
String id, String jwt) → Future< Response> - Lists a user in the users services and returns Future<http.Response>
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
recoverPassword(
String email) → Future< Response> -
Recoveries the password of the user sending an
e-mail
-
retrieveUser(
String hash, String password) → Future< Response> - Retrieve a password in the users services and returns Future<http.Response>
-
toString(
) → String -
A string representation of this object.
inherited
-
updateEmail(
String email, String newEmail, dynamic jwt) → Future< Response> - updates the email from a user in the users services and returns Future<http.Response>
-
updatePassword(
String email, String password, String newPassword, String jwt) → Future< Response> - Lists a user in the users services and returns Future<http.Response>
-
updateUser(
String id, String name, String email, String password, String jwt) → Future< Response> - updates a user in the users services and returns Future<http.Response>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited