namespace Birdmap.BLL.Interfaces { [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.2.1.0 (Newtonsoft.Json v12.0.0.0)")] public partial class ListOfDevices : System.Collections.ObjectModel.Collection { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.2.1.0 (Newtonsoft.Json v12.0.0.0)")] public partial class Device { [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public System.Guid Id { get; set; } [Newtonsoft.Json.JsonProperty("status", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] public DeviceStatus Status { get; set; } [Newtonsoft.Json.JsonProperty("url", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Url { get; set; } [Newtonsoft.Json.JsonProperty("coordinates", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.Required] public Coordinates Coordinates { get; set; } = new Coordinates(); [Newtonsoft.Json.JsonProperty("sensors", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required] public ArrayofSensors Sensors { get; set; } = new ArrayofSensors(); private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.2.1.0 (Newtonsoft.Json v12.0.0.0)")] public partial class ArrayofSensors : System.Collections.ObjectModel.Collection { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.2.1.0 (Newtonsoft.Json v12.0.0.0)")] public partial class Sensor { [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public System.Guid Id { get; set; } [Newtonsoft.Json.JsonProperty("status", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] public SensorStatus Status { get; set; } private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.2.1.0 (Newtonsoft.Json v12.0.0.0)")] public partial class Coordinates { [Newtonsoft.Json.JsonProperty("latitude", Required = Newtonsoft.Json.Required.Always)] public double Latitude { get; set; } [Newtonsoft.Json.JsonProperty("longitude", Required = Newtonsoft.Json.Required.Always)] public double Longitude { get; set; } private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.2.1.0 (Newtonsoft.Json v12.0.0.0)")] public enum DeviceStatus { [System.Runtime.Serialization.EnumMember(Value = @"online")] Online = 0, [System.Runtime.Serialization.EnumMember(Value = @"error")] Error = 1, [System.Runtime.Serialization.EnumMember(Value = @"offline")] Offline = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.2.1.0 (Newtonsoft.Json v12.0.0.0)")] public enum SensorStatus { [System.Runtime.Serialization.EnumMember(Value = @"online")] Online = 0, [System.Runtime.Serialization.EnumMember(Value = @"unknown")] Unknown = 1, [System.Runtime.Serialization.EnumMember(Value = @"offline")] Offline = 2, } [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.8.2.0 (NJsonSchema v10.2.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ApiException : System.Exception { public int StatusCode { get; private set; } public string Response { get; private set; } public System.Collections.Generic.IReadOnlyDictionary> Headers { get; private set; } public ApiException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary> headers, System.Exception innerException) : base(message + "\n\nStatus: " + statusCode + "\nResponse: \n" + ((response == null) ? "(null)" : response.Substring(0, response.Length >= 512 ? 512 : response.Length)), innerException) { StatusCode = statusCode; Response = response; Headers = headers; } public override string ToString() { return string.Format("HTTP Response: \n\n{0}\n\n{1}", Response, base.ToString()); } } [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.8.2.0 (NJsonSchema v10.2.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ApiException : ApiException { public TResult Result { get; private set; } public ApiException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary> headers, TResult result, System.Exception innerException) : base(message, statusCode, response, headers, innerException) { Result = result; } } [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.8.2.0 (NJsonSchema v10.2.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial interface IDeviceService { /// Get all device info /// Array of devices /// A server side error occurred. System.Threading.Tasks.Task> GetallAsync(); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get all device info /// Array of devices /// A server side error occurred. System.Threading.Tasks.Task> GetallAsync(System.Threading.CancellationToken cancellationToken); /// Shut down all devices /// Message sent /// A server side error occurred. System.Threading.Tasks.Task OfflineallAsync(); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Shut down all devices /// Message sent /// A server side error occurred. System.Threading.Tasks.Task OfflineallAsync(System.Threading.CancellationToken cancellationToken); /// Bring all devices online /// Message sent /// A server side error occurred. System.Threading.Tasks.Task OnlineallAsync(); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Bring all devices online /// Message sent /// A server side error occurred. System.Threading.Tasks.Task OnlineallAsync(System.Threading.CancellationToken cancellationToken); /// Get all device info /// ID of device to query /// Information about a particular device /// A server side error occurred. System.Threading.Tasks.Task GetdeviceAsync(System.Guid deviceID); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get all device info /// ID of device to query /// Information about a particular device /// A server side error occurred. System.Threading.Tasks.Task GetdeviceAsync(System.Guid deviceID, System.Threading.CancellationToken cancellationToken); /// Shut down device /// ID of device to shut down /// Message sent /// A server side error occurred. System.Threading.Tasks.Task OfflinedeviceAsync(System.Guid deviceID); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Shut down device /// ID of device to shut down /// Message sent /// A server side error occurred. System.Threading.Tasks.Task OfflinedeviceAsync(System.Guid deviceID, System.Threading.CancellationToken cancellationToken); /// Bring device online /// ID of device to bring online /// Message sent /// A server side error occurred. System.Threading.Tasks.Task OnlinedeviceAsync(System.Guid deviceID); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Bring device online /// ID of device to bring online /// Message sent /// A server side error occurred. System.Threading.Tasks.Task OnlinedeviceAsync(System.Guid deviceID, System.Threading.CancellationToken cancellationToken); /// Get info about a particular device's sensor /// ID of device to query /// ID of sensor to query /// Information about a sensor /// A server side error occurred. System.Threading.Tasks.Task GetsensorAsync(System.Guid deviceID, System.Guid sensorID); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get info about a particular device's sensor /// ID of device to query /// ID of sensor to query /// Information about a sensor /// A server side error occurred. System.Threading.Tasks.Task GetsensorAsync(System.Guid deviceID, System.Guid sensorID, System.Threading.CancellationToken cancellationToken); /// Shut down sensor /// ID of device to query /// ID of sensor to query /// Message sent /// A server side error occurred. System.Threading.Tasks.Task OfflinesensorAsync(System.Guid deviceID, System.Guid sensorID); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Shut down sensor /// ID of device to query /// ID of sensor to query /// Message sent /// A server side error occurred. System.Threading.Tasks.Task OfflinesensorAsync(System.Guid deviceID, System.Guid sensorID, System.Threading.CancellationToken cancellationToken); /// Bring sensor online /// ID of device to query /// ID of sensor to query /// Message sent /// A server side error occurred. System.Threading.Tasks.Task OnlinesensorAsync(System.Guid deviceID, System.Guid sensorID); /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Bring sensor online /// ID of device to query /// ID of sensor to query /// Message sent /// A server side error occurred. System.Threading.Tasks.Task OnlinesensorAsync(System.Guid deviceID, System.Guid sensorID, System.Threading.CancellationToken cancellationToken); } }