Advertisement
Guest User

Untitled

a guest
Jul 7th, 2017
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.17 KB | None | 0 0
  1. package app.botikaty.com;
  2.  
  3.  
  4. class Contact {
  5.  
  6. // private variables
  7. private int _id;
  8. private String _title;
  9. private String _image;
  10. private String _price;
  11. private String _buyer;
  12. private String _dilivary;
  13. private String _pid;
  14. private String _ptype;
  15.  
  16. Contact() {
  17. }
  18.  
  19. // constructor
  20. public Contact(int id, String title, String image, String price, String buyer, String dilivary, String pid, String ptype) {
  21. this._id = id;
  22. this._title = title;
  23. this._image = image;
  24. this._price = price;
  25. this._buyer = buyer;
  26. this._dilivary = dilivary;
  27. this._pid = pid;
  28. this._ptype = ptype;
  29.  
  30. }
  31.  
  32. // constructor
  33. Contact(String title, String image, String price, String buyer, String dilivary, String pid, String ptype) {
  34. this._title = title;
  35. this._image = image;
  36. this._price = price;
  37. this._buyer = buyer;
  38. this._dilivary = dilivary;
  39. this._pid = pid;
  40. this._ptype = ptype;
  41. }
  42.  
  43. public int getID() {
  44. return this._id;
  45. }
  46. public void setID(int id) {
  47. this._id = id;
  48. }
  49.  
  50. public String getTitle() {
  51. return this._title;
  52. }
  53. public void setTitle(String title) {
  54. this._title = title;
  55. }
  56.  
  57. public String getImage() {
  58. return this._image;
  59. }
  60. public void setImage(String image) {
  61. this._image = image;
  62. }
  63.  
  64. public String getPrice() {
  65. return this._price;
  66. }
  67. public void setPrice(String price) {
  68. this._price = price;
  69. }
  70.  
  71. public String getBuyer() {
  72. return this._buyer;
  73. }
  74. public void setBuyer(String buyer) {
  75. this._buyer = buyer;
  76. }
  77.  
  78. public String getDilivary() {
  79. return this._dilivary;
  80. }
  81. public void setDilivary(String dilivary) {
  82. this._dilivary = dilivary;
  83. }
  84.  
  85. String getPid() {
  86. return this._pid;
  87. }
  88. void setPid(String pid) {
  89. this._pid = pid;
  90. }
  91.  
  92. String getPtype() {
  93. return this._ptype;
  94. }
  95. void setPtype(String ptype) {
  96. this._ptype = ptype;
  97. }
  98.  
  99. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement