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