Add specific methods to track analytics and test generated event types.

This commit is contained in:
Doug
2021-11-24 10:43:22 +00:00
parent 72f75cc36d
commit 84fdd7585c
12 changed files with 234 additions and 49 deletions
+6 -8
View File
@@ -19,14 +19,12 @@
/**
Failure reasons as defined in https://docs.google.com/document/d/1es7cTCeJEXXfRCTRgZerAM2Wg5ZerHjvlpfTW-gsOfI.
*/
struct DecryptionFailureReasonStruct
{
__unsafe_unretained NSString * const unspecified;
__unsafe_unretained NSString * const olmKeysNotSent;
__unsafe_unretained NSString * const olmIndexError;
__unsafe_unretained NSString * const unexpected;
typedef NS_ENUM(NSInteger, DecryptionFailureReason) {
DecryptionFailureReasonUnspecified,
DecryptionFailureReasonOlmKeysNotSent,
DecryptionFailureReasonOlmIndexError,
DecryptionFailureReasonUnexpected
};
extern const struct DecryptionFailureReasonStruct DecryptionFailureReason;
/**
`DecryptionFailure` represents a decryption failure.
@@ -46,6 +44,6 @@ extern const struct DecryptionFailureReasonStruct DecryptionFailureReason;
/**
Decryption failure reason.
*/
@property (nonatomic) NSString *reason;
@property (nonatomic) DecryptionFailureReason reason;
@end