All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.codacy.client.bitbucket.v2.User.scala Maven / Gradle / Ivy

There is a newer version: 19.0.7
Show newest version
package com.codacy.client.bitbucket.v2

import play.api.libs.functional.syntax._
import play.api.libs.json._

case class User(uuid: String, display_name: String, nickname: Option[String], avatarUrl: Option[String])

object User {
  // format: off
  implicit val reader: Reads[User] = (
      (__ \ "uuid").read[String] and
      (__ \ "display_name").read[String] and
      (__ \ "nickname").readNullable[String] and
      (__ \ "links" \ "avatar" \ "href").readNullable[String]
    )(User.apply _)
  // format: on
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy