Skip to content

Add schedule message endpoints#240

Merged
higityan merged 5 commits intomasterfrom
add_schedule_message_endpoints
Aug 12, 2021
Merged

Add schedule message endpoints#240
higityan merged 5 commits intomasterfrom
add_schedule_message_endpoints

Conversation

@higityan
Copy link
Copy Markdown
Contributor

@higityan higityan commented Aug 9, 2021

This pr adds schedule message endpoints and unit test for them.

  1. chat.scheduleMessage
  2. chat.deleteScheduledMessage
  3. chat.scheduledMessages.list
    adds long in ReflectionBasedFieldPresenceTest's numeric parameter type checking.

Copy link
Copy Markdown
Contributor

@zmarushchak-hs zmarushchak-hs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few nits. Please feel free to merge after they are addressed.


String getScheduledMessageId();

@JsonProperty("as_user")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this? Looks like the argument looks the same.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it's fully the same, I'll update and fix it. Thank you.


@Immutable
@HubSpotStyle
@JsonNaming(SnakeCaseStrategy.class)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right there is no need for that, because there is no response metadata in this endpoint's response. I'll update and fix it.

… ChatDeleteScheduledMessageParamsIF interface, delete unnecessary @JsonNaming(SnakeCaseStrategy.class) from ChatScheduledMessagesListParamsIF interface.
@higityan higityan merged commit a4ba828 into master Aug 12, 2021
@higityan higityan deleted the add_schedule_message_endpoints branch August 12, 2021 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants