2014-11-25 16:38:33 +01:00
|
|
|
//
|
2017-03-14 21:01:12 +01:00
|
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
2014-11-25 16:38:33 +01:00
|
|
|
//
|
|
|
|
|
2017-09-19 16:36:23 +02:00
|
|
|
#import "ContactsManagerProtocol.h"
|
2016-09-21 14:37:51 +02:00
|
|
|
#import "OWSMessageData.h"
|
2016-03-11 19:34:39 +01:00
|
|
|
#import "OWSMessageEditing.h"
|
2016-10-23 19:39:42 +02:00
|
|
|
#import "TSInfoMessage.h"
|
2016-09-21 14:37:51 +02:00
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
2016-03-11 19:34:39 +01:00
|
|
|
|
|
|
|
@class TSInteraction;
|
|
|
|
@class TSThread;
|
2014-11-25 16:38:33 +01:00
|
|
|
|
2014-11-25 19:06:09 +01:00
|
|
|
#define ME_MESSAGE_IDENTIFIER @"Me";
|
|
|
|
|
2016-09-21 14:37:51 +02:00
|
|
|
@interface TSMessageAdapter : NSObject <OWSMessageData>
|
2014-11-25 16:38:33 +01:00
|
|
|
|
2016-11-14 19:28:51 +01:00
|
|
|
+ (id<OWSMessageData>)messageViewDataWithInteraction:(TSInteraction *)interaction inThread:(TSThread *)thread contactsManager:(id<ContactsManagerProtocol>)contactsManager;
|
2014-11-25 16:38:33 +01:00
|
|
|
|
2016-10-08 17:48:50 +02:00
|
|
|
@property (nonatomic) TSInteraction *interaction;
|
2016-10-23 19:39:42 +02:00
|
|
|
@property (readonly) TSInfoMessageType infoMessageType;
|
2016-10-14 22:59:58 +02:00
|
|
|
@property (nonatomic, readonly) CGFloat mediaViewAlpha;
|
|
|
|
@property (nonatomic, readonly) BOOL isMediaBeingSent;
|
2014-11-29 19:54:33 +01:00
|
|
|
|
2017-09-19 16:36:23 +02:00
|
|
|
+ (SEL)messageMetadataSelector;
|
|
|
|
|
2014-11-25 16:38:33 +01:00
|
|
|
@end
|
2016-09-21 14:37:51 +02:00
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|