|
| 1 | +using System; |
| 2 | +using System.ComponentModel.DataAnnotations; |
| 3 | +using Nesteo.Server.Data.Enums; |
| 4 | + |
| 5 | +namespace Nesteo.Server.Models |
| 6 | +{ |
| 7 | + public class InspectionExportRow |
| 8 | + { |
| 9 | + /// <summary> |
| 10 | + /// Inspection-ID |
| 11 | + /// </summary> |
| 12 | + public int? Id { get; set; } |
| 13 | + |
| 14 | + /// <summary> |
| 15 | + /// Id of the inspected nesting box |
| 16 | + /// </summary> |
| 17 | + [Required] |
| 18 | + public string NestingBoxId { get; set; } |
| 19 | + |
| 20 | + /// <summary> |
| 21 | + /// Date and time of the inspection |
| 22 | + /// </summary> |
| 23 | + [Required] |
| 24 | + public DateTime? InspectionDate { get; set; } |
| 25 | + |
| 26 | + /// <summary> |
| 27 | + /// The user who inspected the nesting box (if known) |
| 28 | + /// </summary> |
| 29 | + public string InspectedByUserName { get; set; } |
| 30 | + |
| 31 | + /// <summary> |
| 32 | + /// Whether the nesting box has been cleaned during the inspection |
| 33 | + /// </summary> |
| 34 | + [Required] |
| 35 | + public bool? HasBeenCleaned { get; set; } |
| 36 | + |
| 37 | + /// <summary> |
| 38 | + /// The condition in which the nesting box has been found |
| 39 | + /// </summary> |
| 40 | + [Required] |
| 41 | + [EnumDataType(typeof(Condition))] |
| 42 | + public Condition? Condition { get; set; } |
| 43 | + |
| 44 | + /// <summary> |
| 45 | + /// Whether the nesting box has been repaired during the inspection |
| 46 | + /// </summary> |
| 47 | + [Required] |
| 48 | + public bool? JustRepaired { get; set; } |
| 49 | + |
| 50 | + /// <summary> |
| 51 | + /// Was the nesting box occupied by any bird (if known)? |
| 52 | + /// </summary> |
| 53 | + public bool? Occupied { get; set; } |
| 54 | + |
| 55 | + /// <summary> |
| 56 | + /// Were any eggs in there? |
| 57 | + /// </summary> |
| 58 | + [Required] |
| 59 | + public bool? ContainsEggs { get; set; } |
| 60 | + |
| 61 | + /// <summary> |
| 62 | + /// Count of eggs (or null when unknown) |
| 63 | + /// </summary> |
| 64 | + [Range(0, 100)] |
| 65 | + public int? EggCount { get; set; } |
| 66 | + |
| 67 | + /// <summary> |
| 68 | + /// Number of slipped chicks (or null when unknown) |
| 69 | + /// </summary> |
| 70 | + [Range(0, 100)] |
| 71 | + public int? ChickCount { get; set; } |
| 72 | + |
| 73 | + /// <summary> |
| 74 | + /// Number of ringed chicks |
| 75 | + /// </summary> |
| 76 | + [Required] |
| 77 | + [Range(0, 100)] |
| 78 | + public int? RingedChickCount { get; set; } |
| 79 | + |
| 80 | + /// <summary> |
| 81 | + /// Age of the chicks (or null when unknown) |
| 82 | + /// </summary> |
| 83 | + [Range(0, 100)] |
| 84 | + public int? AgeInDays { get; set; } |
| 85 | + |
| 86 | + /// <summary> |
| 87 | + /// Information about the presence of the female parent bird |
| 88 | + /// </summary> |
| 89 | + [Required] |
| 90 | + [EnumDataType(typeof(ParentBirdDiscovery))] |
| 91 | + public ParentBirdDiscovery? FemaleParentBirdDiscovery { get; set; } |
| 92 | + |
| 93 | + /// <summary> |
| 94 | + /// Information about the presence of the male parent bird |
| 95 | + /// </summary> |
| 96 | + [Required] |
| 97 | + [EnumDataType(typeof(ParentBirdDiscovery))] |
| 98 | + public ParentBirdDiscovery? MaleParentBirdDiscovery { get; set; } |
| 99 | + |
| 100 | + /// <summary> |
| 101 | + /// The bird species |
| 102 | + /// </summary> |
| 103 | + [Required] |
| 104 | + public string SpeciesName { get; set; } |
| 105 | + |
| 106 | + /// <summary> |
| 107 | + /// Image file name |
| 108 | + /// </summary> |
| 109 | + public string ImageFilename { get; set; } |
| 110 | + |
| 111 | + /// <summary> |
| 112 | + /// Comment |
| 113 | + /// </summary> |
| 114 | + public string Comment { get; set; } |
| 115 | + |
| 116 | + /// <summary> |
| 117 | + /// The time this data entry has last been updated |
| 118 | + /// </summary> |
| 119 | + public DateTime? LastUpdated { get; set; } |
| 120 | + } |
| 121 | +} |
0 commit comments