Я использую RestSharp в своем проекте Windows Phone 7.1.
У меня есть ответ в формате XML здесь: https://skydrive.live.com/redir.aspx?cid=0b39f4fbbb0489dd&resid=B39F4FBBB0489DD!139&parid=B39F4FBBB0489DD!103&authkey=!AOdT-FiS6Mw8v5Y
Я попытался десериализовать этот ответ на класс:
public class fullWall
{
public _user user { get; set; }
public int numberOfFriend { get; set; }
public int numberOfPhoto { get; set; }
public List timhotPhotos { get; set; }
public fullWall()
{
timhotPhotos = new List();
}
}
All свойства в порядке, кроме списка timhotPhotos
, как вы можете видеть здесь:
класс timhotPhotos:
public class timhotPhotos
{
public string id { get; set; }
public string title { get; set; }
public string description { get; set; }
public string url { get; set; }
public double width { get; set; }
public double height { get; set; }
public DateTime createdDate { get; set; }
public _user user { get; set; }
public int numOfComment { get; set; }
public int numOfRate { get; set; }
public int numOfView { get; set; }
public bool rated { get; set; }
}
Где я ошибаюсь?