1 package org.columba.chat.command; 19 20 import org.columba.core.command.DefaultCommandReference; 21 import org.jivesoftware.smack.packet.Presence; 22 23 public class ChatCommandReference extends DefaultCommandReference { 24 private String jabberId; 25 26 private Presence presence; 27 28 public ChatCommandReference() { 29 } 30 31 public ChatCommandReference(Presence presence) { 32 if ( presence == null ) throw new IllegalArgumentException ("presence == null"); 33 34 this.presence = presence; 35 } 36 37 public ChatCommandReference(String jabberId) { 38 if ( jabberId == null ) throw new IllegalArgumentException ("jabberId == null"); 39 40 this.jabberId = jabberId; 41 } 42 43 46 public String getJabberId() { 47 return jabberId; 48 } 49 50 53 public Presence getPresence() { 54 return presence; 55 } 56 57 } 58 | Popular Tags |