weixin4j-qy: 新增了会话API测试类
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.foxinmy.weixin4j.qy.model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
@@ -36,14 +37,18 @@ public class ChatInfo implements Serializable {
|
||||
@JSONField(name = "userlist")
|
||||
private List<String> members;
|
||||
|
||||
public ChatInfo() {
|
||||
protected ChatInfo() {
|
||||
|
||||
}
|
||||
|
||||
public ChatInfo(String chatId, String name, String owner) {
|
||||
public ChatInfo(String chatId) {
|
||||
this.chatId = chatId;
|
||||
}
|
||||
|
||||
public ChatInfo(String name, String owner, String... members) {
|
||||
this.name = name;
|
||||
this.owner = owner;
|
||||
this.members = Arrays.asList(members);
|
||||
}
|
||||
|
||||
public String getChatId() {
|
||||
@@ -66,6 +71,10 @@ public class ChatInfo implements Serializable {
|
||||
this.members = members;
|
||||
}
|
||||
|
||||
public void setMembers(String... members) {
|
||||
this.members = Arrays.asList(members);
|
||||
}
|
||||
|
||||
// ---------- setter 应该全部去掉
|
||||
|
||||
public void setChatId(String chatId) {
|
||||
|
||||
@@ -35,7 +35,7 @@ public class Party implements Serializable {
|
||||
*/
|
||||
private int order;
|
||||
|
||||
public Party() {
|
||||
protected Party() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ public class Tag implements Serializable {
|
||||
@JSONField(name = "tagname")
|
||||
private String name;
|
||||
|
||||
public Tag() {
|
||||
protected Tag() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ public class User implements Serializable {
|
||||
*/
|
||||
private List<NameValue> extattr;
|
||||
|
||||
public User() {
|
||||
protected User() {
|
||||
}
|
||||
|
||||
public User(String userId, String name) {
|
||||
|
||||
Reference in New Issue
Block a user