//----------------------------------------------------------------------- // // Copyright (c) 2016 Mapbox. All rights reserved. // //----------------------------------------------------------------------- namespace Mapbox.Geocoding { using System; using System.Collections.Generic; using Mapbox.Json; /// Base geocode response. #if !WINDOWS_UWP //http://stackoverflow.com/a/12903628 [Serializable] #endif public abstract class GeocodeResponse { /// /// Gets or sets the type. /// /// The type. [JsonProperty("type", Order = 0)] public string Type { get; set; } /// /// Gets or sets the features. /// /// The features. [JsonProperty("features", Order = 2)] public List Features { get; set; } /// /// Gets or sets the attribution. /// /// The attribution. [JsonProperty("attribution", Order = 3)] public string Attribution { get; set; } } /// /// Reverse Geocode response. /// #if !WINDOWS_UWP //http://stackoverflow.com/a/12903628 [Serializable] #endif public class ReverseGeocodeResponse : GeocodeResponse { /// /// Gets or sets the query. /// /// The query. [JsonProperty("query", Order = 1)] public List Query { get; set; } } /// /// Forward geocode response. /// #if !WINDOWS_UWP //http://stackoverflow.com/a/12903628 [Serializable] #endif public class ForwardGeocodeResponse : GeocodeResponse { /// /// Gets or sets the query. /// /// The query. [JsonProperty("query", Order = 1)] public List Query { get; set; } } }