forked from hmkcode/Android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContent.java
More file actions
47 lines (33 loc) · 943 Bytes
/
Content.java
File metadata and controls
47 lines (33 loc) · 943 Bytes
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
46
47
package com.hmkcode.vo;
import java.io.Serializable;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
public class Content implements Serializable {
private List<String> registration_ids;
private Map<String,String> data;
public void addRegId(String regId){
if(registration_ids == null)
registration_ids = new LinkedList<String>();
registration_ids.add(regId);
}
public void createData(String title, String message){
if(data == null)
data = new HashMap<String,String>();
data.put("title", title);
data.put("message", message);
}
public List<String> getRegistration_ids() {
return registration_ids;
}
public void setRegistration_ids(List<String> registration_ids) {
this.registration_ids = registration_ids;
}
public Map<String, String> getData() {
return data;
}
public void setData(Map<String, String> data) {
this.data = data;
}
}