示例#1
0
        static void Main(string[] args)
        {
            MongoDBApi.MongoDBClient.Current.CreateTableIfNotExists("Arre");
            MongoDBApi.MongoDBClient.Current.InsertTrainData(new Face()
            {
                faceId = Guid.NewGuid().ToString(), RightSwipe = true
            }, "Arre");
            List <Face> arr = new List <Face>()
            {
                new Face()
                {
                    faceId = Guid.NewGuid().ToString(), RightSwipe = false
                },
                new Face()
                {
                    faceId = Guid.NewGuid().ToString(), RightSwipe = false
                }
            };

            MongoDBApi.MongoDBClient.Current.InsertTrainData(arr, "Arre");
            List <Face> hej = MongoDBApi.MongoDBClient.Current.GetAllDataFromTable("Arre");


            Camera.Current.LoadCamera();
            System.Threading.Thread.Sleep(4000);
            TinderArduinoClient.Current.Open();
            FDA.Init();
            BaseCommand.InitCommands();

            while (true)
            {
                var input = Console.ReadLine();
                BaseCommand.ExecuteSuitableCommand(input);
            }
        }