Fit/AAPLFoodItem.h
/* |
Copyright (C) 2016 Apple Inc. All Rights Reserved. |
See LICENSE.txt for this sample’s licensing information |
Abstract: |
A simple model class to represent food and its associated energy. |
*/ |
@import Foundation; |
@import HealthKit; |
@interface AAPLFoodItem : NSObject |
// Creates a new food item. |
+ (instancetype)foodItemWithName:(NSString *)name joules:(double)joules; |
// \c AAPLFoodItem properties are immutable. |
@property (nonatomic, readonly, copy) NSString *name; |
@property (nonatomic, readonly) double joules; |
@end |
Copyright © 2016 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2016-10-25