package gunav2.keymon.com.mx;


import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.B4AClass;
import anywheresoftware.b4a.BALayout;
import anywheresoftware.b4a.debug.*;

public class dbrequestmanager extends B4AClass.ImplB4AClass implements BA.SubDelegator{
    private static java.util.HashMap<String, java.lang.reflect.Method> htSubs;
    private void innerInitialize(BA _ba) throws Exception {
        if (ba == null) {
            ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "gunav2.keymon.com.mx.dbrequestmanager");
            if (htSubs == null) {
                ba.loadHtSubs(this.getClass());
                htSubs = ba.htSubs;
            }
            
        }
        if (BA.isShellModeRuntimeCheck(ba)) 
			   this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.dbrequestmanager.class).invoke(this, new Object[] {null});
        else
            ba.raiseEvent2(null, true, "class_globals", false);
    }

 
    public void  innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{
        innerInitialize(_ba);
    }
    public Object callSub(String sub, Object sender, Object[] args) throws Exception {
        return BA.SubDelegator.SubNotFound;
    }
public static class _dbresult{
public boolean IsInitialized;
public Object Tag;
public anywheresoftware.b4a.objects.collections.Map Columns;
public anywheresoftware.b4a.objects.collections.List Rows;
public void Initialize() {
IsInitialized = true;
Tag = new Object();
Columns = new anywheresoftware.b4a.objects.collections.Map();
Rows = new anywheresoftware.b4a.objects.collections.List();
}
@Override
		public String toString() {
			return BA.TypeToString(this, false);
		}}
public static class _dbcommand{
public boolean IsInitialized;
public String Name;
public Object[] Parameters;
public void Initialize() {
IsInitialized = true;
Name = "";
Parameters = new Object[0];
{
int d0 = Parameters.length;
for (int i0 = 0;i0 < d0;i0++) {
Parameters[i0] = new Object();
}
}
;
}
@Override
		public String toString() {
			return BA.TypeToString(this, false);
		}}
public anywheresoftware.b4a.keywords.Common __c = null;
public Object _mtarget = null;
public String _link = "";
public anywheresoftware.b4a.agraham.byteconverter.ByteConverter _bc = null;
public byte _t_null = (byte)0;
public byte _t_string = (byte)0;
public byte _t_short = (byte)0;
public byte _t_int = (byte)0;
public byte _t_long = (byte)0;
public byte _t_float = (byte)0;
public byte _t_double = (byte)0;
public byte _t_boolean = (byte)0;
public byte _t_blob = (byte)0;
public float _version = 0f;
public Object[] _temparray = null;
public String _jobtaganterior = "";
public anywheresoftware.b4a.objects.collections.List _reqslist = null;
public anywheresoftware.b4a.objects.collections.List _timeslist = null;
public long _iniciorequest = 0L;
public long _iniciojobdone = 0L;
public anywheresoftware.b4a.objects.collections.Map _iniciorequestmap = null;
public anywheresoftware.b4a.objects.collections.Map _iniciojobdonemap = null;
public b4a.example.dateutils _dateutils = null;
public gunav2.keymon.com.mx.main _main = null;
public gunav2.keymon.com.mx.starter _starter = null;
public gunav2.keymon.com.mx.subs _subs = null;
public gunav2.keymon.com.mx.appupdater _appupdater = null;
public gunav2.keymon.com.mx.tracker _tracker = null;
public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null;
public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public gunav2.keymon.com.mx.newinst2 _newinst2 = null;
public gunav2.keymon.com.mx.b4xpages _b4xpages = null;
public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null;
public gunav2.keymon.com.mx.httputils2service _httputils2service = null;
public gunav2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null;
public String  _executecommand(gunav2.keymon.com.mx.dbrequestmanager __ref,gunav2.keymon.com.mx.dbrequestmanager._dbcommand _command,Object _tag) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "executecommand", false))
	 {return ((String) Debug.delegate(ba, "executecommand", new Object[] {_command,_tag}));}
RDebugUtils.currentLine=87162880;
 //BA.debugLineNum = 87162880;BA.debugLine="Public Sub ExecuteCommand(Command As DBCommand, Ta";
RDebugUtils.currentLine=87162883;
 //BA.debugLineNum = 87162883;BA.debugLine="ExecuteBatch(Array As DBCommand(Command), Tag)";
__ref._executebatch /*String*/ (null,anywheresoftware.b4a.keywords.Common.ArrayToList(new gunav2.keymon.com.mx.dbrequestmanager._dbcommand[]{_command}),_tag);
RDebugUtils.currentLine=87162884;
 //BA.debugLineNum = 87162884;BA.debugLine="End Sub";
return "";
}
public gunav2.keymon.com.mx.dbrequestmanager._dbresult  _handlejob(gunav2.keymon.com.mx.dbrequestmanager __ref,gunav2.keymon.com.mx.httpjob _job) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "handlejob", false))
	 {return ((gunav2.keymon.com.mx.dbrequestmanager._dbresult) Debug.delegate(ba, "handlejob", new Object[] {_job}));}
anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in = null;
anywheresoftware.b4a.randomaccessfile.CompressedStreams _cs = null;
float _serverversion = 0f;
String _method = "";
gunav2.keymon.com.mx.dbrequestmanager._dbresult _table = null;
int _numberofcolumns = 0;
int _i = 0;
Object[] _rowobjects = null;
int _col = 0;
Object _o = null;
int _rows = 0;
RDebugUtils.currentLine=87752704;
 //BA.debugLineNum = 87752704;BA.debugLine="Public Sub HandleJob(Job As HttpJob) As DBResult";
RDebugUtils.currentLine=87752705;
 //BA.debugLineNum = 87752705;BA.debugLine="If jobTagAnterior <> Job.Tag Then";
if ((__ref._jobtaganterior /*String*/ ).equals(BA.ObjectToString(_job._tag /*Object*/ )) == false) { 
RDebugUtils.currentLine=87752707;
 //BA.debugLineNum = 87752707;BA.debugLine="If inicioJobDoneMap.IsInitialized Then inicioJob";
if (__ref._iniciojobdonemap /*anywheresoftware.b4a.objects.collections.Map*/ .IsInitialized()) { 
__ref._iniciojobdonemap /*anywheresoftware.b4a.objects.collections.Map*/ .Put(_job._tag /*Object*/ ,(Object)(__c.DateTime.getNow()));};
 };
RDebugUtils.currentLine=87752712;
 //BA.debugLineNum = 87752712;BA.debugLine="Dim In As InputStream = Job.GetInputStream";
_in = new anywheresoftware.b4a.objects.streams.File.InputStreamWrapper();
_in = _job._getinputstream /*anywheresoftware.b4a.objects.streams.File.InputStreamWrapper*/ (null);
RDebugUtils.currentLine=87752713;
 //BA.debugLineNum = 87752713;BA.debugLine="Dim cs As CompressedStreams";
_cs = new anywheresoftware.b4a.randomaccessfile.CompressedStreams();
RDebugUtils.currentLine=87752714;
 //BA.debugLineNum = 87752714;BA.debugLine="In = cs.WrapInputStream(In, \"gzip\")";
_in = _cs.WrapInputStream((java.io.InputStream)(_in.getObject()),"gzip");
RDebugUtils.currentLine=87752715;
 //BA.debugLineNum = 87752715;BA.debugLine="Dim serverVersion As Float = ReadObject(In) 'igno";
_serverversion = (float)(BA.ObjectToNumber(__ref._readobject /*Object*/ (null,_in)));
RDebugUtils.currentLine=87752716;
 //BA.debugLineNum = 87752716;BA.debugLine="Dim method As String = ReadObject(In)";
_method = BA.ObjectToString(__ref._readobject /*Object*/ (null,_in));
RDebugUtils.currentLine=87752717;
 //BA.debugLineNum = 87752717;BA.debugLine="Dim table As DBResult";
_table = new gunav2.keymon.com.mx.dbrequestmanager._dbresult();
RDebugUtils.currentLine=87752718;
 //BA.debugLineNum = 87752718;BA.debugLine="table.Initialize";
_table.Initialize();
RDebugUtils.currentLine=87752719;
 //BA.debugLineNum = 87752719;BA.debugLine="table.Columns.Initialize";
_table.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Initialize();
RDebugUtils.currentLine=87752720;
 //BA.debugLineNum = 87752720;BA.debugLine="table.rows.Initialize";
_table.Rows /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=87752721;
 //BA.debugLineNum = 87752721;BA.debugLine="table.Tag = Job.Tag";
_table.Tag /*Object*/  = _job._tag /*Object*/ ;
RDebugUtils.currentLine=87752722;
 //BA.debugLineNum = 87752722;BA.debugLine="If method = \"query\" Then";
if ((_method).equals("query")) { 
RDebugUtils.currentLine=87752723;
 //BA.debugLineNum = 87752723;BA.debugLine="Dim numberOfColumns As Int = ReadInt(In)";
_numberofcolumns = __ref._readint /*int*/ (null,_in);
RDebugUtils.currentLine=87752724;
 //BA.debugLineNum = 87752724;BA.debugLine="For i = 0 To numberOfColumns - 1";
{
final int step16 = 1;
final int limit16 = (int) (_numberofcolumns-1);
_i = (int) (0) ;
for (;_i <= limit16 ;_i = _i + step16 ) {
RDebugUtils.currentLine=87752725;
 //BA.debugLineNum = 87752725;BA.debugLine="table.Columns.Put(ReadObject(In), i)";
_table.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Put(__ref._readobject /*Object*/ (null,_in),(Object)(_i));
 }
};
RDebugUtils.currentLine=87752727;
 //BA.debugLineNum = 87752727;BA.debugLine="Do While ReadByte(In) = 1";
while (__ref._readbyte /*byte*/ (null,_in)==1) {
RDebugUtils.currentLine=87752728;
 //BA.debugLineNum = 87752728;BA.debugLine="Dim rowObjects(numberOfColumns) As Object";
_rowobjects = new Object[_numberofcolumns];
{
int d0 = _rowobjects.length;
for (int i0 = 0;i0 < d0;i0++) {
_rowobjects[i0] = new Object();
}
}
;
RDebugUtils.currentLine=87752729;
 //BA.debugLineNum = 87752729;BA.debugLine="table.rows.Add(rowObjects)";
_table.Rows /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(_rowobjects));
RDebugUtils.currentLine=87752730;
 //BA.debugLineNum = 87752730;BA.debugLine="For col = 0 To numberOfColumns - 1";
{
final int step22 = 1;
final int limit22 = (int) (_numberofcolumns-1);
_col = (int) (0) ;
for (;_col <= limit22 ;_col = _col + step22 ) {
RDebugUtils.currentLine=87752731;
 //BA.debugLineNum = 87752731;BA.debugLine="Dim o As Object = ReadObject(In)";
_o = __ref._readobject /*Object*/ (null,_in);
RDebugUtils.currentLine=87752732;
 //BA.debugLineNum = 87752732;BA.debugLine="rowObjects(col) = o";
_rowobjects[_col] = _o;
 }
};
 }
;
 }else 
{RDebugUtils.currentLine=87752735;
 //BA.debugLineNum = 87752735;BA.debugLine="Else If method = \"batch\" Then";
if ((_method).equals("batch")) { 
RDebugUtils.currentLine=87752736;
 //BA.debugLineNum = 87752736;BA.debugLine="table.Columns.Put(\"AffectedRows\", 0)";
_table.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Put((Object)("AffectedRows"),(Object)(0));
RDebugUtils.currentLine=87752737;
 //BA.debugLineNum = 87752737;BA.debugLine="Dim rows As Int = ReadInt(In)";
_rows = __ref._readint /*int*/ (null,_in);
RDebugUtils.currentLine=87752738;
 //BA.debugLineNum = 87752738;BA.debugLine="For i = 0 To rows - 1";
{
final int step30 = 1;
final int limit30 = (int) (_rows-1);
_i = (int) (0) ;
for (;_i <= limit30 ;_i = _i + step30 ) {
RDebugUtils.currentLine=87752739;
 //BA.debugLineNum = 87752739;BA.debugLine="table.rows.Add(Array As Object(ReadInt(In)))";
_table.Rows /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(new Object[]{(Object)(__ref._readint /*int*/ (null,_in))}));
 }
};
 }}
;
RDebugUtils.currentLine=87752742;
 //BA.debugLineNum = 87752742;BA.debugLine="In.Close";
_in.Close();
RDebugUtils.currentLine=87752744;
 //BA.debugLineNum = 87752744;BA.debugLine="If jobTagAnterior <> table.Tag Then";
if ((__ref._jobtaganterior /*String*/ ).equals(BA.ObjectToString(_table.Tag /*Object*/ )) == false) { 
RDebugUtils.currentLine=87752745;
 //BA.debugLineNum = 87752745;BA.debugLine="LogColor(\"HandleJob: '\"&table.Tag&\"'\" & \" - Regi";
__c.LogImpl("087752745","HandleJob: '"+BA.ObjectToString(_table.Tag /*Object*/ )+"'"+" - Registros: "+BA.NumberToString(_table.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.RGB((int) (115),(int) (0),(int) (140)));
 };
RDebugUtils.currentLine=87752747;
 //BA.debugLineNum = 87752747;BA.debugLine="jobTagAnterior = table.Tag  'Mod por CHV - 211109";
__ref._jobtaganterior /*String*/  = BA.ObjectToString(_table.Tag /*Object*/ );
RDebugUtils.currentLine=87752748;
 //BA.debugLineNum = 87752748;BA.debugLine="Return table";
if (true) return _table;
RDebugUtils.currentLine=87752749;
 //BA.debugLineNum = 87752749;BA.debugLine="End Sub";
return null;
}
public String  _initialize(gunav2.keymon.com.mx.dbrequestmanager __ref,anywheresoftware.b4a.BA _ba,Object _target,String _connectorlink) throws Exception{
__ref = this;
innerInitialize(_ba);
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "initialize", false))
	 {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba,_target,_connectorlink}));}
RDebugUtils.currentLine=86900736;
 //BA.debugLineNum = 86900736;BA.debugLine="Public Sub Initialize (Target As Object, Connector";
RDebugUtils.currentLine=86900737;
 //BA.debugLineNum = 86900737;BA.debugLine="mTarget = Target";
__ref._mtarget /*Object*/  = _target;
RDebugUtils.currentLine=86900738;
 //BA.debugLineNum = 86900738;BA.debugLine="link = ConnectorLink";
__ref._link /*String*/  = _connectorlink;
RDebugUtils.currentLine=86900739;
 //BA.debugLineNum = 86900739;BA.debugLine="End Sub";
return "";
}
public String  _executequery(gunav2.keymon.com.mx.dbrequestmanager __ref,gunav2.keymon.com.mx.dbrequestmanager._dbcommand _command,int _limit,Object _tag) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "executequery", false))
	 {return ((String) Debug.delegate(ba, "executequery", new Object[] {_command,_limit,_tag}));}
gunav2.keymon.com.mx.httpjob _j = null;
anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _ms = null;
anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out2 = null;
RDebugUtils.currentLine=86966272;
 //BA.debugLineNum = 86966272;BA.debugLine="Public Sub ExecuteQuery(Command As DBCommand, Limi";
RDebugUtils.currentLine=86966273;
 //BA.debugLineNum = 86966273;BA.debugLine="Dim j As HttpJob";
_j = new gunav2.keymon.com.mx.httpjob();
RDebugUtils.currentLine=86966274;
 //BA.debugLineNum = 86966274;BA.debugLine="Dim ms As OutputStream";
_ms = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
RDebugUtils.currentLine=86966275;
 //BA.debugLineNum = 86966275;BA.debugLine="Dim out2 As OutputStream = StartJob(j, ms, Tag)";
_out2 = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
_out2 = __ref._startjob /*anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper*/ (null,_j,_ms,_tag);
RDebugUtils.currentLine=86966279;
 //BA.debugLineNum = 86966279;BA.debugLine="WriteObject(Command.Name, out2)";
__ref._writeobject /*String*/ (null,(Object)(_command.Name /*String*/ ),_out2);
RDebugUtils.currentLine=86966280;
 //BA.debugLineNum = 86966280;BA.debugLine="WriteInt(Limit, out2)";
__ref._writeint /*String*/ (null,_limit,_out2);
RDebugUtils.currentLine=86966281;
 //BA.debugLineNum = 86966281;BA.debugLine="WriteList(Command.Parameters, out2)";
__ref._writelist /*String*/ (null,anywheresoftware.b4a.keywords.Common.ArrayToList(_command.Parameters /*Object[]*/ ),_out2);
RDebugUtils.currentLine=86966282;
 //BA.debugLineNum = 86966282;BA.debugLine="out2.Close";
_out2.Close();
RDebugUtils.currentLine=86966283;
 //BA.debugLineNum = 86966283;BA.debugLine="j.PostBytes(link & \"?method=query\", ms.ToBytesArr";
_j._postbytes /*String*/ (null,__ref._link /*String*/ +"?method=query",_ms.ToBytesArray());
RDebugUtils.currentLine=86966284;
 //BA.debugLineNum = 86966284;BA.debugLine="End Sub";
return "";
}
public String  _tracknext(gunav2.keymon.com.mx.dbrequestmanager __ref,gunav2.keymon.com.mx.httpjob _job) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "tracknext", false))
	 {return ((String) Debug.delegate(ba, "tracknext", new Object[] {_job}));}
String _quitamos = "";
int _pos = 0;
RDebugUtils.currentLine=88211456;
 //BA.debugLineNum = 88211456;BA.debugLine="Sub trackNext(job As HttpJob)";
