Advertisement
Guest User

Untitled

a guest
May 30th, 2015
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. package com.lagrange.officerpg;
  2.  
  3. public class Ticket {
  4. /**
  5. * Кто выполняет тикет. Если null, то никто.
  6. */
  7. private String performerNick = null;
  8. private int id;//уникальный id. нужен.
  9. private String description;
  10. private int remainTime;
  11. private int cost;
  12. boolean required;
  13.  
  14. public Ticket(String performerNick, int id, String description, int remainTime, int cost, boolean required) {
  15. this.performerNick = performerNick;
  16. this.id = id;
  17. this.description = description;
  18. this.remainTime = remainTime;
  19. this.cost = cost;
  20. this.required = required;
  21. }
  22.  
  23. public void setPerformer(String nick) {
  24. this.performerNick = nick;
  25. }
  26.  
  27. public String getPerformer() {
  28. return performerNick;
  29. }
  30.  
  31. public int getId() {
  32. return id;
  33. }
  34.  
  35. public void changeDescription(String description) {
  36. this.description = description;
  37. }
  38.  
  39. public void setRemainTime(int time) {
  40. this.remainTime = time;
  41. }
  42.  
  43. public int getRemainTime() {
  44. return this.remainTime;
  45. }
  46.  
  47. public void setCost(int cost) {
  48. this.cost = cost;
  49. }
  50.  
  51. public int getCost() {
  52. return this.cost;
  53. }
  54.  
  55. public boolean isRequired() {
  56. return required;
  57. }
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement