Path: blob/main/SignalServiceKit/Messages/Interactions/OWSVerificationStateChangeMessage.h
1 views
//1// Copyright 2018 Signal Messenger, LLC2// SPDX-License-Identifier: AGPL-3.0-only3//45#import <SignalServiceKit/OWSVerificationState.h>6#import <SignalServiceKit/TSInfoMessage.h>78NS_ASSUME_NONNULL_BEGIN910@class SignalServiceAddress;11@class TSThread;1213@interface OWSVerificationStateChangeMessage : TSInfoMessage1415@property (nonatomic, readonly) SignalServiceAddress *recipientAddress;16@property (nonatomic, readonly) OWSVerificationState verificationState;17@property (nonatomic, readonly) BOOL isLocalChange;1819/// Whether or not this message is reporting the user to be verified.20- (bool)isVerified;2122- (instancetype)initWithThread:(TSThread *)thread messageType:(TSInfoMessageType)infoMessage NS_UNAVAILABLE;2324- (instancetype)initWithThread:(TSThread *)thread25messageType:(TSInfoMessageType)messageType26infoMessageUserInfo:(NSDictionary<InfoMessageUserInfoKey, id> *)infoMessageUserInfo NS_UNAVAILABLE;2728- (instancetype)initWithThread:(TSThread *)thread29timestamp:(uint64_t)timestamp30serverGuid:(nullable NSString *)serverGuid31messageType:(TSInfoMessageType)infoMessage32expireTimerVersion:(nullable NSNumber *)expireTimerVersion33expiresInSeconds:(unsigned int)expiresInSeconds34infoMessageUserInfo:(nullable NSDictionary<InfoMessageUserInfoKey, id> *)infoMessageUserInfo NS_UNAVAILABLE;3536- (instancetype)initWithGrdbId:(int64_t)grdbId37uniqueId:(NSString *)uniqueId38receivedAtTimestamp:(uint64_t)receivedAtTimestamp39sortId:(uint64_t)sortId40timestamp:(uint64_t)timestamp41uniqueThreadId:(NSString *)uniqueThreadId42body:(nullable NSString *)body43bodyRanges:(nullable MessageBodyRanges *)bodyRanges44contactShare:(nullable OWSContact *)contactShare45deprecated_attachmentIds:(nullable NSArray<NSString *> *)deprecated_attachmentIds46editState:(TSEditState)editState47expireStartedAt:(uint64_t)expireStartedAt48expireTimerVersion:(nullable NSNumber *)expireTimerVersion49expiresAt:(uint64_t)expiresAt50expiresInSeconds:(unsigned int)expiresInSeconds51giftBadge:(nullable OWSGiftBadge *)giftBadge52isGroupStoryReply:(BOOL)isGroupStoryReply53isPoll:(BOOL)isPoll54isSmsMessageRestoredFromBackup:(BOOL)isSmsMessageRestoredFromBackup55isViewOnceComplete:(BOOL)isViewOnceComplete56isViewOnceMessage:(BOOL)isViewOnceMessage57linkPreview:(nullable OWSLinkPreview *)linkPreview58messageSticker:(nullable MessageSticker *)messageSticker59quotedMessage:(nullable TSQuotedMessage *)quotedMessage60storedShouldStartExpireTimer:(BOOL)storedShouldStartExpireTimer61storyAuthorUuidString:(nullable NSString *)storyAuthorUuidString62storyReactionEmoji:(nullable NSString *)storyReactionEmoji63storyTimestamp:(nullable NSNumber *)storyTimestamp64wasRemotelyDeleted:(BOOL)wasRemotelyDeleted65customMessage:(nullable NSString *)customMessage66infoMessageUserInfo:(nullable NSDictionary<InfoMessageUserInfoKey, id> *)infoMessageUserInfo67messageType:(TSInfoMessageType)messageType68read:(BOOL)read69serverGuid:(nullable NSString *)serverGuid70unregisteredAddress:(nullable SignalServiceAddress *)unregisteredAddress NS_UNAVAILABLE;7172- (instancetype)initWithThread:(TSThread *)thread73timestamp:(uint64_t)timestamp74recipientAddress:(SignalServiceAddress *)recipientAddress75verificationState:(OWSVerificationState)verificationState76isLocalChange:(BOOL)isLocalChange NS_DESIGNATED_INITIALIZER;7778// --- CODE GENERATION MARKER7980// This snippet is generated by /Scripts/sds_codegen/sds_generate.py. Do not manually edit it, instead run81// `sds_codegen.sh`.8283// clang-format off8485- (instancetype)initWithGrdbId:(int64_t)grdbId86uniqueId:(NSString *)uniqueId87receivedAtTimestamp:(uint64_t)receivedAtTimestamp88sortId:(uint64_t)sortId89timestamp:(uint64_t)timestamp90uniqueThreadId:(NSString *)uniqueThreadId91body:(nullable NSString *)body92bodyRanges:(nullable MessageBodyRanges *)bodyRanges93contactShare:(nullable OWSContact *)contactShare94deprecated_attachmentIds:(nullable NSArray<NSString *> *)deprecated_attachmentIds95editState:(TSEditState)editState96expireStartedAt:(uint64_t)expireStartedAt97expireTimerVersion:(nullable NSNumber *)expireTimerVersion98expiresAt:(uint64_t)expiresAt99expiresInSeconds:(unsigned int)expiresInSeconds100giftBadge:(nullable OWSGiftBadge *)giftBadge101isGroupStoryReply:(BOOL)isGroupStoryReply102isPoll:(BOOL)isPoll103isSmsMessageRestoredFromBackup:(BOOL)isSmsMessageRestoredFromBackup104isViewOnceComplete:(BOOL)isViewOnceComplete105isViewOnceMessage:(BOOL)isViewOnceMessage106linkPreview:(nullable OWSLinkPreview *)linkPreview107messageSticker:(nullable MessageSticker *)messageSticker108quotedMessage:(nullable TSQuotedMessage *)quotedMessage109storedShouldStartExpireTimer:(BOOL)storedShouldStartExpireTimer110storyAuthorUuidString:(nullable NSString *)storyAuthorUuidString111storyReactionEmoji:(nullable NSString *)storyReactionEmoji112storyTimestamp:(nullable NSNumber *)storyTimestamp113wasRemotelyDeleted:(BOOL)wasRemotelyDeleted114customMessage:(nullable NSString *)customMessage115infoMessageUserInfo:(nullable NSDictionary<InfoMessageUserInfoKey, id> *)infoMessageUserInfo116messageType:(TSInfoMessageType)messageType117read:(BOOL)read118serverGuid:(nullable NSString *)serverGuid119unregisteredAddress:(nullable SignalServiceAddress *)unregisteredAddress120isLocalChange:(BOOL)isLocalChange121recipientAddress:(SignalServiceAddress *)recipientAddress122verificationState:(OWSVerificationState)verificationState123NS_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:));124125// clang-format on126127// --- CODE GENERATION MARKER128129@end130131NS_ASSUME_NONNULL_END132133134