/* Options: Date: 2024-11-21 11:55:51 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //MakePartial: True //MakeVirtual: True //MakeInternal: False //MakeDataContractsExtensible: False //AddNullableAnnotations: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //InitializeCollections: True //ExportValueTypes: False IncludeTypes: GeoDataCitiesQuery.* //ExcludeTypes: //AddNamespaces: //AddDefaultXmlNamespace: http://schemas.servicestack.net/types */ using System; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using ServiceStack; using ServiceStack.DataAnnotations; using System.Globalization; using ServiceStack.Data; using System.IO; using BokaMera.API.ServiceModel.Db; using BokaMera.API.ServiceModel.Dtos; namespace BokaMera.API.ServiceModel.Db { public partial class BaseModel { } public partial class City : BaseModel { [Ignore] public virtual double Longitude { get; set; } [Ignore] public virtual double Latitude { get; set; } [Required] public virtual string Name { get; set; } [Required] public virtual string Country { get; set; } public virtual string Iso2 { get; set; } [Required] public virtual string Admin { get; set; } public virtual string Capital { get; set; } public virtual int? Population { get; set; } public virtual int? PopulationProper { get; set; } public virtual DateTimeOffset? ModifiedDate { get; set; } [Required] public virtual Guid Id { get; set; } } } namespace BokaMera.API.ServiceModel.Dtos { [Route("/geodata/{CountryId}/cities/", "GET")] public partial class GeoDataCitiesQuery : QueryDb, IReturn> { /// ///Enter the country id you want to search cities. Example SE for Sweden. /// [ApiMember(Description="Enter the country id you want to search cities. Example SE for Sweden.", IsRequired=true, ParameterType="path")] public virtual string CountryId { get; set; } } public partial class GeoDataCitiesQueryResponse { public virtual Guid Id { get; set; } public virtual string City { get; set; } public virtual string Longitude { get; set; } public virtual string Latitude { get; set; } public virtual string Country { get; set; } public virtual string Iso2 { get; set; } public virtual string Admin { get; set; } public virtual string Capital { get; set; } public virtual int? Population { get; set; } public virtual int? PopulationProper { get; set; } } }