Implementing the LoginPresenter
Create a new file called LoginPresenter.cs
, add it to the Presenter
folder in the Chat.Common
project, and implement the following:
public class LoginPresenter : BasePresenter { #region Private Properties private ILoginView _view; #endregion #region IClientsListView public interface ILoginView : IView { event EventHandler<Tuple<string, string>> Login; event EventHandler<Tuple<string, string>> Register; } #endregion #region Constructors public LoginPresenter(ApplicationState state, INavigationService navigationService) { _navigationService = navigationService; _state = state; _webApiAccess = new WebApiAccess(); } #endregion #region Public Methods public void SetView(ILoginView view) { _view = view; _view.Login -= ...
Get Xamarin Blueprints now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.