Skip to content

Request a BOXUser object by user ID#588

Merged
jdizoglio merged 3 commits intomasterfrom
user-by-userid
Feb 8, 2019
Merged

Request a BOXUser object by user ID#588
jdizoglio merged 3 commits intomasterfrom
user-by-userid

Conversation

@jdizoglio
Copy link
Copy Markdown
Contributor

No description provided.

@boxcla
Copy link
Copy Markdown

boxcla commented Feb 8, 2019

Verified that @jdizoglio has signed the CLA. Thanks for the pull request!

BOXSharedLinkAccessLevel *const BOXSharedLinkAccessLevelOpen = @"open";
BOXSharedLinkAccessLevel *const BOXSharedLinkAccessLevelCompany = @"company";
BOXSharedLinkAccessLevel *const BOXSharedLinkAccessLevelCollaborators = @"collaborators";
BOXSharedLinkAccessLevel *const BOXSharedLinkExpireLinkFileAccess = @"expireLinkFiles";
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

don't seem like we use them?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

removed

extern BOXSharedLinkAccessLevel *const BOXSharedLinkAccessLevelOpen;
extern BOXSharedLinkAccessLevel *const BOXSharedLinkAccessLevelCompany;
extern BOXSharedLinkAccessLevel *const BOXSharedLinkAccessLevelCollaborators;
extern BOXSharedLinkAccessLevel *const BOXSharedLinkExpireLinkFileAvailable;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

These aren't quite shared link access levels...
Should these just be separate constants specific to the expiration date?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

In fact, these actually aren't used anywhere either, can we remove them?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

removed

BOXSharedLinkAccessLevel *const BOXSharedLinkAccessLevelOpen = @"open";
BOXSharedLinkAccessLevel *const BOXSharedLinkAccessLevelCompany = @"company";
BOXSharedLinkAccessLevel *const BOXSharedLinkAccessLevelCollaborators = @"collaborators";
BOXSharedLinkAccessLevel *const BOXSharedLinkExpireLinkFileAccess = @"expireLinkFiles";
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This constant name doesn't actually match the definition above, and is not used anywhere. Can we just remove these?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

removed

*/
@property (nonatomic, readwrite, assign) BOOL requestAllUserFields;

@property (nonatomic, readonly, strong) NSString *userID;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should we leave a comment that this property only reports a value if a specific user is requested, and that in the default case where no user is specified the current user is used (but this value will be nil or an empty string)?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good point, for a manual construction of the request, setting the userID will have the same impact as the initWithUserID

@jdizoglio jdizoglio merged commit 6efc87b into master Feb 8, 2019
@jdizoglio jdizoglio deleted the user-by-userid branch February 8, 2019 21:37
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.

4 participants