GetTrackConsumersListToXml

Returns the consumer's list in Xml format

public XmlDocument GetTrackConsumersListToXml(bool <byHttps>, string <userName>, string <password>, TrackConsumerListParameters <trackConsumerListParameters>, 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
TrackConsumerListParameters <trackConsumerListParameters> A TrackConsumerListParameters 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

TrackConsumerListParameters

ListTipology <CompleteList> OnlyUserByTrack = 0, All = 1, UserByAntitheft = 2
UInt32? <DeviceType> Specify the device type to show in that list.
UInt32? <MaxItem> Used for paging results. If set returns consumers less than this value.
Note that order to prevent your system from being flooded with oversized responses, the number of messages that will be returned on a single response is limited to 500.
UInt32? <MinItem> Used for paging results. If set returns consumers greater than this value.

Returned Type: XmlDocument

Returns an XML Document with the following structure:

<?xml version="1.0" encoding="utf-8" ?> 
<furesult>
	<message><![CDATA[ OK ]]></message>
	<items>
		<item>
			<id>27</id>
			<callsign><![CDATA[BO123456]]></callsign>
			<description><![CDATA[FIAT]]></description>
			<tottrack>8</tottrack>
			<lasttracktime>20101004163025</lasttracktime>
			<odometer>25</odometer>
			<hoursmeter>40.5</hoursmeter>
		</item> 
		<item>
			<id>12</id>
			<callsign><![CDATA[AZ1234XZ]]></callsign>
			<description><![CDATA[FURGONE]]></description>
			<tottrack>22</tottrack>
			<lasttracktime>20101007184227</lasttracktime>
			<odometer>120000.5</odometer>
			<hoursmeter>334.5</hoursmeter>
		</item>
	</items>
</furesult>

 

Where

  • <message> contains OK or Error description
  • <items> if the command has succeeded and <message> is OK this tag exists and contains the list of the track with following node:
    • <item> each element of the list, can be repeated more times and contains the following tags:
      • <id> consumer's Id: it's the only way to identify the consumer and get the consumer's related tracks
      • <callsign> the consumer's identifier
      • <description> the consumer's description set by the user
      • <tottrack> the total number of the existing tracks for that consumer
      • <lasttracktime> the UTC starting date and time of the last track in yyyyMMddhhmmss format
      • <odometer> the odometer's value for the current consumer
      • <hoursmeter> the hoursmeter's value for the current consumer
      • <lat> the point's latitude in degree and decimal degrees. If the position is in the southern hemisphere the value will be negative so it will be preceded by a minus sign. This is the last known latitude. This field is present only if input parameter value <completelist> is equal to 2 (two)
      • <lon> the point's longitude in degree and decimal degrees. If the position is in the western hemisphere the value will be negative so it will be preceded by a minus sign. This is the last known longitude. This field is present only if input parameter value <completelist> is equal to 2 (two)
      • <latlontime> UTC date and time of the last known position. This field is present only if input parameter value <completelist> is equal to 2 (two)
      • <antitheft> represents the status of anti theft, this is the last known longitude. This field is present only if input parameter value <completelist> is equal to 2 (two):
        • 0=anti theft not activated
        • 1=anti theft activated
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