Smack

org.jivesoftware.smackx.packet
Class MUCUser.Decline

java.lang.Object
  extended by org.jivesoftware.smackx.packet.MUCUser.Decline
Enclosing class:
MUCUser

public static class MUCUser.Decline
extends Object

Represents a rejection to an invitation from another user to a room. The rejection will be sent to the room which in turn will forward the refusal to the inviter.

Author:
Gaston Dombiak

Constructor Summary
MUCUser.Decline()
           
 
Method Summary
 String getFrom()
          Returns the bare JID of the invitee that rejected the invitation.
 String getReason()
          Returns the message explaining why the invitation was rejected.
 String getTo()
          Returns the bare JID of the inviter.
 void setFrom(String from)
          Sets the bare JID of the invitee that rejected the invitation.
 void setReason(String reason)
          Sets the message explaining why the invitation was rejected.
 void setTo(String to)
          Sets the bare JID of the inviter.
 String toXML()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MUCUser.Decline

public MUCUser.Decline()
Method Detail

getFrom

public String getFrom()
Returns the bare JID of the invitee that rejected the invitation. (e.g. 'crone1@shakespeare.lit/desktop').

Returns:
the bare JID of the invitee that rejected the invitation.

getReason

public String getReason()
Returns the message explaining why the invitation was rejected.

Returns:
the message explaining the reason for the rejection.

getTo

public String getTo()
Returns the bare JID of the inviter. (e.g. 'hecate@shakespeare.lit')

Returns:
the bare JID of the inviter.

setFrom

public void setFrom(String from)
Sets the bare JID of the invitee that rejected the invitation. (e.g. 'crone1@shakespeare.lit/desktop').

Parameters:
from - the bare JID of the invitee that rejected the invitation.

setReason

public void setReason(String reason)
Sets the message explaining why the invitation was rejected.

Parameters:
reason - the message explaining the reason for the rejection.

setTo

public void setTo(String to)
Sets the bare JID of the inviter. (e.g. 'hecate@shakespeare.lit')

Parameters:
to - the bare JID of the inviter.

toXML

public String toXML()

Smack

Copyright © 2003-2007 Jive Software.