Skip to content

Add preference center apis#20

Merged
arnaud-roland merged 8 commits into
devfrom
feature/add-preference-center-apis
Apr 21, 2026
Merged

Add preference center apis#20
arnaud-roland merged 8 commits into
devfrom
feature/add-preference-center-apis

Conversation

@arnaud-roland

Copy link
Copy Markdown
Contributor

Plugin

  • Updated Batch to 3.3

Profile

  • Added setTopicPreferences(List<String>? topics) to BatchProfileAttributeEditor class to set or reset the profile topic preferences.
  • Added addToTopicPreferences(List<String> topics) to BatchProfileAttributeEditor class to add topics to the profile topic preferences.
  • Added removeFromTopicPreferences(List<String> topics) to BatchProfileAttributeEditor class to remove topics from the profile topic preferences.

PS: Also added code formatting github action.

bool _ensureValidTopicPreferences(List<String> topics) {
if (topics.length > _maxTopicPreferencesLength) {
BatchLogger.public(
"BatchProfileAttributeEditor - Topic preferences cannot contain more than 25 items. " +

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

avoir une concatenation de chaine pour que "25" soit dynamique si on change la valeur par la suite ? tout comme 300 plus bas ?

@arnaud-roland arnaud-roland merged commit 3efbdee into dev Apr 21, 2026
3 of 4 checks passed
@arnaud-roland arnaud-roland deleted the feature/add-preference-center-apis branch April 21, 2026 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants