using System;
using Newtonsoft.Json;
namespace RevitHttpControl.Models
{
///
/// 打开文件请求参数
///
public class OpenFileRequest
{
///
/// 外部执行ID(可选,用于批处理回调)
///
[JsonProperty("execution_id")]
public string ExecutionId { get; set; }
///
/// 文件路径
///
public string FilePath { get; set; }
///
/// 是否分离模式打开
///
public bool Detached { get; set; } = true;
}
///
/// 打开文件响应
///
public class OpenFileResponse
{
///
/// 操作结果
///
public string Result { get; set; }
///
/// 文件名
///
public string FileName { get; set; }
///
/// 文件路径
///
public string FilePath { get; set; }
}
///
/// 关闭文件响应
///
public class CloseFileResponse
{
///
/// 操作结果
///
public string Result { get; set; }
///
/// 关闭前的文件名
///
public string FileName { get; set; }
///
/// 关闭前的文件路径
///
public string FilePath { get; set; }
}
}