Commit 1af13913 authored by Him188's avatar Him188

Add FlashImage.invoke(imageId: String)

parent cb535bb8
......@@ -26,6 +26,12 @@ sealed class FlashImage : MessageContent {
else -> throw IllegalArgumentException("不支持的图片类型(Please use GroupImage or FriendImage)")
}
}
@JvmStatic
@JvmName("from")
operator fun invoke(imageId: String): FlashImage {
return invoke(Image(imageId))
}
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment