📄 sms.cs
字号:
}
public mCore.License License()
{
if (this.q == null)
{
SMS sms = this;
this.q = new mCore.License(ref sms);
}
return this.q;
}
private void m()
{
if (Monitor.TryEnter(this.gm, this.gm.@as))
{
this.ai = -1;
try
{
this.gm.av();
if (this.gm.aq() != 0x63)
{
this.ai = this.gm.bd;
}
else if (this.gm.z == 0L)
{
this.gm.a(0xbb9L, "Signal strength not known or not detectable", "GENERAL");
}
}
catch (Exception exception1)
{
ProjectData.SetProjectError(exception1);
Exception exception = exception1;
this.gm.a.b("[SMS:SignalStrength_Get:1] " + exception.Message);
ProjectData.ClearProjectError();
}
finally
{
Monitor.Exit(this.gm);
}
}
else
{
this.gm.a(0x2333L, "Thread monitor enter attempt timeout [SignalStrength_Get]", "GENERAL");
}
}
private void n()
{
if (Monitor.TryEnter(this.gm, this.gm.@as))
{
string str = "";
this.ah = "";
try
{
this.gm.av();
str = this.gm.ah();
if (str.Length > 0)
{
this.ah = str;
}
else
{
this.gm.a(0x7d8L, "Cannot read modem firmware revision", "GENERAL");
}
}
catch (Exception exception1)
{
ProjectData.SetProjectError(exception1);
Exception exception = exception1;
this.gm.a.b("[SMS:Revision_Get:1] " + exception.Message);
ProjectData.ClearProjectError();
}
finally
{
Monitor.Exit(this.gm);
}
}
else
{
this.gm.a(0x2333L, "Thread monitor enter attempt timeout [Revision_Get]", "GENERAL");
}
}
private void o()
{
if (Monitor.TryEnter(this.gm, this.gm.@as))
{
string str = "";
this.ag = "";
try
{
this.gm.av();
str = this.gm.v();
if (str.Length > 0)
{
this.ag = str;
}
else
{
this.gm.a(0x7edL, "Cannot read IMSI information", "GENERAL");
}
}
catch (Exception exception1)
{
ProjectData.SetProjectError(exception1);
Exception exception = exception1;
this.gm.a.b("[SMS:IMSI_Get:1] " + exception.Message);
ProjectData.ClearProjectError();
}
finally
{
Monitor.Exit(this.gm);
}
}
else
{
this.gm.a(0x2333L, "Thread monitor enter attempt timeout [IMSI_Get]", "GENERAL");
}
}
private void p()
{
if (Monitor.TryEnter(this.gm, this.gm.@as))
{
string str = "";
this.af = "";
try
{
this.gm.av();
str = this.gm.at();
if (str.Length > 0)
{
this.af = str;
}
else
{
this.gm.a(0x7d7L, "Cannot read modem IMEI", "GENERAL");
}
}
catch (Exception exception1)
{
ProjectData.SetProjectError(exception1);
Exception exception = exception1;
this.gm.a.b("[SMS:IMEI_Get:1] " + exception.Message);
ProjectData.ClearProjectError();
}
finally
{
Monitor.Exit(this.gm);
}
}
else
{
this.gm.a(0x2333L, "Thread monitor enter attempt timeout [IMEI_Get]", "GENERAL");
}
}
private void q()
{
if (Monitor.TryEnter(this.gm, this.gm.@as))
{
string str = "";
this.ae = "";
try
{
this.gm.av();
str = this.gm.af();
if (str.Length > 0)
{
this.ae = str;
}
else
{
this.gm.a(0x7d6L, "Cannot read modem model", "GENERAL");
}
}
catch (Exception exception1)
{
ProjectData.SetProjectError(exception1);
Exception exception = exception1;
this.gm.a.b("[SMS:Model_Get:1] " + exception.Message);
ProjectData.ClearProjectError();
}
finally
{
Monitor.Exit(this.gm);
}
}
else
{
this.gm.a(0x2333L, "Thread monitor enter attempt timeout [Model_Get]", "GENERAL");
}
}
public mCore.Queue Queue()
{
if (this.objQueue == null)
{
SMS sms = this;
this.objQueue = new mCore.Queue(ref sms);
}
return this.objQueue;
}
private void r()
{
if (Monitor.TryEnter(this.gm, this.gm.@as))
{
string str = "";
this.ad = "";
try
{
this.gm.av();
str = this.gm.s();
if (str.Length > 0)
{
this.ad = str;
}
else
{
this.gm.a(0x7d5L, "Cannot read modem manufacturer", "GENERAL");
}
}
catch (Exception exception1)
{
ProjectData.SetProjectError(exception1);
Exception exception = exception1;
this.gm.a.b("[SMS:Manufacturer_Get:1] " + exception.Message);
ProjectData.ClearProjectError();
}
finally
{
Monitor.Exit(this.gm);
}
}
else
{
this.gm.a(0x2333L, "Thread monitor enter attempt timeout [Manufacturer_Get]", "GENERAL");
}
}
private void s()
{
if (Monitor.TryEnter(this.gm, this.gm.@as))
{
try
{
this.gm.av();
this.ac = this.gm.aj();
}
catch (Exception exception1)
{
ProjectData.SetProjectError(exception1);
Exception exception = exception1;
ProjectData.ClearProjectError();
}
finally
{
Monitor.Exit(this.gm);
}
}
else
{
this.gm.a(0x2333L, "Thread monitor enter attempt timeout [Disconnect_Method]", "GENERAL");
}
}
public string SendSmartMessage(string DestinationNumber, string TextMessage, int DestinationPort)
{
SMS sms = this;
mCore.SMS.b b = new mCore.SMS.b(ref sms, DestinationNumber, TextMessage, this.gm.bi, this.gm.bh, 0, DestinationPort);
Thread thread = new Thread(new ThreadStart(b.a));
thread.Name = "SendSmartMsgThread";
thread.Priority = ThreadPriority.AboveNormal;
thread.Start();
while (thread.IsAlive)
{
Thread.Sleep(1);
Application.DoEvents();
}
string h = b.h;
if (b != null)
{
b = null;
}
string str = h;
this.a();
return str;
}
public string SendSmartMessage(string DestinationNumber, string TextMessage, int DestinationPort, int SourcePort)
{
SMS sms = this;
mCore.SMS.b b = new mCore.SMS.b(ref sms, DestinationNumber, TextMessage, this.gm.bi, this.gm.bh, SourcePort, DestinationPort);
Thread thread = new Thread(new ThreadStart(b.a));
thread.Name = "SendSmartMsgThread";
thread.Priority = ThreadPriority.AboveNormal;
thread.Start();
while (thread.IsAlive)
{
Thread.Sleep(1);
Application.DoEvents();
}
string h = b.h;
if (b != null)
{
b = null;
}
string str = h;
this.a();
return str;
}
public string SendSmartMessageToQueue(string DestinationNumber, string TextMessage, int DestinationPort)
{
SMS sms = this;
mCore.SMS.b b = new mCore.SMS.b(ref sms, DestinationNumber, TextMessage, this.gm.bi, this.gm.bh, 0, DestinationPort);
b.g = 2;
Thread thread = new Thread(new ThreadStart(b.b));
thread.Name = "SendSmartMsgToQueueThread";
thread.Priority = ThreadPriority.AboveNormal;
thread.Start();
while (thread.IsAlive)
{
Thread.Sleep(1);
Application.DoEvents();
}
string h = b.h;
if (b != null)
{
b = null;
}
string str = h;
this.a();
return str;
}
public string SendSmartMessageToQueue(string DestinationNumber, string TextMessage, int DestinationPort, QueuePriority Priority)
{
SMS sms = this;
mCore.SMS.b b = new mCore.SMS.b(ref sms, DestinationNumber, TextMessage, this.gm.bi, this.gm.bh, 0, DestinationPort);
b.g = (int) Priority;
Thread thread = new Thread(new ThreadStart(b.b));
thread.Name = "SendSmartMsgToQueueThread";
thread.Priority = ThreadPriority.AboveNormal;
thread.Start();
while (thread.IsAlive)
{
Thread.Sleep(1);
Application.DoEvents();
}
string h = b.h;
if (b != null)
{
b = null;
}
string str = h;
this.a();
return str;
}
public string SendSmartMessageToQueue(string DestinationNumber, string TextMessage, int DestinationPort, int SourcePort)
{
SMS sms = this;
mCore.SMS.b b = new mCore.SMS.b(ref sms, DestinationNumber, TextMessage, this.gm.bi, this.gm.bh, SourcePort, DestinationPort);
b.g = 2;
Thread thread = new Thread(new ThreadStart(b.b));
thread.Name = "SendSmartMsgToQueueThread";
thread.Priority = ThreadPriority.AboveNormal;
thread.Start();
while (thread.IsAlive)
{
Thread.Sleep(1);
Application.DoEvents();
}
string h = b.h;
if (b != null)
{
b = null;
}
string str = h;
this.a();
return str;
}
public string SendSmartMessageToQueue(string DestinationNumber, string TextMessage, int DestinationPort, int SourcePort, QueuePriority Priority)
{
SMS sms = this;
mCore.SMS.b b = new mCore.SMS.b(ref sms, DestinationNumber, TextMessage, this.gm.bi, this.gm.bh, SourcePort, DestinationPort);
b.g = (int) Priority;
Thread thread = new Thread(new ThreadStart(b.b));
thread.Name = "SendSmartMsgToQueueThread";
thread.Priority = ThreadPriority.AboveNormal;
thread.Start();
while (thread.IsAlive)
{
Thread.Sleep(1);
Application.DoEvents();
}
string h = b.h;
if (b != null)
{
b = null;
}
string str = h;
this.a();
return str;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -