mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-24 06:42:38 +08:00
Fix unresolved functions
This commit is contained in:
parent
5983ba4b24
commit
4d0ac137ee
@ -1,12 +1,7 @@
|
||||
package net.mamoe.mirai.network.protocol.tim.packet.event
|
||||
|
||||
import kotlinx.io.core.Input
|
||||
import net.mamoe.mirai.contact.Contact
|
||||
import net.mamoe.mirai.message.*
|
||||
import net.mamoe.mirai.utils.InternalAPI
|
||||
import java.io.File
|
||||
import java.io.InputStream
|
||||
import java.net.URL
|
||||
|
||||
/**
|
||||
* 平台相关扩展
|
||||
@ -14,26 +9,26 @@ import java.net.URL
|
||||
@UseExperimental(InternalAPI::class)
|
||||
actual abstract class MessagePacket<TSubject : Contact> : MessagePacketBase<TSubject>() {
|
||||
// suspend inline fun uploadImage(image: Bitmap): Image = subject.uploadImage(image)
|
||||
suspend inline fun uploadImage(image: URL): Image = subject.uploadImage(image)
|
||||
suspend inline fun uploadImage(image: Input): Image = subject.uploadImage(image)
|
||||
suspend inline fun uploadImage(image: InputStream): Image = subject.uploadImage(image)
|
||||
suspend inline fun uploadImage(image: File): Image = subject.uploadImage(image)
|
||||
//suspend inline fun uploadImage(image: URL): Image = subject.uploadImage(image)
|
||||
//suspend inline fun uploadImage(image: Input): Image = subject.uploadImage(image)
|
||||
//suspend inline fun uploadImage(image: InputStream): Image = subject.uploadImage(image)
|
||||
//suspend inline fun uploadImage(image: File): Image = subject.uploadImage(image)
|
||||
|
||||
// suspend inline fun sendImage(image: Bitmap) = subject.sendImage(image)
|
||||
suspend inline fun sendImage(image: URL) = subject.sendImage(image)
|
||||
suspend inline fun sendImage(image: Input) = subject.sendImage(image)
|
||||
suspend inline fun sendImage(image: InputStream) = subject.sendImage(image)
|
||||
suspend inline fun sendImage(image: File) = subject.sendImage(image)
|
||||
//// suspend inline fun sendImage(image: Bitmap) = subject.sendImage(image)
|
||||
//suspend inline fun sendImage(image: URL) = subject.sendImage(image)
|
||||
//suspend inline fun sendImage(image: Input) = subject.sendImage(image)
|
||||
//suspend inline fun sendImage(image: InputStream) = subject.sendImage(image)
|
||||
//suspend inline fun sendImage(image: File) = subject.sendImage(image)
|
||||
|
||||
// suspend inline fun Bitmap.upload(): Image = upload(subject)
|
||||
suspend inline fun URL.uploadAsImage(): Image = uploadAsImage(subject)
|
||||
suspend inline fun Input.uploadAsImage(): Image = uploadAsImage(subject)
|
||||
suspend inline fun InputStream.uploadAsImage(): Image = uploadAsImage(subject)
|
||||
suspend inline fun File.uploadAsImage(): Image = uploadAsImage(subject)
|
||||
//// suspend inline fun Bitmap.upload(): Image = upload(subject)
|
||||
//suspend inline fun URL.uploadAsImage(): Image = uploadAsImage(subject)
|
||||
//suspend inline fun Input.uploadAsImage(): Image = uploadAsImage(subject)
|
||||
//suspend inline fun InputStream.uploadAsImage(): Image = uploadAsImage(subject)
|
||||
//suspend inline fun File.uploadAsImage(): Image = uploadAsImage(subject)
|
||||
|
||||
// suspend inline fun Bitmap.send() = sendTo(subject)
|
||||
suspend inline fun URL.sendAsImage() = sendAsImageTo(subject)
|
||||
suspend inline fun Input.sendAsImage() = sendAsImageTo(subject)
|
||||
suspend inline fun InputStream.sendAsImage() = sendAsImageTo(subject)
|
||||
suspend inline fun File.sendAsImage() = sendAsImageTo(subject)
|
||||
//// suspend inline fun Bitmap.send() = sendTo(subject)
|
||||
//suspend inline fun URL.sendAsImage() = sendAsImageTo(subject)
|
||||
//suspend inline fun Input.sendAsImage() = sendAsImageTo(subject)
|
||||
//suspend inline fun InputStream.sendAsImage() = sendAsImageTo(subject)
|
||||
//suspend inline fun File.sendAsImage() = sendAsImageTo(subject)
|
||||
}
|
Loading…
Reference in New Issue
Block a user