RDebugUtils.currentLine=88211457;
 //BA.debugLineNum = 88211457;BA.debugLine="If reqsList.IsInitialized Then 'Si tenemos lista";
if (__ref._reqslist /*anywheresoftware.b4a.objects.collections.List*/ .IsInitialized()) { 
RDebugUtils.currentLine=88211458;
 //BA.debugLineNum = 88211458;BA.debugLine="Private quitamos As String = \"\"";
_quitamos = "";
RDebugUtils.currentLine=88211459;
 //BA.debugLineNum = 88211459;BA.debugLine="If reqsList.IndexOf(job.tag) <> -1 Then";
if (__ref._reqslist /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf(_job._tag /*Object*/ )!=-1) { 
RDebugUtils.currentLine=88211460;
 //BA.debugLineNum = 88211460;BA.debugLine="Private pos As Int = reqsList.IndexOf(job.tag)";
_pos = __ref._reqslist /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf(_job._tag /*Object*/ );
RDebugUtils.currentLine=88211461;
 //BA.debugLineNum = 88211461;BA.debugLine="If pos <> -1 Then";
if (_pos!=-1) { 
RDebugUtils.currentLine=88211462;
 //BA.debugLineNum = 88211462;BA.debugLine="inicioRequestMap.Put(job.Tag, timesList.Get(po";
__ref._iniciorequestmap /*anywheresoftware.b4a.objects.collections.Map*/ .Put(_job._tag /*Object*/ ,__ref._timeslist /*anywheresoftware.b4a.objects.collections.List*/ .Get(_pos));
RDebugUtils.currentLine=88211463;
 //BA.debugLineNum = 88211463;BA.debugLine="reqsList.RemoveAt(pos)";
__ref._reqslist /*anywheresoftware.b4a.objects.collections.List*/ .RemoveAt(_pos);
RDebugUtils.currentLine=88211464;
 //BA.debugLineNum = 88211464;BA.debugLine="timesList.RemoveAt(pos)";
__ref._timeslist /*anywheresoftware.b4a.objects.collections.List*/ .RemoveAt(_pos);
 };
RDebugUtils.currentLine=88211466;
 //BA.debugLineNum = 88211466;BA.debugLine="quitamos = $\"Quitamos ${job.tag} - \"$";
_quitamos = ("Quitamos "+__c.SmartStringFormatter("",_job._tag /*Object*/ )+" - ");
 };
RDebugUtils.currentLine=88211468;
 //BA.debugLineNum = 88211468;BA.debugLine="LogColor(\">>>>>> Requests: \" & reqsList.Size & \"";
__c.LogImpl("088211468",">>>>>> Requests: "+BA.NumberToString(__ref._reqslist /*anywheresoftware.b4a.objects.collections.List*/ .getSize())+" - "+_quitamos+BA.ObjectToString(__ref._reqslist /*anywheresoftware.b4a.objects.collections.List*/ ),__c.Colors.Blue);
RDebugUtils.currentLine=88211469;
 //BA.debugLineNum = 88211469;BA.debugLine="LogColor(\">>>>>> inicioRequestMap:\" & inicioRequ";
__c.LogImpl("088211469",">>>>>> inicioRequestMap:"+BA.NumberToString(__ref._iniciorequestmap /*anywheresoftware.b4a.objects.collections.Map*/ .getSize())+" - "+BA.ObjectToString(__ref._iniciorequestmap /*anywheresoftware.b4a.objects.collections.Map*/ ),__c.Colors.Magenta);
 };
RDebugUtils.currentLine=88211471;
 //BA.debugLineNum = 88211471;BA.debugLine="End Sub";
return "";
}
public String  _trackinit(gunav2.keymon.com.mx.dbrequestmanager __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "trackinit", false))
	 {return ((String) Debug.delegate(ba, "trackinit", null));}
RDebugUtils.currentLine=88145920;
 //BA.debugLineNum = 88145920;BA.debugLine="Sub trackInit 'ignore";
RDebugUtils.currentLine=88145921;
 //BA.debugLineNum = 88145921;BA.debugLine="Log(\">>>>>>>>>  TRACKINIT \")";
__c.LogImpl("088145921",">>>>>>>>>  TRACKINIT ",0);
RDebugUtils.currentLine=88145922;
 //BA.debugLineNum = 88145922;BA.debugLine="reqsList.Initialize";
__ref._reqslist /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=88145923;
 //BA.debugLineNum = 88145923;BA.debugLine="timesList.Initialize";
__ref._timeslist /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=88145924;
 //BA.debugLineNum = 88145924;BA.debugLine="inicioRequestMap.Initialize";
__ref._iniciorequestmap /*anywheresoftware.b4a.objects.collections.Map*/ .Initialize();
RDebugUtils.currentLine=88145925;
 //BA.debugLineNum = 88145925;BA.debugLine="inicioJobDoneMap.Initialize";
__ref._iniciojobdonemap /*anywheresoftware.b4a.objects.collections.Map*/ .Initialize();
RDebugUtils.currentLine=88145926;
 //BA.debugLineNum = 88145926;BA.debugLine="End Sub";
return "";
}
public anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper  _bytestoimage(gunav2.keymon.com.mx.dbrequestmanager __ref,byte[] _bytes) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "bytestoimage", false))
	 {return ((anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper) Debug.delegate(ba, "bytestoimage", new Object[] {_bytes}));}
anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in = null;
anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _bmp = null;
RDebugUtils.currentLine=87949312;
 //BA.debugLineNum = 87949312;BA.debugLine="Public Sub BytesToImage(bytes() As Byte) As Bitmap";
RDebugUtils.currentLine=87949313;
 //BA.debugLineNum = 87949313;BA.debugLine="Dim In As InputStream";
_in = new anywheresoftware.b4a.objects.streams.File.InputStreamWrapper();
RDebugUtils.currentLine=87949314;
 //BA.debugLineNum = 87949314;BA.debugLine="In.InitializeFromBytesArray(bytes, 0, bytes.Lengt";
_in.InitializeFromBytesArray(_bytes,(int) (0),_bytes.length);
RDebugUtils.currentLine=87949315;
 //BA.debugLineNum = 87949315;BA.debugLine="Dim bmp As Bitmap";
_bmp = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper();
RDebugUtils.currentLine=87949316;
 //BA.debugLineNum = 87949316;BA.debugLine="bmp.Initialize2(In)";
_bmp.Initialize2((java.io.InputStream)(_in.getObject()));
RDebugUtils.currentLine=87949317;
 //BA.debugLineNum = 87949317;BA.debugLine="Return bmp";
if (true) return _bmp;
RDebugUtils.currentLine=87949318;
 //BA.debugLineNum = 87949318;BA.debugLine="End Sub";
return null;
}
public String  _class_globals(gunav2.keymon.com.mx.dbrequestmanager __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
RDebugUtils.currentLine=86835200;
 //BA.debugLineNum = 86835200;BA.debugLine="Sub Class_Globals";
RDebugUtils.currentLine=86835201;
 //BA.debugLineNum = 86835201;BA.debugLine="Private mTarget As Object";
_mtarget = new Object();
RDebugUtils.currentLine=86835202;
 //BA.debugLineNum = 86835202;BA.debugLine="Type DBResult (Tag As Object, Columns As Map, Row";
;
RDebugUtils.currentLine=86835203;
 //BA.debugLineNum = 86835203;BA.debugLine="Type DBCommand (Name As String, Parameters() As O";
;
RDebugUtils.currentLine=86835204;
 //BA.debugLineNum = 86835204;BA.debugLine="Private link As String";
_link = "";
RDebugUtils.currentLine=86835205;
 //BA.debugLineNum = 86835205;BA.debugLine="Private bc As ByteConverter";
_bc = new anywheresoftware.b4a.agraham.byteconverter.ByteConverter();
RDebugUtils.currentLine=86835206;
 //BA.debugLineNum = 86835206;BA.debugLine="Private T_NULL = 0, T_STRING = 1, T_SHORT = 2, T_";
_t_null = (byte) (0);
_t_string = (byte) (1);
_t_short = (byte) (2);
_t_int = (byte) (3);
_t_long = (byte) (4);
_t_float = (byte) (5);
_t_double = (byte) (6);
_t_boolean = (byte) (7);
_t_blob = (byte) (8);
RDebugUtils.currentLine=86835208;
 //BA.debugLineNum = 86835208;BA.debugLine="Private VERSION As Float = 0.9";
_version = (float) (0.9);
RDebugUtils.currentLine=86835209;
 //BA.debugLineNum = 86835209;BA.debugLine="Private tempArray(1) As Object";
_temparray = new Object[(int) (1)];
{
int d0 = _temparray.length;
for (int i0 = 0;i0 < d0;i0++) {
_temparray[i0] = new Object();
}
}
;
RDebugUtils.currentLine=86835210;
 //BA.debugLineNum = 86835210;BA.debugLine="Dim jobTagAnterior As String = \"\" 'Mod por CHV -";
_jobtaganterior = "";
RDebugUtils.currentLine=86835211;
 //BA.debugLineNum = 86835211;BA.debugLine="Dim reqsList, timesList As List";
_reqslist = new anywheresoftware.b4a.objects.collections.List();
_timeslist = new anywheresoftware.b4a.objects.collections.List();
RDebugUtils.currentLine=86835212;
 //BA.debugLineNum = 86835212;BA.debugLine="Dim inicioRequest As Long 'ignore";
_iniciorequest = 0L;
RDebugUtils.currentLine=86835213;
 //BA.debugLineNum = 86835213;BA.debugLine="Dim inicioJobDone As Long 'ignore";
_iniciojobdone = 0L;
RDebugUtils.currentLine=86835214;
 //BA.debugLineNum = 86835214;BA.debugLine="Dim inicioRequestMap, inicioJobDoneMap As Map";
_iniciorequestmap = new anywheresoftware.b4a.objects.collections.Map();
_iniciojobdonemap = new anywheresoftware.b4a.objects.collections.Map();
RDebugUtils.currentLine=86835215;
 //BA.debugLineNum = 86835215;BA.debugLine="End Sub";
return "";
}
public String  _executebatch(gunav2.keymon.com.mx.dbrequestmanager __ref,anywheresoftware.b4a.objects.collections.List _listofcommands,Object _tag) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "executebatch", false))
	 {return ((String) Debug.delegate(ba, "executebatch", new Object[] {_listofcommands,_tag}));}
