WindowsDevicePortalWrapper  0.9.0.0
A client library that wraps the Windows Device Portal REST APIs.
Public Member Functions | Static Public Attributes | List of all members
XboxWdpDriver.ParameterHelper Class Reference

Class for parsing command line parameters More...

Public Member Functions

void AddParameter (string name, string value)
 Adds a new parameter. More...
 
string GetParameterValue (string key)
 Helper for getting a parameter value for a key More...
 
bool HasParameter (string key)
 Helper for determining if we have a value for a parameter More...
 
bool HasFlag (string flag)
 Helper for determining if a flag is set More...
 
void ParseCommandLine (string[] args)
 Main entry for parsing a command line array More...
 

Static Public Attributes

static readonly string HelpFlag = "?"
 Help Flag identifier string More...
 
static readonly string VerboseFlag = "v"
 Verbose Flag identifier string More...
 
static readonly string Operation = "op"
 Operation type identifier string More...
 
static readonly string IpOrHostname = "x"
 Device Identifier identifier string More...
 
static readonly string IpOrHostnameOld = "ip"
 Old Device Identifier identifier string. This allows us to accept both ip or x. More...
 
static readonly string WdpUser = "user"
 WDP Username identifier string More...
 
static readonly string WdpPassword = "pwd"
 WDP Password identifier string More...
 
static readonly string Listen = "listen"
 Listen (use web socket) Flag identifier string. More...
 
static readonly string Cert = "certfile"
 Optional manual Cert file identifier string. More...
 

Detailed Description

Class for parsing command line parameters

Member Function Documentation

void XboxWdpDriver.ParameterHelper.AddParameter ( string  name,
string  value 
)
inline

Adds a new parameter.

Parameters
nameThe name of the parameter we are adding.
valueThe value of that parameter.
string XboxWdpDriver.ParameterHelper.GetParameterValue ( string  key)
inline

Helper for getting a parameter value for a key

Parameters
keyparameter key
Returns
parameter value or null if not present
bool XboxWdpDriver.ParameterHelper.HasFlag ( string  flag)
inline

Helper for determining if a flag is set

Parameters
flagflag name
Returns
boolean indicating if the flag is set
bool XboxWdpDriver.ParameterHelper.HasParameter ( string  key)
inline

Helper for determining if we have a value for a parameter

Parameters
keyparameter key
Returns
boolean indicating if the parameter is present
void XboxWdpDriver.ParameterHelper.ParseCommandLine ( string[]  args)
inline

Main entry for parsing a command line array

Parameters
argscommand line args

Member Data Documentation

readonly string XboxWdpDriver.ParameterHelper.Cert = "certfile"
static

Optional manual Cert file identifier string.

readonly string XboxWdpDriver.ParameterHelper.HelpFlag = "?"
static

Help Flag identifier string

readonly string XboxWdpDriver.ParameterHelper.IpOrHostname = "x"
static

Device Identifier identifier string

readonly string XboxWdpDriver.ParameterHelper.IpOrHostnameOld = "ip"
static

Old Device Identifier identifier string. This allows us to accept both ip or x.

readonly string XboxWdpDriver.ParameterHelper.Listen = "listen"
static

Listen (use web socket) Flag identifier string.

readonly string XboxWdpDriver.ParameterHelper.Operation = "op"
static

Operation type identifier string

readonly string XboxWdpDriver.ParameterHelper.VerboseFlag = "v"
static

Verbose Flag identifier string

readonly string XboxWdpDriver.ParameterHelper.WdpPassword = "pwd"
static

WDP Password identifier string

readonly string XboxWdpDriver.ParameterHelper.WdpUser = "user"
static

WDP Username identifier string


The documentation for this class was generated from the following file: