Last active
May 18, 2021 19:12
-
-
Save snijsure/32a85cef2e5bbe84f0b0041fb75e7d97 to your computer and use it in GitHub Desktop.
ImageFileExtension
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
fun ImageFile.toAttachment(): Attachment { | |
return Attachment().apply { | |
fileName = imageName | |
updateTime = updateTime // No self-assignment warning | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment