diff options
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncGpsDataModel.h')
| -rwxr-xr-x | libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncGpsDataModel.h | 133 |
1 files changed, 133 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncGpsDataModel.h b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncGpsDataModel.h new file mode 100755 index 0000000..d985aa1 --- /dev/null +++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOSyncGpsDataModel.h | |||
| @@ -0,0 +1,133 @@ | |||
| 1 | // | ||
| 2 | // IDOSyncGpsDataModel.h | ||
| 3 | // IDOBluetoothInternal | ||
| 4 | // | ||
| 5 | // Created by 何东阳 on 2019/8/6. | ||
| 6 | // Copyright © 2019 何东阳. All rights reserved. | ||
| 7 | // | ||
| 8 | |||
| 9 | #import <Foundation/Foundation.h> | ||
| 10 | #if __has_include(<IDOBluetoothInternal/IDOBluetoothInternal.h>) | ||
| 11 | #elif __has_include(<IDOBlueProtocol/IDOBlueProtocol.h>) | ||
| 12 | #else | ||
| 13 | #import "IDOBluetoothBaseModel.h" | ||
| 14 | #endif | ||
| 15 | |||
| 16 | @interface IDOSyncGpsDataItemInfoBluetoothModel : IDOBluetoothBaseModel | ||
| 17 | |||
| 18 | /** | ||
| 19 | 序列号 | Serial number | ||
| 20 | */ | ||
| 21 | @property (nonatomic,assign) NSInteger serialNumber; | ||
| 22 | |||
| 23 | /** | ||
| 24 | 经度 | Longitude | ||
| 25 | */ | ||
| 26 | @property (nonatomic,copy) NSString * latitudeStr; | ||
| 27 | |||
| 28 | /** | ||
| 29 | 纬度 | Latitude | ||
| 30 | */ | ||
| 31 | @property (nonatomic,copy) NSString * longitudeStr; | ||
| 32 | |||
| 33 | /** | ||
| 34 | * 发起运动时间 时间戳 精确到秒 time interval since 1970 (如:1444361933) | ||
| 35 | * Initiate exercise time Timestamp time interval since 1970 (eg 14442361933) | ||
| 36 | */ | ||
| 37 | @property (nonatomic,copy) NSString * timeStr; | ||
| 38 | |||
| 39 | /** | ||
| 40 | 日期 精确到日期 date interval since 1970 (如:1444361933) | date interval since 1970 (eg: 14443361933) | ||
| 41 | */ | ||
| 42 | @property (nonatomic,copy) NSString * dateStr; | ||
| 43 | |||
| 44 | @end | ||
| 45 | |||
| 46 | |||
| 47 | @interface IDOSyncGpsDataInfoBluetoothModel : IDOBluetoothBaseModel | ||
| 48 | |||
| 49 | /** | ||
| 50 | 年份 | Year | ||
| 51 | */ | ||
| 52 | @property (nonatomic,assign) NSInteger year; | ||
| 53 | |||
| 54 | /** | ||
| 55 | 月份 | Month | ||
| 56 | */ | ||
| 57 | @property (nonatomic,assign) NSInteger month; | ||
| 58 | |||
| 59 | /** | ||
| 60 | 日期 | Date | ||
| 61 | */ | ||
| 62 | @property (nonatomic,assign) NSInteger day; | ||
| 63 | |||
| 64 | /** | ||
| 65 | 时 | hour | ||
| 66 | */ | ||
| 67 | @property (nonatomic,assign) NSInteger hour; | ||
| 68 | |||
| 69 | /** | ||
| 70 | 分 | minutes | ||
| 71 | */ | ||
| 72 | @property (nonatomic,assign) NSInteger minute; | ||
| 73 | |||
| 74 | /** | ||
| 75 | 秒 | seconds | ||
| 76 | */ | ||
| 77 | @property (nonatomic,assign) NSInteger second; | ||
| 78 | |||
| 79 | /** | ||
| 80 | * 发起运动时间 时间戳 精确到秒 time interval since 1970 (如:1444361933) | ||
| 81 | * Initiate exercise time Timestamp time interval since 1970 (eg 14442361933) | ||
| 82 | */ | ||
| 83 | @property (nonatomic,copy) NSString * timeStr; | ||
| 84 | |||
| 85 | /** | ||
| 86 | 日期 精确到日期 date interval since 1970 (如:1444361933) | date interval since 1970 (eg: 14443361933) | ||
| 87 | */ | ||
| 88 | @property (nonatomic,copy) NSString * dateStr; | ||
| 89 | |||
| 90 | /** | ||
| 91 | gps数据包数量 | gps packet number | ||
| 92 | */ | ||
| 93 | @property (nonatomic,assign) NSInteger itemsCount; | ||
| 94 | |||
| 95 | /** | ||
| 96 | 间隔时长 (单位:秒)| Interval length (unit:second) | ||
| 97 | */ | ||
| 98 | @property (nonatomic,assign) int interval; | ||
| 99 | |||
| 100 | /** | ||
| 101 | 运动发起端 (1 : 手环发起 0 : app发起) | Sports Initiator (1 : Bracelet Initiation 0 : app initiated) | ||
| 102 | */ | ||
| 103 | @property (nonatomic,assign) NSInteger startFrom; | ||
| 104 | |||
| 105 | /** | ||
| 106 | * GPS 坐标点集合 只有定义好的查询方法才能转成model集合,自定义的查询方法无法直接转成model集合,需要再查询itemModel赋给当前属性 | ||
| 107 | * GPS coordinate point set Only defined query methods can be converted into model collections. Custom query methods cannot be directly | ||
| 108 | * converted into model collections. You need to query itemModel to assign current attributes. | ||
| 109 | */ | ||
| 110 | @property (nonatomic,copy) NSArray <IDOSyncGpsDataItemInfoBluetoothModel *>* gpsItems; | ||
| 111 | |||
| 112 | @end | ||
| 113 | |||
| 114 | @interface IDOSyncGpsDataModel : NSObject | ||
| 115 | /** | ||
| 116 | * @brief 根据时间戳查询某个活动的GPS信息 | Querying the GPS information of an activity based on the timestamp | ||
| 117 | * @param timeStr 时间戳 time interval since 1970 (如:1444361933) | Timestamp time interval since 1970 (eg: 14443361933) | ||
| 118 | * @param macAddr mac 地址 | mac address | ||
| 119 | * @return gps信息数据 坐标item对象集合 | gps information data coordinate item object collection | ||
| 120 | */ | ||
| 121 | + (__kindof IDOSyncGpsDataInfoBluetoothModel *)queryOneActivityCoordinatesWithTimeStr:(NSString *)timeStr | ||
| 122 | macAddr:(NSString *)macAddr; | ||
| 123 | |||
| 124 | /** | ||
| 125 | * @brief 根据时间戳查询某个活动是否存在轨迹 | Query whether an activity has a track based on a timestamp | ||
| 126 | * @param timeStr 时间戳 time interval since 1970 (如:1444361933) | Timestamp time interval since 1970 (eg: 14443361933) | ||
| 127 | * @param macAddr mac 地址 | mac address | ||
| 128 | * @return 是否存在轨迹 yes or no | Is there a track? | ||
| 129 | */ | ||
| 130 | + (BOOL)queryActivityHasCoordinatesWithTimeStr:(NSString *)timeStr | ||
| 131 | macAddr:(NSString *)macAddr; | ||
| 132 | @end | ||
| 133 | |||
