12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- package com.sunzee.model;
- /**
- * 蹲位的当前状态
- */
- public class HoleInformation {
- /**
- * 0:表示处于上厕所状态。
- * 1:表示没上厕所。
- * 2.表示什么状态都没有。
- */
- private int state;
- /**
- * 改变状态的时间是什么时候
- */
- private long timeDuration;
- public HoleInformation(int state, long timeDuration) {
- this.state = state;
- this.timeDuration = timeDuration;
- }
- public int getState() {
- return state;
- }
- public void setState(int state) {
- this.state = state;
- }
- public long getTimeDuration() {
- return timeDuration;
- }
- public void setTimeDuration(long timeDuration) {
- this.timeDuration = timeDuration;
- }
- @Override
- public String toString() {
- return "HoleInformation{" +
- "state=" + state +
- ", timeDuration=" + timeDuration +
- '}';
- }
- }
|