35 lines
725 B
Objective-C
35 lines
725 B
Objective-C
//
|
|
// NIMMessageMaker.h
|
|
// xplan-ios
|
|
//
|
|
// Created by zu on 2021/11/28.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <NIMSDK/NIMSDK.h>
|
|
|
|
@interface NIMMessageMaker : NSObject
|
|
|
|
+ (NIMMessage*)msgWithText:(NSString *)text;
|
|
|
|
+ (NIMMessage *)msgWithAudio:(NSString *)filePath;
|
|
|
|
+ (NIMMessage *)msgWithImage:(UIImage *)image;
|
|
|
|
+ (NIMMessage *)msgWithImagePath:(NSString *)path;
|
|
|
|
+ (NIMMessage *)msgWithImageData:(NSData *)data extension:(NSString *)extension;
|
|
|
|
+ (NIMMessage *)msgWithVideo:(NSString *)filePath;
|
|
|
|
@end
|
|
|
|
|
|
@interface NIMCommentMaker : NSObject
|
|
|
|
+ (NIMQuickComment *)commentWithType:(int64_t)type
|
|
content:(NSString *)content
|
|
ext:(NSString *)ext;
|
|
|
|
@end
|