using System.ComponentModel.DataAnnotations; using Newtonsoft.Json.Linq; namespace FarmmapsApi.Models { public class FileRequest { /// /// Code of the parent /// /// 41971e7ea8a446069a817e66b608dcae public string ParentCode { get; set; } /// /// Geometry meta data /// /// {"type": "Point","coordinates": [5.27, 52.10]} public JObject Geometry { get; set; } /// /// Name of the file to upload /// /// MyFile.tiff [Required] public string Name { get; set; } /// /// Size of the file to upload /// /// 67351 [Required] public long Size { get; set; } /// /// If a chunked upload, the size of a single chunk /// /// 1048576 public long ChunkSize { get; set; } /// /// Optional data for the item coupled with the file /// public JObject Data { get; set; } } }