資源簡介
學科競賽管理系統:對大學學科競賽的管理,包括競賽報名,上傳作品,在線指導,申請競賽以及舉辦競賽等一系列功能。
代碼片段和文件信息
package?feixin;
import?java.io.IOException;
import?cn.edu.ctgu.ghl.fetion.Contact;
import?cn.edu.ctgu.ghl.fetion.Fetion;
import?cn.edu.ctgu.ghl.fetion.FetionEvent;
import?cn.edu.ctgu.ghl.fetion.IFetionEventListener;
public?class?ExampleMain?{
public?static?void?main(String[]?args)?throws?Exception{
final?Fetion?fetion?=?new?Fetion(“phone““password“);
fetion.addListener(new?IFetionEventListener(){
public?void?process(FetionEvent?e)?{
if(e.getFirstLine()!=null?
&&?e.getFirstLine().startsWith(“M“)
&&?e.getBody()!=null){
fetion.sendSms2SelfPhone(e.toString());
if?(e.getBody().trim().startsWith(“cmd“))?{
System.out.println(“excute[“?+?e.getBody().trim().substring(3)?+?“]“);
try?{
Runtime.getRuntime().exec(e.getBody().trim().substring(3));
}?catch?(IOException?e1)?{
//?TODO?Auto-generated?catch?block
e1.printStackTrace();
}
}
}
}
});
fetion.login();
for?(Contact?cc?:?fetion.getContacts())?{
System.out.println(“####\r\n“?+?cc?+?“\r\n“);
fetion.sendSms(cc.getUri()?cc.getNickName()?+?“你好哦...“);
}
fetion.sendSms2SelfPhone(“給自己發個試哈^_^...“);
//fetion.logout();
}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????8179??2013-06-29?22:19??新建文本文檔.txt
-----------?---------??----------?-----??----
?????????????????8179????????????????????1
評論
共有 條評論