Back to project page hitch-hiker.
The source code is released under:
MIT License
If you think the Android project hitch-hiker listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package autostoppista.core.gcm; //w ww.j av a2 s. c o m import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; public class Message { public List<String> registration_ids = new ArrayList<String>(); public Map<String,Object> data = new HashMap<String,Object>(); public Message addID(String id) { registration_ids.add(id); return this; } public Message delID(String id) { registration_ids.remove(id); return this; } public Message addData(String key, Object value) { data.put(key, value); return this; } }