OptionsBean.java 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. package com.fxy.detection.bean;
  2. import android.os.Parcel;
  3. import android.os.Parcelable;
  4. import java.util.ArrayList;
  5. import java.util.List;
  6. public class OptionsBean implements Parcelable {
  7. private String type = ""; //
  8. private String attr_id = ""; //
  9. private String title = ""; //
  10. private String content = ""; //
  11. private String result = ""; //
  12. private String tip = ""; //
  13. private String name = ""; //
  14. private List<NeedPhotoBean> need_photo = new ArrayList<>(); //
  15. private List<RepairConfirmBean> confirm = new ArrayList<>(); //
  16. private List<BtnInfoBean> btns = new ArrayList<>(); //
  17. private Boolean checked = false;
  18. public OptionsBean() {
  19. }
  20. protected OptionsBean(Parcel in) {
  21. type = in.readString();
  22. attr_id = in.readString();
  23. title = in.readString();
  24. content = in.readString();
  25. result = in.readString();
  26. tip = in.readString();
  27. name = in.readString();
  28. need_photo = in.createTypedArrayList(NeedPhotoBean.CREATOR);
  29. confirm = in.createTypedArrayList(RepairConfirmBean.CREATOR);
  30. btns = in.createTypedArrayList(BtnInfoBean.CREATOR);
  31. byte tmpChecked = in.readByte();
  32. checked = tmpChecked == 0 ? null : tmpChecked == 1;
  33. }
  34. @Override
  35. public void writeToParcel(Parcel dest, int flags) {
  36. dest.writeString(type);
  37. dest.writeString(attr_id);
  38. dest.writeString(title);
  39. dest.writeString(content);
  40. dest.writeString(result);
  41. dest.writeString(tip);
  42. dest.writeString(name);
  43. dest.writeTypedList(need_photo);
  44. dest.writeTypedList(confirm);
  45. dest.writeTypedList(btns);
  46. dest.writeByte((byte) (checked == null ? 0 : checked ? 1 : 2));
  47. }
  48. @Override
  49. public int describeContents() {
  50. return 0;
  51. }
  52. public static final Creator<OptionsBean> CREATOR = new Creator<OptionsBean>() {
  53. @Override
  54. public OptionsBean createFromParcel(Parcel in) {
  55. return new OptionsBean(in);
  56. }
  57. @Override
  58. public OptionsBean[] newArray(int size) {
  59. return new OptionsBean[size];
  60. }
  61. };
  62. public String getType() {
  63. return type;
  64. }
  65. public void setType(String type) {
  66. this.type = type;
  67. }
  68. public String getAttrId() {
  69. return attr_id;
  70. }
  71. public void setAttrId(String attr_id) {
  72. this.attr_id = attr_id;
  73. }
  74. public String getTitle() {
  75. return title;
  76. }
  77. public void setTitle(String title) {
  78. this.title = title;
  79. }
  80. public String getContent() {
  81. return content;
  82. }
  83. public void setContent(String content) {
  84. this.content = content;
  85. }
  86. public String getResult() {
  87. return result;
  88. }
  89. public void setResult(String result) {
  90. this.result = result;
  91. }
  92. public List<NeedPhotoBean> getNeedPhoto() {
  93. return need_photo;
  94. }
  95. public void setNeedPhoto(List<NeedPhotoBean> need_photo) {
  96. this.need_photo = need_photo;
  97. }
  98. public List<RepairConfirmBean> getConfirm() {
  99. return confirm;
  100. }
  101. public void setConfirm(List<RepairConfirmBean> confirm) {
  102. this.confirm = confirm;
  103. }
  104. public List<BtnInfoBean> getBtns() {
  105. return btns;
  106. }
  107. public void setBtns(List<BtnInfoBean> btns) {
  108. this.btns = btns;
  109. }
  110. public Boolean getChecked() {
  111. return checked;
  112. }
  113. public void setChecked(Boolean checked) {
  114. this.checked = checked;
  115. }
  116. public String getTip() {
  117. return tip;
  118. }
  119. public OptionsBean setTip(String tip) {
  120. this.tip = tip;
  121. return this;
  122. }
  123. public String getName() {
  124. return name;
  125. }
  126. public OptionsBean setName(String name) {
  127. this.name = name;
  128. return this;
  129. }
  130. }