Last active
May 23, 2019 00:34
-
-
Save PulkitSethi1984/21d1ca44c3eb7c739cdb500e139ac762 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class NotificationsViewModel : AppBaseViewModel | |
{ | |
private readonly INotificationService _notificationService; | |
private readonly INotificationPresenter _presenter; | |
public NotificationsViewModel(INotificationPresenter presenter, INotificationService notificationService) | |
{ | |
_presenter = presenter; | |
_notificationService = notificationService; | |
} | |
public override void OnAppearing() | |
{ | |
_notificationService.NotificationsCount.Subscribe((count) => | |
{ | |
_presenter.UpdateCount(); | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment