001/** 002 * 003 * Copyright 2003-2007 Jive Software. 004 * 005 * Licensed under the Apache License, Version 2.0 (the "License"); 006 * you may not use this file except in compliance with the License. 007 * You may obtain a copy of the License at 008 * 009 * http://www.apache.org/licenses/LICENSE-2.0 010 * 011 * Unless required by applicable law or agreed to in writing, software 012 * distributed under the License is distributed on an "AS IS" BASIS, 013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 014 * See the License for the specific language governing permissions and 015 * limitations under the License. 016 */ 017 018package org.jivesoftware.smackx.workgroup.ext.history; 019 020import java.util.Date; 021 022/** 023 * Represents one chat session for an agent. 024 */ 025public class AgentChatSession { 026 public Date startDate; 027 public long duration; 028 public String visitorsName; 029 public String visitorsEmail; 030 public String sessionID; 031 public String question; 032 033 public AgentChatSession(Date date, long duration, String visitorsName, String visitorsEmail, String sessionID, String question) { 034 this.startDate = date; 035 this.duration = duration; 036 this.visitorsName = visitorsName; 037 this.visitorsEmail = visitorsEmail; 038 this.sessionID = sessionID; 039 this.question = question; 040 } 041 042 public Date getStartDate() { 043 return startDate; 044 } 045 046 public void setStartDate(Date startDate) { 047 this.startDate = startDate; 048 } 049 050 public long getDuration() { 051 return duration; 052 } 053 054 public void setDuration(long duration) { 055 this.duration = duration; 056 } 057 058 public String getVisitorsName() { 059 return visitorsName; 060 } 061 062 public void setVisitorsName(String visitorsName) { 063 this.visitorsName = visitorsName; 064 } 065 066 public String getVisitorsEmail() { 067 return visitorsEmail; 068 } 069 070 public void setVisitorsEmail(String visitorsEmail) { 071 this.visitorsEmail = visitorsEmail; 072 } 073 074 public String getSessionID() { 075 return sessionID; 076 } 077 078 public void setSessionID(String sessionID) { 079 this.sessionID = sessionID; 080 } 081 082 public void setQuestion(String question) { 083 this.question = question; 084 } 085 086 public String getQuestion() { 087 return question; 088 } 089 090 091}