Implementing the ClientsListPresenter
Create a new file called ClientsListPresenter.cs
, add it to the Presenter
folder in the Chat.Common
project, and implement the following:
public class ClientsListPresenter : BasePresenter { #region Private Properties private IClientsListView _view; #endregion #region IClientsListView public interface IClientsListView : IView { event EventHandler<ClientSelectedEventArgs> ClientSelected; void NotifyConnectedClientsUpdated(IEnumerable<Client> clients); } #endregion #region Constructors public ClientsListPresenter(ApplicationState state, INavigationService navigationService, string accessToken) { _navigationService = navigationService; _state = state; _state.AccessToken = accessToken; InitSignalR(accessToken).ConfigureAwait(false); ...
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.