gunav2.keymon.com.mx.httpjob _j = null;
anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _ms = null;
anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out2 = null;
gunav2.keymon.com.mx.dbrequestmanager._dbcommand _command = null;
RDebugUtils.currentLine=87097344;
 //BA.debugLineNum = 87097344;BA.debugLine="Public Sub ExecuteBatch(ListOfCommands As List, Ta";
RDebugUtils.currentLine=87097345;
 //BA.debugLineNum = 87097345;BA.debugLine="Dim j As HttpJob";
_j = new gunav2.keymon.com.mx.httpjob();
RDebugUtils.currentLine=87097346;
 //BA.debugLineNum = 87097346;BA.debugLine="Dim ms As OutputStream";
_ms = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
RDebugUtils.currentLine=87097347;
 //BA.debugLineNum = 87097347;BA.debugLine="Dim out2 As OutputStream = StartJob(j, ms, Tag)";
_out2 = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
_out2 = __ref._startjob /*anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper*/ (null,_j,_ms,_tag);
RDebugUtils.currentLine=87097348;
 //BA.debugLineNum = 87097348;BA.debugLine="WriteInt(ListOfCommands.Size, out2)";
__ref._writeint /*String*/ (null,_listofcommands.getSize(),_out2);
RDebugUtils.currentLine=87097349;
 //BA.debugLineNum = 87097349;BA.debugLine="For Each Command As DBCommand In ListOfCommands";
{
final anywheresoftware.b4a.BA.IterableList group5 = _listofcommands;
final int groupLen5 = group5.getSize()
;int index5 = 0;
;
for (; index5 < groupLen5;index5++){
_command = (gunav2.keymon.com.mx.dbrequestmanager._dbcommand)(group5.Get(index5));
RDebugUtils.currentLine=87097350;
 //BA.debugLineNum = 87097350;BA.debugLine="WriteObject(Command.Name, out2)";
__ref._writeobject /*String*/ (null,(Object)(_command.Name /*String*/ ),_out2);
RDebugUtils.currentLine=87097351;
 //BA.debugLineNum = 87097351;BA.debugLine="WriteList(Command.Parameters, out2)";
__ref._writelist /*String*/ (null,anywheresoftware.b4a.keywords.Common.ArrayToList(_command.Parameters /*Object[]*/ ),_out2);
 }
};
RDebugUtils.currentLine=87097353;
 //BA.debugLineNum = 87097353;BA.debugLine="out2.Close";
_out2.Close();
RDebugUtils.currentLine=87097354;
 //BA.debugLineNum = 87097354;BA.debugLine="j.PostBytes(link & \"?method=batch\", ms.ToBytesArr";
_j._postbytes /*String*/ (null,__ref._link /*String*/ +"?method=batch",_ms.ToBytesArray());
RDebugUtils.currentLine=87097355;
 //BA.debugLineNum = 87097355;BA.debugLine="End Sub";
return "";
}
public anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper  _startjob(gunav2.keymon.com.mx.dbrequestmanager __ref,gunav2.keymon.com.mx.httpjob _j,anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _memorystream,Object _tag) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "startjob", false))
	 {return ((anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper) Debug.delegate(ba, "startjob", new Object[] {_j,_memorystream,_tag}));}
anywheresoftware.b4a.randomaccessfile.CompressedStreams _compress = null;
anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null;
RDebugUtils.currentLine=87228416;
 //BA.debugLineNum = 87228416;BA.debugLine="Private Sub StartJob(j As HttpJob, MemoryStream As";
RDebugUtils.currentLine=87228418;
 //BA.debugLineNum = 87228418;BA.debugLine="If reqsList.IsInitialized Then reqsList.Add(Tag)";
if (__ref._reqslist /*anywheresoftware.b4a.objects.collections.List*/ .IsInitialized()) { 
__ref._reqslist /*anywheresoftware.b4a.objects.collections.List*/ .Add(_tag);};
RDebugUtils.currentLine=87228419;
 //BA.debugLineNum = 87228419;BA.debugLine="If timesList.IsInitialized Then timesList.Add(Dat";
if (__ref._timeslist /*anywheresoftware.b4a.objects.collections.List*/ .IsInitialized()) { 
__ref._timeslist /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(__c.DateTime.getNow()));};
RDebugUtils.currentLine=87228420;
 //BA.debugLineNum = 87228420;BA.debugLine="j.Initialize(\"DBRequest\", mTarget)";
_j._initialize /*String*/ (null,ba,"DBRequest",__ref._mtarget /*Object*/ );
RDebugUtils.currentLine=87228421;
 //BA.debugLineNum = 87228421;BA.debugLine="j.Tag = Tag";
_j._tag /*Object*/  = _tag;
RDebugUtils.currentLine=87228422;
 //BA.debugLineNum = 87228422;BA.debugLine="MemoryStream.InitializeToBytesArray(0)";
_memorystream.InitializeToBytesArray((int) (0));
RDebugUtils.currentLine=87228423;
 //BA.debugLineNum = 87228423;BA.debugLine="Dim compress As CompressedStreams";
_compress = new anywheresoftware.b4a.randomaccessfile.CompressedStreams();
RDebugUtils.currentLine=87228424;
 //BA.debugLineNum = 87228424;BA.debugLine="Dim out As OutputStream = compress.WrapOutputStre";
_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
_out = _compress.WrapOutputStream((java.io.OutputStream)(_memorystream.getObject()),"gzip");
RDebugUtils.currentLine=87228425;
 //BA.debugLineNum = 87228425;BA.debugLine="WriteObject(VERSION, out)";
__ref._writeobject /*String*/ (null,(Object)(__ref._version /*float*/ ),_out);
RDebugUtils.currentLine=87228426;
 //BA.debugLineNum = 87228426;BA.debugLine="Return out";
if (true) return _out;
RDebugUtils.currentLine=87228427;
 //BA.debugLineNum = 87228427;BA.debugLine="End Sub";
return null;
}
public String  _writeint(gunav2.keymon.com.mx.dbrequestmanager __ref,int _i,anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "writeint", false))
	 {return ((String) Debug.delegate(ba, "writeint", new Object[] {_i,_out}));}
byte[] _data = null;
RDebugUtils.currentLine=87556096;
 //BA.debugLineNum = 87556096;BA.debugLine="Private Sub WriteInt(i As Int, out As OutputStream";
RDebugUtils.currentLine=87556097;
 //BA.debugLineNum = 87556097;BA.debugLine="Dim data() As Byte";
_data = new byte[(int) (0)];
;
RDebugUtils.currentLine=87556098;
 //BA.debugLineNum = 87556098;BA.debugLine="data = bc.IntsToBytes(Array As Int(i))";
_data = __ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .IntsToBytes(new int[]{_i});
RDebugUtils.currentLine=87556099;
 //BA.debugLineNum = 87556099;BA.debugLine="out.WriteBytes(data, 0, data.Length)";
_out.WriteBytes(_data,(int) (0),_data.length);
RDebugUtils.currentLine=87556100;
 //BA.debugLineNum = 87556100;BA.debugLine="End Sub";
return "";
}
public String  _writeobject(gunav2.keymon.com.mx.dbrequestmanager __ref,Object _o,anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "writeobject", false))
	 {return ((String) Debug.delegate(ba, "writeobject", new Object[] {_o,_out}));}
