This repository has been archived by the owner on Mar 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9d04796
commit 5d38d30
Showing
192 changed files
with
3,132 additions
and
2,227 deletions.
There are no files selected for viewing
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
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
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
14 changes: 7 additions & 7 deletions
14
src/main/scala/com/danielasfregola/twitter4s/entities/Configuration.scala
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
package com.danielasfregola.twitter4s.entities | ||
|
||
final case class Configuration(dm_text_character_limit: Long, | ||
characters_reserved_per_media: Int, | ||
max_media_per_upload: Int, | ||
non_username_paths: Seq[String] = Seq.empty, | ||
photo_size_limit: Long, | ||
photo_sizes: Map[String, Size] = Map.empty, | ||
short_url_length: Int, | ||
short_url_length_https: Int) | ||
characters_reserved_per_media: Int, | ||
max_media_per_upload: Int, | ||
non_username_paths: Seq[String] = Seq.empty, | ||
photo_size_limit: Long, | ||
photo_sizes: Map[String, Size] = Map.empty, | ||
short_url_length: Int, | ||
short_url_length_https: Int) |
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
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
23 changes: 11 additions & 12 deletions
23
src/main/scala/com/danielasfregola/twitter4s/entities/GeoPlace.scala
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
package com.danielasfregola.twitter4s.entities | ||
|
||
final case class GeoPlace(attributes: Map[String, String], | ||
bounding_box: Area, | ||
country: String, | ||
country_code: String, | ||
full_name: String, | ||
id: String, | ||
name: String, | ||
place_type: String, | ||
url: String, | ||
contained_within: Seq[GeoPlace], | ||
centroid: Seq[Double] = Seq.empty, | ||
polylines: Seq[String] = Seq.empty) | ||
|
||
bounding_box: Area, | ||
country: String, | ||
country_code: String, | ||
full_name: String, | ||
id: String, | ||
name: String, | ||
place_type: String, | ||
url: String, | ||
contained_within: Seq[GeoPlace], | ||
centroid: Seq[Double] = Seq.empty, | ||
polylines: Seq[String] = Seq.empty) |
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
12 changes: 6 additions & 6 deletions
12
src/main/scala/com/danielasfregola/twitter4s/entities/Location.scala
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
package com.danielasfregola.twitter4s.entities | ||
|
||
final case class Location(country: String, | ||
countryCode: Option[String], | ||
name: String, | ||
parentid: Long, | ||
placeType: PlaceType, | ||
url: String, | ||
woeid: Long) | ||
countryCode: Option[String], | ||
name: String, | ||
parentid: Long, | ||
placeType: PlaceType, | ||
url: String, | ||
woeid: Long) |
8 changes: 4 additions & 4 deletions
8
src/main/scala/com/danielasfregola/twitter4s/entities/LocationTrends.scala
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
package com.danielasfregola.twitter4s.entities | ||
|
||
final case class LocationTrends(as_of: String, // TODO - convert to Date? Different date format here... | ||
created_at: String, // TODO - convert to Date? Different date format here... | ||
locations: Seq[LocationOverview] = Seq.empty, | ||
trends: Seq[Trend] = Seq.empty) | ||
created_at: String, // TODO - convert to Date? Different date format here... | ||
locations: Seq[LocationOverview] = Seq.empty, | ||
trends: Seq[Trend] = Seq.empty) | ||
|
||
final case class LocationOverview(name: String, woeid: Long) | ||
|
||
// TODO - support 'promoted_content' and 'events' | ||
final case class Trend(name: String, query: String, url: String,tweet_volume:Option[Long]) | ||
final case class Trend(name: String, query: String, url: String, tweet_volume: Option[Long]) |
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
8 changes: 4 additions & 4 deletions
8
src/main/scala/com/danielasfregola/twitter4s/entities/LookupRelationship.scala
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package com.danielasfregola.twitter4s.entities | ||
|
||
final case class LookupRelationship(connections: Seq[String] = Seq.empty, | ||
id: Long, | ||
id_str: String, | ||
name: String, | ||
screen_name: String) | ||
id: Long, | ||
id_str: String, | ||
name: String, | ||
screen_name: String) |
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
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
24 changes: 12 additions & 12 deletions
24
src/main/scala/com/danielasfregola/twitter4s/entities/Media.scala
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
package com.danielasfregola.twitter4s.entities | ||
|
||
final case class Media(display_url: String, | ||
expanded_url: String, | ||
id: Long, | ||
id_str: String, | ||
indices: Seq[Int], | ||
media_url: String, | ||
media_url_https: String, | ||
sizes: Map[String, Size], | ||
source_status_id: Option[Long], | ||
source_status_id_str: Option[String], | ||
`type`: String, | ||
url: String, | ||
video_info: Option[VideoInfo]) | ||
expanded_url: String, | ||
id: Long, | ||
id_str: String, | ||
indices: Seq[Int], | ||
media_url: String, | ||
media_url_https: String, | ||
sizes: Map[String, Size], | ||
source_status_id: Option[Long], | ||
source_status_id_str: Option[String], | ||
`type`: String, | ||
url: String, | ||
video_info: Option[VideoInfo]) |
Oops, something went wrong.