Home | History | Annotate | Download | only in history
      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.ext.history;
     21 
     22 import java.util.Date;
     23 
     24 /**
     25  * Represents one chat session for an agent.
     26  */
     27 public class AgentChatSession {
     28     public Date startDate;
     29     public long duration;
     30     public String visitorsName;
     31     public String visitorsEmail;
     32     public String sessionID;
     33     public String question;
     34 
     35     public AgentChatSession(Date date, long duration, String visitorsName, String visitorsEmail, String sessionID, String question) {
     36         this.startDate = date;
     37         this.duration = duration;
     38         this.visitorsName = visitorsName;
     39         this.visitorsEmail = visitorsEmail;
     40         this.sessionID = sessionID;
     41         this.question = question;
     42     }
     43 
     44     public Date getStartDate() {
     45         return startDate;
     46     }
     47 
     48     public void setStartDate(Date startDate) {
     49         this.startDate = startDate;
     50     }
     51 
     52     public long getDuration() {
     53         return duration;
     54     }
     55 
     56     public void setDuration(long duration) {
     57         this.duration = duration;
     58     }
     59 
     60     public String getVisitorsName() {
     61         return visitorsName;
     62     }
     63 
     64     public void setVisitorsName(String visitorsName) {
     65         this.visitorsName = visitorsName;
     66     }
     67 
     68     public String getVisitorsEmail() {
     69         return visitorsEmail;
     70     }
     71 
     72     public void setVisitorsEmail(String visitorsEmail) {
     73         this.visitorsEmail = visitorsEmail;
     74     }
     75 
     76     public String getSessionID() {
     77         return sessionID;
     78     }
     79 
     80     public void setSessionID(String sessionID) {
     81         this.sessionID = sessionID;
     82     }
     83 
     84     public void setQuestion(String question){
     85         this.question = question;
     86     }
     87 
     88     public String getQuestion(){
     89         return question;
     90     }
     91 
     92 
     93 }
     94