Files
XplorePlane/XP.Hardware.RaySource.Comet.Messages/Responses/RaySourceResponse.cs
T

30 lines
893 B
C#
Raw 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.
namespace XP.Hardware.RaySource.Comet.Messages.Responses
{
/// <summary>
/// 射线源响应抽象基类
/// 所有从 Host 进程返回主进程的响应均继承此类
/// </summary>
public abstract class RaySourceResponse
{
/// <summary>
/// 操作是否成功
/// </summary>
public bool Success { get; set; }
/// <summary>
/// 错误消息(成功时为 null
/// </summary>
public string ErrorMessage { get; set; }
/// <summary>
/// 是否为主动推送消息(区分命令响应和主动推送)
/// </summary>
public bool IsPush { get; set; }
/// <summary>
/// 推送类型标识(StatusChanged、XRayStateChanged、ErrorOccurred、ConnectionStateChanged、Log
/// </summary>
public string PushType { get; set; }
}
}