示例#1
0
 public ActionResult <DoubleResponse> CloudCover(
     [DefaultValue(0)][SwaggerSchema(Strings.DeviceIDDescription, Format = "uint32")][Range(0, 4294967295)] uint DeviceNumber,
     [SwaggerSchema(Description = Strings.ClientIDDescription, Format = "uint32")][Range(0, 4294967295)] uint ClientID         = 0,
     [SwaggerSchema(Strings.ClientTransactionIDDescription, Format = "uint32")][Range(0, 4294967295)] uint ClientTransactionID = 0)
 {
     return(ProcessRequest(() => DeviceManager.GetObservingConditions(DeviceNumber).CloudCover, DeviceManager.ServerTransactionID, ClientID, ClientTransactionID));
 }
示例#2
0
 public ActionResult <StringResponse> SensorDescription(
     [DefaultValue(0)][SwaggerSchema(Strings.DeviceIDDescription, Format = "uint32")][Range(0, 4294967295)] uint DeviceNumber,
     [Required][SwaggerSchema("Name of the sensor whose description is required")] string SensorName,
     [SwaggerSchema(Description = Strings.ClientIDDescription, Format = "uint32")][Range(0, 4294967295)] uint ClientID         = 0,
     [SwaggerSchema(Strings.ClientTransactionIDDescription, Format = "uint32")][Range(0, 4294967295)] uint ClientTransactionID = 0)
 {
     return(ProcessRequest(() => DeviceManager.GetObservingConditions(DeviceNumber).SensorDescription(SensorName), DeviceManager.ServerTransactionID, ClientID, ClientTransactionID));
 }
示例#3
0
 public ActionResult <Response> AveragePeriod(
     [DefaultValue(0)][SwaggerSchema(Strings.DeviceIDDescription, Format = "uint32")][Range(0, 4294967295)] uint DeviceNumber,
     [Required][DefaultValue(1)][FromForm][SwaggerSchema("Time period(hours) over which to average sensor readings")] double AveragePeriod,
     [FromForm][SwaggerSchema(Description = Strings.ClientIDDescription, Format = "uint32")][Range(0, 4294967295)] uint ClientID         = 0,
     [FromForm][SwaggerSchema(Strings.ClientTransactionIDDescription, Format = "uint32")][Range(0, 4294967295)] uint ClientTransactionID = 0)
 {
     return(ProcessRequest(() => { DeviceManager.GetObservingConditions(DeviceNumber).AveragePeriod = AveragePeriod; }, DeviceManager.ServerTransactionID, ClientID, ClientTransactionID));
 }
示例#4
0
 public override IAscomDevice GetDevice(uint DeviceNumber)
 {
     return(DeviceManager.GetObservingConditions(DeviceNumber));
 }