You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
386 lines
11 KiB
386 lines
11 KiB
// |
|
// Device.h |
|
// myWatch |
|
// |
|
// Created by xTT on 15/11/5. |
|
// Copyright © 2015年 xTT. All rights reserved. |
|
// |
|
|
|
#import <Foundation/Foundation.h> |
|
#import <UIKit/UIKit.h> |
|
|
|
#import "baseModel.h" |
|
|
|
#import <CoreBluetooth/CoreBluetooth.h> |
|
|
|
//#import "Clock.h" |
|
#import "Contacts.h" |
|
#import "Locate.h" |
|
|
|
|
|
@interface Device : baseModel |
|
|
|
@property (nonatomic, strong) NSNumber *vendor; |
|
@property (nonatomic, strong) NSString *imei; |
|
@property (nonatomic, strong) NSNumber *accountNum;//设备绑定的用户数量 |
|
@property (nonatomic, strong) NSMutableArray *chatGroupList;//设备绑定的用户数量 |
|
@property (nonatomic, strong) NSString *authcode;//注册码 |
|
|
|
@property (nonatomic, strong) NSString *mac; |
|
@property (nonatomic, strong) NSMutableArray *contacts; |
|
//@property (nonatomic, strong) NSMutableArray *locations; |
|
|
|
@property (nonatomic, strong) NSNumber *voltage; |
|
|
|
|
|
@property (nonatomic, strong) NSNumber *lock; |
|
|
|
@property (nonatomic, strong) NSNumber *step; |
|
|
|
@property (nonatomic, strong) NSMutableArray *alerts; |
|
|
|
@property (nonatomic ,strong) NSNumber *opRejectStrangeCall;//设置腕表是否拒绝陌生人来电 |
|
@property (nonatomic ,strong) NSNumber *opMonitor;//设置监听腕表 |
|
@property (nonatomic ,strong) NSString *opMonitorPhone;//设置腕表定位模式 |
|
|
|
|
|
@property (nonatomic ,strong) NSNumber *opSettingVolume;//设置腕表音量等级 |
|
|
|
@property (nonatomic ,strong) NSNumber *opFlower;//设置和获取属性 腕表小红花奖励个数 |
|
|
|
@property (nonatomic ,strong) NSNumber *opLocationMode;//设置腕表定位频率值 // MARK: update by lsz 2021-06-23 |
|
|
|
@property (nonatomic, strong) NSString *location_model1; // 省电模式 |
|
@property (nonatomic, strong) NSString *location_model2; // 正常模式 |
|
@property (nonatomic, strong) NSString *location_model3; // 低频模式 |
|
|
|
@property (nonatomic, strong) NSNumber *location_interval1; // 省电模式定位频率 |
|
@property (nonatomic, strong) NSNumber *location_interval2; // 正常模式定位频率 |
|
@property (nonatomic, strong) NSNumber *location_interval3; // 低频模式定位频率 |
|
@property (nonatomic, strong) NSString *model; // 设备型号 |
|
@property (nonatomic, strong) NSNumber *deviceType; // 设备类型 |
|
|
|
@property (nonatomic, strong) NSNumber *opDialSwitch; // 拨号盘 |
|
|
|
@property (nonatomic, strong) NSNumber *opTimeSwitch; // 定时开关机 |
|
|
|
@property (nonatomic, strong) NSNumber *opGpsSwitch; // gps轨迹开关 |
|
|
|
/** |
|
是否支持视频通话 1声网 2环信 3anyRTC 4菊风 |
|
*/ |
|
@property (nonatomic, strong) NSNumber *support_video; |
|
/** |
|
是否支持远程拍照 |
|
*/ |
|
@property (nonatomic, strong) NSNumber *support_photo; |
|
/** |
|
是否支持计步功能 |
|
*/ |
|
@property (nonatomic, strong) NSNumber *support_step; |
|
|
|
/** |
|
是否支持查找设备 |
|
*/ |
|
@property (nonatomic, strong) NSNumber *support_find; |
|
|
|
/** |
|
是否支持查询流量话费 |
|
*/ |
|
@property (nonatomic, strong) NSNumber *support_costFlow; |
|
|
|
/** |
|
是否支持设置爱心奖励 |
|
*/ |
|
@property (nonatomic, strong) NSNumber *support_flower; |
|
|
|
/** |
|
是否支持设置设备WIFI |
|
*/ |
|
@property (nonatomic, strong) NSNumber *support_wifi; |
|
|
|
/** |
|
是否支持定时开关机 |
|
*/ |
|
@property (nonatomic, strong) NSNumber *support_timingSwitch; |
|
|
|
/** |
|
是否支持体温 |
|
*/ |
|
@property (nonatomic, strong) NSNumber *support_temperature; |
|
|
|
/** |
|
是否支持心率 |
|
*/ |
|
@property (nonatomic, strong) NSNumber *support_heartRate; |
|
|
|
/** |
|
是否支持白名单 |
|
*/ |
|
@property (nonatomic, strong) NSNumber *support_whiteList; |
|
|
|
/** |
|
是否支持火火兔白名单删除功能 |
|
*/ |
|
@property (nonatomic, strong) NSNumber *support_hht; |
|
|
|
/** |
|
是否支持表盘中心 |
|
*/ |
|
@property (nonatomic, strong) NSNumber *support_downDial; |
|
|
|
/** |
|
是否支持监听 |
|
*/ |
|
@property (nonatomic, strong) NSNumber *support_monitor; |
|
|
|
/** |
|
是否支持闹钟 |
|
*/ |
|
@property (nonatomic, strong) NSNumber *support_alarm; |
|
|
|
/** |
|
是否支持上课禁用 |
|
*/ |
|
@property (nonatomic, strong) NSNumber *support_disturb; |
|
|
|
/** |
|
是否支持SOS号码 |
|
*/ |
|
@property (nonatomic, strong) NSNumber *support_sos; |
|
|
|
|
|
/** |
|
是否支持拨号盘 |
|
*/ |
|
@property (nonatomic, strong) NSNumber *support_callPhone; |
|
|
|
/** |
|
是否支持电子围栏 |
|
*/ |
|
@property (nonatomic, strong) NSNumber *support_safeArea; |
|
|
|
/** |
|
是否支持微聊 |
|
*/ |
|
@property (nonatomic, strong) NSNumber *support_chat; |
|
|
|
/** |
|
设备的电量 |
|
*/ |
|
@property (nonatomic ,strong) NSNumber *battery; |
|
/** |
|
设备的最大电量格数 (旧设备没有) |
|
*/ |
|
@property (nonatomic ,strong) NSNumber *max_level; |
|
|
|
/** |
|
亲情号 |
|
*/ |
|
@property (nonatomic ,strong) NSNumber *support_family; |
|
/** |
|
jjm |
|
*/ |
|
@property (nonatomic ,strong) NSNumber *support_healthCode; |
|
|
|
///jjmTitle |
|
@property (nonatomic ,strong) NSString *qrcodeCN; |
|
|
|
@property (nonatomic ,strong) NSNumber *support_BT_Avoid_Losing; |
|
|
|
/** |
|
设备是否在线 |
|
*/ |
|
@property (nonatomic ,strong) NSNumber *onlineStatus; |
|
|
|
/** |
|
设备的当前电量格数 (旧设备没有) |
|
*/ |
|
@property (nonatomic ,strong) NSNumber *curr_level; |
|
|
|
@property (nonatomic, strong) NSNumber *upDownNotice; |
|
|
|
@property (nonatomic, strong) NSNumber *fall_status; |
|
|
|
@property (nonatomic, strong) NSString *gps_strategy; |
|
|
|
@property (nonatomic, strong) Locate *lastLocation; |
|
|
|
/** |
|
性别 女孩 girl , 男孩 man default 30 girl |
|
*/ |
|
@property (nonatomic, strong) NSString *sex; |
|
/** |
|
生日 default now day |
|
*/ |
|
@property (nonatomic, strong) NSString *birthday; |
|
/** |
|
身高 default 100 |
|
*/ |
|
@property (nonatomic, strong) NSString *height; |
|
/** |
|
体重 default 30 |
|
*/ |
|
@property (nonatomic, strong) NSString *weight; |
|
|
|
/** |
|
该用户绑定设备的 我的电话号码 |
|
*/ |
|
@property (nonatomic, strong) NSString *my_phone; |
|
|
|
|
|
/** |
|
该用户对于 该 设备 的 身份 |
|
*/ |
|
@property (nonatomic, strong) NSString *identity; |
|
|
|
|
|
/** |
|
关系 情况 eg : 妈妈,爸爸,爷爷 ... default 亲人 |
|
*/ |
|
@property (nonatomic, strong) NSString * relationship; |
|
/** |
|
关系的 ID default 9 |
|
*/ |
|
@property (nonatomic, strong) NSNumber * relationship_image_id; |
|
|
|
/** |
|
设备最近一次心率 |
|
*/ |
|
@property (nonatomic, strong) NSString *lastHeartRate; |
|
/** |
|
设备最近一次心率时间 |
|
*/ |
|
@property (nonatomic, strong) NSNumber *lastHeartRateTime; |
|
/** |
|
设备最近一次体温 |
|
*/ |
|
@property (nonatomic, strong) NSString *lastTemperature; |
|
/** |
|
设备最近一次体温时间 |
|
*/ |
|
@property (nonatomic, strong) NSNumber *lastTemperatureTime; |
|
|
|
|
|
- (UIImage *)getImageWithRim:(CGSize)size; |
|
|
|
//+ (CBPeripheral *)connectPeripheralWithMac:(NSString *)blueMac; |
|
|
|
|
|
#pragma 查询设备基本信息 |
|
+ (void)getDeviceInfoWithParameters:(id)parameters |
|
success:(void (^)(id responseObject))success |
|
failure:(void (^)(id faiObject))failure; |
|
|
|
#pragma 获取配置文件 |
|
- (void)getDeviceConfigurationSuccess:(void (^)(id responseObject))success |
|
failure:(void (^)(id faiObject))failure; |
|
|
|
#pragma 获取设备信息 |
|
- (void)getDeviceInfoWithParameters:(id)parameters |
|
success:(void (^)(id responseObject))success |
|
failure:(void (^)(id faiObject))failure; |
|
|
|
#pragma 编辑设备信息 |
|
- (void)saveDeviceInfoSuccess:(void (^)(id responseObject))success |
|
failure:(void (^)(id faiObject))failure; |
|
|
|
#pragma 获取管理员的与某设备的关系和手机号码 |
|
- (void)getAdminInfosuccess:(void (^)(id responseObject))success |
|
failure:(void (^)(id faiObject))failure; |
|
|
|
#pragma 编辑腕表功能信息 |
|
- (void)editOperationDeviceInfoWithParameters:(id)parameters |
|
success:(void (^)(id responseObject))success |
|
failure:(void (^)(id faiObject))failure; |
|
|
|
#pragma 获取设备最后定位信息 |
|
- (void)getDeviceCurLocationSuccess:(void (^)(id responseObject))success |
|
failure:(void (^)(id faiObject))failure; |
|
|
|
#pragma 获取设备注册码 |
|
- (void)getDeviceAuthCodeSuccess:(void (^)(id responseObject))success |
|
failure:(void (^)(id faiObject))failure; |
|
|
|
|
|
#pragma 打电话功能 |
|
- (void)makePhoneCallWithViewController:(UIViewController *)vc; |
|
|
|
|
|
- (void)getZuoYeBangServiceSuccess:(void (^)(id responseObject))success |
|
failure:(void (^)(id faiObject))failure; |
|
|
|
#pragma 查询话费和流量接口 |
|
/** |
|
查询话费和流量接口 |
|
@param parameters type为1,即查询话费;type为0,即查询流量 (int) 传 NSNumber |
|
*/ |
|
- (void)queryCostAndTrafficFunctionWithParameters:(id)parameters |
|
Success:(void (^)(id responseObject))success |
|
failure:(void (^)(id faiObject))failure; |
|
|
|
#pragma 删除 话费和流量记录 的接口 |
|
/** |
|
删除 话费和流量记录 的接口 |
|
*/ |
|
- (void)deleteCostAndTrafficFunctionWithSuccess:(void (^)(id responseObject))success |
|
failure:(void (^)(id faiObject))failure; |
|
|
|
#pragma 查询话费和流量记录 的接口 |
|
/** |
|
查询话费和流量记录 的接口 |
|
*/ |
|
- (void)getCostAndTrafficRecordWithParameters:(id)parameters |
|
Success:(void (^)(id responseObject))success |
|
failure:(void (^)(id faiObject))failure; |
|
|
|
#pragma mark ---获取设备视频通话成员列表--- |
|
- (void)getVideoUserListSuccess:(void (^)(id responseObject))success |
|
failure:(void (^)(void))failure; |
|
|
|
#pragma mark ---添加设备视频通话成员列表--- |
|
- (void)addVideoUserListWithList:(NSArray*)list |
|
Success:(void (^)(id responseObject))success |
|
failure:(void (^)(void))failure; |
|
|
|
#pragma mark ---删除设备视频通话成员列表--- |
|
- (void)delectVideoUserListWithList:(NSArray*)list |
|
Success:(void (^)(id responseObject))success |
|
failure:(void (^)(void))failure; |
|
|
|
|
|
#pragma mark 同步表盘 |
|
- (void)updateMyDial:(NSMutableDictionary *)parameter success:(void (^)(void))success failure:(void (^)(NSError *error))failure; |
|
|
|
#pragma mark 签到 |
|
- (void)SetAccountsSign:(void (^)(void))success failure:(void (^)(NSError *error))failure; |
|
|
|
#pragma mark 查询签到 |
|
- (void)GetAccountsSignWithMonth:(NSString *)month Success:(void (^)(id responseObject))success failure:(void (^)(NSError *error))failure; |
|
|
|
|
|
/// 1、获取碰碰交友好友列表 |
|
- (void)GetPPFriendWithSuccess:(void (^)(id responseObject))success failure:(void (^)(NSError *error))failure; |
|
|
|
/// 获取用户所有单聊和群聊信息 |
|
- (void)GetChatGroupsWithSuccess:(void (^)(id responseObject))success failure:(void (^)(NSError *error))failure; |
|
|
|
|
|
/// 获取手表短信列表 |
|
- (void)getDevicesSmSList:(NSInteger)page |
|
success:(void (^)(id responseObject))success |
|
failure:(void (^)(id faiObject))failure; |
|
|
|
/// 删除或者已读短信 |
|
- (void)deleteAndPostDevicesSmSList:(NSString *)Id |
|
method:(NSString *)method |
|
success:(void (^)(id responseObject))success |
|
failure:(void (^)(id faiObject))failure; |
|
|
|
/// 位置纠偏 |
|
- (void)setLocationRectify:(NSMutableDictionary *)parameters |
|
success:(void (^)(id responseObject))success |
|
failure:(void (^)(id faiObject))failure; |
|
|
|
|
|
@end
|
|
|