byte[] _data = null;
boolean _b = false;
RDebugUtils.currentLine=87359488;
 //BA.debugLineNum = 87359488;BA.debugLine="Private Sub WriteObject(o As Object, out As Output";
RDebugUtils.currentLine=87359489;
 //BA.debugLineNum = 87359489;BA.debugLine="Dim data() As Byte";
_data = new byte[(int) (0)];
;
RDebugUtils.currentLine=87359490;
 //BA.debugLineNum = 87359490;BA.debugLine="tempArray(0) = o";
__ref._temparray /*Object[]*/ [(int) (0)] = _o;
RDebugUtils.currentLine=87359491;
 //BA.debugLineNum = 87359491;BA.debugLine="If tempArray(0) = Null Then";
if (__ref._temparray /*Object[]*/ [(int) (0)]== null) { 
RDebugUtils.currentLine=87359492;
 //BA.debugLineNum = 87359492;BA.debugLine="out.WriteBytes(Array As Byte(T_NULL), 0, 1)";
_out.WriteBytes(new byte[]{__ref._t_null /*byte*/ },(int) (0),(int) (1));
 }else 
{RDebugUtils.currentLine=87359493;
 //BA.debugLineNum = 87359493;BA.debugLine="Else If tempArray(0) Is Short Then";
if (__ref._temparray /*Object[]*/ [(int) (0)] instanceof Short) { 
RDebugUtils.currentLine=87359494;
 //BA.debugLineNum = 87359494;BA.debugLine="out.WriteBytes(Array As Byte(T_SHORT), 0, 1)";
_out.WriteBytes(new byte[]{__ref._t_short /*byte*/ },(int) (0),(int) (1));
RDebugUtils.currentLine=87359495;
 //BA.debugLineNum = 87359495;BA.debugLine="data = bc.ShortsToBytes(Array As Short(o))";
_data = __ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .ShortsToBytes(new short[]{(short)(BA.ObjectToNumber(_o))});
 }else 
{RDebugUtils.currentLine=87359496;
 //BA.debugLineNum = 87359496;BA.debugLine="Else If tempArray(0) Is Int Then";
if (__ref._temparray /*Object[]*/ [(int) (0)] instanceof Integer) { 
RDebugUtils.currentLine=87359497;
 //BA.debugLineNum = 87359497;BA.debugLine="out.WriteBytes(Array As Byte(T_INT), 0, 1)";
_out.WriteBytes(new byte[]{__ref._t_int /*byte*/ },(int) (0),(int) (1));
RDebugUtils.currentLine=87359498;
 //BA.debugLineNum = 87359498;BA.debugLine="data = bc.IntsToBytes(Array As Int(o))";
_data = __ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .IntsToBytes(new int[]{(int)(BA.ObjectToNumber(_o))});
 }else 
{RDebugUtils.currentLine=87359499;
 //BA.debugLineNum = 87359499;BA.debugLine="Else If tempArray(0) Is Float Then";
if (__ref._temparray /*Object[]*/ [(int) (0)] instanceof Float) { 
RDebugUtils.currentLine=87359500;
 //BA.debugLineNum = 87359500;BA.debugLine="out.WriteBytes(Array As Byte(T_FLOAT), 0, 1)";
_out.WriteBytes(new byte[]{__ref._t_float /*byte*/ },(int) (0),(int) (1));
RDebugUtils.currentLine=87359501;
 //BA.debugLineNum = 87359501;BA.debugLine="data = bc.FloatsToBytes(Array As Float(o))";
_data = __ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .FloatsToBytes(new float[]{(float)(BA.ObjectToNumber(_o))});
 }else 
{RDebugUtils.currentLine=87359502;
 //BA.debugLineNum = 87359502;BA.debugLine="Else If tempArray(0) Is Double Then";
if (__ref._temparray /*Object[]*/ [(int) (0)] instanceof Double) { 
RDebugUtils.currentLine=87359503;
 //BA.debugLineNum = 87359503;BA.debugLine="out.WriteBytes(Array As Byte(T_DOUBLE), 0, 1)";
_out.WriteBytes(new byte[]{__ref._t_double /*byte*/ },(int) (0),(int) (1));
RDebugUtils.currentLine=87359504;
 //BA.debugLineNum = 87359504;BA.debugLine="data = bc.DoublesToBytes(Array As Double(o))";
_data = __ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .DoublesToBytes(new double[]{(double)(BA.ObjectToNumber(_o))});
 }else 
{RDebugUtils.currentLine=87359505;
 //BA.debugLineNum = 87359505;BA.debugLine="Else If tempArray(0) Is Long Then";
if (__ref._temparray /*Object[]*/ [(int) (0)] instanceof Long) { 
RDebugUtils.currentLine=87359506;
 //BA.debugLineNum = 87359506;BA.debugLine="out.WriteBytes(Array As Byte(T_LONG), 0, 1)";
_out.WriteBytes(new byte[]{__ref._t_long /*byte*/ },(int) (0),(int) (1));
RDebugUtils.currentLine=87359507;
 //BA.debugLineNum = 87359507;BA.debugLine="data = bc.LongsToBytes(Array As Long(o))";
_data = __ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .LongsToBytes(new long[]{BA.ObjectToLongNumber(_o)});
 }else 
{RDebugUtils.currentLine=87359508;
 //BA.debugLineNum = 87359508;BA.debugLine="Else If tempArray(0) Is Boolean Then";
if (__ref._temparray /*Object[]*/ [(int) (0)] instanceof Boolean) { 
RDebugUtils.currentLine=87359509;
 //BA.debugLineNum = 87359509;BA.debugLine="out.WriteBytes(Array As Byte(T_BOOLEAN), 0, 1)";
_out.WriteBytes(new byte[]{__ref._t_boolean /*byte*/ },(int) (0),(int) (1));
RDebugUtils.currentLine=87359510;
 //BA.debugLineNum = 87359510;BA.debugLine="Dim b As Boolean = 0";
_b = BA.ObjectToBoolean(0);
RDebugUtils.currentLine=87359511;
 //BA.debugLineNum = 87359511;BA.debugLine="Dim data(1) As Byte";
_data = new byte[(int) (1)];
;
RDebugUtils.currentLine=87359512;
 //BA.debugLineNum = 87359512;BA.debugLine="If b Then data(0) = 1 Else data(0) = 0";
if (_b) { 
_data[(int) (0)] = (byte) (1);}
else {
_data[(int) (0)] = (byte) (0);};
 }else 
{RDebugUtils.currentLine=87359513;
 //BA.debugLineNum = 87359513;BA.debugLine="Else If GetType(tempArray(0)) = \"[B\" Then";
if ((__c.GetType(__ref._temparray /*Object[]*/ [(int) (0)])).equals("[B")) { 
RDebugUtils.currentLine=87359514;
 //BA.debugLineNum = 87359514;BA.debugLine="data = o";
_data = (byte[])(_o);
RDebugUtils.currentLine=87359515;
 //BA.debugLineNum = 87359515;BA.debugLine="out.WriteBytes(Array As Byte(T_BLOB), 0, 1)";
_out.WriteBytes(new byte[]{__ref._t_blob /*byte*/ },(int) (0),(int) (1));
RDebugUtils.currentLine=87359516;
 //BA.debugLineNum = 87359516;BA.debugLine="WriteInt(data.Length, out)";
__ref._writeint /*String*/ (null,_data.length,_out);
 }else {
RDebugUtils.currentLine=87359518;
 //BA.debugLineNum = 87359518;BA.debugLine="out.WriteBytes(Array As Byte(T_STRING), 0, 1)";
_out.WriteBytes(new byte[]{__ref._t_string /*byte*/ },(int) (0),(int) (1));
RDebugUtils.currentLine=87359519;
 //BA.debugLineNum = 87359519;BA.debugLine="data = bc.StringToBytes(o, \"UTF8\")";
_data = __ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .StringToBytes(BA.ObjectToString(_o),"UTF8");
RDebugUtils.currentLine=87359520;
 //BA.debugLineNum = 87359520;BA.debugLine="WriteInt(data.Length, out)";
__ref._writeint /*String*/ (null,_data.length,_out);
 }}}}}}}}
;
RDebugUtils.currentLine=87359522;
 //BA.debugLineNum = 87359522;BA.debugLine="If data.Length > 0 Then out.WriteBytes(data, 0, d";
if (_data.length>0) { 
_out.WriteBytes(_data,(int) (0),_data.length);};
RDebugUtils.currentLine=87359523;
 //BA.debugLineNum = 87359523;BA.debugLine="End Sub";
return "";
}
public String  _writelist(gunav2.keymon.com.mx.dbrequestmanager __ref,anywheresoftware.b4a.objects.collections.List _parameters,anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "writelist", false))
	 {return ((String) Debug.delegate(ba, "writelist", new Object[] {_parameters,_out}));}
byte[] _data = null;
Object _o = null;
RDebugUtils.currentLine=87293952;
 //BA.debugLineNum = 87293952;BA.debugLine="Private Sub WriteList(Parameters As List, out As O";
