Example #1
0
 public Channel(string name, Film[] films)
 {
     Name = name;
     Films = films;
 }
Example #2
0
 private static Film[] GetFilms(JToken channelsJson)
 {
     Film[] films = new Film[0];
     return channelsJson.GetValue(FilmsKey, films);
 }
Example #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);
 }
Example #4
0
 public FilmViewModel(Film film)
 {
     _film = film;
 }