Ejemplo n.º 1
0
        private async void SendMongo()
        {
            Coordinates Coordinates = await Location.GetLocation();

            EmotionalTopic emotional = new EmotionalTopic()
            {
                IdPatient = this.Patient.CPF,
                DataHora  = this.Emotional.EmotionalTime,
                Quality   = this.Emotional.Quality,
                Latitude  = Coordinates.Latitude,
                Longitude = Coordinates.Longitude,
                Altitude  = Coordinates.Altitude
            };

            mongo.InsertEmotional(emotional);
        }
Ejemplo n.º 2
0
 public void InsertEmotional(EmotionalTopic EmotionalTopic)
 {
     this.EmotionalCollection.InsertOne(EmotionalTopic);
 }