Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Mirai
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Mirai
Commits
f0e8deab
Commit
f0e8deab
authored
May 02, 2020
by
Him188
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused files
parent
6b5cbc3d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
103 deletions
+2
-103
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/data/AddFriendResult.kt
...commonMain/kotlin/net.mamoe.mirai/data/AddFriendResult.kt
+0
-55
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/data/FriendNameRemark.kt
...ommonMain/kotlin/net.mamoe.mirai/data/FriendNameRemark.kt
+0
-18
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/data/PreviousNameList.kt
...ommonMain/kotlin/net.mamoe.mirai/data/PreviousNameList.kt
+0
-26
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/data/Profile.kt
...ore/src/commonMain/kotlin/net.mamoe.mirai/data/Profile.kt
+2
-4
No files found.
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/data/AddFriendResult.kt
deleted
100644 → 0
View file @
6b5cbc3d
/*
* Copyright 2020 Mamoe Technologies and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
*
* https://github.com/mamoe/mirai/blob/master/LICENSE
*/
@
file
:
JvmMultifileClass
@
file
:
JvmName
(
"BotHelperKt"
)
@
file
:
Suppress
(
"EXPERIMENTAL_API_USAGE"
)
package
net.mamoe.mirai.data
import
net.mamoe.mirai.utils.MiraiExperimentalAPI
import
kotlin.jvm.JvmMultifileClass
import
kotlin.jvm.JvmName
@MiraiExperimentalAPI
@Suppress
(
"ClassName"
)
sealed
class
AddFriendResult
{
abstract
class
DONE
internal
constructor
()
:
AddFriendResult
()
{
override
fun
toString
():
String
=
"AddFriendResult(Done)"
}
/**
* 对方拒绝添加好友
*/
object
REJECTED
:
AddFriendResult
()
{
override
fun
toString
():
String
=
"AddFriendResult(Rejected)"
}
/**
* 这个人已经是好友
*/
object
ALREADY_ADDED
:
DONE
()
{
override
fun
toString
():
String
=
"AddFriendResult(AlreadyAdded)"
}
/**
* 等待对方同意
*/
object
WAITING_FOR_APPROVAL
:
DONE
()
{
override
fun
toString
():
String
=
"AddFriendResult(WaitingForApproval)"
}
/**
* 成功添加 (只在对方设置为允许任何人直接添加为好友时才会获得这个结果)
*/
object
ADDED
:
DONE
()
{
override
fun
toString
():
String
=
"AddFriendResult(Added)"
}
}
\ No newline at end of file
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/data/FriendNameRemark.kt
deleted
100644 → 0
View file @
6b5cbc3d
/*
* Copyright 2020 Mamoe Technologies and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
*
* https://github.com/mamoe/mirai/blob/master/LICENSE
*/
package
net.mamoe.mirai.data
import
net.mamoe.mirai.utils.MiraiExperimentalAPI
/**
* 给好友设置的备注
*/
@MiraiExperimentalAPI
inline
class
FriendNameRemark
(
val
value
:
String
)
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/data/PreviousNameList.kt
deleted
100644 → 0
View file @
6b5cbc3d
/*
* Copyright 2020 Mamoe Technologies and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
*
* https://github.com/mamoe/mirai/blob/master/LICENSE
*/
package
net.mamoe.mirai.data
import
net.mamoe.mirai.utils.MiraiExperimentalAPI
/**
* 曾用名列表
*
* 曾用名可能是:
* - 昵称
* - 共同群内的群名片
*/
@MiraiExperimentalAPI
class
PreviousNameList
(
list
:
List
<
String
>
)
:
List
<
String
>
by
list
{
override
fun
toString
():
String
=
this
.
joinToString
(
prefix
=
"PreviousNameList("
,
postfix
=
")"
,
separator
=
", "
)
}
\ No newline at end of file
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/data/Profile.kt
View file @
f0e8deab
...
...
@@ -11,9 +11,7 @@
package
net.mamoe.mirai.data
import
io.ktor.util.date.GMTDate
import
net.mamoe.mirai.utils.MiraiExperimentalAPI
/*
/**
* 个人资料
*/
...
...
@@ -61,4 +59,4 @@ enum class Gender(val value: Byte) {
SECRET(0),
MALE(1),
FEMALE(2)
}
\ No newline at end of file
}*/
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment