C# Class Automobile.Mobile.Framework.Device.MobileDevice

The device being executed on
Inheritance: IMobileDevice
Show file Open project: vistaprint/automobile

Public Methods

Method Description
BeginAutomation ( ) : void

Begin the main automation loop, accepting connections and executing commands

TakeScreenshot ( ) : byte[]

Take a screenshot of the device

Protected Methods

Method Description
MobileDevice ( ConnectionType connectionType, string connectionString ) : System
MobileDevice ( ConnectionType connectionType, string connectionString, IJsonProvider json ) : System

Private Methods

Method Description
HandleConnection ( ) : void

Handles a connection, returns when the connection is closed

HandleMessage ( Command message ) : IResponse

Handles a message from a client

Method Details

BeginAutomation() public method

Begin the main automation loop, accepting connections and executing commands
public BeginAutomation ( ) : void
return void

MobileDevice() protected method

protected MobileDevice ( ConnectionType connectionType, string connectionString ) : System
connectionType ConnectionType
connectionString string
return System

MobileDevice() protected method

protected MobileDevice ( ConnectionType connectionType, string connectionString, IJsonProvider json ) : System
connectionType ConnectionType
connectionString string
json IJsonProvider
return System

TakeScreenshot() public abstract method

Take a screenshot of the device
public abstract TakeScreenshot ( ) : byte[]
return byte[]