Ejemplo n.º 1
0
        public override bool Equals(object obj)
        {
            IntIdMovie other = obj as IntIdMovie;

            if (other == null)
            {
                return(false);
            }
            if (this.Title != other.Title)
            {
                return(false);
            }
            if (this.Duration != other.Duration)
            {
                return(false);
            }
            if (this.MpaaRating != other.MpaaRating)
            {
                return(false);
            }
            if (!this.ReleaseDate.ToUniversalTime().Equals(other.ReleaseDate.ToUniversalTime()))
            {
                return(false);
            }
            if (this.BestPictureWinner != other.BestPictureWinner)
            {
                return(false);
            }
            if (this.Year != other.Year)
            {
                return(false);
            }
            return(true);
        }
Ejemplo n.º 2
0
 public Movie(string id, IntIdMovie movie)
 {
     this.Id                = id;
     this.Title             = movie.Title;
     this.Duration          = movie.Duration;
     this.MpaaRating        = movie.MpaaRating;
     this.ReleaseDate       = movie.ReleaseDate;
     this.BestPictureWinner = movie.BestPictureWinner;
     this.Year              = movie.Year;
 }
Ejemplo n.º 3
0
 public Movie(string id, IntIdMovie movie)
 {
     this.Id = id;
     this.Title = movie.Title;
     this.Duration = movie.Duration;
     this.MpaaRating = movie.MpaaRating;
     this.ReleaseDate = movie.ReleaseDate;
     this.BestPictureWinner = movie.BestPictureWinner;
     this.Year = movie.Year;
 }