-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add until attach functionality to Presence & Channel #102
Add until attach functionality to Presence & Channel #102
Conversation
|
||
|
||
private static final String KEY_UNTIL_ATTACH = "untilAttach"; | ||
private static final String KEY_FROM_SERIAL = "from_serial"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use fromSerial
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI @gokhanbarisaker we changed all query string params from under_score case to camelCase a little while ago but did not roll it out everywhere, hence this comment...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
ac99c0b
to
634c188
Compare
BodyHandler<Message> bodyHandler = MessageSerializer.getMessageResponseHandler(options); | ||
return new PaginatedQuery<Message>(ably.http, basePath + "/history", HttpUtils.defaultAcceptHeaders(ably.options.useBinaryProtocol), params, bodyHandler).get(); | ||
return new PaginatedQuery<>(ably.http, basePath + "/history", HttpUtils.defaultAcceptHeaders(ably.options.useBinaryProtocol), params, bodyHandler).get(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is I am sure my lack of knowledge of Java syntax here, but why did we drop the Message
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is automatically using the generic passed down with BodyHandler
. Therefore, we don't need to explicitly specify the generic again.
This looks ok to me now. @mattheworiordan ? |
LGTM |
Add until attach functionality to Presence & Channel
Resolves: #36