ifish/Ifish/HTTPDNS/EMASRest.framework/Headers/EMASRestSendService.h

58 lines
2.0 KiB
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// EMASRestSendService.h
// EMASRest
//
// Created by qiulibin on 16/11/12.
// Copyright © 2016年 Taobao lnc. All rights reserved.
//
#ifndef EMASRestSendService_h
#define EMASRestSendService_h
#import <Foundation/Foundation.h>
#import "EMASRestConfiguration.h"
@interface EMASRestSendService : NSObject
//From数据链路打通需求由一休SDK调用, 文档https://yuque.antfin-inc.com/ubmgda/lh1gwa/dffuy5
@property (nonatomic, copy) NSString* utabtest;
@property (nonatomic, copy) NSString* utabtestpage;
@property (nonatomic, weak) id<EMASRestReservesProviderProtocol> reserveProvider;
+ (EMASRestSendService*)shareInstance;
/**
* 配置初始化,该接口支持更新配置
* 》》》》》》》》》》》》》》》》提醒只有调用接口比TBCrashReporter的业务才需要进行配置比如安全模式 》》》》》》
* @param config 配置对象,参数存储在对象中
* @return 配置初始化是否成功如appkey是必填参数不可缺少
*/
- (BOOL)configBasicParamWithTBConfiguration:(EMASRestConfiguration*)config;
/**
* 获取配置参数
* @return 已经配置过了返回配置的结果否则返回nil
*/
- (EMASRestConfiguration*)obtainConfiguration;
/**
* 同步接口注意数据大小不能超过30K
*/
-(BOOL)sendLogSync:(NSObject*)aPageName eventId:(int) aEventId arg1:(NSString*) aArg1 arg2:(NSString*) aArg2 arg3:(NSString*) aArg3 args:(NSDictionary *) aArgs;
/**
* 异步接口注意数据大小不能超过30K
*/
-(void)sendLogAsync:(NSObject*)aPageName eventId:(int) aEventId arg1:(NSString*) aArg1 arg2:(NSString*) aArg2 arg3:(NSString*) aArg3 args:(NSDictionary *) aArgs;
/**
* 自定义url传输(同步)注意数据大小不能超过30K
*/
- (NSData *) sendLogWithUrl:(NSString*)url PageName:(NSObject *)aPageName eventId:(int) aEventId arg1:(NSString *) aArg1 arg2:(NSString *) aArg2 arg3:(NSString *) aArg3 args:(NSDictionary *) aArgs;
@end
#endif /* EMASRestSendService_h */