-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
DeviceRotation implementation #2482
Conversation
@lukeis fixed my commits. |
import java.util.Map; | ||
import com.google.common.collect.ImmutableMap; | ||
|
||
public class DeviceRotation { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This class will be consumed by users, please add JavaDoc to it and all public methods
@Rafael-Chavez which email do you want associated to the commit? Also, you're going to need to add an implementation of calling this endpoint in the AddRotatable class. I don't like the way it's implemented there, but you don't need to change that, maybe changing the if/else if to a switch statement instead. |
2e3a89c
to
123e0f1
Compare
@lukeis updated, please review. |
} else if ("getOrientation".equals(method.getName())) { | ||
return ScreenOrientation.valueOf((String) executeMethod.execute( | ||
DriverCommand.GET_SCREEN_ORIENTATION, null)); | ||
RotatableMethod m = RotatableMethod.valueOf(method.getName()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you don't need to create a enum for this, java allows you to switch on a string ;) (since java 7?)
updated mobile spec here |
X
in the preceding checkbox, I verify that I have signed the Contributor License Agreement