基础库
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

ZhiyingCommNativeResult.m 497 B

pirms 4 gadiem
12345678910111213141516171819202122232425262728
  1. #import "ZhiyingCommNativeResult.h"
  2. @interface ZhiyingCommNativeResult()
  3. @end
  4. @implementation ZhiyingCommNativeResult
  5. - (instancetype)initWithMsg: (NSString*)msg success: (BOOL) success
  6. {
  7. self = [super init];
  8. if (self) {
  9. _msg = msg == nil ? @"" : msg;
  10. _success = success;
  11. }
  12. return self;
  13. }
  14. - (NSDictionary*)toDict {
  15. return @{@"success" : _success ? @"1" : @"0",
  16. @"msg" : _msg,
  17. @"data" : _data == nil ? @{} : _data
  18. };
  19. }
  20. @end