1 7 package org.javabb.vo; 8 9 import java.io.Serializable ; 10 import java.util.Date ; 11 12 18 public class PrivMsg extends VOObject implements Serializable { 19 20 private User userFrom; 21 private User userTo; 22 private String topic; 23 private String text; 24 private Date data; 25 private Integer allowBBCode = new Integer (0); 26 private Integer allowSmiles = new Integer (0); 27 private Integer attachSign = new Integer (0); 28 private Integer read = new Integer (0); 29 30 public PrivMsg() { 31 32 } 33 34 public PrivMsg(PrivMsg p) { 35 setAllowBBCode(p.getAllowBBCode()); 36 setAllowSmiles(p.getAllowSmiles()); 37 setAttachSign(p.getAttachSign()); 38 setData(p.getData()); 39 setId(p.getId()); 40 setText(p.getText()); 41 setTopic(p.getTopic()); 42 setUserFrom(p.getUserFrom()); 43 setUserTo(p.getUserTo()); 44 setRead(p.getRead()); 45 } 46 47 50 public PrivMsg(Long id) { 51 setId(id); 52 } 53 54 public Long getIdMsg() { 55 return getId(); 56 } 57 58 public void setIdMsg(Long id) { 59 setId(id); 60 } 61 62 65 public Integer getAllowBBCode() { 66 return allowBBCode; 67 } 68 71 public void setAllowBBCode(Integer allowBBCode) { 72 this.allowBBCode = allowBBCode; 73 } 74 77 public Integer getAllowSmiles() { 78 return allowSmiles; 79 } 80 83 public void setAllowSmiles(Integer allowSmiles) { 84 this.allowSmiles = allowSmiles; 85 } 86 89 public Integer getAttachSign() { 90 return attachSign; 91 } 92 95 public void setAttachSign(Integer attachSign) { 96 this.attachSign = attachSign; 97 } 98 101 public Date getData() { 102 return data; 103 } 104 107 public void setData(Date data) { 108 this.data = data; 109 } 110 113 public String getText() { 114 return text; 115 } 116 119 public void setText(String text) { 120 this.text = text; 121 } 122 125 public String getTopic() { 126 return topic; 127 } 128 131 public void setTopic(String topic) { 132 this.topic = topic; 133 } 134 137 public User getUserFrom() { 138 return userFrom; 139 } 140 143 public void setUserFrom(User userFrom) { 144 this.userFrom = userFrom; 145 } 146 149 public User getUserTo() { 150 return userTo; 151 } 152 155 public void setUserTo(User userTo) { 156 this.userTo = userTo; 157 } 158 159 162 public Integer getRead() { 163 return read; 164 } 165 168 public void setRead(Integer read) { 169 this.read = read; 170 } 171 } 172 | Popular Tags |