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

com.messagebird.objects.conversations.ConversationWebhookStatus 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;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * Indicates whether a conversation webhook is enabled or disabled.
 */
public enum ConversationWebhookStatus {
    ENABLED("enabled"),
    DISABLED("disabled");

    private final String status;

    ConversationWebhookStatus(final String status) {
        this.status = status;
    }

    @JsonCreator
    public static ConversationWebhookStatus forValue(final String value) {
        for (ConversationWebhookStatus conversationWebhookStatus : ConversationWebhookStatus.values()) {
            if (conversationWebhookStatus.getStatus().equals(value)) {
                return conversationWebhookStatus;
            }
        }

        return null;
    }

    @JsonValue
    public String toJson() {
        return getStatus();
    }

    public String getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return getStatus();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy