TellmeRevitPluging/Models/FileModels.cs

70 lines
1.6 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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