AgentChatSession.java

  1. /**
  2.  *
  3.  * Copyright 2003-2007 Jive Software.
  4.  *
  5.  * Licensed under the Apache License, Version 2.0 (the "License");
  6.  * you may not use this file except in compliance with the License.
  7.  * You may obtain a copy of the License at
  8.  *
  9.  *     http://www.apache.org/licenses/LICENSE-2.0
  10.  *
  11.  * Unless required by applicable law or agreed to in writing, software
  12.  * distributed under the License is distributed on an "AS IS" BASIS,
  13.  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14.  * See the License for the specific language governing permissions and
  15.  * limitations under the License.
  16.  */

  17. package org.jivesoftware.smackx.workgroup.ext.history;

  18. import java.util.Date;

  19. /**
  20.  * Represents one chat session for an agent.
  21.  */
  22. public class AgentChatSession {
  23.     public Date startDate;
  24.     public long duration;
  25.     public String visitorsName;
  26.     public String visitorsEmail;
  27.     public String sessionID;
  28.     public String question;

  29.     public AgentChatSession(Date date, long duration, String visitorsName, String visitorsEmail, String sessionID, String question) {
  30.         this.startDate = date;
  31.         this.duration = duration;
  32.         this.visitorsName = visitorsName;
  33.         this.visitorsEmail = visitorsEmail;
  34.         this.sessionID = sessionID;
  35.         this.question = question;
  36.     }

  37.     public Date getStartDate() {
  38.         return startDate;
  39.     }

  40.     public void setStartDate(Date startDate) {
  41.         this.startDate = startDate;
  42.     }

  43.     public long getDuration() {
  44.         return duration;
  45.     }

  46.     public void setDuration(long duration) {
  47.         this.duration = duration;
  48.     }

  49.     public String getVisitorsName() {
  50.         return visitorsName;
  51.     }

  52.     public void setVisitorsName(String visitorsName) {
  53.         this.visitorsName = visitorsName;
  54.     }

  55.     public String getVisitorsEmail() {
  56.         return visitorsEmail;
  57.     }

  58.     public void setVisitorsEmail(String visitorsEmail) {
  59.         this.visitorsEmail = visitorsEmail;
  60.     }

  61.     public String getSessionID() {
  62.         return sessionID;
  63.     }

  64.     public void setSessionID(String sessionID) {
  65.         this.sessionID = sessionID;
  66.     }

  67.     public void setQuestion(String question){
  68.         this.question = question;
  69.     }

  70.     public String getQuestion(){
  71.         return question;
  72.     }


  73. }