//
//  NotificationResult.h
//  NotificationSDK
//
//  Created by 周翔宇 on 2019/8/8.
//  Copyright © 2019 周翔宇. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Header.h"


NS_ASSUME_NONNULL_BEGIN

@interface NotificationResult : NSObject

@property (nonatomic, assign) NSInteger code;
@property (nonatomic, copy) NSString * msg;
@property (nonatomic, readwrite, copy) NSDictionary * originRespDic;


@property (nonatomic, assign) NotifationType notifationType;

@property (nonatomic, copy) NSString * title;
@property (nonatomic, copy) NSString * body;
@property (nonatomic, copy) NSString * user_id;
@property (nonatomic, copy) NSString * image_url;
@property (nonatomic, copy) NSString * push_id;
@property (nonatomic, copy) NSString * olap_id;
@property (nonatomic, copy) NSString * push_time;
@property (nonatomic, copy) NSString * execute_id;
@property (nonatomic, copy) NSString * producer_time;
@property (nonatomic, copy) NSString * extra;


/// 创建返回层模型
/// @param dic 返回数据 notificationType:NotifationType, userInfo:userInfo
/// @param msg 描述desc
+ (id)responseWithOriginDic:(NSDictionary *)dic msg:(NSString *)msg;

+ (instancetype)successRespWithStr:(NSString *)errStr;
+ (instancetype)commonError:(NSString *)errStr;


@end
/**
 函数回调的block
 
 @param resp 返回信息
 */
typedef void(^ResultBlock)(NotificationResult * _Nonnull resp);
NS_ASSUME_NONNULL_END

