示例#1
0
文件: Movie.cs 项目: bdennisco/Shelf
 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();
 }
示例#2
0
文件: Show.cs 项目: bdennisco/Shelf
 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();
 }