zworld-em/Plugins/sentry-unreal/Source/ThirdParty/Mac/include/Sentry/SentryGeo.h
2025-05-11 22:07:21 +08:00

49 lines
1.0 KiB
Objective-C

#import <Foundation/Foundation.h>
#if __has_include(<Sentry/Sentry.h>)
# import <Sentry/SentryDefines.h>
# import <Sentry/SentrySerializable.h>
#else
# import <SentryWithoutUIKit/SentryDefines.h>
# import <SentryWithoutUIKit/SentrySerializable.h>
#endif
NS_ASSUME_NONNULL_BEGIN
/// Approximate geographical location of the end user or device.
///
/// Example of serialized data:
/// {
/// "geo": {
/// "country_code": "US",
/// "city": "Ashburn",
/// "region": "San Francisco"
/// }
/// }
NS_SWIFT_NAME(Geo)
@interface SentryGeo : NSObject <SentrySerializable, NSCopying>
/**
* Optional: Human readable city name.
*/
@property (nullable, atomic, copy) NSString *city;
/**
* Optional: Two-letter country code (ISO 3166-1 alpha-2).
*/
@property (nullable, atomic, copy) NSString *countryCode;
/**
* Optional: Human readable region name or code.
*/
@property (nullable, atomic, copy) NSString *region;
- (BOOL)isEqual:(id _Nullable)other;
- (BOOL)isEqualToGeo:(SentryGeo *)geo;
- (NSUInteger)hash;
@end
NS_ASSUME_NONNULL_END