/// <summary> /// Called when page is navigated to, asynchronously. /// </summary> /// <param name="id">The identifier.</param> /// <returns> /// The completion task. /// </returns> protected async Task OnNavigatedToAsync(int id) { if (this.Model == null || this.Model.Id != id) { this.Model = await this.CreateModelAsync(id); } else { this.Model.Refresh(); } }
/// <summary> /// Creates the model, asynchronously. /// </summary> /// <param name="id">The identifier.</param> /// <returns> /// The created model task. /// </returns> protected override Task <MessagesViewModel> CreateModelAsync(int id) { return(MessagesViewModel.CreateAsync(id, YammerService.Instance.GetReceivedMessagesAsync)); }
/// <summary> /// Creates the model, asynchronously. /// </summary> /// <param name="id">The identifier.</param> /// <returns> /// The created model task. /// </returns> protected override Task <MessagesViewModel> CreateModelAsync(int id) { return(MessagesViewModel.CreateAsync(id, this.GetGroupMessagesAsync, this.Group.Id)); }