
com.hubspot.slack.client.methods.params.channels.FindRepliesParamsIF Maven / Gradle / Ivy
package com.hubspot.slack.client.methods.params.channels;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.hubspot.immutables.style.HubSpotStyle;
import com.hubspot.slack.client.models.ChannelType;
import org.immutables.value.Value.Derived;
import org.immutables.value.Value.Immutable;
@Immutable
@HubSpotStyle
public interface FindRepliesParamsIF extends ReplyQueryParams {
@JsonProperty("channel")
String getChannelId();
@JsonIgnore
@Derived
default ChannelType getChannelType() {
if (getChannelId().toLowerCase().startsWith("g")) {
return ChannelType.GROUP;
}
return ChannelType.CHANNEL;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy