// // Step.h // watch // // Created by xTT on 2017/7/22. // Copyright © 2017年 xTT. All rights reserved. // #import "baseModel.h" @interface Step : baseModel @property (nonatomic, strong) NSString *imei; /** 实际步数 */ @property (nonatomic, strong) NSNumber *num; /** 目标步数 */ @property (nonatomic, strong) NSNumber *target; /** 当前查询步数的 时间 */ @property (nonatomic, strong) NSString *date; /** 距离 */ @property (nonatomic, strong) NSNumber *distance; /** 消耗的卡路里 */ @property (nonatomic, strong) NSNumber *calorie; /** 性别 女孩 girl , 男孩 man default girl */ @property (nonatomic, strong) NSString *sex; /** 排行榜的名次 */ @property (nonatomic, strong) NSNumber *my_ranking; /** 获取当前设备的 步数信息 step对象 的date 属性 日期 如果为nil 默认当天 eg: yyyy-MM-dd @param success success description @param failure failure description */ - (void)getObjsParams:(NSMutableDictionary*)params Success:(void (^)(Step *data))success failure:(void (^)(NSError *error))failure; /** 设置当前设备的 目标步数的 step对象 的target 属性 target : [NSNumber] 目标步数 @param success success description @param failure failure description */ - (void)postGoalStepParams:(NSMutableDictionary*)params Success:(void (^)(Step *data))success failure:(void (^)(NSError *error))failure; /** 查询排行榜 @param params day : [str][*] 日期字符串, eg: '2017-02-15' week : [NSNumber][*] 1 最近一周 month : [NSNumber][*] 1 最近一个月的排行 @param success success description @param failure failure description */ + (void)getRankingListParams:(NSMutableDictionary*)params Success:(void (^)(NSDictionary *dic))success failure:(void (^)(NSError *error))failure; /** 获取当前设备 最近一周的步数信息 @param success success description @param failure failure description @param startDate 开始查询的时间 (一般一周的时间间隔) @param date 终止查询的时间 (一般当日时间) */ + (void)getNewStepDataWithStartDate:(NSString*)startDate date:(NSString*)date Success:(void (^)(NSArray *stepList, int switchStatus, int todayData))success failure:(void (^)(NSError *error))failure; + (void)postNewStepSwithStatus:(int)status Success:(void (^)(id responseObject))success failure:(void (^)(NSError *error))failure; @end