RDebugUtils.currentLine=87293953;
 //BA.debugLineNum = 87293953;BA.debugLine="Dim data() As Byte";
_data = new byte[(int) (0)];
;
RDebugUtils.currentLine=87293954;
 //BA.debugLineNum = 87293954;BA.debugLine="If Parameters = Null Or Parameters.IsInitialized";
if (_parameters== null || _parameters.IsInitialized()==__c.False) { 
RDebugUtils.currentLine=87293955;
 //BA.debugLineNum = 87293955;BA.debugLine="Dim Parameters As List";
_parameters = new anywheresoftware.b4a.objects.collections.List();
RDebugUtils.currentLine=87293956;
 //BA.debugLineNum = 87293956;BA.debugLine="Parameters.Initialize";
_parameters.Initialize();
 };
RDebugUtils.currentLine=87293958;
 //BA.debugLineNum = 87293958;BA.debugLine="data = bc.IntsToBytes(Array As Int(Parameters.Siz";
_data = __ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .IntsToBytes(new int[]{_parameters.getSize()});
RDebugUtils.currentLine=87293959;
 //BA.debugLineNum = 87293959;BA.debugLine="out.WriteBytes(data, 0, data.Length)";
_out.WriteBytes(_data,(int) (0),_data.length);
RDebugUtils.currentLine=87293960;
 //BA.debugLineNum = 87293960;BA.debugLine="For Each o As Object In Parameters";
{
final anywheresoftware.b4a.BA.IterableList group8 = _parameters;
final int groupLen8 = group8.getSize()
;int index8 = 0;
;
for (; index8 < groupLen8;index8++){
_o = group8.Get(index8);
RDebugUtils.currentLine=87293961;
 //BA.debugLineNum = 87293961;BA.debugLine="WriteObject(o, out)";
__ref._writeobject /*String*/ (null,_o,_out);
 }
};
RDebugUtils.currentLine=87293963;
 //BA.debugLineNum = 87293963;BA.debugLine="End Sub";
return "";
}
public String  _executequery3(gunav2.keymon.com.mx.dbrequestmanager __ref,gunav2.keymon.com.mx.dbrequestmanager._dbcommand _command,int _limit,Object _tag,int _timeout) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "executequery3", false))
	 {return ((String) Debug.delegate(ba, "executequery3", new Object[] {_command,_limit,_tag,_timeout}));}
gunav2.keymon.com.mx.httpjob _j = null;
anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _ms = null;
anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out2 = null;
RDebugUtils.currentLine=87031808;
 //BA.debugLineNum = 87031808;BA.debugLine="Public Sub ExecuteQuery3(Command As DBCommand, Lim";
RDebugUtils.currentLine=87031809;
 //BA.debugLineNum = 87031809;BA.debugLine="Dim j As HttpJob";
_j = new gunav2.keymon.com.mx.httpjob();
RDebugUtils.currentLine=87031810;
 //BA.debugLineNum = 87031810;BA.debugLine="Dim ms As OutputStream";
_ms = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
RDebugUtils.currentLine=87031811;
 //BA.debugLineNum = 87031811;BA.debugLine="Dim out2 As OutputStream = StartJob(j,ms, Tag)";
_out2 = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
_out2 = __ref._startjob /*anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper*/ (null,_j,_ms,_tag);
RDebugUtils.currentLine=87031812;
 //BA.debugLineNum = 87031812;BA.debugLine="WriteObject(Command.Name, out2)";
__ref._writeobject /*String*/ (null,(Object)(_command.Name /*String*/ ),_out2);
RDebugUtils.currentLine=87031813;
 //BA.debugLineNum = 87031813;BA.debugLine="WriteInt(Limit, out2)";
__ref._writeint /*String*/ (null,_limit,_out2);
RDebugUtils.currentLine=87031814;
 //BA.debugLineNum = 87031814;BA.debugLine="WriteList(Command.Parameters, out2)";
__ref._writelist /*String*/ (null,anywheresoftware.b4a.keywords.Common.ArrayToList(_command.Parameters /*Object[]*/ ),_out2);
RDebugUtils.currentLine=87031815;
 //BA.debugLineNum = 87031815;BA.debugLine="out2.Close";
_out2.Close();
RDebugUtils.currentLine=87031816;
 //BA.debugLineNum = 87031816;BA.debugLine="j.PostBytes(link & \"?method=query\", ms.ToBytesArr";
_j._postbytes /*String*/ (null,__ref._link /*String*/ +"?method=query",_ms.ToBytesArray());
RDebugUtils.currentLine=87031817;
 //BA.debugLineNum = 87031817;BA.debugLine="If Timeout <> 0 Then  j.GetRequest.Timeout = Time";
if (_timeout!=0) { 
_j._getrequest /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest*/ (null).setTimeout(_timeout);};
RDebugUtils.currentLine=87031818;
 //BA.debugLineNum = 87031818;BA.debugLine="End Sub";
return "";
}
public byte[]  _filetobytes(gunav2.keymon.com.mx.dbrequestmanager __ref,String _dir,String _filename) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "filetobytes", false))
	 {return ((byte[]) Debug.delegate(ba, "filetobytes", new Object[] {_dir,_filename}));}
anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null;
anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in = null;
RDebugUtils.currentLine=87818240;
 //BA.debugLineNum = 87818240;BA.debugLine="Public Sub FileToBytes(Dir As String, FileName As";
RDebugUtils.currentLine=87818241;
 //BA.debugLineNum = 87818241;BA.debugLine="Dim out As OutputStream";
_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
RDebugUtils.currentLine=87818242;
 //BA.debugLineNum = 87818242;BA.debugLine="out.InitializeToBytesArray(0)";
_out.InitializeToBytesArray((int) (0));
RDebugUtils.currentLine=87818243;
 //BA.debugLineNum = 87818243;BA.debugLine="Dim In As InputStream = File.OpenInput(Dir, FileN";
_in = new anywheresoftware.b4a.objects.streams.File.InputStreamWrapper();
_in = __c.File.OpenInput(_dir,_filename);
RDebugUtils.currentLine=87818244;
 //BA.debugLineNum = 87818244;BA.debugLine="File.Copy2(In, out)";
__c.File.Copy2((java.io.InputStream)(_in.getObject()),(java.io.OutputStream)(_out.getObject()));
RDebugUtils.currentLine=87818245;
 //BA.debugLineNum = 87818245;BA.debugLine="out.Close";
_out.Close();
RDebugUtils.currentLine=87818246;
 //BA.debugLineNum = 87818246;BA.debugLine="Return out.ToBytesArray";
if (true) return _out.ToBytesArray();
RDebugUtils.currentLine=87818247;
 //BA.debugLineNum = 87818247;BA.debugLine="End Sub";
return null;
}
public Object  _readobject(gunav2.keymon.com.mx.dbrequestmanager __ref,anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "readobject", false))
	 {return ((Object) Debug.delegate(ba, "readobject", new Object[] {_in}));}
byte[] _data = null;
byte _b = (byte)0;
int _len = 0;
RDebugUtils.currentLine=87425024;
 //BA.debugLineNum = 87425024;BA.debugLine="Private Sub ReadObject(In As InputStream) As Objec";
RDebugUtils.currentLine=87425025;
 //BA.debugLineNum = 87425025;BA.debugLine="Dim data(1) As Byte";
_data = new byte[(int) (1)];
;
RDebugUtils.currentLine=87425026;
 //BA.debugLineNum = 87425026;BA.debugLine="In.ReadBytes(data, 0, 1)";
_in.ReadBytes(_data,(int) (0),(int) (1));
RDebugUtils.currentLine=87425027;
 //BA.debugLineNum = 87425027;BA.debugLine="Select data(0)";
