Skip to content
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/implement message poll #212

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

LeadcodeDev
Copy link
Member

No description provided.

@LeadcodeDev LeadcodeDev added the enhancement New feature or request label Oct 28, 2024
@LeadcodeDev LeadcodeDev self-assigned this Oct 28, 2024
export 'package:mineral/src/domains/events/contracts/server/server_presence_update_event.dart';
export 'package:mineral/src/domains/events/contracts/server/server_role_select_event.dart';
export 'package:mineral/src/domains/events/contracts/server/server_roles_create_event.dart';
export 'package:mineral/src/domains/events/contracts/server/server_roles_remove_event.dart';
export 'package:mineral/src/domains/events/contracts/server/server_roles_update_event.dart';
export 'package:mineral/src/domains/events/contracts/server/server_stickers_update_event.dart';
export 'package:mineral/src/domains/events/contracts/server/server_text_select_event.dart';
export 'package:mineral/src/domains/events/contracts/server/server_update_event.dart';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove server update event export ?

@override
String? customId;

FutureOr<void> handle(PrivateMessage message, User user, int answer);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't give directly PollAnswer object instead of int ?

@override
String? customId;

FutureOr<void> handle(PrivateMessage message, User user, int answer);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

@override
String? customId;

FutureOr<void> handle(ServerMessage message, Member member, int answer);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

@override
String? customId;

FutureOr<void> handle(ServerMessage message, Member member, int answer);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

@@ -98,6 +102,10 @@ enum Event implements EnhancedEnum, EventType {
['ThreadChannel thread', 'Server server', 'Member member']),
serverThreadListSync(ServerThreadListSyncEvent,
['List<ThreadChannel> threads', 'Server server']),
serverPollVoteAdd(ServerPollVoteAddEvent,
['ServerMessage message', 'Member member', 'String answer']),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You give as a "String answer", but you give really as int

@@ -107,6 +107,8 @@ final class Shard implements ShardContract {
onceEventQueue.add(jsonDecode(message.originalContent));
}

print(json.encode((message.content as ShardMessage).payload));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove print debug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Code Review
Development

Successfully merging this pull request may close these issues.

2 participants