From 68c3b3e6066fd05ce1629770f464fc71480188e7 Mon Sep 17 00:00:00 2001 From: ppzy123 <1157928777@qq.com> Date: Sat, 27 Mar 2021 15:46:58 +0800 Subject: [PATCH] add a message.java --- src/Message.java | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 src/Message.java diff --git a/src/Message.java b/src/Message.java new file mode 100644 index 0000000..11ecc20 --- /dev/null +++ b/src/Message.java @@ -0,0 +1,48 @@ +class Message { + int user_id; + int sub_id; + String users; + Message(int user_id,int sub_id,String users) { + this.sub_id=sub_id; + this.user_id=user_id; + this.users=users; + } + + public int getSub_id() { + return sub_id; + } + + public int getUser_id() { + return user_id; + } + + public void setSub_id(int sub_id) { + this.sub_id = sub_id; + } + + public void setUser_id(int user_id) { + this.user_id = user_id; + } + + public String getUsers() { + return users; + } + + public void setUsers(String users) { + this.users = users; + } + + public void handleMsg(int id) { + String temp=""; + String[]ss = users.split(","); + for(int i=0;i