Commit fc4efc82 by Javier Piris

Cambios de de llamada a las properties ya que el modelo de datos ha cambiado en…

Cambios de de llamada a las properties ya que el modelo de datos ha cambiado en la vista de PendingRead
parent 6101bf84
......@@ -2,7 +2,6 @@
{
using System;
using System.Threading.Tasks;
using inutralia.Models;
using inutralia.Models.Questions;
public class PendingReadViewModel : BaseNavigationViewModel
......@@ -18,7 +17,7 @@
public PendingReadViewModel(Message message)
{
Message = message;
Title = message?.State;
Title = message?.StatusImg;
}
public PendingReadViewModel() { }
......@@ -33,7 +32,8 @@
public DateTime MessageDateTime => (DateTime)Message?.MessageDateTime;
public async Task RefresData()
// REFRESH
public async Task RefreshData()
{
if (Message == null)
return;
......@@ -42,7 +42,7 @@
if (await App.API.RefreshItemAsync(Message))
{
Title = Message.State;
Title = Message.StatusImg;
OnPropertyChanged("State");
}
......
......@@ -19,7 +19,7 @@
protected async void ItemTapped(object sender, ItemTappedEventArgs e)
{
var respon = e.Item as Message;
if (respon.State == "Respondida")
if (respon.StatusImg == "Respondida")
{
await DisplayAlert("ERROR", "La pregunta ya está respondida", "Entendido");
}
......
......@@ -40,7 +40,7 @@
protected override async void OnAppearing()
{
base.OnAppearing();
await ViewModel.RefresData();
await ViewModel.RefreshData();
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment