|
|
|
@ -1,13 +1,10 @@
|
|
|
|
|
//
|
|
|
|
|
// TSInfoMessage.h
|
|
|
|
|
// TextSecureKit
|
|
|
|
|
//
|
|
|
|
|
// Created by Frederic Jacobs on 15/11/14.
|
|
|
|
|
// Copyright (c) 2014 Open Whisper Systems. All rights reserved.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#import "TSMessage.h"
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
|
|
@interface TSInfoMessage : TSMessage
|
|
|
|
|
|
|
|
|
|
typedef NS_ENUM(NSInteger, TSInfoMessageType) {
|
|
|
|
@ -25,6 +22,8 @@ typedef NS_ENUM(NSInteger, TSInfoMessageType) {
|
|
|
|
|
@property TSInfoMessageType messageType;
|
|
|
|
|
@property NSString *customMessage;
|
|
|
|
|
|
|
|
|
|
- (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
|
|
|
|
- (instancetype)initWithTimestamp:(uint64_t)timestamp
|
|
|
|
|
inThread:(TSThread *)contact
|
|
|
|
|
messageType:(TSInfoMessageType)infoMessage NS_DESIGNATED_INITIALIZER;
|
|
|
|
@ -32,6 +31,15 @@ typedef NS_ENUM(NSInteger, TSInfoMessageType) {
|
|
|
|
|
- (instancetype)initWithTimestamp:(uint64_t)timestamp
|
|
|
|
|
inThread:(TSThread *)thread
|
|
|
|
|
messageType:(TSInfoMessageType)infoMessage
|
|
|
|
|
customMessage:(NSString *)customMessage NS_DESIGNATED_INITIALIZER;
|
|
|
|
|
customMessage:(NSString *)customMessage;
|
|
|
|
|
|
|
|
|
|
- (instancetype)initWithTimestamp:(uint64_t)timestamp
|
|
|
|
|
inThread:(nullable TSThread *)thread
|
|
|
|
|
messageBody:(nullable NSString *)body
|
|
|
|
|
attachmentIds:(NSArray<NSString *> *)attachmentIds
|
|
|
|
|
expiresInSeconds:(uint32_t)expiresInSeconds
|
|
|
|
|
expireStartedAt:(uint64_t)expireStartedAt NS_UNAVAILABLE;
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|
|
|
|
|