1
This commit is contained in:
20
CustomKeyboard/Model/KBChatMessage.m
Normal file
20
CustomKeyboard/Model/KBChatMessage.m
Normal file
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// KBChatMessage.m
|
||||
// CustomKeyboard
|
||||
//
|
||||
|
||||
#import "KBChatMessage.h"
|
||||
|
||||
@implementation KBChatMessage
|
||||
|
||||
+ (instancetype)messageWithText:(NSString *)text
|
||||
outgoing:(BOOL)outgoing
|
||||
audioFilePath:(NSString *)audioFilePath {
|
||||
KBChatMessage *msg = [[KBChatMessage alloc] init];
|
||||
msg.text = text ?: @"";
|
||||
msg.outgoing = outgoing;
|
||||
msg.audioFilePath = audioFilePath;
|
||||
return msg;
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user