Exemple #1
0
        private async void SendMongo()
        {
            Coordinates Coordinates = await Location.GetLocation();

            SleepTopic sleep = new SleepTopic()
            {
                IdPatient = this.Patient.CPF,
                DataHora  = this.Sleep.SleepTime,
                Quality   = this.Sleep.Quality,
                Duration  = this.Sleep.Duration,
                Latitude  = Coordinates.Latitude,
                Longitude = Coordinates.Longitude,
                Altitude  = Coordinates.Altitude
            };

            mongo.InsertSleep(sleep);
        }
Exemple #2
0
 public void InsertSleep(SleepTopic SleepTopic)
 {
     this.SleepCollection.InsertOne(SleepTopic);
 }