session-ios/Signal/src/Models/TSMessageAdapaters/TSMessageAdapter.h

31 lines
805 B
Objective-C

//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "ContactsManagerProtocol.h"
#import "OWSMessageData.h"
#import "OWSMessageEditing.h"
#import "TSInfoMessage.h"
NS_ASSUME_NONNULL_BEGIN
@class TSInteraction;
@class TSThread;
#define ME_MESSAGE_IDENTIFIER @"Me";
@interface TSMessageAdapter : NSObject <OWSMessageData>
+ (id<OWSMessageData>)messageViewDataWithInteraction:(TSInteraction *)interaction inThread:(TSThread *)thread contactsManager:(id<ContactsManagerProtocol>)contactsManager;
@property (nonatomic) TSInteraction *interaction;
@property (readonly) TSInfoMessageType infoMessageType;
@property (nonatomic, readonly) CGFloat mediaViewAlpha;
@property (nonatomic, readonly) BOOL isMediaBeingSent;
+ (SEL)messageMetadataSelector;
@end
NS_ASSUME_NONNULL_END