HubSpot / slack-client

An asynchronous HTTP client for Slack's web API
Apache License 2.0
114 stars 53 forks source link

Add topic field to ConversationIF #349

Open McrsftHater opened 3 months ago

McrsftHater commented 3 months ago

A follow-up to this issue: #205

There is a "topic" field missing in ConversationIF

Suggestion

Add to ConversationIF:

@JsonProperty("topic")
Optional<Topic> getTopic();

Add TopicIF interface:

@HubSpotStyle
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
public interface TopicIF {
    @JsonProperty("value")
    Optional<String> getValue();
    @JsonProperty("creator")
    Optional<String> getCreator();
    @JsonProperty("last_set")
    Optional<Long> getLastSet();
}

P.S. There are more fields missing but my project require only this one.