Skip to content

Commit 5103e5e

Browse files
author
Dragos Manolescu
committed
Extracted the domain objects into separate namespace
1 parent f8f025b commit 5103e5e

File tree

3 files changed

+36
-2
lines changed

3 files changed

+36
-2
lines changed

project/plugins.sbt

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.1.0")
2-
31
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.1.0")
42

53
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.8.4")
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package com.microWorkflow.jsonScalaPerftest.domain
2+
3+
case class Aspect(rating: Int, _type: String)
4+
case class Review(aspects: Seq[Aspect], author_name: String, author_url: Option[String], text: String, time: Long)
5+
case class Photo(height: Int, width: Int, html_attributions: Seq[String], photo_reference: String)
6+
case class When(day: Int, time: String)
7+
case class Period(open: When, close: When)
8+
case class OpeningHours(open_now: Boolean, periods: Option[Seq[Period]])
9+
case class Location(lat: BigDecimal, lng: BigDecimal)
10+
case class Geometry(location: Location)
11+
case class AddressComponent(long_name: String, short_name: String, types: Seq[String])
12+
case class Place( address_components: Seq[AddressComponent]
13+
, formatted_address: Option[String]
14+
, formatted_phone_number: Option[String]
15+
, geometry: Geometry
16+
, icon: Option[String]
17+
, id: String
18+
, name: String
19+
, international_phone_number: Option[String]
20+
, opening_hours: Option[OpeningHours]
21+
, photos: Option[Seq[Photo]]
22+
, reference: String
23+
, reviews: Option[Seq[Review]]
24+
)
25+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package com.microWorkflow.jsonScalaPerftest.domain
2+
3+
case class Url(indices: Array[Int], url: String)
4+
5+
case class HashTag(indices: Array[Int], text:String)
6+
7+
case class UserMention(indices: Array[Int], name: String)
8+
9+
case class Entities(hashtags: Array[HashTag], urls:Array[Url], user_mentions:Array[UserMention])
10+
11+
case class Tweet(id_str: String, text: String, entities: Entities)

0 commit comments

Comments
 (0)