com.github.wasiqb.coteafs.appium.device.SwipeDirection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appium Show documentation
Show all versions of appium Show documentation
Robust Automation Framework wrapped over Appium.
/**
* Copyright (c) 2017, Wasiq Bhamla.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.wasiqb.coteafs.appium.device;
/**
* @author wasiq.bhamla
* @since Oct 16, 2017 9:34:46 PM
*/
public enum SwipeDirection {
/**
* Swipe up.
*/
DOWN (0, 1),
/**
* Swipe left.
*/
LEFT (-1, 0),
/**
* Swipe right.
*/
RIGHT (1, 0),
/**
* Swipe up.
*/
UP (0, -1);
private final int x;
private final int y;
/**
* @author wasiq.bhamla
* @since Oct 20, 2017 7:56:06 PM
*/
private SwipeDirection (final int x, final int y) {
this.x = x;
this.y = y;
}
/**
* @author wasiq.bhamla
* @since Oct 20, 2017 7:57:09 PM
* @return the x
*/
public int getX () {
return this.x;
}
/**
* @author wasiq.bhamla
* @since Oct 20, 2017 7:57:09 PM
* @return the y
*/
public int getY () {
return this.y;
}
}