package tech.easyflow.chatlog.domain.dto;

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

public class PublicChatSessionRestoreResult implements Serializable {

    private boolean sessionExists;
    private String conversationId;
    private ChatSessionSummary session;
    private List<ChatMessageRecord> messages = new ArrayList<>();

    public boolean isSessionExists() {
        return sessionExists;
    }

    public void setSessionExists(boolean sessionExists) {
        this.sessionExists = sessionExists;
    }

    public String getConversationId() {
        return conversationId;
    }

    public void setConversationId(String conversationId) {
        this.conversationId = conversationId;
    }

    public ChatSessionSummary getSession() {
        return session;
    }

    public void setSession(ChatSessionSummary session) {
        this.session = session;
    }

    public List<ChatMessageRecord> getMessages() {
        return messages;
    }

    public void setMessages(List<ChatMessageRecord> messages) {
        this.messages = messages == null ? new ArrayList<>() : messages;
    }
}
