1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- //
- // UploadFileModel.h
- // FirstLink
- //
- // Created by unicode on 14-10-11.
- // Copyright (c) 2014年 FirstLink. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- @interface UploadFileModel : NSObject
- // type 只能取pic-商品图片,audio-音频文件
- + (void)uploadFile:(NSData*)data
- fileType:(NSString*)type
- contentType:(NSString*)contenttype
- parameters:(NSDictionary *)parameters
- success:(void (^)(MSGHeader *header, id responseObject))success
- progress:(void (^)(NSUInteger bytesWritten, NSInteger totalBytesWritten, NSInteger totalBytesExpectedToWrite))progress
- failure:(void (^)(MSGHeader *header, NSError *error))failure;
- + (void)uploadFileNotLogin:(NSData*)data
- fileType:(NSString*)type
- contentType:(NSString*)contenttype
- parameters:(NSDictionary *)parameters
- success:(void (^)(MSGHeader *header, id responseObject))success
- failure:(void (^)(MSGHeader *header, NSError *error))failure;
- /**
- * 日志文件上传
- *
- * @param type head:头像,pic:照片,audio:音频,log:日志
- * @param contenttype 普通文本.log, .txt : text/plain, JPEG图形 .jpeg, .jpg : image/jpeg
- */
- + (void)uploadLogFile:(NSData*)data
- fileType:(NSString*)type
- contentType:(NSString*)contenttype
- parameters:(NSDictionary *)parameters
- success:(void (^)(MSGHeader *header, id responseObject))success
- failure:(void (^)(MSGHeader *header, NSError *error))failure;
- + (void)uploadAddressBook:(NSString*)string
- mobile:(NSString*)mobile
- totalNum:(NSString*)totalNum
- currNum:(NSString*)currNum
- success:(void (^)(MSGHeader *header, id responseObject))success
- failure:(void (^)(MSGHeader *header, NSError *error))failure;
- @end
|