-
Notifications
You must be signed in to change notification settings - Fork 18
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
Events API Send-RSVP support #175
Events API Send-RSVP support #175
Conversation
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.
Left a couple of comments. Also if you can rename the files to match the casing of the class (i.e. instead of SendRSVPQueryParams it should be SendRsvpQueryParams). Thanks!
/** | ||
* Enum representing the allowed RSVP status values. | ||
*/ | ||
enum class RsvpStatus(val value: String) { | ||
YES("yes"), | ||
NO("no"), | ||
MAYBE("maybe"); | ||
|
||
override fun toString(): String { | ||
return value | ||
} | ||
} |
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.
Can we move this to its own file?
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.
👍
* @return The send-rsvp response | ||
*/ | ||
@Throws(NylasApiError::class, NylasSdkTimeoutError::class) | ||
fun sendRsvp(identifier: String, requestBody: SendRsvpRequest, queryParams: SendRsvpQueryParams): Response<Event> { |
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.
I believe the response type should be a model that represents a send rsvp response. According to the docs it should be an object like:
{
request_id: string
}
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.
👍
@mrashed-dev Thanks for the review! The changes are made based on the request. The |
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.
🚀 Thank you @yifanplanet !
# Changelog ### Added * Added support for event send RSVP (#175) ### Changed * Fixed int type being serialized to double sometimes (#177) * Fixed `Auth.exchangeCodeForToken` always returning 401 (#178) * Fixed error when sending message or updating draft (#179) # License <!-- Your PR comment must contain the following line for us to merge the PR. --> I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.
License
I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.