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.

149 lines
3.8 KiB

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