public Criminal( string Name, string Surname, string Nickname, PhotoModel Portrait, string Citizenship, string LastHome, List <string> Languages, string CriminalWork, string LastDeal, int Id) { surname = Surname; name = Name; nickname = Nickname; portrait = Portrait; citizenship = Citizenship; lastHome = LastHome; languages = Languages; criminalWork = CriminalWork; lastDeal = LastDeal; id = Id; }
public override bool Equals(object obj) { if (!obj.GetType().Equals(typeof(PhotoModel))) { return(false); } PhotoModel temp = obj as PhotoModel; return((temp.Height == Height || temp.Height == NotDefinedInt) && (temp.HairColor == HairColor || temp.HairColor.Equals(NotDefinedColor)) && (temp.EyeColor == EyeColor || temp.EyeColor.Equals(NotDefinedColor)) && (temp.Description == Description || temp.Description == NotDefinedString) && (temp.Motherland == Motherland || temp.Motherland == NotDefinedString) && ((temp.birth.Year == birth.Year && temp.birth.Month == birth.Month && temp.birth.Day == birth.Day) || (temp.birth.Year == NotDefinedDateTime.Year && temp.birth.Month == NotDefinedDateTime.Month && temp.birth.Day == NotDefinedDateTime.Day))); }
public PhotoModel(PhotoModel copyPhotoModel) : this(copyPhotoModel.Height, copyPhotoModel.HairColor, copyPhotoModel.EyeColor, copyPhotoModel.Description, copyPhotoModel.Motherland, copyPhotoModel.Birth) { }