public Person(string name, string surname, string CI, string image, CognitiveFace cog) { this.Name = name; this.Surname = surname; this.CI = CI; this.Rating = 0; this.TrueRate = 0; this.Travels = 0; this.Image = image; cog.Recognize(image); }
public override void FoundFace(CognitiveFace cog) { if (cog.FaceFound) { Console.WriteLine("Face Found!"); new SendTwitt().Send($"{this.Name} {this.Surname}", this.Image); } else { Console.WriteLine("No Face Found"); } }
public override void FoundFace(CognitiveFace cog) { if (cog.FaceFound) { Console.WriteLine("Face Found!"); if (cog.SmileFound) { Console.WriteLine("Found a Smile :)"); new SendTwitt().Send(this.Bio, this.Image); } else { Console.WriteLine("No smile found :("); } } else { Console.WriteLine("No Face Found"); } }
public Driver(string name, string surname, string CI, string bio, string vehicle, string image, CognitiveFace cog) : base(name, surname, CI, image, cog) { this.Bio = bio; this.Vehicle = vehicle; this.FoundFace(cog); }
public abstract void FoundFace(CognitiveFace cog);
public Passenger(string name, string surname, string CI, string image, CognitiveFace cog) : base(name, surname, CI, image, cog) { this.FoundFace(cog); }
public PoolDriver(string name, string surname, string CI, string bio, string vehicle, int maxPassengers, string image, CognitiveFace cog) : base(name, surname, CI, bio, vehicle, image, cog) { this.MaxPassengers = maxPassengers; }