Açıklama Yok

AWSClientContext.h 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //
  2. // Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  3. //
  4. // Licensed under the Apache License, Version 2.0 (the "License").
  5. // You may not use this file except in compliance with the License.
  6. // A copy of the License is located at
  7. //
  8. // http://aws.amazon.com/apache2.0
  9. //
  10. // or in the "license" file accompanying this file. This file is distributed
  11. // on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  12. // express or implied. See the License for the specific language governing
  13. // permissions and limitations under the License.
  14. //
  15. #import <Foundation/Foundation.h>
  16. FOUNDATION_EXPORT NSString *const AWSClientContextVersion;
  17. FOUNDATION_EXPORT NSString *const AWSClientContextHeader;
  18. FOUNDATION_EXPORT NSString *const AWSClientContextHeaderEncoding;
  19. @interface AWSClientContext : NSObject
  20. #pragma mark - App Details
  21. @property (nonatomic, strong, readonly) NSString *installationId;
  22. @property (nonatomic, strong) NSString *appVersion;
  23. @property (nonatomic, strong) NSString *appBuild;
  24. @property (nonatomic, strong) NSString *appPackageName;
  25. @property (nonatomic, strong) NSString *appName;
  26. #pragma mark - Device Details
  27. @property (nonatomic, strong) NSString *devicePlatformVersion;
  28. @property (nonatomic, strong) NSString *devicePlatform;
  29. @property (nonatomic, strong) NSString *deviceManufacturer;
  30. @property (nonatomic, strong) NSString *deviceModel;
  31. @property (nonatomic, strong) NSString *deviceModelVersion;
  32. @property (nonatomic, strong) NSString *deviceLocale;
  33. #pragma mark - Custom Attributes
  34. @property (nonatomic, strong) NSDictionary *customAttributes;
  35. #pragma mark - Service Details
  36. @property (nonatomic, strong, readonly) NSDictionary *serviceDetails;
  37. - (instancetype)init;
  38. - (NSDictionary *)dictionaryRepresentation;
  39. - (NSString *)JSONString;
  40. - (NSString *)base64EncodedJSONString;
  41. - (void)setDetails:(id)details
  42. forService:(NSString *)service;
  43. @end