Yottabyte  1.0
An AI powerd app meant to detect polluted beaches and organise clean up events.
Yottabyte.Client.Services.UserServices Class Reference

User services handler More...

+ Inheritance diagram for Yottabyte.Client.Services.UserServices:
+ Collaboration diagram for Yottabyte.Client.Services.UserServices:

Public Member Functions

 UserServices (IHttpClientFactory clientFac)
 Constructor for the user service More...
 
async Task< String > CreateUser (UserIM user, Stream avatarStream, string filename)
 Register handler More...
 
Task< String > CreateUser (UserIM user, Stream avatarStream, string filename)
 Register handler More...
 

Events

Action OnChange
 Action for checking if a data needs to be updated in the DOM More...
 
- Events inherited from Yottabyte.Client.Services.IUsersServices
Action OnChange
 Action for checking if a data needs to be updated in the DOM More...
 

Detailed Description

User services handler

Definition at line 18 of file UserServices.cs.

Constructor & Destructor Documentation

◆ UserServices()

Yottabyte.Client.Services.UserServices.UserServices ( IHttpClientFactory  clientFac)
inline

Constructor for the user service

Parameters
clientFacClient factory to get the HTTP client

Definition at line 29 of file UserServices.cs.

Member Function Documentation

◆ CreateUser()

async Task< String > Yottabyte.Client.Services.UserServices.CreateUser ( UserIM  user,
Stream  avatarStream,
string  filename 
)
inline

Register handler

Parameters
userThe user info
avatarStreamThe image as file stream
filenameName of the image
Returns
Was register success?

Implements Yottabyte.Client.Services.IUsersServices.

Definition at line 39 of file UserServices.cs.

Event Documentation

◆ OnChange

Action Yottabyte.Client.Services.UserServices.OnChange

Action for checking if a data needs to be updated in the DOM

Definition at line 37 of file UserServices.cs.


The documentation for this class was generated from the following file: