-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCountryCodeBean.java
More file actions
45 lines (35 loc) · 1.32 KB
/
Copy pathCountryCodeBean.java
File metadata and controls
45 lines (35 loc) · 1.32 KB
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
45
package com.xmen.xteam.communication.bean;
import com.xmen.xteam.msgsockey.socket.adapter.ReceiveProtocol;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
/**
* Created by zhangqi on 2018/7/19.
*/
public class CountryCodeBean extends BaseSocketBean {
private List<CountryCodeInfoBean> conCodelist;
private String simplePy;
public CountryCodeBean(HashMap<String, Object> receiveProtocol, ReceiveProtocol preseq) {
super(receiveProtocol, preseq);
}
@Override
protected void parse(HashMap<String, Object> receiveProtocol, ReceiveProtocol preseq) {
conCodelist = new ArrayList<>();
List<HashMap<String, Object>> o = getList("dms");
for (HashMap<String, Object> hashMap : o) {
String countryName = (String) hashMap.get("name");
String countryCode = (String) hashMap.get("dm");
CountryCodeInfoBean countryCodeInfoBean = new CountryCodeInfoBean(countryName, countryCode);
conCodelist.add(countryCodeInfoBean);
}
}
public List<CountryCodeInfoBean> getConCodelist() {
return conCodelist;
}
@Override
public String toString() {
return "CountryCodeBean{" +
"conCodelist=" + conCodelist +
'}';
}
}