Esempio n. 1
0
 public void readDailyTotal()
 {
     SA.Fitness.ReadDailyTotalRequest.Builder builder = new SA.Fitness.ReadDailyTotalRequest.Builder();
     builder.SetDataType(SA.Fitness.DataType.TYPE_STEP_COUNT_DELTA);
     SA.Fitness.ReadDailyTotalRequest request = builder.Build();
     request.OnRequestFinished += Request_OnReadDailyTotalRequestFinished;
     SA.Fitness.History.Instance.ReadDailyTotal(request);
 }
        public void ReadDailyTotalFromLocalDevice(ReadDailyTotalRequest request)
        {
            StringBuilder builder = new StringBuilder();

            builder.Append(request.Id);
            builder.Append(Connection.SEPARATOR1);
            builder.Append(request.DataType.Value);

            dailyTotalRequests.Add(request.Id, request);
            Proxy.ReadDailyTotalFromLocalDevice(builder.ToString());
        }