-
-
Notifications
You must be signed in to change notification settings - Fork 206
Should we add registerSubclass? #350
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
Comments
Can you explain the pros in a bit more depth? |
Often the user can provide a copy-object. This is used to create new objects based on a custom ParseObject class. In summary: the user would not have to care about providing such copy-objects. |
Apologies for the late reply. I still don't actually understand this. Do you have you any examples where this is done already? I understand the Parse Android SDK does but as far as I'm aware there's not too much benefit when using Flutter as we don't have reflection to iterate through class structures? |
I did was not working on this for a while, too.
The SDK will use your custom classes for objects with the classnames 'Test', 'Test2' and 'Test3'. This should allow you to do something like this: |
...adding a Constructor to QueryBuilder where the object the registered sub-classes get uses automatically would be useful, too. |
I really like this idea. Seems very logical. Did you have any luck
implementing it?
…On Wed, 15 Apr 2020, 11:37 Maximilian Fischer, ***@***.***> wrote:
...adding a Constructor to QueryBuilder where the object the registered
sub-classes get uses automatically would be useful, too.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#350 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB4CPXX2YNNIR5TISO7ATBTRMWE6VANCNFSM4MC6GN7A>
.
|
Well, I think something as simple as this should work. |
@phillwiggins Should I keep this changes in my fork for now and create a PR once I have managed to build an app using registerSubclass OR should I create a PR to 1.27 now/soon? |
I would keep changes in your fork for now. This would ensure it is
fully functional and tested when you do come to create an MR.
…On Wed, 15 Apr 2020, 15:24 Maximilian Fischer, ***@***.***> wrote:
@phillwiggins <https://github.com/phillwiggins>
I've added some more changes to my branch
<https://github.com/maaeps/Parse-SDK-Flutter/tree/registerSubclass>.
I think while working with registerSubclass, there will appear unexpected
behavior (the subclass is not used), as I am sure, I have not found every
critical initialization of a ParseObject jet.
Should I keep this changes in my fork for now and create a PR once I have
managed to build an app using registerSubclass OR should I create a PR to
1.27 now/soon?
I'm fine with both options.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#350 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB4CPXUBUXWSP67WYXYGK7TRMW7TFANCNFSM4MC6GN7A>
.
|
This feature got merged with #368 . |
This issue is part of #194
Should we add registerSubclass to match the Android/IOS SDK?
Pros:
Cons:
The text was updated successfully, but these errors were encountered: