com.yukihirai0505.iFollower.responses.AccountData.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ifollower_2.11 Show documentation
Show all versions of ifollower_2.11 Show documentation
A Scala library for the Instagram Follower
The newest version!
package com.yukihirai0505.iFollower.responses
import play.api.libs.json.Json
import com.github.tototoshi.play.json.JsonNaming
case class FollowedBy(count: Long)
object FollowedBy {
implicit val FollowedByFormat = JsonNaming.snakecase(Json.format[FollowedBy])
}
case class ProfileUserData(id: String, followedBy: FollowedBy)
object ProfileUserData {
implicit val ProfileUserDataFormat = JsonNaming.snakecase(Json.format[ProfileUserData])
}
case class ProfilePage(user: ProfileUserData)
object ProfilePage {
implicit val ProfilePageFormat = JsonNaming.snakecase(Json.format[ProfilePage])
}
case class EntryData(ProfilePage: Seq[ProfilePage])
object EntryData {
implicit val EntryDataFormat = JsonNaming.snakecase(Json.format[EntryData])
}
case class AccountData(entryData: EntryData)
object AccountData {
implicit val AccountDataFormat = JsonNaming.snakecase(Json.format[AccountData])
}