You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

180 lines
3.9 KiB

//
// JCMessageChannelItem.h
// JCSDKOC
//
// Created by maikireton on 2017/8/11.
// Copyright © 2017年 juphoon. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "JCMessageChannelConstants.h"
/**
* @addtogroup
* @{
*/
/**
* IM消息对象类
*/
@interface JCMessageChannelItem : NSObject
/**
*
*/
@property (nonatomic, readonly, copy) NSString* messageId;
/**
*
*/
@property (nonatomic, readonly, copy) NSString* messageType;
/**
*
*
*
*/
@property (nonatomic, readonly, copy) NSString* text;
/**
*
*
* JCStorage Juphoon Cloud
*/
@property (nonatomic, readonly, copy) NSString* fileUri;
/**
*
*
* JCStorage Juphoon Cloud
*/
@property (nonatomic, readonly, copy) NSString* thumbUri;
/**
*
*/
@property (nonatomic, readonly) int fileSize;
/**
*
* @note
*/
@property (nonatomic, readonly) int duration;
/**
*
*/
@property (nonatomic, readonly, strong) NSDictionary* extraParams;
/**
*
*/
@property (nonatomic, readonly, copy) NSString* userId;
/**
*
*/
@property (nonatomic, readonly, copy) NSString* displayName;
/**
* type @ref JCMessageChannelTypeGroup
*/
@property (nonatomic, readonly, copy) NSString* groupId;
/**
*
*/
@property (nonatomic, readonly) long time;
/**
*
*/
@property (nonatomic, readonly) long sentTime;
/**
*
* - @ref JCMessageChannelItemDirectionSend :
* - @ref JCMessageChannelItemDirectionReceive :
*/
@property (nonatomic, readonly) JCMessageChannelItemDirection direction;
/**
*
*
* - @ref JCMessageChannelType1To1 :
* - @ref JCMessageChannelTypeGroup :
*/
@property (nonatomic, readonly) JCMessageChannelType type;
/**
*
* - @ref JCMessageChannelItemStateInit :
* - @ref JCMessageChannelItemStateTransfering :
* - @ref JCMessageChannelItemStateOK :
* - @ref JCMessageChannelItemStateFail :
* - @ref JCMessageChannelItemStateArrived :
* - @ref JCMessageChannelItemStateReaded :
* - @ref JCMessageChannelItemStateWithdrawal :
*/
@property (nonatomic, readonly) JCMessageChannelItemState state;
/**
* @ref JCMessageChannelReason "消息错误码"
*
* @ref JCMessageChannelItemStateFail
*/
@property (nonatomic, readonly) JCMessageChannelReason error;
/**
* id
*/
@property (nonatomic, readonly) long serverMessageId;
/**
* cookie
*/
@property (nonatomic, strong) id cookie;
/**
* serverUid
*/
@property (nonatomic, strong) NSString* serverUid;
/**
* uid
*/
@property (nonatomic, strong) NSString* senderUid;
/**
* @
* - true: @
* - false: @
*/
@property (nonatomic) bool atMe;
/**
* @
* - true: @
* - false: @
*/
@property (nonatomic) bool atAll;
/**
* @uid列表
*/
@property (nonatomic, strong) NSArray<NSString*>* atServerUidList;
/**
*
* - true:
* - false:
*/
@property (nonatomic) bool isWithdrawal;
/**
* id
*/
@property (nonatomic) long withdrawalMessageId;;
@end
/**
* @}
*/