Esempio n. 1
0
 public Channel(string name, Film[] films)
 {
     Name = name;
     Films = films;
 }
Esempio n. 2
0
 private static Film[] GetFilms(JToken channelsJson)
 {
     Film[] films = new Film[0];
     return channelsJson.GetValue(FilmsKey, films);
 }
Esempio n. 3
0
 public bool Equals(Film other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return Equals(other.Name, Name) && Equals(other.Channel, Channel) && other.Rating.Equals(Rating) && other.StartDateTime.Equals(StartDateTime) && other.EndDateTime.Equals(EndDateTime) && other.Image.Equals(Image);
 }
Esempio n. 4
0
 public FilmViewModel(Film film)
 {
     _film = film;
 }