Skip to content

Instantly share code, notes, and snippets.

@Jian-Min-Huang
Last active May 19, 2021 09:29
Show Gist options
  • Save Jian-Min-Huang/b3a5be145caf42093e9357d059b810f3 to your computer and use it in GitHub Desktop.
Save Jian-Min-Huang/b3a5be145caf42093e9357d059b810f3 to your computer and use it in GitHub Desktop.
data class Response(
var code: String,
var data: Map<String, Any>,
var timestamp: Long,
var checksum: String
)
fun main() {
val response = Response("T001", mapOf("a" to 100), Date().time, "317d069fe45debda190c3f5822f16484")
val copy = response.copy(code = "T002")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment