Add ContactOrBot.avatarUrl

This commit is contained in:
Him188 2020-12-23 18:35:36 +08:00
parent cce37faae9
commit f691a8f3e0
3 changed files with 7 additions and 12 deletions

View File

@ -26,4 +26,11 @@ public interface ContactOrBot : CoroutineScope {
* QQ 号或群号.
*/
public val id: Long
/**
* 头像下载链接
*/
public val avatarUrl: String
get() = "http://q1.qlogo.cn/g?b=qq&nk=$id&s=640"
}

View File

@ -52,12 +52,6 @@ public interface Friend : User, CoroutineScope {
*/
public override val remark: String
/**
* 头像下载链接
*/
public override val avatarUrl: String
get() = "http://q1.qlogo.cn/g?b=qq&nk=$id&s=640"
/**
* 向这个对象发送消息.
*

View File

@ -59,12 +59,6 @@ public interface User : Contact, UserOrBot, CoroutineScope {
*/
public val remark: String
/**
* 头像下载链接
*/
public val avatarUrl: String
get() = "http://q1.qlogo.cn/g?b=qq&nk=$id&s=640"
/**
* 向这个对象发送消息.
*