Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
signalapp
GitHub Repository: signalapp/Signal-iOS
Path: blob/main/SignalServiceKit/Messages/Interactions/OWSDisappearingConfigurationUpdateInfoMessage.h
1 views
1
//
2
// Copyright 2018 Signal Messenger, LLC
3
// SPDX-License-Identifier: AGPL-3.0-only
4
//
5
6
#import <SignalServiceKit/TSInfoMessage.h>
7
8
NS_ASSUME_NONNULL_BEGIN
9
10
@class TSContactThread;
11
12
@interface OWSDisappearingConfigurationUpdateInfoMessage : TSInfoMessage
13
14
@property (nonatomic, readonly) BOOL configurationIsEnabled;
15
16
- (instancetype)initWithThread:(TSThread *)thread messageType:(TSInfoMessageType)infoMessage NS_UNAVAILABLE;
17
18
- (instancetype)initWithThread:(TSThread *)thread
19
messageType:(TSInfoMessageType)messageType
20
infoMessageUserInfo:(NSDictionary<InfoMessageUserInfoKey, id> *)infoMessageUserInfo NS_UNAVAILABLE;
21
22
- (instancetype)initWithThread:(TSThread *)thread
23
timestamp:(uint64_t)timestamp
24
serverGuid:(nullable NSString *)serverGuid
25
messageType:(TSInfoMessageType)messageType
26
expireTimerVersion:(nullable NSNumber *)expireTimerVersion
27
expiresInSeconds:(unsigned int)expiresInSeconds
28
infoMessageUserInfo:(nullable NSDictionary<InfoMessageUserInfoKey, id> *)infoMessageUserInfo NS_UNAVAILABLE;
29
30
- (instancetype)initWithGrdbId:(int64_t)grdbId
31
uniqueId:(NSString *)uniqueId
32
receivedAtTimestamp:(uint64_t)receivedAtTimestamp
33
sortId:(uint64_t)sortId
34
timestamp:(uint64_t)timestamp
35
uniqueThreadId:(NSString *)uniqueThreadId
36
body:(nullable NSString *)body
37
bodyRanges:(nullable MessageBodyRanges *)bodyRanges
38
contactShare:(nullable OWSContact *)contactShare
39
deprecated_attachmentIds:(nullable NSArray<NSString *> *)deprecated_attachmentIds
40
editState:(TSEditState)editState
41
expireStartedAt:(uint64_t)expireStartedAt
42
expireTimerVersion:(nullable NSNumber *)expireTimerVersion
43
expiresAt:(uint64_t)expiresAt
44
expiresInSeconds:(unsigned int)expiresInSeconds
45
giftBadge:(nullable OWSGiftBadge *)giftBadge
46
isGroupStoryReply:(BOOL)isGroupStoryReply
47
isPoll:(BOOL)isPoll
48
isSmsMessageRestoredFromBackup:(BOOL)isSmsMessageRestoredFromBackup
49
isViewOnceComplete:(BOOL)isViewOnceComplete
50
isViewOnceMessage:(BOOL)isViewOnceMessage
51
linkPreview:(nullable OWSLinkPreview *)linkPreview
52
messageSticker:(nullable MessageSticker *)messageSticker
53
quotedMessage:(nullable TSQuotedMessage *)quotedMessage
54
storedShouldStartExpireTimer:(BOOL)storedShouldStartExpireTimer
55
storyAuthorUuidString:(nullable NSString *)storyAuthorUuidString
56
storyReactionEmoji:(nullable NSString *)storyReactionEmoji
57
storyTimestamp:(nullable NSNumber *)storyTimestamp
58
wasRemotelyDeleted:(BOOL)wasRemotelyDeleted
59
customMessage:(nullable NSString *)customMessage
60
infoMessageUserInfo:(nullable NSDictionary<InfoMessageUserInfoKey, id> *)infoMessageUserInfo
61
messageType:(TSInfoMessageType)messageType
62
read:(BOOL)read
63
serverGuid:(nullable NSString *)serverGuid
64
unregisteredAddress:(nullable SignalServiceAddress *)unregisteredAddress NS_UNAVAILABLE;
65
66
/// Create a new disappearing-timer-update info message.
67
///
68
/// - Parameter timestamp
69
/// The time at which this message was created. Note that historically this
70
/// value was set to `0`, so legacy info messages may have a `0` timestamp.
71
///
72
/// - Important
73
/// This info message today is only inserted for contact threads, and was
74
/// historically persisted for GV1 groups. It's unclear, however, if these were
75
/// ever persisted in GV2 threads, which today represent these updates using
76
/// "group update items".
77
///
78
/// - SeeAlso ``GroupUpdateItemBuilder``
79
/// - SeeAlso ``GroupUpdateInfoMessageInserter``
80
- (instancetype)initWithContactThread:(TSContactThread *)contactThread
81
timestamp:(uint64_t)timestamp
82
isConfigurationEnabled:(BOOL)isConfigurationEnabled
83
configurationDurationSeconds:(uint32_t)configurationDurationSeconds
84
createdByRemoteName:(nullable NSString *)remoteName NS_DESIGNATED_INITIALIZER;
85
86
// --- CODE GENERATION MARKER
87
88
// This snippet is generated by /Scripts/sds_codegen/sds_generate.py. Do not manually edit it, instead run
89
// `sds_codegen.sh`.
90
91
// clang-format off
92
93
- (instancetype)initWithGrdbId:(int64_t)grdbId
94
uniqueId:(NSString *)uniqueId
95
receivedAtTimestamp:(uint64_t)receivedAtTimestamp
96
sortId:(uint64_t)sortId
97
timestamp:(uint64_t)timestamp
98
uniqueThreadId:(NSString *)uniqueThreadId
99
body:(nullable NSString *)body
100
bodyRanges:(nullable MessageBodyRanges *)bodyRanges
101
contactShare:(nullable OWSContact *)contactShare
102
deprecated_attachmentIds:(nullable NSArray<NSString *> *)deprecated_attachmentIds
103
editState:(TSEditState)editState
104
expireStartedAt:(uint64_t)expireStartedAt
105
expireTimerVersion:(nullable NSNumber *)expireTimerVersion
106
expiresAt:(uint64_t)expiresAt
107
expiresInSeconds:(unsigned int)expiresInSeconds
108
giftBadge:(nullable OWSGiftBadge *)giftBadge
109
isGroupStoryReply:(BOOL)isGroupStoryReply
110
isPoll:(BOOL)isPoll
111
isSmsMessageRestoredFromBackup:(BOOL)isSmsMessageRestoredFromBackup
112
isViewOnceComplete:(BOOL)isViewOnceComplete
113
isViewOnceMessage:(BOOL)isViewOnceMessage
114
linkPreview:(nullable OWSLinkPreview *)linkPreview
115
messageSticker:(nullable MessageSticker *)messageSticker
116
quotedMessage:(nullable TSQuotedMessage *)quotedMessage
117
storedShouldStartExpireTimer:(BOOL)storedShouldStartExpireTimer
118
storyAuthorUuidString:(nullable NSString *)storyAuthorUuidString
119
storyReactionEmoji:(nullable NSString *)storyReactionEmoji
120
storyTimestamp:(nullable NSNumber *)storyTimestamp
121
wasRemotelyDeleted:(BOOL)wasRemotelyDeleted
122
customMessage:(nullable NSString *)customMessage
123
infoMessageUserInfo:(nullable NSDictionary<InfoMessageUserInfoKey, id> *)infoMessageUserInfo
124
messageType:(TSInfoMessageType)messageType
125
read:(BOOL)read
126
serverGuid:(nullable NSString *)serverGuid
127
unregisteredAddress:(nullable SignalServiceAddress *)unregisteredAddress
128
configurationDurationSeconds:(unsigned int)configurationDurationSeconds
129
configurationIsEnabled:(BOOL)configurationIsEnabled
130
createdByRemoteName:(nullable NSString *)createdByRemoteName
131
createdInExistingGroup:(BOOL)createdInExistingGroup
132
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:configurationDurationSeconds:configurationIsEnabled:createdByRemoteName:createdInExistingGroup:));
133
134
// clang-format on
135
136
// --- CODE GENERATION MARKER
137
138
@end
139
140
NS_ASSUME_NONNULL_END
141
142