com.messagebird.objects.conversations.ConversationWebhookCreateRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of messagebird-api Show documentation
Show all versions of messagebird-api Show documentation
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 java.util.List;
/**
* Request object used to create webhooks.
*/
public class ConversationWebhookCreateRequest extends ConversationWebhookBaseRequest{
private String channelId;
public ConversationWebhookCreateRequest(
final String channelId,
final String url,
final List events
) {
this.channelId = channelId;
this.url = url;
this.events = events;
}
@Override
protected String getRequestName() {
return "ConversationWebhookCreateRequest";
}
@Override
protected String getStringRepresentationOfExtraParameters() {
return "channelId='" + channelId;
}
public String getChannelId() {
return channelId;
}
}