package com.example.agentclient.models;

import com.google.gson.annotations.SerializedName;

/**
 * 执行状态响应模型
 */
public class ExecutionStatusResponse {
    private String status;
    private int progress = 0;
    
    @SerializedName("current_node")
    private CurrentNode currentNode;
    
    private String error;
    
    public String getStatus() {
        return status;
    }
    
    public void setStatus(String status) {
        this.status = status;
    }
    
    public int getProgress() {
        return progress;
    }
    
    public void setProgress(int progress) {
        this.progress = progress;
    }
    
    public CurrentNode getCurrentNode() {
        return currentNode;
    }
    
    public void setCurrentNode(CurrentNode currentNode) {
        this.currentNode = currentNode;
    }
    
    public String getError() {
        return error;
    }
    
    public void setError(String error) {
        this.error = error;
    }
    
    /**
     * 当前执行节点
     */
    public static class CurrentNode {
        @SerializedName("node_id")
        private String nodeId;
        
        @SerializedName("node_name")
        private String nodeName;
        
        @SerializedName("node_type")
        private String nodeType;
        
        public String getNodeId() {
            return nodeId;
        }
        
        public void setNodeId(String nodeId) {
            this.nodeId = nodeId;
        }
        
        public String getNodeName() {
            return nodeName;
        }
        
        public void setNodeName(String nodeName) {
            this.nodeName = nodeName;
        }
        
        public String getNodeType() {
            return nodeType;
        }
        
        public void setNodeType(String nodeType) {
            this.nodeType = nodeType;
        }
    }
}
