| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- //
- // ASIDownManager.h
- // IBOSS
- //
- // Created by jiangyh 2017-07-14.
- // Copyright (c) 2017年 dongke. All rights reserved.
- //
- // 功能描述:请求数据对象管理
- //
- #import <Foundation/Foundation.h>
- #import "ASIFormDataRequest.h"
- #import "NSString+SBJSON.h"
- @interface ASIDownManager : NSObject<ASIHTTPRequestDelegate> {
- }
- /**
- 请求数据代理
- */
- @property (nonatomic, assign) id delegate;
- /**
- 请求数据成功回调函数
- */
- @property (nonatomic, assign) SEL onRequestSuccess;
- /**
- 请求数据失败回调函数
- */
- @property (nonatomic, assign) SEL onRequestFail;
- /**
- tag
- */
- @property (nonatomic, assign) int tag;
- /**
- 请求后返回json数据
- */
- @property (nonatomic, retain) NSString *mWebStr;
- /**
- 下载图片
-
- @param imageUrl <#imageUrl description#>
- @return return value description
- */
- - (UIImage *)downloadImageWithURL:(NSString *)imageUrl ;
- - (void)SynchronousDownloadFileFromURL:(NSString *)url filePath:(NSString*)path;
- /**
- <#Description#>
-
- @param urlString <#urlString description#>
- @param dict <#dict description#>
- @param filePath <#filePath description#>
- @param filename <#filename description#>
- @param fileType <#fileType description#>
- @return <#return value description#>
- */
- - (NSString*)syncPostHttpRequestUrl:(NSString *)urlString
- dic:(NSDictionary *)dict
- path:(NSString *)filePath
- filename:(NSString *)filename
- fileType:(NSString*)fileType;
- /**
- post异步请求
-
- @param urlString <#urlString description#>
- @param dict <#dict description#>
- @param files <#files description#>
- */
- - (void)postHttpRequest:(NSString *)urlString
- dic:(NSDictionary *)dict
- files:(NSDictionary *)files;
- /**
- 开启异步请求
-
- @param urlString <#urlString description#>
- @param dict <#dict description#>
- @param filepath <#filepath description#>
- @param filename <#filename description#>
- */
- - (void)postHttpRequest:(NSString *)urlString
- dic:(NSDictionary *)dict
- path:(NSString *)filepath
- fileName:(NSString *)filename;
- /**
- 请求取消
- */
- - (void)cancel;
- @end
|