完善pomelo客户端

This commit is contained in:
leo
2018-08-22 10:57:12 +08:00
parent cd8aa7d6c5
commit 821a8f550d
47 changed files with 4468 additions and 322 deletions

View File

@@ -0,0 +1,23 @@
class ChatInfoModel {
constructor() {
this.chatInfo = {};
}
setName(name) {
this.chatInfo.name = name;
}
getName() {
return this.chatInfo.name;
}
setRoomId(rid) {
this.chatInfo.rid = rid;
}
getRoomId() {
return this.chatInfo.rid;
}
}
module.exports = new ChatInfoModel();

View File

@@ -0,0 +1,9 @@
{
"ver": "1.0.5",
"uuid": "756b8874-c003-4da3-be5f-51d7f0f6ad5e",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}

View File

@@ -0,0 +1,20 @@
class ChatUserModel {
constructor() {
this.users = [];
}
setUsers(arr) {
delete this.users;
this.users = arr;
}
getUser() {
return this.users;
}
addUser(user) {
this.users.push(user);
}
}
module.exports = new ChatUserModel();

View File

@@ -0,0 +1,9 @@
{
"ver": "1.0.5",
"uuid": "e6a0f93a-9079-44dc-b204-ce03cdf9764e",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}