Class ConnexionViewModel
Implements
IReactiveNotifyPropertyChanged<IReactiveObject>
IHandleObservableErrors
IReactiveObject
IEnableLogger
Inherited Members
ReactiveObject.SuppressChangeNotifications()
ReactiveObject.AreChangeNotificationsEnabled()
ReactiveObject.DelayChangeNotifications()
ReactiveObject.Changing
ReactiveObject.Changed
ReactiveObject.ThrownExceptions
ReactiveObject.PropertyChanging
ReactiveObject.PropertyChanged
Namespace: EasySave_Project.ViewModels.Pages
Assembly: .dll
Syntax
public class ConnexionViewModel : ReactiveObject, IReactiveNotifyPropertyChanged<IReactiveObject>, IHandleObservableErrors, IReactiveObject, INotifyPropertyChanged, INotifyPropertyChanging, IEnableLogger
Constructors
| Edit this page View SourceConnexionViewModel()
Declaration
public ConnexionViewModel()
Properties
| Edit this page View SourceIsConnected
Declaration
public bool IsConnected { get; }
Property Value
Type | Description |
---|---|
bool |
Users
Declaration
public ObservableCollection<User> Users { get; }
Property Value
Type | Description |
---|---|
ObservableCollection<User> |
connexion
Declaration
public string connexion { get; }
Property Value
Type | Description |
---|---|
string |
entrerVotreNom
Declaration
public string entrerVotreNom { get; }
Property Value
Type | Description |
---|---|
string |
seconnecter
Declaration
public string seconnecter { get; }
Property Value
Type | Description |
---|---|
string |
sedeconnecter
Declaration
public string sedeconnecter { get; }
Property Value
Type | Description |
---|---|
string |
vousetesconnecte
Declaration
public string vousetesconnecte { get; }
Property Value
Type | Description |
---|---|
string |
Methods
| Edit this page View SourceConnexion(string)
Establishes a connection with the server using the provided username.
Declaration
public Task Connexion(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The username for the connection. |
Returns
Type | Description |
---|---|
Task |
ConnexionTo(string, string)
Connects to a specific user by sending a request to the server.
Declaration
public void ConnexionTo(string id, string name)
Parameters
Type | Name | Description |
---|---|---|
string | id | The ID of the user to connect to. |
string | name | The name of the user to connect to. |
DisconnexionTo()
Disconnects from the currently connected user and updates the UI.
Declaration
public void DisconnexionTo()
GetAllUserConnect()
Retrieves the list of all connected users from the server.
Declaration
public void GetAllUserConnect()
Refresh()
Refreshes the connection status and updates UI text translations.
Declaration
public void Refresh()
Implements
ReactiveUI.IReactiveNotifyPropertyChanged<TSender>
ReactiveUI.IHandleObservableErrors
ReactiveUI.IReactiveObject
Splat.IEnableLogger