Esempio n. 1
0
 public Movie(dynamic RawResults)
 {
     id = RawResults["id"].ToString();
     name = RawResults["title"].ToString();
     poster_path = RawResults["poster_path"].ToString();
     type = 1;
     try { release_date = DateTime.Parse(RawResults["release_date"].ToString()); }
     catch {}
     Owners = new List<FacebookUser>();
     Actions = new MediaActions();
 }
Esempio n. 2
0
 public Show(dynamic RawResults, dynamic SeasonRawResults)
 {
     id = RawResults["id"].ToString();
     name = RawResults["name"].ToString();
     poster_path = SeasonRawResults["poster_path"] ?? RawResults["poster_path"];
     type = 2;
     try { release_date = DateTime.Parse(RawResults["first_air_date"].ToString()); }
     catch { }
     try { number_of_seasons = RawResults["number_of_seasons"]; }
     catch { }
     Owners = new List<FacebookUser>();
     Actions = new MediaActions();
 }