58 lines
1.4 KiB
Objective-C
58 lines
1.4 KiB
Objective-C
//
|
|
// NTESCustomAttachmentDefines.h
|
|
// NIM
|
|
//
|
|
// Created by amao on 7/2/15.
|
|
// Copyright (c) 2015 Netease. All rights reserved.
|
|
//
|
|
|
|
#ifndef NIM_NTESCustomAttachmentTypes_h
|
|
#define NIM_NTESCustomAttachmentTypes_h
|
|
|
|
typedef NS_ENUM(NSInteger,NTESCustomMessageType){
|
|
CustomMessageTypeJanKenPon = 1, //剪子石头布
|
|
CustomMessageTypeSnapchat = 2, //阅后即焚
|
|
CustomMessageTypeChartlet = 3, //贴图表情
|
|
CustomMessageTypeWhiteboard = 4, //白板会话
|
|
CustomMessageTypeIfishPushMassage = 5,//爱鱼奇官方帐号推送消息文本
|
|
|
|
};
|
|
|
|
|
|
#define CMType @"type"
|
|
#define CMData @"data"
|
|
#define CMValue @"value"
|
|
#define CMFlag @"flag"
|
|
#define CMURL @"url"
|
|
#define CMMD5 @"md5"
|
|
#define CMFIRE @"fired" //阅后即焚消息是否被焚毁
|
|
#define CMCatalog @"catalog" //贴图类别
|
|
#define CMChartlet @"chartlet" //贴图表情ID
|
|
|
|
#define CMIfishPushlink @"pushlink"
|
|
#define CMIfishTimestamp @"timestamp"
|
|
#define CMIfishPushType @"pushType"
|
|
#define CMIfishPushId @"pushId"
|
|
|
|
|
|
#endif
|
|
|
|
|
|
@protocol NTESCustomAttachmentInfo <NSObject>
|
|
|
|
@optional
|
|
|
|
- (NSString *)cellContent:(NIMMessage *)message;
|
|
|
|
- (CGSize)contentSize:(NIMMessage *)message cellWidth:(CGFloat)width;
|
|
|
|
- (UIEdgeInsets)contentViewInsets:(NIMMessage *)message;
|
|
|
|
- (NSString *)formatedMessage;
|
|
|
|
- (UIImage *)showCoverImage;
|
|
|
|
- (void)setShowCoverImage:(UIImage *)image;
|
|
|
|
@end
|