Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
signalapp
GitHub Repository: signalapp/Signal-iOS
Path: blob/main/SignalServiceKit/Messages/InvalidKeyMessages/TSInvalidIdentityKeySendingErrorMessage.h
1 views
1
//
2
// Copyright 2018 Signal Messenger, LLC
3
// SPDX-License-Identifier: AGPL-3.0-only
4
//
5
6
#import <SignalServiceKit/TSInvalidIdentityKeyErrorMessage.h>
7
8
NS_ASSUME_NONNULL_BEGIN
9
10
@class TSOutgoingMessage;
11
@class TSThread;
12
13
/// We no longer create new instances of this class (as of mid-2017).
14
/// However, existing instances may exist, so we should keep this class
15
/// around to honor their old behavior.
16
@interface /* DEPRECATED */ TSInvalidIdentityKeySendingErrorMessage : TSInvalidIdentityKeyErrorMessage
17
18
@property (nonatomic, readonly) NSString *messageId;
19
20
- (instancetype)initWithGrdbId:(int64_t)grdbId
21
uniqueId:(NSString *)uniqueId
22
receivedAtTimestamp:(uint64_t)receivedAtTimestamp
23
sortId:(uint64_t)sortId
24
timestamp:(uint64_t)timestamp
25
uniqueThreadId:(NSString *)uniqueThreadId
26
body:(nullable NSString *)body
27
bodyRanges:(nullable MessageBodyRanges *)bodyRanges
28
contactShare:(nullable OWSContact *)contactShare
29
deprecated_attachmentIds:(nullable NSArray<NSString *> *)deprecated_attachmentIds
30
editState:(TSEditState)editState
31
expireStartedAt:(uint64_t)expireStartedAt
32
expireTimerVersion:(nullable NSNumber *)expireTimerVersion
33
expiresAt:(uint64_t)expiresAt
34
expiresInSeconds:(unsigned int)expiresInSeconds
35
giftBadge:(nullable OWSGiftBadge *)giftBadge
36
isGroupStoryReply:(BOOL)isGroupStoryReply
37
isPoll:(BOOL)isPoll
38
isSmsMessageRestoredFromBackup:(BOOL)isSmsMessageRestoredFromBackup
39
isViewOnceComplete:(BOOL)isViewOnceComplete
40
isViewOnceMessage:(BOOL)isViewOnceMessage
41
linkPreview:(nullable OWSLinkPreview *)linkPreview
42
messageSticker:(nullable MessageSticker *)messageSticker
43
quotedMessage:(nullable TSQuotedMessage *)quotedMessage
44
storedShouldStartExpireTimer:(BOOL)storedShouldStartExpireTimer
45
storyAuthorUuidString:(nullable NSString *)storyAuthorUuidString
46
storyReactionEmoji:(nullable NSString *)storyReactionEmoji
47
storyTimestamp:(nullable NSNumber *)storyTimestamp
48
wasRemotelyDeleted:(BOOL)wasRemotelyDeleted
49
errorType:(TSErrorMessageType)errorType
50
read:(BOOL)read
51
recipientAddress:(nullable SignalServiceAddress *)recipientAddress
52
sender:(nullable SignalServiceAddress *)sender
53
wasIdentityVerified:(BOOL)wasIdentityVerified NS_UNAVAILABLE;
54
55
// --- CODE GENERATION MARKER
56
57
// This snippet is generated by /Scripts/sds_codegen/sds_generate.py. Do not manually edit it, instead run
58
// `sds_codegen.sh`.
59
60
// clang-format off
61
62
- (instancetype)initWithGrdbId:(int64_t)grdbId
63
uniqueId:(NSString *)uniqueId
64
receivedAtTimestamp:(uint64_t)receivedAtTimestamp
65
sortId:(uint64_t)sortId
66
timestamp:(uint64_t)timestamp
67
uniqueThreadId:(NSString *)uniqueThreadId
68
body:(nullable NSString *)body
69
bodyRanges:(nullable MessageBodyRanges *)bodyRanges
70
contactShare:(nullable OWSContact *)contactShare
71
deprecated_attachmentIds:(nullable NSArray<NSString *> *)deprecated_attachmentIds
72
editState:(TSEditState)editState
73
expireStartedAt:(uint64_t)expireStartedAt
74
expireTimerVersion:(nullable NSNumber *)expireTimerVersion
75
expiresAt:(uint64_t)expiresAt
76
expiresInSeconds:(unsigned int)expiresInSeconds
77
giftBadge:(nullable OWSGiftBadge *)giftBadge
78
isGroupStoryReply:(BOOL)isGroupStoryReply
79
isPoll:(BOOL)isPoll
80
isSmsMessageRestoredFromBackup:(BOOL)isSmsMessageRestoredFromBackup
81
isViewOnceComplete:(BOOL)isViewOnceComplete
82
isViewOnceMessage:(BOOL)isViewOnceMessage
83
linkPreview:(nullable OWSLinkPreview *)linkPreview
84
messageSticker:(nullable MessageSticker *)messageSticker
85
quotedMessage:(nullable TSQuotedMessage *)quotedMessage
86
storedShouldStartExpireTimer:(BOOL)storedShouldStartExpireTimer
87
storyAuthorUuidString:(nullable NSString *)storyAuthorUuidString
88
storyReactionEmoji:(nullable NSString *)storyReactionEmoji
89
storyTimestamp:(nullable NSNumber *)storyTimestamp
90
wasRemotelyDeleted:(BOOL)wasRemotelyDeleted
91
errorType:(TSErrorMessageType)errorType
92
read:(BOOL)read
93
recipientAddress:(nullable SignalServiceAddress *)recipientAddress
94
sender:(nullable SignalServiceAddress *)sender
95
wasIdentityVerified:(BOOL)wasIdentityVerified
96
messageId:(NSString *)messageId
97
preKeyBundle:(NSData *)preKeyBundle
98
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:errorType:read:recipientAddress:sender:wasIdentityVerified:messageId:preKeyBundle:));
99
100
// clang-format on
101
102
// --- CODE GENERATION MARKER
103
104
@end
105
106
NS_ASSUME_NONNULL_END
107
108