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: handle official user-moderation-notifications pubsub topic #332

Merged
merged 8 commits into from
May 30, 2021

Conversation

iProdigy
Copy link
Member

@iProdigy iProdigy commented May 8, 2021

Prerequisites for Code Changes

  • This pull request follows the code style of the project
  • I have tested this feature

Changes Proposed

  • Implement official user-moderation-notifications.<user-id>.<channel-id> pubsub topic

Additional Information

Depends on #331

@iProdigy iProdigy requested review from PhilippHeuer and removed request for PhilippHeuer May 25, 2021 00:10
@iProdigy iProdigy marked this pull request as draft May 25, 2021 00:10
@iProdigy iProdigy marked this pull request as ready for review May 25, 2021 05:58
@iProdigy iProdigy changed the title feat: handle unofficial user-moderation-notifications pubsub topic feat: handle official user-moderation-notifications pubsub topic May 25, 2021
@@ -35,15 +63,37 @@
@Setter(AccessLevel.PRIVATE)
public static class FragmentFlags {
private Map<String, Integer> topics;

public Map<AutomodContentClassification.Category, Integer> getParsedTopics() {
return TypeConvert.convertValue(topics, new TypeReference<EnumMap<AutomodContentClassification.Category, Integer>>() {});
Copy link
Member Author

Choose a reason for hiding this comment

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

technically not the most performant solution, but this supports @JsonAlias

@iProdigy iProdigy merged commit 9a03b92 into develop May 30, 2021
@iProdigy iProdigy deleted the feature/pubsub-user-mod-notifs branch May 30, 2021 04:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants