Skip to content

Conversation

mikelehen
Copy link
Contributor

FYI- I've gone with applyOnlineStateChange on iOS / Web (to be consistent with applyRemoteEvent, etc.) but handleOnlineStateChange on Android (to be consistent with handleListenEvent, etc.). I'm not sure why the platforms diverged in naming but I don't want to try to clean it up in this PR.

NSMutableArray *events = [NSMutableArray array];
OCMStub([fakeListener query]).andReturn(query);
OCMStub([fakeListener clientDidChangeOnlineState:FSTOnlineStateUnknown])
OCMStub([fakeListener applyOnlineStateChange:FSTOnlineStateUnknown])
Copy link
Contributor

Choose a reason for hiding this comment

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

This doesn't seem to follow Objective-C's naming convention as it does not use a suffix that describes the argument. I'm going to suggest applyChangeForOnlineState, but I'm certain that there are better options.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Renamed to applyChangedOnlineState: per offline discussion.

@mikelehen mikelehen merged commit faca4ea into firestore-api-changes Dec 20, 2017
@mikelehen mikelehen deleted the mikelehen-rename-applyOnlineStateChange branch December 20, 2017 00:05
minafarid pushed a commit to minafarid/firebase-ios-sdk that referenced this pull request Jun 6, 2018
@firebase firebase locked and limited conversation to collaborators Nov 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants