-
-
Notifications
You must be signed in to change notification settings - Fork 340
/
Copy pathSentryUser.h
75 lines (57 loc) · 1.59 KB
/
SentryUser.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#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
@class SentryGeo;
NS_SWIFT_NAME(User)
@interface SentryUser : NSObject <SentrySerializable, NSCopying>
/**
* Optional: Id of the user
*/
@property (atomic, copy) NSString *_Nullable userId;
/**
* Optional: Email of the user
*/
@property (atomic, copy) NSString *_Nullable email;
/**
* Optional: Username
*/
@property (atomic, copy) NSString *_Nullable username;
/**
* Optional: IP Address
*/
@property (atomic, copy) NSString *_Nullable ipAddress;
/**
* The user segment, for apps that divide users in user segments.
* @deprecated This field will be removed in the next major version.
*/
@property (atomic, copy) NSString *_Nullable segment DEPRECATED_MSG_ATTRIBUTE(
"This field is deprecated and will be removed in the next major update.");
/**
* Optional: Human readable name
*/
@property (atomic, copy) NSString *_Nullable name;
/**
* Optional: Geo location of user
*/
@property (nullable, nonatomic, strong) SentryGeo *geo;
/**
* Optional: Additional data
*/
@property (atomic, strong) NSDictionary<NSString *, id> *_Nullable data;
/**
* Initializes a SentryUser with the id
* @param userId NSString
* @return SentryUser
*/
- (instancetype)initWithUserId:(NSString *)userId;
- (instancetype)init;
- (BOOL)isEqual:(id _Nullable)other;
- (BOOL)isEqualToUser:(SentryUser *)user;
- (NSUInteger)hash;
@end
NS_ASSUME_NONNULL_END