ChatterBox.Client.Presentation.Shared.ViewModels.ContactsViewModel.ContactsViewModel C# (CSharp) Method

ContactsViewModel() public method

public ContactsViewModel ( IForegroundUpdateService foregroundUpdateService, Func contactFactory, CoreDispatcher uiDispatcher ) : System
foregroundUpdateService IForegroundUpdateService
contactFactory Func
uiDispatcher CoreDispatcher
return System
        public ContactsViewModel(IForegroundUpdateService foregroundUpdateService,
            Func<ConversationViewModel> contactFactory, CoreDispatcher uiDispatcher) :base(uiDispatcher)
        {
            _contactFactory = contactFactory;
            foregroundUpdateService.OnPeerDataUpdated += OnPeerDataUpdated;
            foregroundUpdateService.GetShownUser += ForegroundUpdateService_GetShownUser;
            foregroundUpdateService.OnVoipStateUpdate += OnVoipStateUpdate;
            OnPeerDataUpdated();

            LayoutService.Instance.LayoutChanged += LayoutChanged;
            LayoutChanged(LayoutService.Instance.LayoutType);
            ShowSettings = new DelegateCommand(() => OnShowSettings?.Invoke());
        }