You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Device.java 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. package com.example.greenwatch.models;
  2. public class Device {
  3. private String timeStamp;
  4. private String deviceID;
  5. private boolean sensorStatus;
  6. private String sensorType;
  7. private float sensorMassage;
  8. public Device(String timeStamp, String deviceID, boolean sensorStatus, String sensorType, float sensorMassage) {
  9. this.timeStamp = timeStamp;
  10. this.deviceID = deviceID;
  11. this.sensorStatus = sensorStatus;
  12. this.sensorType = sensorType;
  13. this.sensorMassage = sensorMassage;
  14. }
  15. public void setTimeStamp(String timeStamp) {
  16. this.timeStamp = timeStamp;
  17. }
  18. public String getTimeStamp() {
  19. return timeStamp;
  20. }
  21. public void setDeviceID(String deviceID) {
  22. this.deviceID = deviceID;
  23. }
  24. public String getDeviceID() {
  25. return deviceID;
  26. }
  27. public void setSensorType(String sensorType) {
  28. this.sensorType = sensorType;
  29. }
  30. public String getSensorType() {
  31. return sensorType;
  32. }
  33. public void setSensorStatus(boolean sensorStatus) {
  34. this.sensorStatus = sensorStatus;
  35. }
  36. public Boolean getSensorStatus() {
  37. return sensorStatus;
  38. }
  39. public void setSensorMassage(float sensorMassage) {
  40. this.sensorMassage = sensorMassage;
  41. }
  42. public float getSensorMassage() {
  43. return sensorMassage;
  44. }
  45. }