Skip to content

Commit

Permalink
更新示例程序
Browse files Browse the repository at this point in the history
  • Loading branch information
yaphone committed May 4, 2017
1 parent 71344aa commit 050b366
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
Binary file added lib/itchat4j.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions src/itchat4jtest/demo/demo1/SimpleDemo.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,9 @@ public String viedoMsgHandle(JSONObject msg) {
return "视频保存成功";
}

@Override
public String nameCardMsgHandle(JSONObject arg0) {
return "收到名片消息";
}

}
5 changes: 5 additions & 0 deletions src/itchat4jtest/demo/demo2/TulingRobot.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,9 @@ public static void main(String[] args) {
wechat.start();
}

@Override
public String nameCardMsgHandle(JSONObject arg0) {
return "收到名片消息";
}

}
5 changes: 5 additions & 0 deletions src/itchat4jtest/demo/linux/LinuxSimpleDemo.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,9 @@ public static void main(String[] args) {
Wechat wechat = new Wechat(msgHandler, "/home/itchat4j/demo/itchat4j/login");
wechat.start();
}

@Override
public String nameCardMsgHandle(JSONObject arg0) {
return "收到名片消息";
}
}
5 changes: 5 additions & 0 deletions src/itchat4jtest/demo/windows/WindowsSimpleDemo.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,9 @@ public static void main(String[] args) {
Wechat wechat = new Wechat(msgHandler, qrPath);
wechat.start();
}

@Override
public String nameCardMsgHandle(JSONObject arg0) {
return "收到名片消息";
}
}

0 comments on commit 050b366

Please sign in to comment.