I am studying Xamarin.Forms. I don't know very well MVVM and I have some question about it.
I want to create a connexion form (login/password) and to manage this connexion by sending connexion informations to a RPC, RPC that will report if the connexion is accepted (1) or refused (0). How to organize my Xamarin.Forms project to respect MVVM?
This is how I work now:
The connexion works... but I don't use any "ViewModel".
I found it normal that this is the "User" class that owns the "CheckConnexion()" method. But should I move this method in a class of a "ViewModels/" folder (the class can be named "ConnexionViewModel" for example) ?
If yes, what property should I create in my "ConnexionViewModel" class? Nothing at all since I will simply use the "CheckConnexion()" method? Or simply a field (an "int") indicating if the connection worked without problems (1 for OK, 0 for not OK)?
Thank you in advance for your advice.