| 123456789101112131415161718192021222324252627282930313233343536 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
-
- namespace FSRemotePowerSwitch {
-
-
- // JSON für FSRemotePowerSwitch
- // {
- // "sender": "FSRemotePowerSwitch_PC" or "FSRemotePowerSwitch_AN",
- // "cmd": "Version" or "Status_Relay" or "Power_Relay" or "Status_Cam" or "Power_Cam" or "Azimut_Cam" or "Zero_Cam",
- // "val": "V0.0.1" or "On"/"Off" or "0"
- // }
-
- class Message {
-
- public static string CMD_SENDER_PC = "FSRemotePowerSwitch_PC";
- public static string CMD_SENDER_AN = "FSRemotePowerSwitch_AN";
- public static string CMD_VER = "Version";
- public static string CMD_STATUS_RELAY = "Status_Relay";
- public static string CMD_POWER_RELAY = "Power_Relay";
- public static string CMD_STATUS_CAM = "Status_Cam";
- public static string CMD_POWER_CAM = "Power_Cam";
- public static string CMD_AZIMUT_CAM = "Azimut_Cam";
- public static string CMD_ACT_AZIMUT_CAM = "Actual_Azimut_Cam";
- public static string CMD_ZERO_CAM = "Zero_Cam";
- public static string CMD_VAL_ON = "On";
- public static string CMD_VAL_OFF = "Off";
-
- public string Sender { get; set; }
- public string Cmd { get; set; }
- public string Val { get; set; }
- }
- }
|