1 6 7 package org.contineo.communication; 8 9 14 public abstract class Message { 15 16 19 private int messageId = 0; 20 23 private String messageText = ""; 24 27 private String author = ""; 28 31 private String subject = ""; 32 35 private String sentDate = ""; 36 39 private int read = 0; 41 45 public int getMessageId() { 46 return messageId; 47 } 48 49 53 public String getMessageText() { 54 return messageText; 55 } 56 57 61 public String getAuthor() { 62 return author; 63 } 64 65 69 public String getSubject() { 70 return subject; 71 } 72 73 77 public String getSentDate() { 78 return sentDate; 79 } 80 81 85 public int getRead() { 86 return read; 87 } 88 89 93 public void setMessageId(int id) { 94 messageId = id; 95 } 96 97 101 public void setMessageText(String mess) { 102 messageText = mess; 103 } 104 105 109 public void setAuthor(String auth) { 110 author = auth; 111 } 112 113 117 public void setSubject(String subj) { 118 subject = subj; 119 } 120 121 125 public void setSentDate(String dat) { 126 sentDate = dat; 127 } 128 129 133 public void setRead(int rd) { 134 read = rd; 135 } 136 137 } 138 | Popular Tags |