package tech.easyflow.admin.dto.chatworkspace;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 工作台会话分页结果。
 */
public class ChatWorkspaceSessionPage implements Serializable {

    private Long total;
    private Long pageNumber;
    private Long pageSize;
    private List<ChatWorkspaceSessionView> records = new ArrayList<>();

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public Long getPageNumber() {
        return pageNumber;
    }

    public void setPageNumber(Long pageNumber) {
        this.pageNumber = pageNumber;
    }

    public Long getPageSize() {
        return pageSize;
    }

    public void setPageSize(Long pageSize) {
        this.pageSize = pageSize;
    }

    public List<ChatWorkspaceSessionView> getRecords() {
        return records;
    }

    public void setRecords(List<ChatWorkspaceSessionView> records) {
        this.records = records == null ? new ArrayList<>() : records;
    }
}
