Unable to implement Mobile Swipe successfully

Hi,

I need help, I am trying to perform horizontal swipe action on main banner images of my app. Below is the code for that,

Mobile.startApplication('C:\\Users\\balmu\\Downloads\\APK\\AirtelBooksProd.apk', false)

Mobile.waitForElementPresent(findTestObject(‘Temp Object Repository/android.widget.ImageView0-firstbannerView-ClickVerify’),
0)

Mobile.tap(findTestObject(‘Temp Object Repository/android.widget.ImageView0-firstbannerView-ClickVerify’), 0)

Mobile.pressBack()

int height = Mobile.getDeviceHeight()

int width = Mobile.getDeviceWidth()

int y = ((height * 1) as int)

int startx = ((width * 0.75) as int)

int endx = ((width * 0) as int)

Mobile.swipe(startx, y, endx, y)

Mobile.closeApplication()

I am unable to debug how do i invoke the swipe command for banner images. With the above code I am getting error. Please see the error screenshot below: