mirror of
https://github.com/Leo501/CocosCreatorTutorial.git
synced 2026-05-31 06:29:19 +08:00
完善pomelo客户端
This commit is contained in:
23
PomeloClient/assets/Script/model/ChatInfoModel.js
Normal file
23
PomeloClient/assets/Script/model/ChatInfoModel.js
Normal 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();
|
||||
Reference in New Issue
Block a user