Skip to content

Instantly share code, notes, and snippets.

@PatilShreyas
Created July 28, 2020 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PatilShreyas/48105dc35dde136a9e818548bc769770 to your computer and use it in GitHub Desktop.
Save PatilShreyas/48105dc35dde136a9e818548bc769770 to your computer and use it in GitHub Desktop.
data class CellLocation(
val status: String,
val message: String?,
val accuracy: Int? = null,
val address: String? = null,
@Json(name = "lat")
val latitude: Double? = null,
@Json(name = "lon")
val longitude: Double? = null
) {
fun isSuccess() = status == "ok"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment