HoleInformation.java 969 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. package com.sunzee.model;
  2. /**
  3. * 蹲位的当前状态
  4. */
  5. public class HoleInformation {
  6. /**
  7. * 0:表示处于上厕所状态。
  8. * 1:表示没上厕所。
  9. * 2.表示什么状态都没有。
  10. */
  11. private int state;
  12. /**
  13. * 改变状态的时间是什么时候
  14. */
  15. private long timeDuration;
  16. public HoleInformation(int state, long timeDuration) {
  17. this.state = state;
  18. this.timeDuration = timeDuration;
  19. }
  20. public int getState() {
  21. return state;
  22. }
  23. public void setState(int state) {
  24. this.state = state;
  25. }
  26. public long getTimeDuration() {
  27. return timeDuration;
  28. }
  29. public void setTimeDuration(long timeDuration) {
  30. this.timeDuration = timeDuration;
  31. }
  32. @Override
  33. public String toString() {
  34. return "HoleInformation{" +
  35. "state=" + state +
  36. ", timeDuration=" + timeDuration +
  37. '}';
  38. }
  39. }