Advertisement
sameeraj

Untitled

Dec 16th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. public class ReportMessage {
  2. public static final int SHOW_PROGERSS = 1;
  3. public static final int HIDE_PROGERSS = 2;
  4. public static final int FAIL = 3;
  5. public static final int SUCCESS_YEAR = 4;
  6. public static final int SUCCESS_EVENT = 5;
  7.  
  8. private int id;
  9. private String message;
  10. private ArrayList<BeanAcademicYear> academicYears;
  11. private ArrayList<BeanAcademicYearEvent> academicYearEvents;
  12.  
  13. public ReportMessage(int id) {
  14. this.id = id;
  15. }
  16.  
  17. public ReportMessage(String message, int id) {
  18. this.message = message;
  19. this.id = id;
  20. }
  21.  
  22. public ReportMessage(ArrayList<BeanAcademicYear> academicYears) {
  23. this.id = SUCCESS_YEAR;
  24. this.academicYears = academicYears;
  25. }
  26.  
  27. public ReportMessage(ArrayList<BeanAcademicYearEvent> academicYearEvents) {
  28. this.id = SUCCESS_EVENT;
  29. this.academicYearEvents = academicYearEvents;
  30. }
  31.  
  32. public String getMessage() {
  33. return message;
  34. }
  35.  
  36. public int getId() {
  37. return id;
  38. }
  39.  
  40. public ArrayList<BeanAcademicYear> getAcademicYears() {
  41. return academicYears;
  42. }
  43.  
  44. public ArrayList<BeanAcademicYearEvent> getAcademicYearEvents() {
  45. return academicYearEvents;
  46. }
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement