Skip to content

Commit

Permalink
added type property to Address Component
Browse files Browse the repository at this point in the history
added type property to Address Component
  • Loading branch information
ivan-shelest-swi committed Jun 5, 2018
1 parent 8d39638 commit ba8c24c
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion OpenCage.Geocode/ResponseObjects/AddressComponent.cs
Original file line number Diff line number Diff line change
@@ -1,25 +1,41 @@
namespace OpenCage.Geocode
using System.Runtime.Serialization;

namespace OpenCage.Geocode
{
[DataContract]
public class AddressComponent
{
[DataMember(Name = "_type")]
public string Type { get; set; }

[DataMember(Name = "Country")]
public string Country { get; set; }

[DataMember(Name = "StateDistrict")]
public string StateDistrict { get; set; }

[DataMember(Name = "CountryCode")]
public string CountryCode { get; set; }

[DataMember(Name = "State")]
public string State { get; set; }

[DataMember(Name = "Suburb")]
public string Suburb { get; set; }

[DataMember(Name = "City")]
public string City { get; set; }

[DataMember(Name = "BusStop")]
public string BusStop { get; set; }

[DataMember(Name = "County")]
public string County { get; set; }

[DataMember(Name = "Road")]
public string Road { get; set; }

[DataMember(Name = "Postcode")]
public string Postcode { get; set; }
}
}

0 comments on commit ba8c24c

Please sign in to comment.