Beispiel #1
0
 /// <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();
     }
 }
Beispiel #2
0
 /// <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));
 }
Beispiel #3
0
 /// <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));
 }