Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 108 additions & 0 deletions oAuthTwitterWrapper/JsonTypes/Place.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
namespace oAuthTwitterWrapper.JsonTypes
{
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

public class Place
{

//"id":"778909dfad43f3d6",
//"url":"https:\/\/api.twitter.com\/1.1\/geo\/id\/778909dfad43f3d6.json",
//"place_type":"city",
//"name":"Huddersfield",
//"full_name":"Huddersfield, England",
//"country_code":"GB",
//"country":"United Kingdom",
//"contained_within":
//"bounding_box":{
// "type":"Polygon",
// "coordinates":[
// [
// [
// -1.896927,
// 53.609424
// ],
// [
// -1.726589,
// 53.609424
// ],
// [
// -1.726589,
// 53.685361
// ],
// [
// -1.896927,
// 53.685361
// ]
// ]
// ]
// },
// "attributes":{

// }
// },

[JsonProperty("id")]
public string Id { get; set; }

[JsonProperty("url")]
public string Url { get; set; }

[JsonProperty("place_type")]
public string PlaceType { get; set; }

[JsonProperty("name")]
public string Name { get; set; }

[JsonProperty("full_name")]
public string FullName { get; set; }

[JsonProperty("country_code")]
public string CountryCode { get; set; }

[JsonProperty("country")]
public string Country { get; set; }

[JsonProperty("contained_within")]
public object ContainedWithin { get; set; }

[JsonProperty("bounding_box")]
public object BoundingBox { get; set; }

}

public class BoundingBox
{
// "type":"Polygon",
// "coordinates":[
// [
// [
// -1.896927,
// 53.609424
// ],
// [
// -1.726589,
// 53.609424
// ],
// [
// -1.726589,
// 53.685361
// ],
// [
// -1.896927,
// 53.685361
// ]
// ]
// ]
// },
// "attributes":{
// }

[JsonProperty("type")]
public string Type { get; set; }

[JsonProperty("coordinates")]
public JArray Coordinates { get; set; }
}

}
93 changes: 45 additions & 48 deletions oAuthTwitterWrapper/JsonTypes/TimeLine.cs
Original file line number Diff line number Diff line change
@@ -1,79 +1,76 @@
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace OAuthTwitterWrapper.JsonTypes
namespace OAuthTwitterWrapper.JsonTypes
{
using Newtonsoft.Json;
using oAuthTwitterWrapper.JsonTypes;

public class TimeLine
{

[JsonProperty("created_at")]
public string CreatedAt { get; set; }

[JsonProperty("id")]
public string Id { get; set; }
[JsonProperty("id")]
public string Id { get; set; }

[JsonProperty("id_str")]
public string IdStr { get; set; }
[JsonProperty("id_str")]
public string IdStr { get; set; }

[JsonProperty("text")]
public string Text { get; set; }
[JsonProperty("text")]
public string Text { get; set; }

[JsonProperty("source")]
public string Source { get; set; }
[JsonProperty("source")]
public string Source { get; set; }

[JsonProperty("truncated")]
public bool Truncated { get; set; }
[JsonProperty("truncated")]
public bool Truncated { get; set; }

[JsonProperty("in_reply_to_status_id")]
public string InReplyToStatusId { get; set; }
[JsonProperty("in_reply_to_status_id")]
public string InReplyToStatusId { get; set; }

[JsonProperty("in_reply_to_status_id_str")]
public string InReplyToStatusIdStr { get; set; }
[JsonProperty("in_reply_to_status_id_str")]
public string InReplyToStatusIdStr { get; set; }

[JsonProperty("in_reply_to_user_id")]
public string InReplyToUserId { get; set; }
[JsonProperty("in_reply_to_user_id")]
public string InReplyToUserId { get; set; }

[JsonProperty("in_reply_to_user_id_str")]
public string InReplyToUserIdStr { get; set; }
[JsonProperty("in_reply_to_user_id_str")]
public string InReplyToUserIdStr { get; set; }

[JsonProperty("in_reply_to_screen_name")]
public string InReplyToScreenName { get; set; }
[JsonProperty("in_reply_to_screen_name")]
public string InReplyToScreenName { get; set; }

[JsonProperty("user")]
public User User { get; set; }
[JsonProperty("user")]
public User User { get; set; }

[JsonProperty("geo")]
public string Geo { get; set; }
[JsonProperty("geo")]
public string Geo { get; set; }

[JsonProperty("coordinates")]
public string Coordinates { get; set; }
[JsonProperty("coordinates")]
public string Coordinates { get; set; }

[JsonProperty("place")]
public string Place { get; set; }
[JsonProperty("place")]
public Place Place { get; set; }

[JsonProperty("contributors")]
public string Contributors { get; set; }
[JsonProperty("contributors")]
public string Contributors { get; set; }

[JsonProperty("retweet_count")]
public int RetweetCount { get; set; }
[JsonProperty("retweet_count")]
public int RetweetCount { get; set; }

[JsonProperty("favorite_count")]
public int FavoriteCount { get; set; }
[JsonProperty("favorite_count")]
public int FavoriteCount { get; set; }

[JsonProperty("entities")]
public Entities Entities { get; set; }
[JsonProperty("entities")]
public Entities Entities { get; set; }

[JsonProperty("favorited")]
public bool Favorited { get; set; }
[JsonProperty("favorited")]
public bool Favorited { get; set; }

[JsonProperty("retweeted")]
public bool Retweeted { get; set; }
[JsonProperty("retweeted")]
public bool Retweeted { get; set; }

[JsonProperty("lang")]
public string Lang { get; set; }
[JsonProperty("lang")]
public string Lang { get; set; }
}

}