/model-display/src/main/java/cn/edu/ecust/modeldisplay/model/ModelDetail.java

https://bitbucket.org/makoto1990/industrial-display · Java · 101 lines · 79 code · 22 blank · 0 comment · 0 complexity · 51b5b6f5383efb35dfe713627ee99bc6 MD5 · raw file

  1. package cn.edu.ecust.modeldisplay.model;
  2. import com.alibaba.fastjson.annotation.JSONField;
  3. public class ModelDetail {
  4. @JSONField(name = "modelName")
  5. private String modelName;
  6. @JSONField(name = "modelType")
  7. private String modelType;
  8. @JSONField(name = "modelWeight")
  9. private String modelWeight;
  10. @JSONField(name = "modelHeight")
  11. private String modelHeight;
  12. @JSONField(name = "modelWidth")
  13. private String modelWidth;
  14. @JSONField(name = "modelDepth")
  15. private String modelDepth;
  16. @JSONField(name = "modelCost")
  17. private String modelCost;
  18. public ModelDetail() {
  19. }
  20. public ModelDetail(String modelName, String modelType, String modelWeight, String modelHeight, String modelWidth, String modelDepth, String modelCost) {
  21. this.modelName = modelName;
  22. this.modelType = modelType;
  23. this.modelWeight = modelWeight;
  24. this.modelHeight = modelHeight;
  25. this.modelWidth = modelWidth;
  26. this.modelDepth = modelDepth;
  27. this.modelCost = modelCost;
  28. }
  29. public String getModelName() {
  30. return modelName;
  31. }
  32. public void setModelName(String modelName) {
  33. this.modelName = modelName;
  34. }
  35. public String getModelType() {
  36. return modelType;
  37. }
  38. public void setModelType(String modelType) {
  39. this.modelType = modelType;
  40. }
  41. public String getModelHeight() {
  42. return modelHeight;
  43. }
  44. public void setModelHeight(String modelHeight) {
  45. this.modelHeight = modelHeight;
  46. }
  47. public String getModelWeight() {
  48. return modelWeight;
  49. }
  50. public void setModelWeight(String modelWeight) {
  51. this.modelWeight = modelWeight;
  52. }
  53. public String getModelWidth() {
  54. return modelWidth;
  55. }
  56. public void setModelWidth(String modelWidth) {
  57. this.modelWidth = modelWidth;
  58. }
  59. public String getModelDepth() {
  60. return modelDepth;
  61. }
  62. public void setModelDepth(String modelDepth) {
  63. this.modelDepth = modelDepth;
  64. }
  65. public String getModelCost() {
  66. return modelCost;
  67. }
  68. public void setModelCost(String modelCost) {
  69. this.modelCost = modelCost;
  70. }
  71. @Override
  72. public boolean equals(Object obj) {
  73. return super.equals(obj);
  74. }
  75. @Override
  76. public String toString() {
  77. return super.toString();
  78. }
  79. }