Skip to content

Instantly share code, notes, and snippets.

@rdelrosario
Created May 23, 2019 14:33
Show Gist options
  • Save rdelrosario/f9fa576ee9e6f1acae8d385d5f8a0b28 to your computer and use it in GitHub Desktop.
Save rdelrosario/f9fa576ee9e6f1acae8d385d5f8a0b28 to your computer and use it in GitHub Desktop.
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