Class ContactRecommend
-
- All Implemented Interfaces:
-
net.mamoe.mirai.message.code.CodableMessage,net.mamoe.mirai.message.data.ConstrainSingle,net.mamoe.mirai.message.data.Message,net.mamoe.mirai.message.data.MessageContent,net.mamoe.mirai.message.data.SingleMessage
@Serializable() public final class ContactRecommend implements MessageContent, ConstrainSingle, CodableMessage推荐联系人
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumContactRecommend.ContactType推荐联系人类型
public classContactRecommend.Key
-
Field Summary
Fields Modifier and Type Field Description public final static StringSERIAL_NAMEprivate final MessageKey<ContactRecommend>keyprivate final ContactRecommend.ContactTypecontactTypeprivate final Longidpublic final static ContactRecommend.KeyKey
-
Constructor Summary
Constructors Constructor Description ContactRecommend(ContactRecommend.ContactType contactType, Long id)
-
Method Summary
Modifier and Type Method Description MessageKey<ContactRecommend>getKey()final ContactRecommend.ContactTypegetContactType()联系人类型 final LonggetId()StringtoString()StringcontentToString()UnitappendMiraiCodeTo(StringBuilder builder)-
Methods inherited from class net.mamoe.mirai.message.data.MessageContent
accept -
Methods inherited from class net.mamoe.mirai.message.data.Message
acceptChildren, contentEquals, contentEquals, contentEquals, followedBy, plus, plus, plus, plus, plus, plus, plus, plus, plusIterableString -
Methods inherited from class net.mamoe.mirai.message.code.CodableMessage
serializeToMiraiCode -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ContactRecommend
ContactRecommend(ContactRecommend.ContactType contactType, Long id)
-
-
Method Detail
-
getKey
MessageKey<ContactRecommend> getKey()
-
getContactType
final ContactRecommend.ContactType getContactType()
联系人类型
-
contentToString
String contentToString()
-
appendMiraiCodeTo
Unit appendMiraiCodeTo(StringBuilder builder)
-
-
-
-