Skip to content

Convert FIRGetOptions to use instance methods (only) #741

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

Conversation

rsgowman
Copy link
Member

@rsgowman rsgowman commented Feb 1, 2018

No description provided.

@@ -65,7 +62,7 @@ typedef NS_ENUM(NSUInteger, FIRGetSource) {
/**
* Initializes the get options with the specified source.
*/
+ (instancetype)optionsWithSource:(FIRGetSource)source NS_SWIFT_NAME(source(_:));
- (instancetype)optionsWithSource:(FIRGetSource)source NS_SWIFT_NAME(source(_:));
Copy link
Contributor

Choose a reason for hiding this comment

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

optionsWithSource suggests immutability. Perhaps this should be setSource?

Copy link
Contributor

Choose a reason for hiding this comment

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

If it's an initializer, it should be

- (instancetype)initWithSource:(FIRGetSource)source

The Swift name will automatically be synthesized to init(source:).

@mikelehen mikelehen removed their assignment Feb 6, 2018
@wilhuff
Copy link
Contributor

wilhuff commented Feb 20, 2018

The last commit on here predates our finalizing discussion on this topic. Please update and reassign once it's ready for another pass.

@wilhuff wilhuff assigned rsgowman and unassigned wilhuff Feb 20, 2018
@rsgowman
Copy link
Member Author

Further work will be in #826. (This PR converts the already-submitted-to-firestore-api-changes-branch-but-not-master work to a style that we've decided we don't want.)

@rsgowman rsgowman closed this Feb 21, 2018
@rsgowman rsgowman deleted the rsgowman/get_options_instance_method_only branch February 21, 2018 20:56
@firebase firebase locked and limited conversation to collaborators Nov 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants