1 44 package net.jforum.entities; 45 46 50 public class PrivateMessage 51 { 52 private int id; 53 private int type; 54 private User fromUser; 55 private User toUser; 56 private Post post; 57 private String formatedDate; 58 59 62 public User getFromUser() 63 { 64 return fromUser; 65 } 66 67 70 public void setFromUser(User fromUser) 71 { 72 this.fromUser = fromUser; 73 } 74 75 78 public User getToUser() 79 { 80 return toUser; 81 } 82 83 86 public void setToUser(User toUser) 87 { 88 this.toUser = toUser; 89 } 90 91 94 public int getType() 95 { 96 return type; 97 } 98 99 102 public void setType(int type) 103 { 104 this.type = type; 105 } 106 107 110 public int getId() 111 { 112 return id; 113 } 114 115 118 public void setId(int id) 119 { 120 this.id = id; 121 } 122 123 126 public Post getPost() 127 { 128 return post; 129 } 130 131 134 public void setPost(Post post) 135 { 136 this.post = post; 137 } 138 139 142 public String getFormatedDate() 143 { 144 return formatedDate; 145 } 146 147 150 public void setFormatedDate(String formatedDate) 151 { 152 this.formatedDate = formatedDate; 153 } 154 } 155 | Popular Tags |