package b4a.bbb;


import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.BALayout;
import anywheresoftware.b4a.debug.*;

public class param {
private static param mostCurrent = new param();
public static Object getObject() {
    throw new RuntimeException("Code module does not support this method.");
}
 
public anywheresoftware.b4a.keywords.Common __c = null;
public static anywheresoftware.b4a.objects.collections.List _list_read = null;
public b4a.bbb.main _main = null;
public b4a.bbb.starter _starter = null;
public b4a.bbb.setup _setup = null;
public b4a.bbb.cockpit _cockpit = null;
public b4a.bbb.collecte_data_sensor _collecte_data_sensor = null;
public b4a.bbb.httputils2service _httputils2service = null;
public static String  _read_file_setup(anywheresoftware.b4a.BA _ba,String _file_name) throws Exception{
RDebugUtils.currentModule="param";
if (Debug.shouldDelegate(null, "read_file_setup", false))
	 {return ((String) Debug.delegate(null, "read_file_setup", new Object[] {_ba,_file_name}));}
anywheresoftware.b4a.objects.streams.File.TextReaderWrapper _reader = null;
RDebugUtils.currentLine=2031616;
 //BA.debugLineNum = 2031616;BA.debugLine="Sub read_file_setup(file_name As String)";
RDebugUtils.currentLine=2031617;
 //BA.debugLineNum = 2031617;BA.debugLine="Dim reader As TextReader";
_reader = new anywheresoftware.b4a.objects.streams.File.TextReaderWrapper();
RDebugUtils.currentLine=2031618;
 //BA.debugLineNum = 2031618;BA.debugLine="list_Read.Initialize";
_list_read.Initialize();
RDebugUtils.currentLine=2031619;
 //BA.debugLineNum = 2031619;BA.debugLine="list_Read.Clear";
_list_read.Clear();
RDebugUtils.currentLine=2031621;
 //BA.debugLineNum = 2031621;BA.debugLine="Try";
try {RDebugUtils.currentLine=2031623;
 //BA.debugLineNum = 2031623;BA.debugLine="reader.Initialize(File.Openinput(File.DirDefault";
_reader.Initialize((java.io.InputStream)(anywheresoftware.b4a.keywords.Common.File.OpenInput(anywheresoftware.b4a.keywords.Common.File.getDirDefaultExternal(),_file_name).getObject()));
RDebugUtils.currentLine=2031624;
 //BA.debugLineNum = 2031624;BA.debugLine="list_Read = reader.ReadList";
_list_read = _reader.ReadList();
RDebugUtils.currentLine=2031625;
 //BA.debugLineNum = 2031625;BA.debugLine="reader.Close";
_reader.Close();
 } 
       catch (Exception e9) {
			(_ba.processBA == null ? _ba : _ba.processBA).setLastException(e9);RDebugUtils.currentLine=2031628;
 //BA.debugLineNum = 2031628;BA.debugLine="ToastMessageShow(\"Lecture des paramètres impossi";
anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("Lecture des paramètres impossible"),anywheresoftware.b4a.keywords.Common.True);
 };
RDebugUtils.currentLine=2031631;
 //BA.debugLineNum = 2031631;BA.debugLine="End Sub";
return "";
}
public static String  _write_file_setup(anywheresoftware.b4a.BA _ba,String _data,String _file_name) throws Exception{
RDebugUtils.currentModule="param";
if (Debug.shouldDelegate(null, "write_file_setup", false))
	 {return ((String) Debug.delegate(null, "write_file_setup", new Object[] {_ba,_data,_file_name}));}
anywheresoftware.b4a.objects.streams.File.TextWriterWrapper _writer = null;
RDebugUtils.currentLine=1966080;
 //BA.debugLineNum = 1966080;BA.debugLine="Sub write_file_setup(data As String, file_name As";
RDebugUtils.currentLine=1966081;
 //BA.debugLineNum = 1966081;BA.debugLine="Dim Writer As TextWriter";
_writer = new anywheresoftware.b4a.objects.streams.File.TextWriterWrapper();
RDebugUtils.currentLine=1966083;
 //BA.debugLineNum = 1966083;BA.debugLine="Try";
try {RDebugUtils.currentLine=1966085;
 //BA.debugLineNum = 1966085;BA.debugLine="Writer.Initialize(File.OpenOutput(File.DirDefaul";
_writer.Initialize((java.io.OutputStream)(anywheresoftware.b4a.keywords.Common.File.OpenOutput(anywheresoftware.b4a.keywords.Common.File.getDirDefaultExternal(),_file_name,anywheresoftware.b4a.keywords.Common.False).getObject()));
RDebugUtils.currentLine=1966086;
 //BA.debugLineNum = 1966086;BA.debugLine="Writer.WriteLine(\"[Amiens]\")";
_writer.WriteLine("[Amiens]");
RDebugUtils.currentLine=1966087;
 //BA.debugLineNum = 1966087;BA.debugLine="Writer.WriteLine(data)";
_writer.WriteLine(_data);
RDebugUtils.currentLine=1966089;
 //BA.debugLineNum = 1966089;BA.debugLine="Writer.Close";
_writer.Close();
RDebugUtils.currentLine=1966090;
 //BA.debugLineNum = 1966090;BA.debugLine="ToastMessageShow(\"Capteur enregistré\",True)";
anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("Capteur enregistré"),anywheresoftware.b4a.keywords.Common.True);
 } 
       catch (Exception e9) {
			(_ba.processBA == null ? _ba : _ba.processBA).setLastException(e9);RDebugUtils.currentLine=1966092;
 //BA.debugLineNum = 1966092;BA.debugLine="ToastMessageShow(\"Sauvegarde impossible\", True)";
anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("Sauvegarde impossible"),anywheresoftware.b4a.keywords.Common.True);
 };
RDebugUtils.currentLine=1966095;
 //BA.debugLineNum = 1966095;BA.debugLine="End Sub";
return "";
}
}