1 11 12 package org.jivesoftware.messenger.muc.spi; 13 14 import java.util.Date ; 15 16 import org.jivesoftware.messenger.muc.MUCRoom; 17 import org.xmpp.packet.Message; 18 import org.xmpp.packet.JID; 19 20 26 class ConversationLogEntry { 27 28 private Date date; 29 30 private String subject; 31 32 private String body; 33 34 private JID sender; 35 36 private String nickname; 37 38 private long roomID; 39 40 49 public ConversationLogEntry(Date date, MUCRoom room, Message message, JID sender) { 50 this.date = date; 51 this.subject = message.getSubject(); 52 this.body = message.getBody(); 53 this.sender = sender; 54 this.roomID = room.getID(); 55 this.nickname = message.getFrom().getResource(); 56 } 57 58 63 public String getBody() { 64 return body; 65 } 66 67 72 public JID getSender() { 73 return sender; 74 } 75 76 81 public String getNickname() { 82 return nickname; 83 } 84 85 90 public String getSubject() { 91 return subject; 92 } 93 94 99 public Date getDate() { 100 return date; 101 } 102 103 108 public long getRoomID() { 109 return roomID; 110 } 111 112 } | Popular Tags |