164 lines
6.6 KiB
C#
164 lines
6.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Birdmap.BLL.Interfaces
|
|
{
|
|
|
|
[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.8.2.0 (NJsonSchema v10.2.1.0 (Newtonsoft.Json v12.0.0.0))")]
|
|
public partial interface IInputService
|
|
{
|
|
/// <summary>Get input object by ID</summary>
|
|
/// <param name="tagID">ID of input object file</param>
|
|
/// <returns>input object</returns>
|
|
/// <exception cref="ApiException">A server side error occurred.</exception>
|
|
System.Threading.Tasks.Task<InputSingeResponse> GetInputAsync(System.Guid tagID);
|
|
|
|
/// <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
|
|
/// <summary>Get input object by ID</summary>
|
|
/// <param name="tagID">ID of input object file</param>
|
|
/// <returns>input object</returns>
|
|
/// <exception cref="ApiException">A server side error occurred.</exception>
|
|
System.Threading.Tasks.Task<InputSingeResponse> GetInputAsync(System.Guid tagID, System.Threading.CancellationToken cancellationToken);
|
|
|
|
}
|
|
|
|
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.2.1.0 (Newtonsoft.Json v12.0.0.0)")]
|
|
public partial class InputSingeResponse
|
|
{
|
|
[Newtonsoft.Json.JsonProperty("status", Required = Newtonsoft.Json.Required.Always)]
|
|
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
|
|
public string Status { get; set; }
|
|
|
|
[Newtonsoft.Json.JsonProperty("message", Required = Newtonsoft.Json.Required.Always)]
|
|
[System.ComponentModel.DataAnnotations.Required]
|
|
public InputObject Message { get; set; } = new InputObject();
|
|
|
|
private System.Collections.Generic.IDictionary<string, object> _additionalProperties = new System.Collections.Generic.Dictionary<string, object>();
|
|
|
|
[Newtonsoft.Json.JsonExtensionData]
|
|
public System.Collections.Generic.IDictionary<string, object> 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 InputResponse : System.Collections.ObjectModel.Collection<InputObject>
|
|
{
|
|
|
|
}
|
|
|
|
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.2.1.0 (Newtonsoft.Json v12.0.0.0)")]
|
|
public partial class InputObject
|
|
{
|
|
[Newtonsoft.Json.JsonProperty("tag", Required = Newtonsoft.Json.Required.Always)]
|
|
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
|
|
public System.Guid Tag { get; set; }
|
|
|
|
[Newtonsoft.Json.JsonProperty("date", Required = Newtonsoft.Json.Required.Always)]
|
|
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
|
|
[Newtonsoft.Json.JsonConverter(typeof(DateFormatConverter))]
|
|
public System.DateTimeOffset Date { get; set; }
|
|
|
|
[Newtonsoft.Json.JsonProperty("device_id", Required = Newtonsoft.Json.Required.Always)]
|
|
public Guid Device_id { get; set; }
|
|
|
|
private System.Collections.Generic.IDictionary<string, object> _additionalProperties = new System.Collections.Generic.Dictionary<string, object>();
|
|
|
|
[Newtonsoft.Json.JsonExtensionData]
|
|
public System.Collections.Generic.IDictionary<string, object> 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 ApiResponse
|
|
{
|
|
[Newtonsoft.Json.JsonProperty("status", Required = Newtonsoft.Json.Required.Always)]
|
|
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
|
|
public string Status { get; set; }
|
|
|
|
[Newtonsoft.Json.JsonProperty("message", Required = Newtonsoft.Json.Required.Always)]
|
|
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
|
|
public string Message { get; set; }
|
|
|
|
private System.Collections.Generic.IDictionary<string, object> _additionalProperties = new System.Collections.Generic.Dictionary<string, object>();
|
|
|
|
[Newtonsoft.Json.JsonExtensionData]
|
|
public System.Collections.Generic.IDictionary<string, object> 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 Description
|
|
{
|
|
[Newtonsoft.Json.JsonProperty("deviceid", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
|
|
public string Deviceid { get; set; }
|
|
|
|
[Newtonsoft.Json.JsonProperty("date", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
|
|
[Newtonsoft.Json.JsonConverter(typeof(DateFormatConverter))]
|
|
public System.DateTimeOffset Date { get; set; }
|
|
|
|
private System.Collections.Generic.IDictionary<string, object> _additionalProperties = new System.Collections.Generic.Dictionary<string, object>();
|
|
|
|
[Newtonsoft.Json.JsonExtensionData]
|
|
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
|
|
{
|
|
get { return _additionalProperties; }
|
|
set { _additionalProperties = value; }
|
|
}
|
|
|
|
|
|
}
|
|
|
|
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.2.1.0 (Newtonsoft.Json v12.0.0.0)")]
|
|
internal class DateFormatConverter : Newtonsoft.Json.Converters.IsoDateTimeConverter
|
|
{
|
|
public DateFormatConverter()
|
|
{
|
|
DateTimeFormat = "yyyy-MM-dd";
|
|
}
|
|
}
|
|
|
|
[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.8.2.0 (NJsonSchema v10.2.1.0 (Newtonsoft.Json v12.0.0.0))")]
|
|
public partial class FileParameter
|
|
{
|
|
public FileParameter(System.IO.Stream data)
|
|
: this(data, null, null)
|
|
{
|
|
}
|
|
|
|
public FileParameter(System.IO.Stream data, string fileName)
|
|
: this(data, fileName, null)
|
|
{
|
|
}
|
|
|
|
public FileParameter(System.IO.Stream data, string fileName, string contentType)
|
|
{
|
|
Data = data;
|
|
FileName = fileName;
|
|
ContentType = contentType;
|
|
}
|
|
|
|
public System.IO.Stream Data { get; private set; }
|
|
|
|
public string FileName { get; private set; }
|
|
|
|
public string ContentType { get; private set; }
|
|
}
|
|
|
|
}
|