Skip to content

Commit

Permalink
Add body temperature serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
schaefba committed Jan 18, 2016
1 parent 02baf01 commit 76a5abb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Example/Tests/OMHSerializerTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@
@"pathsToValues": @{
@"header.schema_id.name": @"body-temperature",
@"header.schema_id.namespace":@"omh",
@"body.body_temperature.value": value,
@"body.body_temperature.value": @37.833333,
@"body.body_temperature.unit": @"F",
@"body.effective_time_frame.date_time": [sampledAt RFC3339String],
}
Expand Down
2 changes: 1 addition & 1 deletion Pod/Classes/OMHHealthKitConstantsMapper.m
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ + (NSDictionary*)allSupportedQuantityTypeIdentifiersToClass {
HKQuantityTypeIdentifierBodyFatPercentage: @"OMHSerializerBodyFatPercentage",
HKQuantityTypeIdentifierBodyMass : @"OMHSerializerWeight",
HKQuantityTypeIdentifierBodyMassIndex: @"OMHSerializerBodyMassIndex",
HKQuantityTypeIdentifierBodyTemperature: @"OMHSerializerBodyMassIndex",
HKQuantityTypeIdentifierBodyTemperature: @"OMHSerializerBodyTemperature",
HKQuantityTypeIdentifierDietaryBiotin: @"OMHSerializerGenericQuantitySample",
HKQuantityTypeIdentifierDietaryCaffeine: @"OMHSerializerGenericQuantitySample",
HKQuantityTypeIdentifierDietaryCalcium: @"OMHSerializerGenericQuantitySample",
Expand Down
2 changes: 1 addition & 1 deletion Pod/Classes/OMHSerializer.m
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ - (id)bodyData {
@"value": [NSNumber numberWithDouble:value],
@"unit": @"C"
},
@"effective_time_frame": [self populateTimeFrameProperty:self.sample.startDate endDate:self.sample.endDate]
@"effective_time_frame": [OMHSerializer populateTimeFrameProperty:self.sample.startDate endDate:self.sample.endDate]

};
}
Expand Down

0 comments on commit 76a5abb

Please sign in to comment.