2018-02-07 18:44:09 +01:00
|
|
|
//
|
|
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
|
|
|
//
|
2016-11-04 17:19:13 +01:00
|
|
|
|
|
|
|
#import "TSOutgoingMessage.h"
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
NS_SWIFT_NAME(EndSessionMessage)
|
|
|
|
@interface OWSEndSessionMessage : TSOutgoingMessage
|
|
|
|
|
2018-05-11 16:36:40 +02:00
|
|
|
- (instancetype)initOutgoingMessageWithTimestamp:(uint64_t)timestamp
|
|
|
|
inThread:(nullable TSThread *)thread
|
|
|
|
messageBody:(nullable NSString *)body
|
|
|
|
attachmentIds:(NSMutableArray<NSString *> *)attachmentIds
|
|
|
|
expiresInSeconds:(uint32_t)expiresInSeconds
|
|
|
|
expireStartedAt:(uint64_t)expireStartedAt
|
|
|
|
isVoiceMessage:(BOOL)isVoiceMessage
|
|
|
|
groupMetaMessage:(TSGroupMetaMessage)groupMetaMessage
|
|
|
|
quotedMessage:(nullable TSQuotedMessage *)quotedMessage
|
|
|
|
contactShare:(nullable OWSContact *)contactShare NS_UNAVAILABLE;
|
|
|
|
|
2018-02-07 18:44:09 +01:00
|
|
|
- (instancetype)initWithTimestamp:(uint64_t)timestamp inThread:(nullable TSThread *)thread NS_DESIGNATED_INITIALIZER;
|
2018-06-07 17:52:39 +02:00
|
|
|
- (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
|
2018-02-07 18:44:09 +01:00
|
|
|
|
2016-11-04 17:19:13 +01:00
|
|
|
@end
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|