Initial commit: 91dj android client dev_1.0.0
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,74 @@
|
||||
class ImUserModel {
|
||||
bool? enabled;
|
||||
int? userId;
|
||||
String? imUserId;
|
||||
String? imToken;
|
||||
int? peerId; // 好友 id
|
||||
String? peerImUserId; // 好友 IM id
|
||||
bool? friendAdded; // true:添加好友成功
|
||||
ImUserModel({this.enabled, this.userId, this.imUserId, this.imToken});
|
||||
|
||||
ImUserModel.fromJson(Map<String, dynamic> json) {
|
||||
enabled = json['enabled'];
|
||||
userId = json['userId'];
|
||||
imUserId = json['imUserId']?.toString();
|
||||
imToken = json['imToken']?.toString() ?? json['token']?.toString();
|
||||
peerId = json['peerId'];
|
||||
peerImUserId = json['peerImUserId']?.toString();
|
||||
friendAdded = json['friendAdded'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = <String, dynamic>{};
|
||||
data['imUserId'] = imUserId;
|
||||
data['imToken'] = imToken;
|
||||
data['userId'] = userId;
|
||||
data['enabled'] = enabled;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
class ImTokenInfo {
|
||||
bool? enabled;
|
||||
String? imToken;
|
||||
String? token;
|
||||
int? userId;
|
||||
int? imUserId;
|
||||
bool? registered;
|
||||
String? dynamicConfigDomain;
|
||||
String? socketURL;
|
||||
String? sysType;
|
||||
String? os;
|
||||
String? osType;
|
||||
|
||||
ImTokenInfo.fromJson(Map<String, dynamic> json) {
|
||||
enabled = json['enabled'];
|
||||
imToken = json['imToken'];
|
||||
userId = json['userId'];
|
||||
imUserId = json['imUserId'];
|
||||
registered = json['registered'];
|
||||
dynamicConfigDomain = json['dynamicConfigDomain'];
|
||||
socketURL = json['socketURL'];
|
||||
sysType = json['sysType'];
|
||||
os = json['os'];
|
||||
osType = json['osType'];
|
||||
}
|
||||
}
|
||||
|
||||
class ImUserWallet {
|
||||
int? price;
|
||||
int? deductAmount;
|
||||
int? deductIncome;
|
||||
int? amount;
|
||||
int? income;
|
||||
int? balance;
|
||||
|
||||
ImUserWallet.fromJson(Map<String, dynamic> json) {
|
||||
price = json['price'];
|
||||
deductAmount = json['deductAmount'];
|
||||
deductIncome = json['deductIncome'];
|
||||
amount = json['amount'];
|
||||
income = json['income'];
|
||||
balance = json['balance'];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user