Skip to content

Instantly share code, notes, and snippets.

Last active July 17, 2019 00:55
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Model class
public class Contact {
private int id;
private String title;
private String description;
private int priority;
private String numone;
private String numtwo;
private String numthree;
private String numfour;
private String type;
public static final int MEDECINETYPE = 99;
public Contact(String title, String description, int priority,String numone,String numtwo,String numthree,String numfour,String type) {
this.title = title;
this.description = description;
this.priority = priority;
public void setId(int id) { = id;
public int getId() {
return id;
public String getTitle() {
return title;
public String getDescription() {
return description;
public int getPriority() {
return priority;
public String getNumone() {
return numone;
public void setNumone(String numone) {
this.numone = numone;
public String getNumtwo() {
return numtwo;
public void setNumtwo(String numtwo) {
this.numtwo = numtwo;
public String getNumthree() {
return numthree;
public void setNumthree(String numthree) {
this.numthree = numthree;
public String getNumfour() {
return numfour;
public void setNumfour(String numfour) {
this.numfour = numfour;
public String getType() {
return type;
public void setType(String type) {
this.type = type;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment