save/restore history upon application stop/start

This commit is contained in:
Juha Heinanen
2018-03-10 18:46:26 +13:00
parent 7da559cacc
commit 65bfc4ebc8

View File

@ -0,0 +1,24 @@
package com.tutpro.baresip;
import java.io.Serializable;
import java.util.GregorianCalendar;
public class History implements Serializable {
private static final long serialVersionUID = -299482035708790407L;
private String aor, peer_uri, direction;
private GregorianCalendar time;
public History(String aor, String peer_uri, String direction) {
this.aor = aor;
this.peer_uri = peer_uri;
this.direction = direction;
this.time = new GregorianCalendar();
}
public String getAoR() { return aor; }
public String getPeerURI() { return peer_uri; }
public String getDirection() { return direction; }
public GregorianCalendar getTime() { return time; }
}