mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.4 KiB
Objective-C
37 lines
1.4 KiB
Objective-C
//
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@class OWSSignalServiceProtosSyncMessageSent;
|
|
@class OWSSignalServiceProtosDataMessage;
|
|
@class OWSSignalServiceProtosAttachmentPointer;
|
|
@class TSThread;
|
|
|
|
/**
|
|
* Represents notification of a message sent on our behalf from another device.
|
|
* E.g. When we send a message from Signal-Desktop we want to see it in our conversation on iPhone.
|
|
*/
|
|
@interface OWSIncomingSentMessageTranscript : NSObject
|
|
|
|
- (instancetype)initWithProto:(OWSSignalServiceProtosSyncMessageSent *)sentProto relay:(NSString *)relay;
|
|
|
|
@property (nonatomic, readonly) NSString *relay;
|
|
@property (nonatomic, readonly) OWSSignalServiceProtosDataMessage *dataMessage;
|
|
@property (nonatomic, readonly) NSString *recipientId;
|
|
@property (nonatomic, readonly) uint64_t timestamp;
|
|
@property (nonatomic, readonly) uint64_t expirationStartedAt;
|
|
@property (nonatomic, readonly) uint32_t expirationDuration;
|
|
@property (nonatomic, readonly) TSThread *thread;
|
|
@property (nonatomic, readonly) BOOL isGroupUpdate;
|
|
@property (nonatomic, readonly) BOOL isExpirationTimerUpdate;
|
|
@property (nonatomic, readonly) BOOL isEndSessionMessage;
|
|
@property (nullable, nonatomic, readonly) NSData *groupId;
|
|
@property (nonatomic, readonly) NSString *body;
|
|
@property (nonatomic, readonly) NSArray<OWSSignalServiceProtosAttachmentPointer *> *attachmentPointerProtos;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|