README: rename 'index' to 'timestamp' in GetJSONData

pull/35/merge
Peter Hutterer 2018-01-29 08:21:12 +10:00
parent 4efc415aa1
commit ef8747f032
1 changed files with 7 additions and 7 deletions

View File

@ -139,7 +139,7 @@ org.freedesktop.tuhi1.Device
Property: DrawingsAvailable (at) Property: DrawingsAvailable (at)
An array of timestamps of the available drawings. The timestamp of An array of timestamps of the available drawings. The timestamp of
each drawing can be used as index to GetJSONData(). each drawing can be used as argument to GetJSONData().
Read-only Read-only
Property: Listening (b) Property: Listening (b)
@ -204,14 +204,14 @@ org.freedesktop.tuhi1.Device
signal arriving, the property DrawingsAvailable may still be updated signal arriving, the property DrawingsAvailable may still be updated
and it's the responsibility of the client to fetch the JSON data. and it's the responsibility of the client to fetch the JSON data.
Method: GetJSONData(index: t) -> (s) Method: GetJSONData(timestamp: t) -> (s)
Returns a JSON file with the drawings specified by the index argument. Returns a JSON file with the drawings specified by the timestamp
Drawings are zero-indexed and the requested index must be less than argument. Drawings are zero-indexed and the requested index must be
the DrawingsAvailable property value. See section JSON FILE FORMAT for less than the DrawingsAvailable property value. See section JSON FILE
the format of the returned data. FORMAT for the format of the returned data.
Returns a string representing the JSON data from the last drawings or Returns a string representing the JSON data from the last drawings or
the empty string if no data is available or the index is invalid. the empty string if no data is available or the timestamp is invalid.
Signal: ButtonPressRequired() Signal: ButtonPressRequired()
Sent when the user is expected to press the physical button on the Sent when the user is expected to press the physical button on the