Skip to content
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

New take on VM structure #52

Merged
merged 3 commits into from
Jan 30, 2017
Merged

New take on VM structure #52

merged 3 commits into from
Jan 30, 2017

Conversation

mbrandonw
Copy link
Contributor

Right now we have 3 files for every view model: the inputs interface, outputs interface and the main view model. That's a bit of a bummer, and makes it difficult to see everything a VM is about in one file. We did this cause Java doesnt like multiple sibling classes/interfaces to sit in the same file :/

So, to fix, let's just add a namespace that will house the inputs/outputs/vm all at once. That's what I've done here. Whatdyall think?

Copy link
Contributor

@luoser luoser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very nice to no longer have to jump between three files for a view model. thanks!

interface Inputs extends ActivityFeedAdapter.Delegate {
/**
* Invoke when pagination should happen.
*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we should single-line these comments like so:

/** Invoke when pagination should happen. */

that way we can keep this comment style if need be for longer comments, but keep these interfaces from getting too long

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

totes, much better

@mbrandonw mbrandonw merged commit 7b09016 into master Jan 30, 2017
@mbrandonw mbrandonw deleted the new-vm-structure branch January 30, 2017 22:25
@luoser luoser mentioned this pull request Feb 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants