-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOseersBean.java
44 lines (36 loc) · 1.2 KB
/
OseersBean.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package com.xmen.xteam.communication.bean;
import com.xmen.xteam.msgsockey.socket.adapter.ReceiveProtocol;
import java.util.HashMap;
import java.util.List;
/**
* 创 建 者: lwh
* 创建时间: 2018/1/2
* 描 述:
*/
public class OseersBean extends BaseSocketBean {
private int tid ; //团队id
private int uid ; //用户id
private int tkuid ; //被获取任务参与者的用户id
private List<Integer> oseers ; //参与者id
public OseersBean(HashMap<String, Object> receiveProtocol, ReceiveProtocol preseq) {
super(receiveProtocol,preseq);
}
@Override
protected void parse(HashMap<String, Object> receiveProtocol,ReceiveProtocol preseq) {
tid = getInt("tid");
uid = getInt("uid");
tkuid = getInt("tkuid");
Object o = receiveProtocol.get("oseers");
try {
if (o != null && o instanceof List) {
oseers = (List<Integer>) o;
}
}catch (Exception e){
e.printStackTrace();
}
}
public int getTid() {return tid;}
public int getUid() {return uid;}
public int getTkuid() {return tkuid;}
public List<Integer> getOseers() {return oseers;}
}