Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

#1682 whatsAppCloudTextParameterTemplate - fix problem with spanish #1683

Conversation

asus007
Copy link
Contributor

@asus007 asus007 commented Jul 11, 2024

No description provided.

@@ -328,7 +328,7 @@ fun <T : Bus<T>> T.whatsAppCloudTextParameterTemplate(
typeParameter: CharSequence?,
textButton: CharSequence?
): TextParameter = TextParameter(
type = ParameterType.valueOf(translate(typeParameter).toString()),
type = ParameterType.valueOf((typeParameter).toString()),
Copy link
Member

Choose a reason for hiding this comment

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

Why not just take the ParameterType as argument to the method instead of going through the valueOf?

@Fabilin Fabilin mentioned this pull request Jul 18, 2024
charles_moulhaud added 2 commits August 20, 2024 14:25
…ParameterType in parameter instead of charSequence
…ParameterType in parameter instead of charSequence + add deprecated method
@vsct-jburet vsct-jburet added this to the 24.3.5 milestone Aug 20, 2024
@vsct-jburet vsct-jburet self-requested a review August 20, 2024 16:57
@vsct-jburet vsct-jburet merged commit 1f3bd4f into theopenconversationkit:master Aug 20, 2024
morgandiverrez pushed a commit that referenced this pull request Aug 26, 2024
…1683)

* #1682 whatsAppCloudTextParameterTemplate - fix problem with spanish

* #1682 whatsAppCloudTextParameterTemplate - use ParameterType in parameter instead of charSequence

* #1682 whatsAppCloudTextParameterTemplate - use ParameterType in parameter instead of charSequence + add deprecated method

---------

Co-authored-by: charles_moulhaud <charles_moulhaud@connect-tech.sncf>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants