📄 modcenter.cs
字号:
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using DataFieldClass;
using System.Threading;
namespace MsgSystem
{
static class ModCenter
{
public static ArrayList inCenter = null,
outCenter = null;
//把inCenter中收到的消息解析并发到相应的模块的data pool中
public static void centerThreadMethod( )
{
RawInfo info = new RawInfo( );
MsgInfo msg = null;
PersonInfo person = new PersonInfo();
while (true)
{
lock (inCenter)
{
if (inCenter.Count > 0)
{
info = (RawInfo)inCenter[0];
inCenter.Remove(info);
}
person = Util.getPersonByPhone(info.from);
if (person == null)
{
//just discard it here, in future we shall do something with it.
}
else
{
msg = info.getInfo( );
//switch (person.getGroup())
//{
// case 1:
//}
}
}
}
}
public static int getMod( string heading)
{
int rtn = 0;
return rtn;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -