QNUserAgent.h 503 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // QNUserAgent.h
  3. // QiniuSDK
  4. //
  5. // Created by bailong on 14-9-29.
  6. // Copyright (c) 2014年 Qiniu. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. /**
  10. * UserAgent
  11. *
  12. */
  13. @interface QNUserAgent : NSObject
  14. /**
  15. * 用户id
  16. */
  17. @property (copy, nonatomic, readonly) NSString *id;
  18. /**
  19. * UserAgent 字串
  20. */
  21. - (NSString *)description;
  22. /**
  23. * UserAgent + AK 字串
  24. */
  25. - (NSString *)getUserAgent:(NSString *)access;
  26. /**
  27. * 单例
  28. */
  29. + (instancetype)sharedInstance;
  30. @end