هل يمكنك شرح هذا الكلاس بالتفصيل using MrSales.MrSControls; using MrSales.MrSLanguages;…
- User
هل يمكنك شرح هذا الكلاس بالتفصيل using MrSales.MrSControls; using MrSales.MrSLanguages; using Newtonsoft.Json.Linq; using RestSharp; using System;
internal class Class81 { public static string string_0 = BasicVars.Languages == "ar-EG" ? "2" : "1"; public static string string_1 = "https://smsmisr.com/"; public static string string_2 = "";
private static string smethod_0( object object_0, object object_1, object object_2, object object_3, object object_4) { string str = DateTime.Now.ToString("yyyy-MM-dd-HH-mm"); RestClient restClient = new RestClient("https://smsmisr.com/api/v2/?"); restClient.Timeout = -1; RestRequest request = new RestRequest(Method.POST); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", (object) ("{"username":"" + (string) object_0 + "","password":"" + (string) object_1 + "","language":"" + Class81.string_0 + "","sender":"" + SysSettings.SMS_SenderID + "","mobile":"" + (string) object_4 + "","message":"" + (string) object_2 + "","DelayUntil":"" + str + ""}"), ParameterType.RequestBody); return restClient.Execute((IRestRequest) request).Content; }
private static string smethod_1(object object_0, object object_1) { RestClient restClient = new RestClient("https://smsmisr.com/api/Request/?"); restClient.Timeout = -1; RestRequest request = new RestRequest(Method.POST); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", (object) ("{"username":"" + (string) object_0 + "","password":"" + (string) object_1 + "","request":"status","SMSID":"" + SysSettings.SMS_SenderID + ""}"), ParameterType.RequestBody); return restClient.Execute((IRestRequest) request).Content; }
public static string smethod_2( object object_0, object object_1, object object_2, object object_3, object object_4) { return Class81.smethod_4(JObject.Parse(Class81.smethod_0(object_0, object_1, object_2, object_3, object_4))["code"].ToString()); }
public static string smethod_3(object object_0, object object_1) { string str1; try { JObject jobject = JObject.Parse(Class81.smethod_1(object_0, object_1)); string string_3 = (string) jobject["code"]; string str2 = (string) jobject["Balance"] != null ? (string) jobject["Balance"] : ""; str1 = Class81.smethod_4(string_3) + " , " + strings.Balance + ": " + str2; goto label_4; } catch { Class88.Show(strings.ERROR, strings.ERROR, 0); } str1 = ""; label_4: return str1; }
private static string smethod_4(string string_3) { string s = string_3; // ISSUE: reference to a compiler-generated method uint stringHash = \u003CPrivateImplementationDetails\u003E.ComputeStringHash(s); string str; if (stringHash <= 710606314U) { if (stringHash <= 609940600U) { if (stringHash > 542830124U) { switch (stringHash) { case 559607743: if (s == "1908") { str = "[code: 1905 ]- " + strings.INVALID_DATE_TIME_FORMAT_IN_DELAYUNTIL_PARAMETER; goto label_54; } else break; case 609940600: if (s == "1905") { str = "[code: 1905 ]- " + strings.INVALID_VALUE_IN_MOBILE_FIELD; goto label_54; } else break; } } else { switch (stringHash) { case 42784521: if (s == "9999") { str = "[code: 9999 ]- " + strings.PLEASE_WAIT_FOR_A_WHILE__THIS_MEANS_YOU_SENT_ALOT_OF_API_REQUEST_AT_THE_SAME_TIME; goto label_54; } else break; case 542830124: if (s == "1909") { str = "[code: 1905 ]- " + strings.ERROR_IN_MESSAGE; goto label_54; } else break; } } } else if (stringHash <= 643495838U) { if (stringHash != 626718219U) { if (stringHash == 643495838U && s == "1907") { str = "[code: 1905 ]- " + strings.SERVER_UNDER_UPDATING; goto label_54; } } else if (s == "1904") { str = "[code: 1904 ]- " + strings.INVALID_VALUE_IN_SENDER_FIELD; goto label_54; } } else if (stringHash != 660273457U) { if (stringHash != 677051076U) { if (stringHash == 710606314U && s == "1903") { str = "[code: 1903 ]- " + strings.INVALID_VALUE_IN_USERNAME_OR_PASSWORD_FIELD; goto label_54; } } else if (s == "1901") { str = "[code: 1901 ]- " + strings.SUCCESS_MESSAGE_SUBMITTED_SUCCESSFULLY; goto label_54; } } else if (s == "1906") { str = "[code: 1905 ]- " + strings.INSUFFICIENT_CREDIT_SELECTED; goto label_54; } } else if (stringHash <= 3417092606U) { if (stringHash > 1851002291U) { switch (stringHash) { case 3400314987: if (s == "8006") { str = "[code: 8006 ]- " + strings.PASSWORD_IS_NULL; goto label_54; } else break; case 3417092606: if (s == "8005") { str = "[code: 8005 ]- " + strings.USERNAME_IS_NULL; goto label_54; } else break; } } else { switch (stringHash) { case 727383933: if (s == "1902") { str = "[code: 1902 ]- " + strings.INVALID_URL_THIS_MEANS_THAT_ONE_OF_THE_PARAMETERS_WAS_NOT_PROVIDED; goto label_54; } else break; case 1851002291: if (s == "6000") { str = "[code: 6000 ]- " + strings.SUCCESS_MESSAGE_SUBMITTED_SUCCESSFULLY; goto label_54; } else break; } } } else if (stringHash <= 3450647844U) { if (stringHash != 3433870225U) { if (stringHash == 3450647844U && s == "8003") { str = "[code: 8003 ]- " + strings.LANGUAGE_IS_NULL; goto label_54; } } else if (s == "8004") { str = "[code: 8004 ]- " + strings.SENDER_IS_NULL; goto label_54; } } else if (stringHash != 3467425463U) { if (stringHash != 3484203082U) { if (stringHash == 4086144241U && s == "Error") { str = "[code: Error ]- " + strings.INVALID_URL_THIS_MEANS_THAT_ONE_OF_THE_PARAMETERS_WAS_NOT_PROVIDED; goto label_54; } } else if (s == "8001") { str = "[code: 8001 ]- " + strings.MOBILE_IS_NULL; goto label_54; } } else if (s == "8002") { str = "[code: 8002 ]- " + strings.MESSAGE_IS_NULL; goto label_54; } str = string_3.ToString(); label_54: return str; }
- Assistant