| 123456789101112131415161718192021 |
- using Newtonsoft.Json;
- namespace ivf_tl_Operate.Debug
- {
- /// <summary>
- /// acquire/command/release/heartbeat 的统一响应 DTO(对齐 control 端 DebugCommandResult 的 JSON)。
- /// acquire 成功时 Result=sessionId 字符串;cultivating/embryoCount 仅 acquire 回带(供调试前培养态确认框)。
- /// </summary>
- public class AcquireResult
- {
- [JsonProperty("ok")] public bool Ok { get; set; }
- [JsonProperty("result")] public object Result { get; set; }
- [JsonProperty("error")] public string Error { get; set; }
- [JsonProperty("code")] public string Code { get; set; }
- [JsonProperty("cultivating")] public bool Cultivating { get; set; }
- [JsonProperty("embryoCount")] public int EmbryoCount { get; set; }
- /// <summary>acquire 时 control 把 sessionId 放在 result 字段。</summary>
- public string SessionId => Result?.ToString();
- }
- }
|