// // DMessage.h // watch // // Created by xTT on 2017/7/22. // Copyright © 2017年 xTT. All rights reserved. // #import "baseModel.h" @interface DMessage : baseModel /** lowBattery 腕表低电量消息 rail 腕表安全区域消息 sms 腕表新短信 sos 腕表触发SOS photograph 腕表触发拍照 applicationRrecord 申请记录消息 checkResults 审核结果消息 checkedResults 被审核结果消息 applicationOvertime 记录失效消息 identityTransfer 身份变更消息 systemUpdate 系统更新消息 */ @property (strong, nonatomic) NSString *msgId; @property (strong, nonatomic) NSString *type; @property (strong, nonatomic) NSString *imei; @property (strong, nonatomic) NSNumber *battery; @property (strong, nonatomic) NSString *railID; @property (strong, nonatomic) NSString *railName; @property (strong, nonatomic) NSString *action; @property (strong, nonatomic) NSString *content; @property (strong, nonatomic) NSNumber *lon; @property (strong, nonatomic) NSNumber *lat; @property (strong, nonatomic) NSString *address; //消息所属的用户 openid @property (strong, nonatomic) NSString *openid; // 用户openid @property (strong, nonatomic) NSString *apple_openid; // 申请用户openid /** 是否选中 */ @property (assign ,nonatomic) BOOL isSelect; /// 可显示的内容在消息中心的内容 @property (strong, nonatomic) NSString *msgContent; /// 数据 @property (strong, nonatomic) NSString *data; // 是否已读 @property (strong, nonatomic) NSNumber *read; + (NSDictionary *)mj_replacedKeyFromPropertyName; /** 删除 提醒消息 的接口 @param success <#success description#> @param failure <#failure description#> */ + (void)delectTrackWithMessageIds:(NSArray*)messageIds success:(void (^)(id responseObject))success failure:(void (^)(void))failure; /** 获取关注记录数据 @param ID <#ID description#> @param success <#success description#> @param failure <#failure description#> */ + (void)getAttentionsWithID:(NSString *)ID success:(void (^)(NSMutableArray *arr))success failure:(void (^)(NSError *error))failure; /** 删除关注记录数据 @param messageIds <#messageIds description#> @param success <#success description#> @param failure <#failure description#> */ + (void)delectAttentionsWithMessageIds:(NSArray *)messageIds success:(void (^)(id))success failure:(void (^)(void))failure; /** 处理关注记录数据(管理员) @param params { openid : [str] accesstoken : [str] imei : [str] id : [str] //这条关注记录数据的ID agree : [int] // 管理员同意(1)或者拒绝(0)其他用户绑定设备 } @param success 成功 @param failure 失败 */ +(void)manageAttentionWithParams:(NSDictionary*)params success:(void (^)(void))success failure:(void (^)(void))failure; /** 获取通知数据 @param ID <#ID description#> @param success <#success description#> @param failure <#failure description#> */ + (void)getNotificationWithID:(NSString *)ID success:(void (^)(NSMutableArray *arr))success failure:(void (^)(NSError *error))failure; /** 删除通知数据 @param messageIds <#messageIds description#> @param success <#success description#> @param failure <#failure description#> */ + (void)delectNotificationWithMessageIds:(NSArray *)messageIds success:(void (^)(id))success failure:(void (^)(void))failure; @end