All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.messagebird.objects.conversations.ConversationHsmLanguage Maven / Gradle / Ivy

Go to download

The MessageBird API provides a API to the MessageBird SMS and voicemail services located at https://www.messagebird.com.

The newest version!
package com.messagebird.objects.conversations;

/**
 * Language options used for localization. Code can be in language or
 * language_locale formats (e.g. "en" and "en_US"). The policy indicates
 * whether the message is delivered exactly in the locale requested
 * (deterministic). If the fallback policy is used, WhatsApp will attempt to
 * deliver the HSM in the user's device language. If that is not found, the
 * fallback is used.
 */
public class ConversationHsmLanguage {

    private String code;
    private ConversationHsmLanguagePolicy policy;

    public ConversationHsmLanguage(final String code, final ConversationHsmLanguagePolicy policy) {
        this.code = code;
        this.policy = policy;
    }

    public ConversationHsmLanguage() {
        //
    }

    public String getCode() {
        return code;
    }

    public void setCode(final String code) {
        this.code = code;
    }

    public ConversationHsmLanguagePolicy getPolicy() {
        return policy;
    }

    public void setPolicy(final ConversationHsmLanguagePolicy policy) {
        this.policy = policy;
    }

    @Override
    public String toString() {
        return "ConversationHsmLanguage{" +
                "code='" + code + '\'' +
                ", policy=" + policy +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy