Path: blob/main/SignalServiceKit/Messages/Interactions/OWSDisappearingConfigurationUpdateInfoMessage.h
1 views
//1// Copyright 2018 Signal Messenger, LLC2// SPDX-License-Identifier: AGPL-3.0-only3//45#import <SignalServiceKit/TSInfoMessage.h>67NS_ASSUME_NONNULL_BEGIN89@class TSContactThread;1011@interface OWSDisappearingConfigurationUpdateInfoMessage : TSInfoMessage1213@property (nonatomic, readonly) BOOL configurationIsEnabled;1415- (instancetype)initWithThread:(TSThread *)thread messageType:(TSInfoMessageType)infoMessage NS_UNAVAILABLE;1617- (instancetype)initWithThread:(TSThread *)thread18messageType:(TSInfoMessageType)messageType19infoMessageUserInfo:(NSDictionary<InfoMessageUserInfoKey, id> *)infoMessageUserInfo NS_UNAVAILABLE;2021- (instancetype)initWithThread:(TSThread *)thread22timestamp:(uint64_t)timestamp23serverGuid:(nullable NSString *)serverGuid24messageType:(TSInfoMessageType)messageType25expireTimerVersion:(nullable NSNumber *)expireTimerVersion26expiresInSeconds:(unsigned int)expiresInSeconds27infoMessageUserInfo:(nullable NSDictionary<InfoMessageUserInfoKey, id> *)infoMessageUserInfo NS_UNAVAILABLE;2829- (instancetype)initWithGrdbId:(int64_t)grdbId30uniqueId:(NSString *)uniqueId31receivedAtTimestamp:(uint64_t)receivedAtTimestamp32sortId:(uint64_t)sortId33timestamp:(uint64_t)timestamp34uniqueThreadId:(NSString *)uniqueThreadId35body:(nullable NSString *)body36bodyRanges:(nullable MessageBodyRanges *)bodyRanges37contactShare:(nullable OWSContact *)contactShare38deprecated_attachmentIds:(nullable NSArray<NSString *> *)deprecated_attachmentIds39editState:(TSEditState)editState40expireStartedAt:(uint64_t)expireStartedAt41expireTimerVersion:(nullable NSNumber *)expireTimerVersion42expiresAt:(uint64_t)expiresAt43expiresInSeconds:(unsigned int)expiresInSeconds44giftBadge:(nullable OWSGiftBadge *)giftBadge45isGroupStoryReply:(BOOL)isGroupStoryReply46isPoll:(BOOL)isPoll47isSmsMessageRestoredFromBackup:(BOOL)isSmsMessageRestoredFromBackup48isViewOnceComplete:(BOOL)isViewOnceComplete49isViewOnceMessage:(BOOL)isViewOnceMessage50linkPreview:(nullable OWSLinkPreview *)linkPreview51messageSticker:(nullable MessageSticker *)messageSticker52quotedMessage:(nullable TSQuotedMessage *)quotedMessage53storedShouldStartExpireTimer:(BOOL)storedShouldStartExpireTimer54storyAuthorUuidString:(nullable NSString *)storyAuthorUuidString55storyReactionEmoji:(nullable NSString *)storyReactionEmoji56storyTimestamp:(nullable NSNumber *)storyTimestamp57wasRemotelyDeleted:(BOOL)wasRemotelyDeleted58customMessage:(nullable NSString *)customMessage59infoMessageUserInfo:(nullable NSDictionary<InfoMessageUserInfoKey, id> *)infoMessageUserInfo60messageType:(TSInfoMessageType)messageType61read:(BOOL)read62serverGuid:(nullable NSString *)serverGuid63unregisteredAddress:(nullable SignalServiceAddress *)unregisteredAddress NS_UNAVAILABLE;6465/// Create a new disappearing-timer-update info message.66///67/// - Parameter timestamp68/// The time at which this message was created. Note that historically this69/// value was set to `0`, so legacy info messages may have a `0` timestamp.70///71/// - Important72/// This info message today is only inserted for contact threads, and was73/// historically persisted for GV1 groups. It's unclear, however, if these were74/// ever persisted in GV2 threads, which today represent these updates using75/// "group update items".76///77/// - SeeAlso ``GroupUpdateItemBuilder``78/// - SeeAlso ``GroupUpdateInfoMessageInserter``79- (instancetype)initWithContactThread:(TSContactThread *)contactThread80timestamp:(uint64_t)timestamp81isConfigurationEnabled:(BOOL)isConfigurationEnabled82configurationDurationSeconds:(uint32_t)configurationDurationSeconds83createdByRemoteName:(nullable NSString *)remoteName NS_DESIGNATED_INITIALIZER;8485// --- CODE GENERATION MARKER8687// This snippet is generated by /Scripts/sds_codegen/sds_generate.py. Do not manually edit it, instead run88// `sds_codegen.sh`.8990// clang-format off9192- (instancetype)initWithGrdbId:(int64_t)grdbId93uniqueId:(NSString *)uniqueId94receivedAtTimestamp:(uint64_t)receivedAtTimestamp95sortId:(uint64_t)sortId96timestamp:(uint64_t)timestamp97uniqueThreadId:(NSString *)uniqueThreadId98body:(nullable NSString *)body99bodyRanges:(nullable MessageBodyRanges *)bodyRanges100contactShare:(nullable OWSContact *)contactShare101deprecated_attachmentIds:(nullable NSArray<NSString *> *)deprecated_attachmentIds102editState:(TSEditState)editState103expireStartedAt:(uint64_t)expireStartedAt104expireTimerVersion:(nullable NSNumber *)expireTimerVersion105expiresAt:(uint64_t)expiresAt106expiresInSeconds:(unsigned int)expiresInSeconds107giftBadge:(nullable OWSGiftBadge *)giftBadge108isGroupStoryReply:(BOOL)isGroupStoryReply109isPoll:(BOOL)isPoll110isSmsMessageRestoredFromBackup:(BOOL)isSmsMessageRestoredFromBackup111isViewOnceComplete:(BOOL)isViewOnceComplete112isViewOnceMessage:(BOOL)isViewOnceMessage113linkPreview:(nullable OWSLinkPreview *)linkPreview114messageSticker:(nullable MessageSticker *)messageSticker115quotedMessage:(nullable TSQuotedMessage *)quotedMessage116storedShouldStartExpireTimer:(BOOL)storedShouldStartExpireTimer117storyAuthorUuidString:(nullable NSString *)storyAuthorUuidString118storyReactionEmoji:(nullable NSString *)storyReactionEmoji119storyTimestamp:(nullable NSNumber *)storyTimestamp120wasRemotelyDeleted:(BOOL)wasRemotelyDeleted121customMessage:(nullable NSString *)customMessage122infoMessageUserInfo:(nullable NSDictionary<InfoMessageUserInfoKey, id> *)infoMessageUserInfo123messageType:(TSInfoMessageType)messageType124read:(BOOL)read125serverGuid:(nullable NSString *)serverGuid126unregisteredAddress:(nullable SignalServiceAddress *)unregisteredAddress127configurationDurationSeconds:(unsigned int)configurationDurationSeconds128configurationIsEnabled:(BOOL)configurationIsEnabled129createdByRemoteName:(nullable NSString *)createdByRemoteName130createdInExistingGroup:(BOOL)createdInExistingGroup131NS_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:));132133// clang-format on134135// --- CODE GENERATION MARKER136137@end138139NS_ASSUME_NONNULL_END140141142