StartTrackToXml

Starts a new track returning new track's infos in XML format

public XmlDocument StartTrackToXml(bool <byHttps>, string <userName>, string <password>, TrackStartParameters <trackStartParameters>, ref char <messageType>, ref string <message>)

Parameters:

bool <byHttps> Set to true if you want to user https protocol otherwise, if you want to use http, set it to false
string <userName> A string containing the username assigned from MyWakes
string <password> A string containing the password for the MyWakes user
TrackStartParameters <trackStartParameters> A TrackStartParameters object containing command's specific parameters
ref char <messageType> A string containing output parameter that will return the type of message returned in <message> field: I=information, W=warning, E=error
ref string <message> A string containing output parameter with the message content

TrackStartParameters

Color <Color1> Line's color. If set overwrites the IMEI default line's color.
Color <Color2> Altitude's color. If set overwrites the IMEI default altitude's color.
string <Description> A text description of the track. If set overwrites the IMEI default description's text.
string <IMEI> Mandatory. It is the IMEI of the device which refers to the track. If the IMEI is associated to a consumer then the track will be associated to that consumer, otherwise the track's consumer will be set to “undefined”.
TrackStartVisibility <Public> Can have one of those values: Private, Public, PublicInProgress. If set overwrites the IMEI default TrackStartVisibility value.
UpdateCurrentPosition <UpdateCurrentPositionValue> Can have one of those values: NotUpdateCurrentPosition, UpdateCurrentPosition. If set overwrites the IMEI default UpdateCurrentPosition value.

Returned Type: XmlDocument

Returns an XML Document according to trackstart command with the following structure:

<?xml version="1.0" encoding="utf-8" ?>
<furesult>
	<message><![CDATA[ OK ]]></message>
	<id>1260</id>
</furesult> 

 

Where

  • <message> contains OK or Error description
  • <id> contains the Id of the track just created
Terms Of Use | Privacy Statement | Company info
  • © Cedac Sistemi srl
  • Head office: Via Toscana, 3 40035 Castiglione dei Pepoli (Italy) Tel.: +39 0534-93811 Fax: +39 0534-93899
  • Branch office: Via del Lavoro, 47 40033 Casalecchio di Reno (Italy)
  • Branch office: Via Parini, 1 40033 Casalecchio di Reno (Italy)
  • Share capital Euro 26,000.00 - Company Register of Bologna / VAT no / fiscal code 01695261204