// Path: src/com/blochstech/bitcoincardterminal/Interfaces/IDAL.java
// public interface IDAL {
// 	//Events:
// 	public Event<Message> MessageEventReference();
// 	
// 	//Database mehtods:
// 	public void setReceiveAddress(String address);
// 	public String getReceiveAddress();
// 	
// 	public void setFee(String fee);
// 	public String getFee();
// 	
// 	public void setCourtesyOK(boolean courtesyOK);
// 	public boolean getCourtesyOK();
// 	
// 	public void setCurrency(int currency);
// 	public int getCurrency();
// }
// 
// Path: src/com/blochstech/bitcoincardterminal/Interfaces/Message.java
// public class Message {
// 	public long CreatedMillis;
// 	public String Message;
// 	public MessageType Type;
// 
// 	public Message(String message, MessageType type, long createdMillis){
// 		this.Type = type;
// 		this.Message = message;
// 		this.CreatedMillis = createdMillis;
// 	}
// 	public Message(String message, MessageType type){
// 		this.Type = type;
// 		this.Message = message;
// 		this.CreatedMillis = System.currentTimeMillis();
// 	}
// 	public Message(String message){
// 		this.Type = MessageType.Info;
// 		this.Message = message;
// 		this.CreatedMillis = System.currentTimeMillis();
// 	}
// 	
// 	public enum MessageType{
// 		Info,
// 		Warning,
// 		Error
// 	}
// }
// 
// Path: src/com/blochstech/bitcoincardterminal/Interfaces/Message.java
// public enum MessageType{
// 	Info,
// 	Warning,
// 	Error
// }


import android.util.Log;
import com.blochstech.bitcoincardterminal.Interfaces.IDAL;
import com.blochstech.bitcoincardterminal.Interfaces.Message;
import com.blochstech.bitcoincardterminal.Interfaces.Message.MessageType;
import com.blochstech.bitcoincardterminal.Utils.*;
package com.blochstech.bitcoincardterminal.DataLayer;



public class DAL implements IDAL {
	//Singleton pattern:
	private static IDAL instance = null;
	public static IDAL Instance()
	{
		if(instance == null)
		{
			instance = new DAL();
		}
		return instance;
	}
	private DAL()
	{
		try {
// Path: src/com/blochstech/bitcoincardterminal/Interfaces/IDAL.java
// public interface IDAL {
// 	//Events:
// 	public Event<Message> MessageEventReference();
// 	
// 	//Database mehtods:
// 	public void setReceiveAddress(String address);
// 	public String getReceiveAddress();
// 	
// 	public void setFee(String fee);
// 	public String getFee();
// 	
// 	public void setCourtesyOK(boolean courtesyOK);
// 	public boolean getCourtesyOK();
// 	
// 	public void setCurrency(int currency);
// 	public int getCurrency();
// }
// 
// Path: src/com/blochstech/bitcoincardterminal/Interfaces/Message.java
// public class Message {
// 	public long CreatedMillis;
// 	public String Message;
// 	public MessageType Type;
// 
// 	public Message(String message, MessageType type, long createdMillis){
// 		this.Type = type;
// 		this.Message = message;
// 		this.CreatedMillis = createdMillis;
// 	}
// 	public Message(String message, MessageType type){
// 		this.Type = type;
// 		this.Message = message;
// 		this.CreatedMillis = System.currentTimeMillis();
// 	}
// 	public Message(String message){
// 		this.Type = MessageType.Info;
// 		this.Message = message;
// 		this.CreatedMillis = System.currentTimeMillis();
// 	}
// 	
// 	public enum MessageType{
// 		Info,
// 		Warning,
// 		Error
// 	}
// }
// 
// Path: src/com/blochstech/bitcoincardterminal/Interfaces/Message.java
// public enum MessageType{
// 	Info,
// 	Warning,
// 	Error
// }


// Path: src/com/blochstech/bitcoincardterminal/DataLayer/DAL.java
import android.util.Log;
import com.blochstech.bitcoincardterminal.Interfaces.IDAL;
import com.blochstech.bitcoincardterminal.Interfaces.Message;
import com.blochstech.bitcoincardterminal.Interfaces.Message.MessageType;
import com.blochstech.bitcoincardterminal.Utils.*;

package com.blochstech.bitcoincardterminal.DataLayer;



public class DAL implements IDAL {
	//Singleton pattern:
	private static IDAL instance = null;
	public static IDAL Instance()
	{
		if(instance == null)
		{
			instance = new DAL();
		}
		return instance;
	}
	private DAL()
	{
		try {
			messageEvent = new Event<Message>(this);