-
Notifications
You must be signed in to change notification settings - Fork 17
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
Create NCCommunication+Hovercard #98
Conversation
Add class models for return type Add getHovercard(for userId:) Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com>
1b3e810
to
d3f1cbb
Compare
Hi @thisIsTheFoxe will be better move the Hovercard class in NCCommunicationModel, so all the class (record -> after stored in DB) are available in a single file with the NC prefix, result: @objc public class NCHovercard: NSObject and I would like to keep the @objc compatibility if possible until we decide to remove the OBJC compatibility, and remove the JSON logical and insert it inside the func getHovercard, what's do you think ? |
Ok, for now, but especially in line with refactoring we should definitely consider splitting up
Well, in line with the MVC patter, I like to keep the controllers light and the models heavy. That way the business logic is |
What's you mean for directory level
it depends ... here the world is divided into 2 parts :D, to me it doesn't make much difference then at the basic code level, in the end it's just code reading philosophy but I like that everyone expresses themselves as they wish it is enough to be coherent and easy to read ... in fact, later on I would no longer want to deal with this and concentrate on anything else. |
I just mean that we should organise code in more files and group those in directories. Big files are just super messy. There's shouldn't be any reason to have a file >1000 lines of code. Especially in Swift, 400 is already considered big - imo. |
Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com>
828ae30
to
3966193
Compare
Add class models for return type
Add getHovercard(for userId:)
Related
Note
I wasn't able to really test it with NC beta 2 installed (at first, was able to test eventually). Feel free to test it yourself and let me know if you have these or other problems.
"appId": "",
for the talk action. Probably some version incompatibility. It worked when using the spreed master branch.