/* * Copyright (C) 2005-2008 Jive Software. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.jivesoftware.openfire.sip.calllog; /** * CallLog instance. This class handle all Log information for a call * * @author Thiago Rocha Camargo * */ public class CallLog { private String username; private String numA; private String numB; private long dateTime; private int duration; private Type type = Type.dialed; public CallLog(String username) { this.username = username; } @SuppressWarnings({"UnnecessarySemicolon"}) // Fix for QDox Source inspector public enum Type { dialed, received, missed; } public long getDateTime() { return dateTime; } public void setDateTime(long dateTime) { this.dateTime = dateTime; } public String getNumA() { return numA; } public void setNumA(String numA) { this.numA = numA; } public String getNumB() { return numB; } public void setNumB(String numB) { this.numB = numB; } public Type getType() { return type; } public void setType(Type type) { this.type = type; } public int getDuration() { return duration; } public void setDuration(int duration) { this.duration = duration; } public String getUsername() { return username; } }