UserEntity.m 541 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // UserEntity.m
  3. // MingMen
  4. //
  5. // Created by 罗云飞 on 2017/3/9.
  6. // Copyright © 2017年 罗云飞. All rights reserved.
  7. //
  8. @implementation UserEntity
  9. static UserEntity *sharedObj = nil;
  10. + (UserEntity *) sharedInstance
  11. {
  12. static dispatch_once_t onceToken = 0;
  13. dispatch_once(&onceToken, ^{
  14. sharedObj = [[super allocWithZone: NULL] init];
  15. sharedObj.account = @"";
  16. sharedObj.accountPassword = @"";
  17. sharedObj.appKey = @"";
  18. sharedObj.token = @"";
  19. });
  20. return sharedObj;
  21. }
  22. @end