|
|
@ -48,13 +48,30 @@ namespace Model
|
|
|
|
string? name = null, string? surname = null, string? profilePict = null);
|
|
|
|
string? name = null, string? surname = null, string? profilePict = null);
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
///
|
|
|
|
/// Add an user in the data.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="user"></param>
|
|
|
|
/// <param name="user">The user to add.</param>
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns>True is the user was correctly added to the data. False otherwise.</returns>
|
|
|
|
bool AddUserToData(User user);
|
|
|
|
bool AddUserToData(User user);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// Modify the currently connected user.
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
/// <param name="newUser">An user containing new user's properties to changes.</param>
|
|
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
bool ModifyCurrentConnected(User newUser);
|
|
|
|
bool ModifyCurrentConnected(User newUser);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// Log in an user. If the connection succed, pass the connected user to <see cref="CurrentConnected"/>.
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
/// <param name="mail">The User's mail.</param>
|
|
|
|
|
|
|
|
/// <param name="password">The User's (plain text) password.</param>
|
|
|
|
|
|
|
|
/// <returns>True if the connection succed, false otherwise.</returns>
|
|
|
|
bool LogIn(string mail, string password);
|
|
|
|
bool LogIn(string mail, string password);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// Log out the current connected user.
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
void LogOut();
|
|
|
|
void LogOut();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|