-
Notifications
You must be signed in to change notification settings - Fork 35
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 Lambda support for Skygear Data Type #237
Conversation
The value serializer provides serialization outside the context of a record. It uses include serializing lambda parameters and return values.
b08047a
to
bc81286
Compare
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 like the idea of TypedLambdaResponseHandler
and I can use LambdaResponseHandler
if I want to keep the original behavior :)
@Override | ||
public void onSuccess(JSONObject result) { | ||
try { | ||
this.onLambdaSuccess((T)ValueSerializer.deserialize(result)); |
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.
The result here is the full response payload, I think we should remove the key of "result". Now that we can assign different generic instead of hashmap only?
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.
oh really? sorry i miss that will fix
Before this commit, the developer has to get the "result" value from a map. This commit changed this behavior so that whatever value is in the "result" key is immediately available.
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.
💯
connects #230