switch (BA.switchObjectToInt(_data[(int) (0)],__ref._t_null /*byte*/ ,__ref._t_short /*byte*/ ,__ref._t_int /*byte*/ ,__ref._t_long /*byte*/ ,__ref._t_float /*byte*/ ,__ref._t_double /*byte*/ ,__ref._t_boolean /*byte*/ ,__ref._t_blob /*byte*/ )) {
case 0: {
RDebugUtils.currentLine=87425029;
 //BA.debugLineNum = 87425029;BA.debugLine="Return Null";
if (true) return __c.Null;
 break; }
case 1: {
RDebugUtils.currentLine=87425031;
 //BA.debugLineNum = 87425031;BA.debugLine="Dim data(2) As Byte";
_data = new byte[(int) (2)];
;
RDebugUtils.currentLine=87425032;
 //BA.debugLineNum = 87425032;BA.debugLine="Return bc.ShortsFromBytes(ReadBytesFully(In, da";
if (true) return (Object)(__ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .ShortsFromBytes(__ref._readbytesfully /*byte[]*/ (null,_in,_data,_data.length))[(int) (0)]);
 break; }
case 2: {
RDebugUtils.currentLine=87425034;
 //BA.debugLineNum = 87425034;BA.debugLine="Dim data(4) As Byte";
_data = new byte[(int) (4)];
;
RDebugUtils.currentLine=87425035;
 //BA.debugLineNum = 87425035;BA.debugLine="Return bc.IntsFromBytes(ReadBytesFully(In, data";
if (true) return (Object)(__ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .IntsFromBytes(__ref._readbytesfully /*byte[]*/ (null,_in,_data,_data.length))[(int) (0)]);
 break; }
case 3: {
RDebugUtils.currentLine=87425037;
 //BA.debugLineNum = 87425037;BA.debugLine="Dim data(8) As Byte";
_data = new byte[(int) (8)];
;
RDebugUtils.currentLine=87425038;
 //BA.debugLineNum = 87425038;BA.debugLine="Return bc.LongsFromBytes(ReadBytesFully(In, dat";
if (true) return (Object)(__ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .LongsFromBytes(__ref._readbytesfully /*byte[]*/ (null,_in,_data,_data.length))[(int) (0)]);
 break; }
case 4: {
RDebugUtils.currentLine=87425040;
 //BA.debugLineNum = 87425040;BA.debugLine="Dim data(4) As Byte";
_data = new byte[(int) (4)];
;
RDebugUtils.currentLine=87425041;
 //BA.debugLineNum = 87425041;BA.debugLine="Return bc.FloatsFromBytes(ReadBytesFully(In, da";
if (true) return (Object)(__ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .FloatsFromBytes(__ref._readbytesfully /*byte[]*/ (null,_in,_data,_data.length))[(int) (0)]);
 break; }
case 5: {
RDebugUtils.currentLine=87425043;
 //BA.debugLineNum = 87425043;BA.debugLine="Dim data(8) As Byte";
_data = new byte[(int) (8)];
;
RDebugUtils.currentLine=87425044;
 //BA.debugLineNum = 87425044;BA.debugLine="Return bc.DoublesFromBytes(ReadBytesFully(In, d";
if (true) return (Object)(__ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .DoublesFromBytes(__ref._readbytesfully /*byte[]*/ (null,_in,_data,_data.length))[(int) (0)]);
 break; }
case 6: {
RDebugUtils.currentLine=87425046;
 //BA.debugLineNum = 87425046;BA.debugLine="Dim b As Byte = ReadByte(In)";
_b = __ref._readbyte /*byte*/ (null,_in);
RDebugUtils.currentLine=87425047;
 //BA.debugLineNum = 87425047;BA.debugLine="Return b = 1";
if (true) return (Object)(_b==1);
 break; }
case 7: {
RDebugUtils.currentLine=87425049;
 //BA.debugLineNum = 87425049;BA.debugLine="Dim len As Int = ReadInt(In)";
_len = __ref._readint /*int*/ (null,_in);
RDebugUtils.currentLine=87425050;
 //BA.debugLineNum = 87425050;BA.debugLine="Dim data(len) As Byte";
_data = new byte[_len];
;
RDebugUtils.currentLine=87425051;
 //BA.debugLineNum = 87425051;BA.debugLine="Return ReadBytesFully(In, data, data.Length)";
if (true) return (Object)(__ref._readbytesfully /*byte[]*/ (null,_in,_data,_data.length));
 break; }
default: {
RDebugUtils.currentLine=87425053;
 //BA.debugLineNum = 87425053;BA.debugLine="Dim len As Int = ReadInt(In)";
_len = __ref._readint /*int*/ (null,_in);
RDebugUtils.currentLine=87425054;
 //BA.debugLineNum = 87425054;BA.debugLine="Dim data(len) As Byte";
_data = new byte[_len];
;
RDebugUtils.currentLine=87425055;
 //BA.debugLineNum = 87425055;BA.debugLine="ReadBytesFully(In, data, data.Length)";
__ref._readbytesfully /*byte[]*/ (null,_in,_data,_data.length);
RDebugUtils.currentLine=87425056;
 //BA.debugLineNum = 87425056;BA.debugLine="Return BytesToString(data, 0, data.Length, \"UTF";
if (true) return (Object)(__c.BytesToString(_data,(int) (0),_data.length,"UTF8"));
 break; }
}
;
RDebugUtils.currentLine=87425058;
 //BA.debugLineNum = 87425058;BA.debugLine="End Sub";
return null;
}
public int  _readint(gunav2.keymon.com.mx.dbrequestmanager __ref,anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "readint", false))
	 {return ((Integer) Debug.delegate(ba, "readint", new Object[] {_in}));}
byte[] _data = null;
RDebugUtils.currentLine=87621632;
 //BA.debugLineNum = 87621632;BA.debugLine="Private Sub ReadInt(In As InputStream) As Int";
RDebugUtils.currentLine=87621633;
 //BA.debugLineNum = 87621633;BA.debugLine="Dim data(4) As Byte";
_data = new byte[(int) (4)];
;
RDebugUtils.currentLine=87621634;
 //BA.debugLineNum = 87621634;BA.debugLine="Return bc.IntsFromBytes(ReadBytesFully(In, data,";
if (true) return __ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .IntsFromBytes(__ref._readbytesfully /*byte[]*/ (null,_in,_data,_data.length))[(int) (0)];
RDebugUtils.currentLine=87621635;
 //BA.debugLineNum = 87621635;BA.debugLine="End Sub";
return 0;
}
public byte  _readbyte(gunav2.keymon.com.mx.dbrequestmanager __ref,anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "readbyte", false))
	 {return ((Byte) Debug.delegate(ba, "readbyte", new Object[] {_in}));}
byte[] _data = null;
RDebugUtils.currentLine=87687168;
 //BA.debugLineNum = 87687168;BA.debugLine="Private Sub ReadByte(In As InputStream) As Byte";
RDebugUtils.currentLine=87687169;
 //BA.debugLineNum = 87687169;BA.debugLine="Dim data(1) As Byte";
_data = new byte[(int) (1)];
;
RDebugUtils.currentLine=87687170;
 //BA.debugLineNum = 87687170;BA.debugLine="In.ReadBytes(data, 0, 1)";
_in.ReadBytes(_data,(int) (0),(int) (1));
RDebugUtils.currentLine=87687171;
 //BA.debugLineNum = 87687171;BA.debugLine="Return data(0)";
if (true) return _data[(int) (0)];
RDebugUtils.currentLine=87687172;
 //BA.debugLineNum = 87687172;BA.debugLine="End Sub";
return (byte)0;
}
public byte[]  _imagetobytes(gunav2.keymon.com.mx.dbrequestmanager __ref,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _image) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "imagetobytes", false))
	 {return ((byte[]) Debug.delegate(ba, "imagetobytes", new Object[] {_image}));}
anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null;
RDebugUtils.currentLine=87883776;
 //BA.debugLineNum = 87883776;BA.debugLine="Public Sub ImageToBytes(Image As Bitmap) As Byte()";
RDebugUtils.currentLine=87883777;
 //BA.debugLineNum = 87883777;BA.debugLine="Dim out As OutputStream";
_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
RDebugUtils.currentLine=87883778;
 //BA.debugLineNum = 87883778;BA.debugLine="out.InitializeToBytesArray(0)";
_out.InitializeToBytesArray((int) (0));
RDebugUtils.currentLine=87883779;
 //BA.debugLineNum = 87883779;BA.debugLine="Image.WriteToStream(out, 100, \"JPEG\")";
_image.WriteToStream((java.io.OutputStream)(_out.getObject()),(int) (100),BA.getEnumFromString(android.graphics.Bitmap.CompressFormat.class,"JPEG"));
RDebugUtils.currentLine=87883780;
 //BA.debugLineNum = 87883780;BA.debugLine="out.Close";
_out.Close();
RDebugUtils.currentLine=87883781;
 //BA.debugLineNum = 87883781;BA.debugLine="Return out.ToBytesArray";
if (true) return _out.ToBytesArray();
RDebugUtils.currentLine=87883782;
 //BA.debugLineNum = 87883782;BA.debugLine="End Sub";
return null;
}
public String  _printtable(gunav2.keymon.com.mx.dbrequestmanager __ref,gunav2.keymon.com.mx.dbrequestmanager._dbresult _table) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "printtable", false))
	 {return ((String) Debug.delegate(ba, "printtable", new Object[] {_table}));}
anywheresoftware.b4a.keywords.StringBuilderWrapper _sb = null;
Object _col = null;
Object[] _row = null;
Object _record = null;
RDebugUtils.currentLine=88014848;
 //BA.debugLineNum = 88014848;BA.debugLine="Public Sub PrintTable(Table As DBResult)";
RDebugUtils.currentLine=88014849;
 //BA.debugLineNum = 88014849;BA.debugLine="Log(\"Tag: \" & Table.Tag & \", Columns: \" & Table.C";
