calllog.java.svn-base
来自「开源项目openfire的完整源程序」· SVN-BASE 代码 · 共 121 行
SVN-BASE
121 行
/**
* $Revision: $
* $Date: $
*
* Copyright (C) 2007 Jive Software. All rights reserved.
*
* This software is published under the terms of the GNU Lesser Public License (LGPL),
* a copy of which is included in this distribution.
*/
package org.jivesoftware.sparkplugin.calllog;
/**
* Title: SIPark
* Description:JAIN-SIP Audio/Video phone application
*
* @author Thiago Rocha Camargo (thiago@jivesoftware.com)
* <p/>
* The <code>CallLog</code> class represents a CallLog instance
* @version 1.0, 28/09/2006
*/
public class CallLog {
private String username;
private String numA;
private String numB;
private String dateTime;
private int duration;
private Type type;
public CallLog(String username) {
this.username = username;
}
public CallLog() {
}
public enum Type {
dialed, received, missed;
public String toString() {
switch (this) {
case dialed:
return "Dialed Calls";
case received:
return "Received Calls";
case missed:
return "Lost Calls";
}
return "Unknown";
}
public static Type fromDescription(String description) {
if (description.equals("Dialed Calls"))
return dialed;
if (description.equals("Received Calls"))
return received;
if (description.equals("Missed Calls"))
return missed;
return dialed;
}
}
public String getDateTime() {
return dateTime;
}
public void setDateTime(String 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;
}
public void setUsername(String username) {
this.username = username;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?