27 lines
697 B
Objective-C
27 lines
697 B
Objective-C
//
|
|
// KBChatMessage.h
|
|
// CustomKeyboard
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <UIKit/UIKit.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface KBChatMessage : NSObject
|
|
|
|
@property (nonatomic, copy) NSString *text;
|
|
@property (nonatomic, assign) BOOL outgoing;
|
|
@property (nonatomic, copy, nullable) NSString *audioFilePath;
|
|
@property (nonatomic, copy, nullable) NSString *avatarURL;
|
|
@property (nonatomic, copy, nullable) NSString *displayName;
|
|
@property (nonatomic, strong, nullable) UIImage *avatarImage;
|
|
|
|
+ (instancetype)messageWithText:(NSString *)text
|
|
outgoing:(BOOL)outgoing
|
|
audioFilePath:(nullable NSString *)audioFilePath;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|