-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: group vote protocol #2416
Draft
cssxsh
wants to merge
18
commits into
mamoe:dev
Choose a base branch
from
cssxsh:feat_vote
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Him188 @Karlatemp 我打算仿照 Announcements 设计API |
我觉得可以 |
Him188
reviewed
Feb 3, 2023
mirai-core-api/src/commonMain/kotlin/contact/vote/VoteParametersBuilder.kt
Outdated
Show resolved
Hide resolved
mirai-core-api/src/commonMain/kotlin/contact/vote/VoteParametersBuilder.kt
Outdated
Show resolved
Hide resolved
mirai-core-api/src/commonMain/kotlin/contact/vote/VoteParameters.kt
Outdated
Show resolved
Hide resolved
mirai-core-api/src/commonMain/kotlin/contact/vote/OfflineVote.kt
Outdated
Show resolved
Hide resolved
mirai-core-api/src/commonMain/kotlin/contact/vote/OfflineVote.kt
Outdated
Show resolved
Hide resolved
mirai-core-api/src/commonMain/kotlin/contact/vote/OfflineVote.kt
Outdated
Show resolved
Hide resolved
mirai-core-api/src/commonMain/kotlin/contact/vote/OfflineVote.kt
Outdated
Show resolved
Hide resolved
Him188
requested changes
Mar 1, 2023
mirai-core-api/src/commonMain/kotlin/contact/vote/VoteParameters.kt
Outdated
Show resolved
Hide resolved
mirai-core-api/src/commonMain/kotlin/contact/vote/VoteParameters.kt
Outdated
Show resolved
Hide resolved
Comment on lines
18
to
33
internal class OnlineVoteImpl( | ||
override val group: Group, | ||
override val senderId: Long, | ||
override val sender: NormalMember?, | ||
override val fid: String, | ||
override val publicationTime: Long, | ||
override val endTime: Long, | ||
override var title: String, | ||
override var options: List<String>, | ||
override var select: List<Int>, | ||
override var records: List<OnlineVoteRecord>, | ||
override val parameters: VoteParameters | ||
) : OnlineVote { | ||
|
||
override val url: String = "https://client.qun.qq.com/qqweb/m/qun/vote/detail.html?fid=${fid}&groupuin=${group.id}" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
此 class 需要是 immutable, 不应支持 update 操作
# Conflicts: # mirai-core-mock/src/internal/contact/MockGroupImpl.kt
|
我现在测试必定 502, 等几天再说 |
@Karlatemp @cssxsh 看看 public API? |
群投票功能已经被下线了 所以( |
确实,测试的时候看到变成了腾讯投票 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
close #1901