Created
May 23, 2019 14:33
-
-
Save rdelrosario/f9fa576ee9e6f1acae8d385d5f8a0b28 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using Newtonsoft.Json; | |
namespace TrackingSample.Models | |
{ | |
public class GooglePlaceAutoCompletePrediction | |
{ | |
[JsonProperty("description")] | |
public string Description { get; set; } | |
[JsonProperty("id")] | |
public string Id { get; set; } | |
[JsonProperty("place_id")] | |
public string PlaceId { get; set; } | |
[JsonProperty("reference")] | |
public string Reference { get; set; } | |
[JsonProperty("structured_formatting")] | |
public StructuredFormatting StructuredFormatting { get; set; } | |
} | |
public class StructuredFormatting | |
{ | |
[JsonProperty("main_text")] | |
public string MainText { get; set; } | |
[JsonProperty("secondary_text")] | |
public string SecondaryText { get; set; } | |
} | |
public class GooglePlaceAutoCompleteResult | |
{ | |
[JsonProperty("status")] | |
public string Status { get; set; } | |
[JsonProperty("predictions")] | |
public List<GooglePlaceAutoCompletePrediction> AutoCompletePlaces { get; set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment