﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace eidss.openapi.contract
{
    /// <summary>
    /// Farm
    /// </summary>
    public class FarmListItem
    {
        /// <summary>
        /// A unique number of the record
        /// </summary>
        public long RecordID { get; set; }

        /// <summary>
        /// A number that is assigned to the individual farm and automatically generated by EIDSS. The number appears when the farm information is saved first time. 
        /// </summary>
        public string FarmID { get; set; }

        /// <summary>
        /// Owner First name
        /// </summary>
        public string OwnerFirstName { get; set; }

        /// <summary>
        /// Owner Second name
        /// </summary>
        public string OwnerMiddleName { get; set; }

        /// <summary>
        /// Owner Last name
        /// </summary>
        public string OwnerLastName { get; set; }

        /// <summary>
        /// Name of the farm, if one is known
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// Denotes the size of the farming operation.  User selects from Backyard or village household (&lt;50), Commercial small scale (50-500), Commercial medium scale (500-5000), Commercial large scale (>5000)<br/>
        /// Reference type: Farm Ownership Type<br/>
        /// Reference number: 19000065
        /// </summary>
        public Reference Type { get; set; }

        /// <summary>
        /// Region<br/>
        /// Reference type: Region<br/>
        /// Reference number: 19000002
        /// </summary>
        public GisReference Region { get; set; }

        /// <summary>
        /// Rayon<br/>
        /// Reference type: Rayon<br/>
        /// Reference number: 19000003
        /// </summary>
        public GisReference Rayon { get; set; }

        /// <summary>
        /// Settlement<br/>
        /// Reference type: Settlement<br/>
        /// Reference number: 19000004
        /// </summary>
        public GisReference Settlement { get; set; }
    }
}