Back to project page RS-Text-Forwarder-Android-Client.
The source code is released under:
GNU General Public License
If you think the Android project RS-Text-Forwarder-Android-Client 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 net.rolisoft.textforwarder; // w w w. j a va 2s . c om import java.util.ArrayList; import java.util.List; public class Contact { public String id; public String name; public Number preferred; public Number selected; public List<Number> numbers; public Contact(String id, String name) { this.id = id; this.name = name; this.preferred = null; this.numbers = new ArrayList<Number>(); } public Number addNumber(String number, String type, boolean isDefault) { Number numObj = new Number(number, type, isDefault); this.numbers.add(numObj); return numObj; } public static class Number { public String number; public String type; public boolean isDefault; public Number(String number, String type, boolean isDefault) { this.number = number; this.type = type; this.isDefault = isDefault; } } }