Exemple #1
0
 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);
 }
Exemple #2
0
 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");
     }
 }
Exemple #3
0
 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");
     }
 }
Exemple #4
0
 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);
 }
Exemple #5
0
 public abstract void FoundFace(CognitiveFace cog);
Exemple #6
0
 public Passenger(string name, string surname, string CI, string image, CognitiveFace cog) : base(name, surname, CI, image, cog)
 {
     this.FoundFace(cog);
 }
Exemple #7
0
 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;
 }