34 lines
874 B
Java
34 lines
874 B
Java
package com.diyidan.game.network.model;
|
|
|
|
import com.diyidan.game.entity.impl.DydPlayerModel;
|
|
import com.diyidan.game.util.Utils;
|
|
import java.util.List;
|
|
|
|
public class ListJsonDataModel extends BaseModel {
|
|
private static final long serialVersionUID = 4037399126099105967L;
|
|
private List<FriendModel> friendList;
|
|
private List<DydPlayerModel> userList;
|
|
|
|
public List<DydPlayerModel> getUserList() {
|
|
return this.userList;
|
|
}
|
|
|
|
public void setUserList(List<DydPlayerModel> list) {
|
|
this.userList = list;
|
|
}
|
|
|
|
private int size() {
|
|
if (Utils.isListEmpty(this.userList)) {
|
|
return 0;
|
|
}
|
|
return 0 + this.userList.size();
|
|
}
|
|
|
|
public List<FriendModel> getFriendList() {
|
|
return this.friendList;
|
|
}
|
|
|
|
public void setFriendList(List<FriendModel> list) {
|
|
this.friendList = list;
|
|
}
|
|
} |