41 lines
1.1 KiB
Dart
41 lines
1.1 KiB
Dart
// ignore_for_file: constant_identifier_names
|
|
|
|
import 'package:tencent_im_sdk_plugin/models/v2_tim_conversation.dart';
|
|
import 'package:tencent_im_sdk_plugin/models/v2_tim_user_full_info.dart';
|
|
|
|
class PrivateConversationModel {
|
|
String userID;
|
|
bool isFriend;
|
|
String friendRemark;
|
|
V2TimConversation? conversation;
|
|
V2TimUserFullInfo? userProfile;
|
|
bool isStaffer;
|
|
bool allowStranger; // 允许陌生人消息
|
|
String? shopId; // 他是哪个店铺的客服
|
|
|
|
PrivateConversationModel({
|
|
required this.userID,
|
|
this.friendRemark = '',
|
|
this.isFriend = false,
|
|
this.conversation,
|
|
this.userProfile,
|
|
this.isStaffer = false,
|
|
this.allowStranger = true,
|
|
this.shopId,
|
|
});
|
|
}
|
|
|
|
class UserRelationEnum {
|
|
/// 不是好友
|
|
static const int V2TIM_FRIEND_RELATION_TYPE_NONE = 0;
|
|
|
|
/// 对方在我的好友列表
|
|
static const int V2TIM_FRIEND_RELATION_TYPE_IN_MY_FRIEND_LIST = 1;
|
|
|
|
/// 我在对方的好友列表
|
|
static const int V2TIM_FRIEND_RELATION_TYPE_IN_OTHER_FRIEND_LIST = 2;
|
|
|
|
/// 表示对方在我的好友列表中
|
|
static const int V2TIM_FRIEND_RELATION_TYPE_BOTH_WAY = 3;
|
|
}
|