__c.LogImpl("088014849","Tag: "+BA.ObjectToString(_table.Tag /*Object*/ )+", Columns: "+BA.NumberToString(_table.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .getSize())+", Rows: "+BA.NumberToString(_table.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0);
RDebugUtils.currentLine=88014850;
 //BA.debugLineNum = 88014850;BA.debugLine="Dim sb As StringBuilder";
_sb = new anywheresoftware.b4a.keywords.StringBuilderWrapper();
RDebugUtils.currentLine=88014851;
 //BA.debugLineNum = 88014851;BA.debugLine="sb.Initialize";
_sb.Initialize();
RDebugUtils.currentLine=88014852;
 //BA.debugLineNum = 88014852;BA.debugLine="For Each col In Table.Columns.Keys";
{
final anywheresoftware.b4a.BA.IterableList group4 = _table.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys();
final int groupLen4 = group4.getSize()
;int index4 = 0;
;
for (; index4 < groupLen4;index4++){
_col = group4.Get(index4);
RDebugUtils.currentLine=88014853;
 //BA.debugLineNum = 88014853;BA.debugLine="sb.Append(col).Append(TAB)";
_sb.Append(BA.ObjectToString(_col)).Append(__c.TAB);
 }
};
RDebugUtils.currentLine=88014855;
 //BA.debugLineNum = 88014855;BA.debugLine="Log(sb.ToString)";
__c.LogImpl("088014855",_sb.ToString(),0);
RDebugUtils.currentLine=88014856;
 //BA.debugLineNum = 88014856;BA.debugLine="For Each row() As Object In Table.Rows";
{
final anywheresoftware.b4a.BA.IterableList group8 = _table.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen8 = group8.getSize()
;int index8 = 0;
;
for (; index8 < groupLen8;index8++){
_row = (Object[])(group8.Get(index8));
RDebugUtils.currentLine=88014857;
 //BA.debugLineNum = 88014857;BA.debugLine="Dim sb As StringBuilder";
_sb = new anywheresoftware.b4a.keywords.StringBuilderWrapper();
RDebugUtils.currentLine=88014858;
 //BA.debugLineNum = 88014858;BA.debugLine="sb.Initialize";
_sb.Initialize();
RDebugUtils.currentLine=88014859;
 //BA.debugLineNum = 88014859;BA.debugLine="For Each record As Object In row";
{
final Object[] group11 = _row;
final int groupLen11 = group11.length
;int index11 = 0;
;
for (; index11 < groupLen11;index11++){
_record = group11[index11];
RDebugUtils.currentLine=88014860;
 //BA.debugLineNum = 88014860;BA.debugLine="sb.Append(record).Append(TAB)";
_sb.Append(BA.ObjectToString(_record)).Append(__c.TAB);
 }
};
RDebugUtils.currentLine=88014862;
 //BA.debugLineNum = 88014862;BA.debugLine="Log(sb.ToString)";
__c.LogImpl("088014862",_sb.ToString(),0);
 }
};
RDebugUtils.currentLine=88014864;
 //BA.debugLineNum = 88014864;BA.debugLine="End Sub";
return "";
}
public byte[]  _readbytesfully(gunav2.keymon.com.mx.dbrequestmanager __ref,anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in,byte[] _data,int _len) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "readbytesfully", false))
	 {return ((byte[]) Debug.delegate(ba, "readbytesfully", new Object[] {_in,_data,_len}));}
int _count = 0;
int _read = 0;
RDebugUtils.currentLine=87490560;
 //BA.debugLineNum = 87490560;BA.debugLine="Private Sub ReadBytesFully(In As InputStream, Data";
RDebugUtils.currentLine=87490561;
 //BA.debugLineNum = 87490561;BA.debugLine="Dim count = 0, read As Int";
_count = (int) (0);
_read = 0;
RDebugUtils.currentLine=87490562;
 //BA.debugLineNum = 87490562;BA.debugLine="Do While count < Len And read > -1";
while (_count<_len && _read>-1) {
RDebugUtils.currentLine=87490563;
 //BA.debugLineNum = 87490563;BA.debugLine="read = In.ReadBytes(Data, count, Len - count)";
_read = _in.ReadBytes(_data,_count,(int) (_len-_count));
RDebugUtils.currentLine=87490564;
 //BA.debugLineNum = 87490564;BA.debugLine="count = count + read";
_count = (int) (_count+_read);
 }
;
RDebugUtils.currentLine=87490566;
 //BA.debugLineNum = 87490566;BA.debugLine="Return Data";
if (true) return _data;
RDebugUtils.currentLine=87490567;
 //BA.debugLineNum = 87490567;BA.debugLine="End Sub";
return null;
}
public anywheresoftware.b4a.objects.collections.Map  _requesttimes(gunav2.keymon.com.mx.dbrequestmanager __ref,String _tag) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "requesttimes", false))
	 {return ((anywheresoftware.b4a.objects.collections.Map) Debug.delegate(ba, "requesttimes", new Object[] {_tag}));}
anywheresoftware.b4a.objects.collections.Map _times = null;
String _requesttime = "";
String _jobdonetime = "";
RDebugUtils.currentLine=88080384;
 //BA.debugLineNum = 88080384;BA.debugLine="Sub requestTimes(tag As String) As Map 'ignore";
RDebugUtils.currentLine=88080385;
 //BA.debugLineNum = 88080385;BA.debugLine="Private times As Map";
_times = new anywheresoftware.b4a.objects.collections.Map();
RDebugUtils.currentLine=88080386;
 //BA.debugLineNum = 88080386;BA.debugLine="times.Initialize";
_times.Initialize();
RDebugUtils.currentLine=88080389;
 //BA.debugLineNum = 88080389;BA.debugLine="If reqsList.IsInitialized Then";
if (__ref._reqslist /*anywheresoftware.b4a.objects.collections.List*/ .IsInitialized()) { 
RDebugUtils.currentLine=88080392;
 //BA.debugLineNum = 88080392;BA.debugLine="If inicioRequestMap.ContainsKey(tag) Then";
if (__ref._iniciorequestmap /*anywheresoftware.b4a.objects.collections.Map*/ .ContainsKey((Object)(_tag))) { 
RDebugUtils.currentLine=88080393;
 //BA.debugLineNum = 88080393;BA.debugLine="inicioRequest = inicioRequestMap.Get(tag)";
__ref._iniciorequest /*long*/  = BA.ObjectToLongNumber(__ref._iniciorequestmap /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_tag)));
 };
RDebugUtils.currentLine=88080396;
 //BA.debugLineNum = 88080396;BA.debugLine="If inicioJobDoneMap.ContainsKey(tag) Then";
if (__ref._iniciojobdonemap /*anywheresoftware.b4a.objects.collections.Map*/ .ContainsKey((Object)(_tag))) { 
RDebugUtils.currentLine=88080397;
 //BA.debugLineNum = 88080397;BA.debugLine="inicioJobDone = inicioJobDoneMap.Get(tag)";
__ref._iniciojobdone /*long*/  = BA.ObjectToLongNumber(__ref._iniciojobdonemap /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_tag)));
 };
 };
RDebugUtils.currentLine=88080402;
 //BA.debugLineNum = 88080402;BA.debugLine="Private requestTime As String = NumberFormat2(((i";
_requesttime = __c.NumberFormat2(((__ref._iniciojobdone /*long*/ -__ref._iniciorequest /*long*/ )/(double)1000),(int) (1),(int) (5),(int) (0),__c.False);
RDebugUtils.currentLine=88080403;
 //BA.debugLineNum = 88080403;BA.debugLine="Private JobDoneTime As String = NumberFormat2(((D";
_jobdonetime = __c.NumberFormat2(((__c.DateTime.getNow()-__ref._iniciojobdone /*long*/ )/(double)1000),(int) (1),(int) (5),(int) (0),__c.False);
RDebugUtils.currentLine=88080404;
 //BA.debugLineNum = 88080404;BA.debugLine="times.Put(\"requestTime\", requestTime)";
_times.Put((Object)("requestTime"),(Object)(_requesttime));
RDebugUtils.currentLine=88080405;
 //BA.debugLineNum = 88080405;BA.debugLine="times.Put(\"jobDoneTime\", JobDoneTime)";
_times.Put((Object)("jobDoneTime"),(Object)(_jobdonetime));
RDebugUtils.currentLine=88080406;
 //BA.debugLineNum = 88080406;BA.debugLine="times.Put(\"totalTime\", NumberFormat2((JobDoneTime";
_times.Put((Object)("totalTime"),(Object)(__c.NumberFormat2(((double)(Double.parseDouble(_jobdonetime))+(double)(Double.parseDouble(_requesttime))),(int) (1),(int) (5),(int) (0),__c.False)));
RDebugUtils.currentLine=88080407;
 //BA.debugLineNum = 88080407;BA.debugLine="Return times";
if (true) return _times;
RDebugUtils.currentLine=88080408;
 //BA.debugLineNum = 88080408;BA.debugLine="End Sub";
return null;
}
}