Created
May 18, 2021 19:14
-
-
Save snijsure/f3553bcdf65e1ce48bc03eb260494da0 to your computer and use it in GitHub Desktop.
KotlinAttachment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data class KotlinAttachment ( | |
var fileName: String = "default-kotlin-file-name", | |
var updateTime: String = "1970/1/1" | |
) | |
fun ImageFile.toKotlinAttachment(): KotlinAttachment { | |
return KotlinAttachment().apply { | |
fileName = imageName | |
updateTime = updateTime // self-assignment warning | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment