Home | History | Annotate | Download | only in agent
      1 /**
      2  * $Revision$
      3  * $Date$
      4  *
      5  * Copyright 2003-2007 Jive Software.
      6  *
      7  * All rights reserved. Licensed under the Apache License, Version 2.0 (the "License");
      8  * you may not use this file except in compliance with the License.
      9  * You may obtain a copy of the License at
     10  *
     11  *     http://www.apache.org/licenses/LICENSE-2.0
     12  *
     13  * Unless required by applicable law or agreed to in writing, software
     14  * distributed under the License is distributed on an "AS IS" BASIS,
     15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     16  * See the License for the specific language governing permissions and
     17  * limitations under the License.
     18  */
     19 
     20 package org.jivesoftware.smackx.workgroup.agent;
     21 
     22 /**
     23  * Request sent by an agent to invite another agent or user.
     24  *
     25  * @author Gaston Dombiak
     26  */
     27 public class InvitationRequest extends OfferContent {
     28 
     29     private String inviter;
     30     private String room;
     31     private String reason;
     32 
     33     public InvitationRequest(String inviter, String room, String reason) {
     34         this.inviter = inviter;
     35         this.room = room;
     36         this.reason = reason;
     37     }
     38 
     39     public String getInviter() {
     40         return inviter;
     41     }
     42 
     43     public String getRoom() {
     44         return room;
     45     }
     46 
     47     public String getReason() {
     48         return reason;
     49     }
     50 
     51     boolean isUserRequest() {
     52         return false;
     53     }
     54 
     55     boolean isInvitation() {
     56         return true;
     57     }
     58 
     59     boolean isTransfer() {
     60         return false;
     61     }
     62 }
     63