20 double packetSentBytes;
21 double totalSentBytes;
24 @property (nonatomic)
double packetSentBytes;
25 @property (nonatomic)
double totalSentBytes;
26 @property (nonatomic)
double totalBytes;
31 #import "SBJsonAgent.h"
44 NSString *tokenKeyName;
45 NSString *deviceTokenKeyName;
49 NSString *myResourcePrefix;
51 NSString *requestMethod;
67 NSMutableDictionary *response;
70 RequestCompletionHandler completionHandler;
72 id <ModelDelegate> delegate;
73 NSURLSessionTask* sessionDataTask;
76 @property (strong, nonatomic) NSURLSessionTask *sessionDataTask;
77 @property (strong, nonatomic) NSString *modelName;
78 @property (strong, nonatomic) NSString *ID;
79 @property (nonatomic)
int index;
80 @property (nonatomic)
int total;
81 @property (nonatomic)
int records;
82 @property (nonatomic)
int limit;
83 @property (nonatomic)
int offset;
84 @property (nonatomic) BOOL isDeep;
85 @property (strong, nonatomic) id<ModelDelegate> delegate;
91 - (id)init:(NSString *)argProtocol :(NSString *)argDomain :(NSString *)argURLBase :(NSString *)argTokenKeyName;
92 - (id)init:(NSString *)argProtocol :(NSString *)argDomain :(NSString *)argURLBase :(NSString *)argTokenKeyName :(
int)argTimeout;
95 - (id)init:(NSString *)argProtocol :(NSString *)argDomain :(NSString *)argURLBase :(NSString *)argTokenKeyName :(NSString *)argCryptKey :(NSString *)argCryptIV;
96 - (id)init:(NSString *)argProtocol :(NSString *)argDomain :(NSString *)argURLBase :(NSString *)argTokenKeyName :(NSString *)argCryptKey :(NSString *)argCryptIV :(
int)argTimeout;
97 - (id)init:(NSString *)argProtocol :(NSString *)argDomain :(NSString *)argURLBase :(NSString *)argTokenKeyName :(NSString *)argCryptKey :(NSString *)argCryptIV :(NSString *)argDeviceTokenKeyName :(
int)argTimeout;
100 - (void)setModelData:(NSMutableArray *)argDataArray;
101 - (void)setModelData:(NSMutableArray *)argDataArray :(
int)argIndex;
105 - (NSString *)createURLString:(NSString *)argProtocol :(NSString *)argDomain :(NSString *)argURLBase :(NSString *)argMyResourcePrefix :(NSString *)argModelName :(NSString *)argResourceID;
108 - (BOOL)load:(loadResourceMode)argLoadResourceMode;
110 - (BOOL)load:(loadResourceMode)argLoadResourceMode :(RequestCompletionHandler)argCompletionHandler;
112 - (BOOL)query:(NSMutableDictionary *)argWhereParams :(loadResourceMode)argLoadResourceMode;
114 - (BOOL)query:(NSMutableDictionary *)argWhereParams :(loadResourceMode)argLoadResourceMode :(RequestCompletionHandler)argCompletionHandler;
117 - (BOOL)_load:(
int)argListed :(NSMutableDictionary *)argParams;
121 - (BOOL)save:(RequestCompletionHandler)argCompletionHandler;
123 - (BOOL)_save:(NSMutableDictionary *)argSaveParams;
126 - (BOOL)_save:(NSMutableDictionary *)argSaveParams :(NSData *)argUploadData :(NSString *)argUploadDataName :(NSString *)argUploadDataContentType :(NSString *)argUploadDataKey;
129 - (BOOL)_save:(NSMutableDictionary *)argSaveParams :(NSURL *)argUploadFilePath;
133 - (BOOL)_increment:(NSMutableDictionary *)argSaveParams;
136 - (BOOL)_decrement:(NSMutableDictionary *)argSaveParams;
159 + (void)saveDeviceTokenString:(NSString *)argDeviceTokenString;
160 + (void)saveDeviceTokenData:(NSData *)argDeviceTokenData;
162 + (NSString *)loadDeviceToken;
166 - (id)objectAtIndex:(
int)argIndex;
167 - (void)insertObject:(
ModelBase *)argModel :(
int)argIndex;
168 - (void)replaceObject:(
ModelBase *)argModel :(
int)argIndex;
170 - (void)removeObjectAtIndex:(
int)argIndex;
173 - (void)resetReplaceFlagment;
174 - (NSMutableDictionary *)convertModelData;
176 - (void)_setModelData:(NSMutableDictionary *)argDataDic;
178 - (NSIndexSet *)search:(NSString *)argSearchKey :(NSString *)argSearchValue;
181 +(void)showRequestError:(
int)argStatusCode;
190 - (void)didReceiveValidateError:(NSString *)argValidateErrorMsg;
191 - (void)didReceiveMustUpdate:(NSString *)argUpdateURL;
192 - (void)didReceiveAppBadgeNum:(NSString *)argBadgeNumStr;
193 - (void)didReceiveNotifyMessage:(NSString *)argNotifyMessage;
194 - (void)didFinishSuccess:(
ModelBase*)model :(NSHTTPURLResponse *)responseHeader :(NSString *)responseBody;
195 - (void)didFinishError:(
ModelBase*)model :(NSHTTPURLResponse *)responseHeader :(NSString *)responseBody :(NSError *)failedHandler;
Definition: ModelBase.h:188
Definition: ModelBase.h:35
Definition: ModelBase.h:18