/**
* 发送震屏
*/
public void nudge(String uri){
ChatDialogProxy proxy = null;
Buddy buddy = client.getFetionStore().getBuddyByUri(uri);
int state = buddy.getPresence().getValue();
if(state==Presence.OFFLINE){
println("你不能给不在线的好友发送震屏。");
prompt();
return;
}
try {
proxy = this.client.getChatDialogProxyFactory().create(buddy);
if(proxy.getState()==DialogState.CREATED){
proxy.openDialog();
}
} catch (Exception e) {
println("建立对话失败!!");
return;
}
proxy.sendNudgeState(new ActionEventListener() {
@Override
public void fireEevent(ActionEvent event) {
if(event.getEventType()==ActionEventType.SUCCESS){
println("发送震屏成功。");
}else{