Commit 8190c8b3 authored by Daniel Wolf's avatar Daniel Wolf
Browse files

DNSServerSetting is now singleton

parent c6d7a593
package com.frostnerd.dnsserver.database.entities.main;
import android.content.Context;
import com.frostnerd.dnsserver.database.serializers.IPPortSerializer;
import com.frostnerd.dnsserver.server.DNSServer;
import com.frostnerd.utils.database.orm.Entity;
import com.frostnerd.utils.database.orm.SingletonEntity;
import com.frostnerd.utils.database.orm.annotations.Ignore;
import com.frostnerd.utils.database.orm.annotations.Named;
import com.frostnerd.utils.database.orm.annotations.NotNull;
......@@ -23,7 +25,7 @@ import java.io.Serializable;
* development@frostnerd.com
*/
@Table(name = "DNSServerSetting")
public class DNSServerSetting extends Entity implements Serializable{
public class DNSServerSetting extends SingletonEntity implements Serializable{
@RowID
private int rowID;
@Named(name = "Name")
......@@ -67,6 +69,11 @@ public class DNSServerSetting extends Entity implements Serializable{
this.resolveLocal = resolveLocal;
}
public boolean isServerRunning(Context context){
//TODO
return false;
}
@Ignore
private DNSServer.ErrorListener errorListener;
@Ignore
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment