Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
signalapp
GitHub Repository: signalapp/Signal-iOS
Path: blob/main/SignalServiceKit/Messages/Interactions/OWSVerificationStateChangeMessage.h
1 views
1
//
2
// Copyright 2018 Signal Messenger, LLC
3
// SPDX-License-Identifier: AGPL-3.0-only
4
//
5
6
#import <SignalServiceKit/OWSVerificationState.h>
7
#import <SignalServiceKit/TSInfoMessage.h>
8
9
NS_ASSUME_NONNULL_BEGIN
10
11
@class SignalServiceAddress;
12
@class TSThread;
13
14
@interface OWSVerificationStateChangeMessage : TSInfoMessage
15
16
@property (nonatomic, readonly) SignalServiceAddress *recipientAddress;
17
@property (nonatomic, readonly) OWSVerificationState verificationState;
18
@property (nonatomic, readonly) BOOL isLocalChange;
19
20
/// Whether or not this message is reporting the user to be verified.
21
- (bool)isVerified;
22
23
- (instancetype)initWithThread:(TSThread *)thread messageType:(TSInfoMessageType)infoMessage NS_UNAVAILABLE;
24
25
- (instancetype)initWithThread:(TSThread *)thread
26
messageType:(TSInfoMessageType)messageType
27
infoMessageUserInfo:(NSDictionary<InfoMessageUserInfoKey, id> *)infoMessageUserInfo NS_UNAVAILABLE;
28
29
- (instancetype)initWithThread:(TSThread *)thread
30
timestamp:(uint64_t)timestamp
31
serverGuid:(nullable NSString *)serverGuid
32
messageType:(TSInfoMessageType)infoMessage
33
expireTimerVersion:(nullable NSNumber *)expireTimerVersion
34
expiresInSeconds:(unsigned int)expiresInSeconds
35
infoMessageUserInfo:(nullable NSDictionary<InfoMessageUserInfoKey, id> *)infoMessageUserInfo NS_UNAVAILABLE;
36
37
- (instancetype)initWithGrdbId:(int64_t)grdbId
38
uniqueId:(NSString *)uniqueId
39
receivedAtTimestamp:(uint64_t)receivedAtTimestamp
40
sortId:(uint64_t)sortId
41
timestamp:(uint64_t)timestamp
42
uniqueThreadId:(NSString *)uniqueThreadId
43
body:(nullable NSString *)body
44
bodyRanges:(nullable MessageBodyRanges *)bodyRanges
45
contactShare:(nullable OWSContact *)contactShare
46
deprecated_attachmentIds:(nullable NSArray<NSString *> *)deprecated_attachmentIds
47
editState:(TSEditState)editState
48
expireStartedAt:(uint64_t)expireStartedAt
49
expireTimerVersion:(nullable NSNumber *)expireTimerVersion
50
expiresAt:(uint64_t)expiresAt
51
expiresInSeconds:(unsigned int)expiresInSeconds
52
giftBadge:(nullable OWSGiftBadge *)giftBadge
53
isGroupStoryReply:(BOOL)isGroupStoryReply
54
isPoll:(BOOL)isPoll
55
isSmsMessageRestoredFromBackup:(BOOL)isSmsMessageRestoredFromBackup
56
isViewOnceComplete:(BOOL)isViewOnceComplete
57
isViewOnceMessage:(BOOL)isViewOnceMessage
58
linkPreview:(nullable OWSLinkPreview *)linkPreview
59
messageSticker:(nullable MessageSticker *)messageSticker
60
quotedMessage:(nullable TSQuotedMessage *)quotedMessage
61
storedShouldStartExpireTimer:(BOOL)storedShouldStartExpireTimer
62
storyAuthorUuidString:(nullable NSString *)storyAuthorUuidString
63
storyReactionEmoji:(nullable NSString *)storyReactionEmoji
64
storyTimestamp:(nullable NSNumber *)storyTimestamp
65
wasRemotelyDeleted:(BOOL)wasRemotelyDeleted
66
customMessage:(nullable NSString *)customMessage
67
infoMessageUserInfo:(nullable NSDictionary<InfoMessageUserInfoKey, id> *)infoMessageUserInfo
68
messageType:(TSInfoMessageType)messageType
69
read:(BOOL)read
70
serverGuid:(nullable NSString *)serverGuid
71
unregisteredAddress:(nullable SignalServiceAddress *)unregisteredAddress NS_UNAVAILABLE;
72
73
- (instancetype)initWithThread:(TSThread *)thread
74
timestamp:(uint64_t)timestamp
75
recipientAddress:(SignalServiceAddress *)recipientAddress
76
verificationState:(OWSVerificationState)verificationState
77
isLocalChange:(BOOL)isLocalChange NS_DESIGNATED_INITIALIZER;
78
79
// --- CODE GENERATION MARKER
80
81
// This snippet is generated by /Scripts/sds_codegen/sds_generate.py. Do not manually edit it, instead run
82
// `sds_codegen.sh`.
83
84
// clang-format off
85
86
- (instancetype)initWithGrdbId:(int64_t)grdbId
87
uniqueId:(NSString *)uniqueId
88
receivedAtTimestamp:(uint64_t)receivedAtTimestamp
89
sortId:(uint64_t)sortId
90
timestamp:(uint64_t)timestamp
91
uniqueThreadId:(NSString *)uniqueThreadId
92
body:(nullable NSString *)body
93
bodyRanges:(nullable MessageBodyRanges *)bodyRanges
94
contactShare:(nullable OWSContact *)contactShare
95
deprecated_attachmentIds:(nullable NSArray<NSString *> *)deprecated_attachmentIds
96
editState:(TSEditState)editState
97
expireStartedAt:(uint64_t)expireStartedAt
98
expireTimerVersion:(nullable NSNumber *)expireTimerVersion
99
expiresAt:(uint64_t)expiresAt
100
expiresInSeconds:(unsigned int)expiresInSeconds
101
giftBadge:(nullable OWSGiftBadge *)giftBadge
102
isGroupStoryReply:(BOOL)isGroupStoryReply
103
isPoll:(BOOL)isPoll
104
isSmsMessageRestoredFromBackup:(BOOL)isSmsMessageRestoredFromBackup
105
isViewOnceComplete:(BOOL)isViewOnceComplete
106
isViewOnceMessage:(BOOL)isViewOnceMessage
107
linkPreview:(nullable OWSLinkPreview *)linkPreview
108
messageSticker:(nullable MessageSticker *)messageSticker
109
quotedMessage:(nullable TSQuotedMessage *)quotedMessage
110
storedShouldStartExpireTimer:(BOOL)storedShouldStartExpireTimer
111
storyAuthorUuidString:(nullable NSString *)storyAuthorUuidString
112
storyReactionEmoji:(nullable NSString *)storyReactionEmoji
113
storyTimestamp:(nullable NSNumber *)storyTimestamp
114
wasRemotelyDeleted:(BOOL)wasRemotelyDeleted
115
customMessage:(nullable NSString *)customMessage
116
infoMessageUserInfo:(nullable NSDictionary<InfoMessageUserInfoKey, id> *)infoMessageUserInfo
117
messageType:(TSInfoMessageType)messageType
118
read:(BOOL)read
119
serverGuid:(nullable NSString *)serverGuid
120
unregisteredAddress:(nullable SignalServiceAddress *)unregisteredAddress
121
isLocalChange:(BOOL)isLocalChange
122
recipientAddress:(SignalServiceAddress *)recipientAddress
123
verificationState:(OWSVerificationState)verificationState
124
NS_DESIGNATED_INITIALIZER NS_SWIFT_NAME(init(grdbId:uniqueId:receivedAtTimestamp:sortId:timestamp:uniqueThreadId:body:bodyRanges:contactShare:deprecated_attachmentIds:editState:expireStartedAt:expireTimerVersion:expiresAt:expiresInSeconds:giftBadge:isGroupStoryReply:isPoll:isSmsMessageRestoredFromBackup:isViewOnceComplete:isViewOnceMessage:linkPreview:messageSticker:quotedMessage:storedShouldStartExpireTimer:storyAuthorUuidString:storyReactionEmoji:storyTimestamp:wasRemotelyDeleted:customMessage:infoMessageUserInfo:messageType:read:serverGuid:unregisteredAddress:isLocalChange:recipientAddress:verificationState:));
125
126
// clang-format on
127
128
// --- CODE GENERATION MARKER
129
130
@end
131
132
NS_ASSUME_NONNULL_END
133
134