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.

98 lines
2.5 KiB

//
// 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<Step *> *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