0
내 앱에서 물 알림 및 유리 수를 구현하려고합니다. Googlefit에는 최근 데이터 유형 Hydration이 포함되었습니다. 그러나 과거 수화 데이터를 검색 할 수있는 분야는 없습니다. List of fields.Google에서 수화 데이터 가져 오기
이 난 수화 정보를 검색하기 위해 구현하기 위해 애 쓰고 코드는 다음과 같습니다
PendingResult<DailyTotalResult> result =
HistoryApi.readDailyTotalFromLocalDevice(client, AGGREGATE_HYDRATION);
DailyTotalResult totalResult = result.await(30, SECONDS);
if (totalResult.getStatus().isSuccess()) {
DataSet totalSet = totalResult.getTotal();
long total = totalSet.isEmpty()
? 0
: totalSet.getDataPoints().get(0).getValue(<<??What should come here??>>).asInt();
} else {
// handle failure
}
내가이 처리하는 사용자 정의 데이터 형식 및 현장을해야합니까?