libastag 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/BUGS +10 -0
- data/CHANGES +8 -1
- data/MIT-LICENSE +2 -1
- data/README +7 -3
- data/Rakefile +3 -2
- data/TODO +4 -7
- data/doc/classes/Helpers.html +16 -20
- data/doc/classes/Helpers/REXML.html +4 -4
- data/doc/classes/Helpers/REXML/Attributes.html +10 -10
- data/doc/classes/Libastag.html +5 -5
- data/doc/classes/Libastag/Rabbit.html +56 -56
- data/doc/classes/Libastag/RabitEar.html +4 -4
- data/doc/classes/Libastag/RabitLed.html +4 -4
- data/doc/classes/Request.html +33 -37
- data/doc/classes/Request/Action.html +34 -34
- data/doc/classes/Request/AudioStream.html +313 -0
- data/doc/classes/Request/Base.html +13 -10
- data/doc/classes/Request/Base/Event.html +58 -23
- data/doc/classes/Request/Base/EventCollection.html +35 -32
- data/doc/classes/Request/Choregraphy.html +500 -0
- data/doc/classes/Request/Choregraphy/BadChorDesc.html +135 -0
- data/doc/classes/Request/Choregraphy/Ears.html +130 -0
- data/doc/classes/Request/Choregraphy/Ears/Directions.html +141 -0
- data/doc/classes/Request/Choregraphy/Ears/Positions.html +146 -0
- data/doc/classes/Request/Choregraphy/Leds.html +130 -0
- data/doc/classes/Request/Choregraphy/Leds/Colors.html +171 -0
- data/doc/classes/Request/Choregraphy/Leds/Positions.html +161 -0
- data/doc/classes/Request/GET_EARS_POSITION.html +17 -14
- data/doc/classes/Request/IdMessage.html +234 -0
- data/doc/classes/Request/Query.html +80 -55
- data/doc/classes/Request/SetEarsPosition.html +58 -36
- data/doc/classes/Request/TtsMessage.html +74 -50
- data/doc/classes/Response.html +55 -124
- data/doc/classes/Response/AbuseSending.html +34 -34
- data/doc/classes/Response/Base.html +34 -34
- data/doc/classes/Response/Base/BadServerRsp.html +34 -34
- data/doc/classes/Response/Base/GoodServerRsp.html +34 -34
- data/doc/classes/Response/Base/ServerRsp.html +53 -53
- data/doc/classes/Response/Blacklist.html +34 -34
- data/doc/classes/Response/ChorNotSend.html +34 -34
- data/doc/classes/Response/ChorSend.html +34 -34
- data/doc/classes/Response/CommandSend.html +34 -34
- data/doc/classes/Response/EarPositionNotSend.html +34 -34
- data/doc/classes/Response/EarPositionSend.html +34 -34
- data/doc/classes/Response/EmptyServerRsp.html +34 -34
- data/doc/classes/Response/LangListUser.html +34 -34
- data/doc/classes/Response/LinkPreview.html +34 -34
- data/doc/classes/Response/ListFriend.html +34 -34
- data/doc/classes/Response/ListReceivedMsg.html +34 -34
- data/doc/classes/Response/MessageNotSend.html +34 -34
- data/doc/classes/Response/MessageSend.html +34 -34
- data/doc/classes/Response/NabCastNotSend.html +34 -34
- data/doc/classes/Response/NabCastSend.html +34 -34
- data/doc/classes/Response/NoCorrectParameters.html +34 -34
- data/doc/classes/Response/NoGoodTokenOrSerial.html +34 -34
- data/doc/classes/Response/NotV2Rabbit.html +34 -34
- data/doc/classes/Response/PositionEar.html +34 -34
- data/doc/classes/Response/ProtocolExcepion.html +35 -35
- data/doc/classes/Response/RabbitName.html +34 -34
- data/doc/classes/Response/RabbitSleep.html +34 -34
- data/doc/classes/Response/RabbitVersion.html +34 -34
- data/doc/classes/Response/Signature.html +34 -34
- data/doc/classes/Response/Timezone.html +34 -34
- data/doc/classes/Response/TtsNotSend.html +34 -34
- data/doc/classes/Response/TtsSend.html +34 -34
- data/doc/classes/Response/VoiceListTts.html +34 -34
- data/doc/classes/Response/WebRadioNotSend.html +34 -34
- data/doc/classes/Response/WebRadioSend.html +34 -34
- data/doc/created.rid +1 -1
- data/doc/dot/f_0.png +0 -0
- data/doc/dot/f_5.dot +13 -445
- data/doc/dot/f_5.png +0 -0
- data/doc/dot/f_6.dot +445 -11
- data/doc/dot/f_6.png +0 -0
- data/doc/dot/f_7.dot +30 -5
- data/doc/dot/f_7.png +0 -0
- data/doc/dot/f_8.dot +39 -0
- data/doc/dot/f_8.png +0 -0
- data/doc/files/{lib/violet/violetapi_rb.html → BUGS.html} +17 -9
- data/doc/files/CHANGES.html +15 -2
- data/doc/files/MIT-LICENSE.html +2 -2
- data/doc/files/README.html +13 -3
- data/doc/files/TODO.html +5 -8
- data/doc/files/lib/libastag_rb.html +12 -10
- data/doc/files/lib/violet/helpers_rb.html +5 -5
- data/doc/files/lib/violet/request_rb.html +16 -12
- data/doc/files/lib/violet/response_rb.html +36 -35
- data/doc/fr_class_index.html +10 -1
- data/doc/fr_file_index.html +1 -1
- data/doc/fr_method_index.html +25 -12
- data/examples/morse.rb +72 -0
- data/lib/libastag.rb +6 -2
- data/lib/violet/helpers.rb +4 -2
- data/lib/violet/request.rb +501 -47
- data/lib/violet/response.rb +5 -2
- data/test/fake_violet_srv.rb +1 -1
- data/test/test_helpers.rb +3 -5
- data/test/{test_send.rb → test_query_and_actions.rb} +27 -10
- data/test/test_request_base.rb +76 -0
- data/test/test_request_chor.rb +162 -0
- data/test/test_request_stuff.rb +171 -0
- data/test/test_response.rb +3 -4
- metadata +45 -20
- data/doc/classes/VioletAPI.html +0 -118
- data/doc/dot/f_4.dot +0 -57
- data/doc/dot/f_4.png +0 -0
- data/lib/violet/violetapi.rb +0 -14
- data/test/test_request.rb +0 -20
data/BUGS
ADDED
data/CHANGES
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
=v0.0.2
|
|
2
|
+
|
|
3
|
+
- Worked on request.rb, added SetEarsPosition, TtsMessage, IdMessage, AudioStream and Choregraphy class, doc, and tests.
|
|
4
|
+
- Added Choregraphy Domain Specific Language.
|
|
5
|
+
- added an example for Choregraphy script.
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
=v0.0.1
|
|
2
9
|
|
|
3
10
|
- Response module is working
|
|
4
11
|
- test/doc for Response
|
data/MIT-LICENSE
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright (c) 2007 Perrin Alexandre
|
|
1
|
+
Copyright (c) 2007-2008 Perrin Alexandre
|
|
2
2
|
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
4
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -17,3 +17,4 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
17
17
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
18
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
19
|
THE SOFTWARE.
|
|
20
|
+
|
data/README
CHANGED
|
@@ -46,10 +46,14 @@ to install libastag's gem :
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
==
|
|
50
|
-
TODO
|
|
49
|
+
==Examples
|
|
51
50
|
|
|
51
|
+
=irb
|
|
52
|
+
TODO
|
|
52
53
|
|
|
54
|
+
=Script
|
|
55
|
+
examples/ directory of the project has several examples:
|
|
56
|
+
[morse.rb] send your name in morse to your rabbit.
|
|
53
57
|
|
|
54
58
|
==Other Nabastag related Ruby projects
|
|
55
59
|
|
|
@@ -59,7 +63,7 @@ TODO
|
|
|
59
63
|
|
|
60
64
|
==Copying
|
|
61
65
|
|
|
62
|
-
Copyright (c) 2007 Perrin Alexandre
|
|
66
|
+
Copyright (c) 2007-2008 Perrin Alexandre
|
|
63
67
|
|
|
64
68
|
You may use, copy and redistribute this library under the terms of the MIT licence (see MIT-LICENSE file).
|
|
65
69
|
|
data/Rakefile
CHANGED
|
@@ -53,9 +53,10 @@ RDOC_OPTIONS = [
|
|
|
53
53
|
# files
|
|
54
54
|
LIB_FILES = Dir["lib/**/*.rb"]
|
|
55
55
|
TEST_FILES = Dir["test/**/*.rb"]
|
|
56
|
+
EXAMPLES_FILES = Dir["examples/**/*.rb"]
|
|
56
57
|
|
|
57
|
-
RDOC_FILES = %w[ README MIT-LICENSE TODO CHANGES ] + LIB_FILES
|
|
58
|
-
DIST_FILES = %w[ Rakefile ] +
|
|
58
|
+
RDOC_FILES = %w[ README MIT-LICENSE TODO CHANGES BUGS] + LIB_FILES
|
|
59
|
+
DIST_FILES = %w[ Rakefile ] + EXAMPLES_FILES + TEST_FILES + RDOC_FILES
|
|
59
60
|
|
|
60
61
|
|
|
61
62
|
|
data/TODO
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
-
|
|
2
|
-
-
|
|
3
|
-
-
|
|
4
|
-
|
|
5
|
-
- Write doc for Helpers module
|
|
6
|
-
- Write doc for VioletAPI module
|
|
7
|
-
|
|
1
|
+
- add variable tempo to chor
|
|
2
|
+
- make a idMessage db for library
|
|
3
|
+
- work on fake server?
|
|
4
|
+
- Complete the high level API (libastag.rb)
|
data/doc/classes/Helpers.html
CHANGED
|
@@ -73,20 +73,13 @@
|
|
|
73
73
|
<div id="contextContent">
|
|
74
74
|
<div id="diagram">
|
|
75
75
|
<map id="map" name="map">
|
|
76
|
-
<area shape="rect" coords="53,
|
|
77
|
-
<area shape="rect" coords="43,51,
|
|
78
|
-
<area shape="rect" coords="16,16,
|
|
76
|
+
<area shape="rect" coords="53,86,131,134" href="Helpers/REXML/Attributes.html" alt="Attributes" />
|
|
77
|
+
<area shape="rect" coords="43,51,168,144" href="Helpers/REXML.html" alt="REXML" />
|
|
78
|
+
<area shape="rect" coords="16,16,179,155" href="Helpers.html" alt="Helpers" />
|
|
79
79
|
</map>
|
|
80
|
-
<img src="../dot/
|
|
80
|
+
<img src="../dot/f_7.png" usemap="#map" border="0" alt="dot/f_7.png">
|
|
81
81
|
</div>
|
|
82
82
|
|
|
83
|
-
<div id="description">
|
|
84
|
-
<h2>violet/helpers.rb</h2>
|
|
85
|
-
<p>
|
|
86
|
-
some handy class/methods and modifications.
|
|
87
|
-
</p>
|
|
88
|
-
|
|
89
|
-
</div>
|
|
90
83
|
|
|
91
84
|
|
|
92
85
|
</div>
|
|
@@ -134,8 +127,11 @@ some handy class/methods and modifications.
|
|
|
134
127
|
|
|
135
128
|
<div class="method-description">
|
|
136
129
|
<h2>Credits</h2>
|
|
130
|
+
<pre>
|
|
131
|
+
Copyright (c) 2005 David Heinemeier Hansson
|
|
132
|
+
</pre>
|
|
137
133
|
<p>
|
|
138
|
-
taken from active_support/inflector.rb
|
|
134
|
+
taken from active_support/inflector.rb (MIT licence) see <a
|
|
139
135
|
href="http://rubyforge.org/projects/activesupport">rubyforge.org/projects/activesupport</a>
|
|
140
136
|
</p>
|
|
141
137
|
<h2>Summary</h2>
|
|
@@ -153,14 +149,14 @@ not initialized.
|
|
|
153
149
|
onclick="toggleCode('M000001-source');return false;">[Source]</a></p>
|
|
154
150
|
<div class="method-source-code" id="M000001-source">
|
|
155
151
|
<pre>
|
|
156
|
-
<span class="ruby-comment cmt"># File lib/violet/helpers.rb, line
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
152
|
+
<span class="ruby-comment cmt"># File lib/violet/helpers.rb, line 41</span>
|
|
153
|
+
41: <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Helpers</span>.<span class="ruby-identifier">constantize</span>(<span class="ruby-identifier">camel_cased_word</span>)
|
|
154
|
+
42: <span class="ruby-keyword kw">unless</span> <span class="ruby-regexp re">/\A(?:::)?([A-Z]\w*(?:::[A-Z]\w*)*)\z/</span> <span class="ruby-operator">=~</span> <span class="ruby-identifier">camel_cased_word</span>
|
|
155
|
+
43: <span class="ruby-identifier">raise</span> <span class="ruby-constant">NameError</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">"#{camel_cased_word.inspect} is not a valid constant name!"</span>)
|
|
156
|
+
44: <span class="ruby-keyword kw">end</span>
|
|
157
|
+
45:
|
|
158
|
+
46: <span class="ruby-constant">Object</span>.<span class="ruby-identifier">module_eval</span>(<span class="ruby-node">"::#{$1}"</span>, <span class="ruby-keyword kw">__FILE__</span>, <span class="ruby-keyword kw">__LINE__</span>)
|
|
159
|
+
47: <span class="ruby-keyword kw">end</span>
|
|
164
160
|
</pre>
|
|
165
161
|
</div>
|
|
166
162
|
</div>
|
|
@@ -69,11 +69,11 @@
|
|
|
69
69
|
<div id="contextContent">
|
|
70
70
|
<div id="diagram">
|
|
71
71
|
<map id="map" name="map">
|
|
72
|
-
<area shape="rect" coords="53,
|
|
73
|
-
<area shape="rect" coords="43,51,
|
|
74
|
-
<area shape="rect" coords="16,16,
|
|
72
|
+
<area shape="rect" coords="53,86,131,134" href="REXML/Attributes.html" alt="Attributes" />
|
|
73
|
+
<area shape="rect" coords="43,51,168,144" href="REXML.html" alt="REXML" />
|
|
74
|
+
<area shape="rect" coords="16,16,179,155" href="../Helpers.html" alt="Helpers" />
|
|
75
75
|
</map>
|
|
76
|
-
<img src="../../dot/
|
|
76
|
+
<img src="../../dot/f_7.png" usemap="#map" border="0" alt="dot/f_7.png">
|
|
77
77
|
</div>
|
|
78
78
|
|
|
79
79
|
|
|
@@ -79,11 +79,11 @@
|
|
|
79
79
|
<div id="contextContent">
|
|
80
80
|
<div id="diagram">
|
|
81
81
|
<map id="map" name="map">
|
|
82
|
-
<area shape="rect" coords="53,
|
|
83
|
-
<area shape="rect" coords="43,51,
|
|
84
|
-
<area shape="rect" coords="16,16,
|
|
82
|
+
<area shape="rect" coords="53,86,131,134" href="Attributes.html" alt="Attributes" />
|
|
83
|
+
<area shape="rect" coords="43,51,168,144" href="../REXML.html" alt="REXML" />
|
|
84
|
+
<area shape="rect" coords="16,16,179,155" href="../../Helpers.html" alt="Helpers" />
|
|
85
85
|
</map>
|
|
86
|
-
<img src="../../../dot/
|
|
86
|
+
<img src="../../../dot/f_7.png" usemap="#map" border="0" alt="dot/f_7.png">
|
|
87
87
|
</div>
|
|
88
88
|
|
|
89
89
|
<div id="description">
|
|
@@ -153,12 +153,12 @@ convert attributes to an instance of Hash.
|
|
|
153
153
|
onclick="toggleCode('M000002-source');return false;">[Source]</a></p>
|
|
154
154
|
<div class="method-source-code" id="M000002-source">
|
|
155
155
|
<pre>
|
|
156
|
-
<span class="ruby-comment cmt"># File lib/violet/helpers.rb, line
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
156
|
+
<span class="ruby-comment cmt"># File lib/violet/helpers.rb, line 18</span>
|
|
157
|
+
18: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_hash</span>
|
|
158
|
+
19: <span class="ruby-identifier">h</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>
|
|
159
|
+
20: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>,<span class="ruby-identifier">value</span><span class="ruby-operator">|</span> <span class="ruby-identifier">h</span>[<span class="ruby-identifier">key</span>.<span class="ruby-identifier">to_sym</span>] = <span class="ruby-identifier">value</span> }
|
|
160
|
+
21: <span class="ruby-identifier">h</span>
|
|
161
|
+
22: <span class="ruby-keyword kw">end</span>
|
|
162
162
|
</pre>
|
|
163
163
|
</div>
|
|
164
164
|
</div>
|
data/doc/classes/Libastag.html
CHANGED
|
@@ -73,12 +73,12 @@
|
|
|
73
73
|
<div id="contextContent">
|
|
74
74
|
<div id="diagram">
|
|
75
75
|
<map id="map" name="map">
|
|
76
|
-
<area shape="rect" coords="219,
|
|
77
|
-
<area shape="rect" coords="123,
|
|
78
|
-
<area shape="rect" coords="27,
|
|
76
|
+
<area shape="rect" coords="219,50,291,98" href="Libastag/RabitEar.html" alt="RabitEar" />
|
|
77
|
+
<area shape="rect" coords="123,50,195,98" href="Libastag/RabitLed.html" alt="RabitLed" />
|
|
78
|
+
<area shape="rect" coords="27,50,99,98" href="Libastag/Rabbit.html" alt="Rabbit" />
|
|
79
79
|
<area shape="rect" coords="16,16,328,109" href="Libastag.html" alt="Libastag" />
|
|
80
80
|
</map>
|
|
81
|
-
<img src="../dot/
|
|
81
|
+
<img src="../dot/f_5.png" usemap="#map" border="0" alt="dot/f_5.png">
|
|
82
82
|
</div>
|
|
83
83
|
|
|
84
84
|
<div id="description">
|
|
@@ -116,7 +116,7 @@ Class <a href="Libastag/RabitLed.html" class="link">Libastag::RabitLed</a><br />
|
|
|
116
116
|
<tr class="top-aligned-row context-row">
|
|
117
117
|
<td class="context-item-name">VERSION</td>
|
|
118
118
|
<td>=</td>
|
|
119
|
-
<td class="context-item-value">'0.0.
|
|
119
|
+
<td class="context-item-value">'0.0.2'</td>
|
|
120
120
|
</tr>
|
|
121
121
|
</table>
|
|
122
122
|
</div>
|
|
@@ -79,12 +79,12 @@
|
|
|
79
79
|
<div id="contextContent">
|
|
80
80
|
<div id="diagram">
|
|
81
81
|
<map id="map" name="map">
|
|
82
|
-
<area shape="rect" coords="219,
|
|
83
|
-
<area shape="rect" coords="123,
|
|
84
|
-
<area shape="rect" coords="27,
|
|
82
|
+
<area shape="rect" coords="219,50,291,98" href="RabitEar.html" alt="RabitEar" />
|
|
83
|
+
<area shape="rect" coords="123,50,195,98" href="RabitLed.html" alt="RabitLed" />
|
|
84
|
+
<area shape="rect" coords="27,50,99,98" href="Rabbit.html" alt="Rabbit" />
|
|
85
85
|
<area shape="rect" coords="16,16,328,109" href="../Libastag.html" alt="Libastag" />
|
|
86
86
|
</map>
|
|
87
|
-
<img src="../../dot/
|
|
87
|
+
<img src="../../dot/f_5.png" usemap="#map" border="0" alt="dot/f_5.png">
|
|
88
88
|
</div>
|
|
89
89
|
|
|
90
90
|
<div id="description">
|
|
@@ -263,45 +263,45 @@ mean that they are valid.
|
|
|
263
263
|
onclick="toggleCode('M000008-source');return false;">[Source]</a></p>
|
|
264
264
|
<div class="method-source-code" id="M000008-source">
|
|
265
265
|
<pre>
|
|
266
|
-
<span class="ruby-comment cmt"># File lib/libastag.rb, line
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
53: <span class="ruby-comment cmt"># | | | |</span>
|
|
275
|
-
54: <span class="ruby-comment cmt"># | | | |</span>
|
|
276
|
-
55: <span class="ruby-comment cmt"># | | | |</span>
|
|
277
|
-
56: <span class="ruby-comment cmt"># | | | |</span>
|
|
266
|
+
<span class="ruby-comment cmt"># File lib/libastag.rb, line 50</span>
|
|
267
|
+
50: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">serial</span>, <span class="ruby-identifier">token</span>
|
|
268
|
+
51: <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">"bad serial : #{serial}"</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">serial</span> <span class="ruby-operator">=~</span> <span class="ruby-constant">SERIAL_MATCHER</span>
|
|
269
|
+
52: <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">"bad token : #{token }"</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">token</span> <span class="ruby-operator">=~</span> <span class="ruby-constant">TOKEN_MATCHER</span>
|
|
270
|
+
53: <span class="ruby-ivar">@serial</span> = <span class="ruby-identifier">serial</span>.<span class="ruby-identifier">upcase</span>
|
|
271
|
+
54: <span class="ruby-ivar">@token</span> = <span class="ruby-identifier">token</span>.<span class="ruby-identifier">to_i</span>
|
|
272
|
+
55: <span class="ruby-comment cmt"># _________ _________</span>
|
|
273
|
+
56: <span class="ruby-comment cmt"># / \ / @right_ear, @left_ear = RabbitEar.new(:right), RabbitEar.new(:left)</span>
|
|
278
274
|
57: <span class="ruby-comment cmt"># | | | |</span>
|
|
279
275
|
58: <span class="ruby-comment cmt"># | | | |</span>
|
|
280
276
|
59: <span class="ruby-comment cmt"># | | | |</span>
|
|
281
277
|
60: <span class="ruby-comment cmt"># | | | |</span>
|
|
282
|
-
61: <span class="ruby-comment cmt"># | |
|
|
278
|
+
61: <span class="ruby-comment cmt"># | | | |</span>
|
|
283
279
|
62: <span class="ruby-comment cmt"># | | | |</span>
|
|
284
280
|
63: <span class="ruby-comment cmt"># | | | |</span>
|
|
285
|
-
64: <span class="ruby-comment cmt"># |
|
|
286
|
-
65: <span class="ruby-comment cmt"># |
|
|
287
|
-
66: <span class="ruby-comment cmt"># |
|
|
288
|
-
67: <span class="ruby-comment cmt"># |
|
|
289
|
-
68: <span class="ruby-comment cmt"># |
|
|
290
|
-
69:
|
|
291
|
-
70: <span class="ruby-comment cmt"># |
|
|
281
|
+
64: <span class="ruby-comment cmt"># | | | |</span>
|
|
282
|
+
65: <span class="ruby-comment cmt"># | |_________________| |</span>
|
|
283
|
+
66: <span class="ruby-comment cmt"># | | | |</span>
|
|
284
|
+
67: <span class="ruby-comment cmt"># | | | |</span>
|
|
285
|
+
68: <span class="ruby-comment cmt"># | |</span>
|
|
286
|
+
69: <span class="ruby-comment cmt"># | |</span>
|
|
287
|
+
70: <span class="ruby-comment cmt"># | | | |</span>
|
|
292
288
|
71: <span class="ruby-comment cmt"># | |</span>
|
|
293
|
-
72: <span class="ruby-comment cmt"># |
|
|
294
|
-
73: <span class="ruby-
|
|
295
|
-
74:
|
|
289
|
+
72: <span class="ruby-comment cmt"># | ___ |</span>
|
|
290
|
+
73: <span class="ruby-ivar">@top_led</span> = <span class="ruby-constant">RabbitLed</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:top</span>)
|
|
291
|
+
74: <span class="ruby-comment cmt"># | | |</span>
|
|
296
292
|
75: <span class="ruby-comment cmt"># | |</span>
|
|
297
293
|
76: <span class="ruby-comment cmt"># | |</span>
|
|
298
294
|
77: <span class="ruby-comment cmt"># | |</span>
|
|
299
|
-
78: <span class="ruby-
|
|
295
|
+
78: <span class="ruby-ivar">@right_led</span>, <span class="ruby-ivar">@middle_led</span>, <span class="ruby-ivar">@left_led</span> = <span class="ruby-constant">RabbitLed</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:right</span>), <span class="ruby-constant">RabbitLed</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:middle</span>), <span class="ruby-constant">RabbitLed</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:left</span>)
|
|
300
296
|
79: <span class="ruby-comment cmt"># | |</span>
|
|
301
|
-
80: <span class="ruby-comment cmt"># |
|
|
302
|
-
81: <span class="ruby-comment cmt">#
|
|
303
|
-
82: <span class="ruby-comment cmt">#
|
|
304
|
-
83:
|
|
297
|
+
80: <span class="ruby-comment cmt"># | |</span>
|
|
298
|
+
81: <span class="ruby-comment cmt"># | |</span>
|
|
299
|
+
82: <span class="ruby-comment cmt"># | |</span>
|
|
300
|
+
83: <span class="ruby-comment cmt"># | |</span>
|
|
301
|
+
84: <span class="ruby-comment cmt"># | | |</span>
|
|
302
|
+
85: <span class="ruby-comment cmt"># / @bottom_led = RabbitLed.new :bottom</span>
|
|
303
|
+
86: <span class="ruby-comment cmt"># -----------------------------------------------</span>
|
|
304
|
+
87: <span class="ruby-keyword kw">end</span>
|
|
305
305
|
</pre>
|
|
306
306
|
</div>
|
|
307
307
|
</div>
|
|
@@ -323,10 +323,10 @@ mean that they are valid.
|
|
|
323
323
|
onclick="toggleCode('M000010-source');return false;">[Source]</a></p>
|
|
324
324
|
<div class="method-source-code" id="M000010-source">
|
|
325
325
|
<pre>
|
|
326
|
-
<span class="ruby-comment cmt"># File lib/libastag.rb, line
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
326
|
+
<span class="ruby-comment cmt"># File lib/libastag.rb, line 95</span>
|
|
327
|
+
95: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">asleep?</span>
|
|
328
|
+
96: <span class="ruby-comment cmt"># TODO</span>
|
|
329
|
+
97: <span class="ruby-keyword kw">end</span>
|
|
330
330
|
</pre>
|
|
331
331
|
</div>
|
|
332
332
|
</div>
|
|
@@ -346,10 +346,10 @@ mean that they are valid.
|
|
|
346
346
|
onclick="toggleCode('M000012-source');return false;">[Source]</a></p>
|
|
347
347
|
<div class="method-source-code" id="M000012-source">
|
|
348
348
|
<pre>
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
349
|
+
<span class="ruby-comment cmt"># File lib/libastag.rb, line 101</span>
|
|
350
|
+
101: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">awake?</span>
|
|
351
|
+
102: <span class="ruby-comment cmt"># TODO</span>
|
|
352
|
+
103: <span class="ruby-keyword kw">end</span>
|
|
353
353
|
</pre>
|
|
354
354
|
</div>
|
|
355
355
|
</div>
|
|
@@ -369,10 +369,10 @@ mean that they are valid.
|
|
|
369
369
|
onclick="toggleCode('M000009-source');return false;">[Source]</a></p>
|
|
370
370
|
<div class="method-source-code" id="M000009-source">
|
|
371
371
|
<pre>
|
|
372
|
-
<span class="ruby-comment cmt"># File lib/libastag.rb, line
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
372
|
+
<span class="ruby-comment cmt"># File lib/libastag.rb, line 92</span>
|
|
373
|
+
92: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">name</span>
|
|
374
|
+
93: <span class="ruby-comment cmt"># TODO</span>
|
|
375
|
+
94: <span class="ruby-keyword kw">end</span>
|
|
376
376
|
</pre>
|
|
377
377
|
</div>
|
|
378
378
|
</div>
|
|
@@ -392,10 +392,10 @@ mean that they are valid.
|
|
|
392
392
|
onclick="toggleCode('M000011-source');return false;">[Source]</a></p>
|
|
393
393
|
<div class="method-source-code" id="M000011-source">
|
|
394
394
|
<pre>
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
395
|
+
<span class="ruby-comment cmt"># File lib/libastag.rb, line 98</span>
|
|
396
|
+
98: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sleep!</span>
|
|
397
|
+
99: <span class="ruby-comment cmt"># TODO</span>
|
|
398
|
+
100: <span class="ruby-keyword kw">end</span>
|
|
399
399
|
</pre>
|
|
400
400
|
</div>
|
|
401
401
|
</div>
|
|
@@ -415,10 +415,10 @@ mean that they are valid.
|
|
|
415
415
|
onclick="toggleCode('M000014-source');return false;">[Source]</a></p>
|
|
416
416
|
<div class="method-source-code" id="M000014-source">
|
|
417
417
|
<pre>
|
|
418
|
-
<span class="ruby-comment cmt"># File lib/libastag.rb, line
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
418
|
+
<span class="ruby-comment cmt"># File lib/libastag.rb, line 107</span>
|
|
419
|
+
107: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">version</span>
|
|
420
|
+
108: <span class="ruby-comment cmt"># TODO</span>
|
|
421
|
+
109: <span class="ruby-keyword kw">end</span>
|
|
422
422
|
</pre>
|
|
423
423
|
</div>
|
|
424
424
|
</div>
|
|
@@ -438,10 +438,10 @@ mean that they are valid.
|
|
|
438
438
|
onclick="toggleCode('M000013-source');return false;">[Source]</a></p>
|
|
439
439
|
<div class="method-source-code" id="M000013-source">
|
|
440
440
|
<pre>
|
|
441
|
-
<span class="ruby-comment cmt"># File lib/libastag.rb, line
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
441
|
+
<span class="ruby-comment cmt"># File lib/libastag.rb, line 104</span>
|
|
442
|
+
104: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">wakeup!</span>
|
|
443
|
+
105: <span class="ruby-comment cmt"># TODO</span>
|
|
444
|
+
106: <span class="ruby-keyword kw">end</span>
|
|
445
445
|
</pre>
|
|
446
446
|
</div>
|
|
447
447
|
</div>
|
|
@@ -79,12 +79,12 @@
|
|
|
79
79
|
<div id="contextContent">
|
|
80
80
|
<div id="diagram">
|
|
81
81
|
<map id="map" name="map">
|
|
82
|
-
<area shape="rect" coords="219,
|
|
83
|
-
<area shape="rect" coords="123,
|
|
84
|
-
<area shape="rect" coords="27,
|
|
82
|
+
<area shape="rect" coords="219,50,291,98" href="RabitEar.html" alt="RabitEar" />
|
|
83
|
+
<area shape="rect" coords="123,50,195,98" href="RabitLed.html" alt="RabitLed" />
|
|
84
|
+
<area shape="rect" coords="27,50,99,98" href="Rabbit.html" alt="Rabbit" />
|
|
85
85
|
<area shape="rect" coords="16,16,328,109" href="../Libastag.html" alt="Libastag" />
|
|
86
86
|
</map>
|
|
87
|
-
<img src="../../dot/
|
|
87
|
+
<img src="../../dot/f_5.png" usemap="#map" border="0" alt="dot/f_5.png">
|
|
88
88
|
</div>
|
|
89
89
|
|
|
90
90
|
|
|
@@ -79,12 +79,12 @@
|
|
|
79
79
|
<div id="contextContent">
|
|
80
80
|
<div id="diagram">
|
|
81
81
|
<map id="map" name="map">
|
|
82
|
-
<area shape="rect" coords="219,
|
|
83
|
-
<area shape="rect" coords="123,
|
|
84
|
-
<area shape="rect" coords="27,
|
|
82
|
+
<area shape="rect" coords="219,50,291,98" href="RabitEar.html" alt="RabitEar" />
|
|
83
|
+
<area shape="rect" coords="123,50,195,98" href="RabitLed.html" alt="RabitLed" />
|
|
84
|
+
<area shape="rect" coords="27,50,99,98" href="Rabbit.html" alt="Rabbit" />
|
|
85
85
|
<area shape="rect" coords="16,16,328,109" href="../Libastag.html" alt="Libastag" />
|
|
86
86
|
</map>
|
|
87
|
-
<img src="../../dot/
|
|
87
|
+
<img src="../../dot/f_5.png" usemap="#map" border="0" alt="dot/f_5.png">
|
|
88
88
|
</div>
|
|
89
89
|
|
|
90
90
|
|
data/doc/classes/Request.html
CHANGED
|
@@ -73,30 +73,23 @@
|
|
|
73
73
|
<div id="contextContent">
|
|
74
74
|
<div id="diagram">
|
|
75
75
|
<map id="map" name="map">
|
|
76
|
-
<area shape="rect" coords="
|
|
77
|
-
<area shape="rect" coords="27,
|
|
78
|
-
<area shape="rect" coords="123,
|
|
79
|
-
<area shape="rect" coords="
|
|
80
|
-
<area shape="rect" coords="
|
|
81
|
-
<area shape="rect" coords="
|
|
82
|
-
<area shape="rect" coords="
|
|
83
|
-
<area shape="rect" coords="
|
|
84
|
-
<area shape="rect" coords="
|
|
85
|
-
<area shape="rect" coords="
|
|
76
|
+
<area shape="rect" coords="736,86,808,134" href="Request/Base/Event.html" alt="Event" />
|
|
77
|
+
<area shape="rect" coords="27,182,99,230" href="Request/Action.html" alt="Action" />
|
|
78
|
+
<area shape="rect" coords="123,182,216,230" href="Request/AudioStream.html" alt="AudioStream" />
|
|
79
|
+
<area shape="rect" coords="240,182,333,230" href="Request/Choregraphy.html" alt="Choregraphy" />
|
|
80
|
+
<area shape="rect" coords="357,182,448,230" href="Request/TtsMessage.html" alt="TtsMessage" />
|
|
81
|
+
<area shape="rect" coords="472,182,555,230" href="Request/IdMessage.html" alt="IdMessage" />
|
|
82
|
+
<area shape="rect" coords="579,182,685,230" href="Request/SetEarsPosition.html" alt="SetEarsPosition" />
|
|
83
|
+
<area shape="rect" coords="709,182,813,230" href="Request/Base/EventCollection.html" alt="EventCollection" />
|
|
84
|
+
<area shape="rect" coords="984,86,1061,134" href="Enumerable.html" alt="Enumerable" />
|
|
85
|
+
<area shape="rect" coords="307,86,379,134" href="Request/Query.html" alt="Query" />
|
|
86
|
+
<area shape="rect" coords="835,74,963,122" href="Request/GET_EARS_POSITION.html" alt="GET_EARS_POSITION" />
|
|
87
|
+
<area shape="rect" coords="699,51,824,240" href="Request/Base.html" alt="Base" />
|
|
88
|
+
<area shape="rect" coords="16,16,973,251" href="Request.html" alt="Request" />
|
|
86
89
|
</map>
|
|
87
90
|
<img src="../dot/f_8.png" usemap="#map" border="0" alt="dot/f_8.png">
|
|
88
91
|
</div>
|
|
89
92
|
|
|
90
|
-
<div id="description">
|
|
91
|
-
<h2>violet/request.rb</h2>
|
|
92
|
-
<p>
|
|
93
|
-
contains events to send to the server. <a
|
|
94
|
-
href="Request/Action.html">Action</a> instances are constants, because
|
|
95
|
-
they‘re always the same request, but other Event derivated class are
|
|
96
|
-
used to create objects.
|
|
97
|
-
</p>
|
|
98
|
-
|
|
99
|
-
</div>
|
|
100
93
|
|
|
101
94
|
|
|
102
95
|
</div>
|
|
@@ -115,6 +108,9 @@ used to create objects.
|
|
|
115
108
|
Module <a href="Request/Base.html" class="link">Request::Base</a><br />
|
|
116
109
|
Module <a href="Request/GET_EARS_POSITION.html" class="link">Request::GET_EARS_POSITION</a><br />
|
|
117
110
|
Class <a href="Request/Action.html" class="link">Request::Action</a><br />
|
|
111
|
+
Class <a href="Request/AudioStream.html" class="link">Request::AudioStream</a><br />
|
|
112
|
+
Class <a href="Request/Choregraphy.html" class="link">Request::Choregraphy</a><br />
|
|
113
|
+
Class <a href="Request/IdMessage.html" class="link">Request::IdMessage</a><br />
|
|
118
114
|
Class <a href="Request/Query.html" class="link">Request::Query</a><br />
|
|
119
115
|
Class <a href="Request/SetEarsPosition.html" class="link">Request::SetEarsPosition</a><br />
|
|
120
116
|
Class <a href="Request/TtsMessage.html" class="link">Request::TtsMessage</a><br />
|
|
@@ -132,7 +128,7 @@ Class <a href="Request/TtsMessage.html" class="link">Request::TtsMessage</a><br
|
|
|
132
128
|
<td class="context-item-value">'http://api.nabaztag.com/vl/FR/api.jsp'</td>
|
|
133
129
|
<td width="3em"> </td>
|
|
134
130
|
<td class="context-item-desc">
|
|
135
|
-
the
|
|
131
|
+
the VioletAPI url where we send request.
|
|
136
132
|
|
|
137
133
|
</td>
|
|
138
134
|
</tr>
|
|
@@ -142,7 +138,7 @@ the <a href="VioletAPI.html">VioletAPI</a> url where we send request.
|
|
|
142
138
|
<td class="context-item-value">'http://api.nabaztag.com/vl/FR/api_stream.jsp'</td>
|
|
143
139
|
<td width="3em"> </td>
|
|
144
140
|
<td class="context-item-desc">
|
|
145
|
-
the
|
|
141
|
+
the VioletAPI url for stream request.
|
|
146
142
|
|
|
147
143
|
</td>
|
|
148
144
|
</tr>
|
|
@@ -152,7 +148,7 @@ the <a href="VioletAPI.html">VioletAPI</a> url for stream request.
|
|
|
152
148
|
<td class="context-item-value">Action.new 1</td>
|
|
153
149
|
<td width="3em"> </td>
|
|
154
150
|
<td class="context-item-desc">
|
|
155
|
-
Preview the TTS or music (with music id) without sending it Examples
|
|
151
|
+
Preview the TTS or music (with music id) without sending it Examples
|
|
156
152
|
|
|
157
153
|
<pre>
|
|
158
154
|
Query.new(:event => GET_LINKPREVIEW, :serial => my_serial, :token => my_token).send! # => #<Response::LinkPreview:0x2aaaab100f88 @xml=<UNDEFINED> ... </>>
|
|
@@ -168,7 +164,7 @@ see <a href="Response/LinkPreview.html">Response::LinkPreview</a>
|
|
|
168
164
|
<td class="context-item-value">Action.new 2</td>
|
|
169
165
|
<td width="3em"> </td>
|
|
170
166
|
<td class="context-item-desc">
|
|
171
|
-
Get a list of your friends Examples
|
|
167
|
+
Get a list of your friends Examples
|
|
172
168
|
|
|
173
169
|
<pre>
|
|
174
170
|
Query.new(:event => GET_FRIENDS_LIST, :serial => my_serial, :token => my_token).send! # => #<Response::ListFriend:0x2af08fd53568 @xml=<UNDEFINED> ... </>>
|
|
@@ -184,7 +180,7 @@ see <a href="Response/ListFriend.html">Response::ListFriend</a>
|
|
|
184
180
|
<td class="context-item-value">Action.new 3</td>
|
|
185
181
|
<td width="3em"> </td>
|
|
186
182
|
<td class="context-item-desc">
|
|
187
|
-
Get a count and the list of the messages in your inbox Examples
|
|
183
|
+
Get a count and the list of the messages in your inbox Examples
|
|
188
184
|
|
|
189
185
|
<pre>
|
|
190
186
|
Query.new(:event => GET_INBOX_LIST, :serial => my_serial, :token => my_token).send! # => #<Response::ListReceivedMsg:0x2aaaab0e0be8 @xml=<UNDEFINED> ... </>>
|
|
@@ -200,7 +196,7 @@ see <a href="Response/ListReceivedMsg.html">Response::ListReceivedMsg</a>
|
|
|
200
196
|
<td class="context-item-value">Action.new 4</td>
|
|
201
197
|
<td width="3em"> </td>
|
|
202
198
|
<td class="context-item-desc">
|
|
203
|
-
Get the timezone in which your Nabaztag is set Examples
|
|
199
|
+
Get the timezone in which your Nabaztag is set Examples
|
|
204
200
|
|
|
205
201
|
<pre>
|
|
206
202
|
Query.new(:event => GET_TIMEZONE, :serial => my_serial, :token => my_token).send! # => #<Response::Timezone:0x2af091e58f60 @xml=<UNDEFINED> ... </>>
|
|
@@ -216,7 +212,7 @@ see <a href="Response/Timezone.html">Response::Timezone</a>
|
|
|
216
212
|
<td class="context-item-value">Action.new 5</td>
|
|
217
213
|
<td width="3em"> </td>
|
|
218
214
|
<td class="context-item-desc">
|
|
219
|
-
Get the signature defined for the Nabaztag Examples
|
|
215
|
+
Get the signature defined for the Nabaztag Examples
|
|
220
216
|
|
|
221
217
|
<pre>
|
|
222
218
|
Query.new(:event => GET_SIGNATURE, :serial => my_serial, :token => my_token).send! # => #<Response::Signature:0x2aaaab0c8c28 @xml=<UNDEFINED> ... </>>
|
|
@@ -232,7 +228,7 @@ see <a href="Response/Signature.html">Response::Signature</a>
|
|
|
232
228
|
<td class="context-item-value">Action.new 6</td>
|
|
233
229
|
<td width="3em"> </td>
|
|
234
230
|
<td class="context-item-desc">
|
|
235
|
-
Get a count and the list of people in your blacklist Examples
|
|
231
|
+
Get a count and the list of people in your blacklist Examples
|
|
236
232
|
|
|
237
233
|
<pre>
|
|
238
234
|
Query.new(:event => GET_BLACKLISTED, :serial => my_serial, :token => my_token).send! # => #<Response::Blacklist:0x2aaaab0b0ad8 @xml=<UNDEFINED> ... </>>
|
|
@@ -248,7 +244,7 @@ see <a href="Response/Blacklist.html">Response::Blacklist</a>
|
|
|
248
244
|
<td class="context-item-value">Action.new 7</td>
|
|
249
245
|
<td width="3em"> </td>
|
|
250
246
|
<td class="context-item-desc">
|
|
251
|
-
Get to know if the Nabaztag is sleeping (YES) or not (NO) Examples
|
|
247
|
+
Get to know if the Nabaztag is sleeping (YES) or not (NO) Examples
|
|
252
248
|
|
|
253
249
|
<pre>
|
|
254
250
|
Query.new(:event => GET_RABBIT_STATUS, :serial => my_serial, :token => my_token).send! # => #<Response::RabbitSleep:0x2aaaab092a88 @xml=<UNDEFINED> ... </>>
|
|
@@ -265,7 +261,7 @@ see <a href="Response/RabbitSleep.html">Response::RabbitSleep</a>
|
|
|
265
261
|
<td width="3em"> </td>
|
|
266
262
|
<td class="context-item-desc">
|
|
267
263
|
Get to know if the Nabaztag is a Nabaztag (V1) or a Nabaztag/tag (V2)
|
|
268
|
-
Examples
|
|
264
|
+
Examples
|
|
269
265
|
|
|
270
266
|
<pre>
|
|
271
267
|
Query.new(:event => GET_RABBIT_VERSION, :serial => my_serial, :token => my_token).send! # => #<Response::RabbitVersion:0x2aaaab07c418 @xml=<UNDEFINED> ... </>>
|
|
@@ -282,7 +278,7 @@ see <a href="Response/RabbitVersion.html">Response::RabbitVersion</a>
|
|
|
282
278
|
<td width="3em"> </td>
|
|
283
279
|
<td class="context-item-desc">
|
|
284
280
|
Get a list of all supported languages/voices for TTS (text to speach)
|
|
285
|
-
engine Examples
|
|
281
|
+
engine Examples
|
|
286
282
|
|
|
287
283
|
<pre>
|
|
288
284
|
Query.new(:event => GET_LANG_VOICE, :serial => my_serial, :token => my_token).send! # => #<Response::VoiceListTts:0x2aaaab064368 @xml=<UNDEFINED> ... </>>
|
|
@@ -298,7 +294,7 @@ see <a href="Response/VoiceListTts.html">Response::VoiceListTts</a>
|
|
|
298
294
|
<td class="context-item-value">Action.new 10</td>
|
|
299
295
|
<td width="3em"> </td>
|
|
300
296
|
<td class="context-item-desc">
|
|
301
|
-
Get the name of the Nabaztag Examples
|
|
297
|
+
Get the name of the Nabaztag Examples
|
|
302
298
|
|
|
303
299
|
<pre>
|
|
304
300
|
Query.new(:event => GET_RABBIT_NAME, :serial => my_serial, :token => my_token).send! # => #<Response::RabbitName:0x2aaaab0459b8 @xml=<UNDEFINED> ... </>>
|
|
@@ -314,7 +310,7 @@ see <a href="Response/RabbitName.html">Response::RabbitName</a>
|
|
|
314
310
|
<td class="context-item-value">Action.new 11</td>
|
|
315
311
|
<td width="3em"> </td>
|
|
316
312
|
<td class="context-item-desc">
|
|
317
|
-
Get the languages selected for the Nabaztag Examples
|
|
313
|
+
Get the languages selected for the Nabaztag Examples
|
|
318
314
|
|
|
319
315
|
<pre>
|
|
320
316
|
Query.new(:event => GET_SELECTED_LANG, :serial => my_serial, :token => my_token).send! # => #<Response::LangListUser:0x2aaaab02bfb8 @xml=<UNDEFINED> ... </>>
|
|
@@ -331,7 +327,7 @@ see <a href="Response/LangListUser.html">Response::LangListUser</a>
|
|
|
331
327
|
<td width="3em"> </td>
|
|
332
328
|
<td class="context-item-desc">
|
|
333
329
|
Get a preview of a message. This works only with the urlPlay parameter and
|
|
334
|
-
URLs like broad/001/076/801/262.mp3 Examples
|
|
330
|
+
URLs like broad/001/076/801/262.mp3 Examples
|
|
335
331
|
|
|
336
332
|
<pre>
|
|
337
333
|
Query.new(:event => GET_MESSAGE_PREVIEW, :serial => my_serial, :token => my_token).send! # => #<Response::LinkPreview:0x2aaaab011258 @xml=<UNDEFINED> ... </>>
|
|
@@ -349,7 +345,7 @@ see <a href="Response/LinkPreview.html">Response::LinkPreview</a>
|
|
|
349
345
|
<td class="context-item-desc">
|
|
350
346
|
Get the position of the ears to your Nabaztag. this request is not an
|
|
351
347
|
action in the Violet API but we do as if it was because it‘s make
|
|
352
|
-
more sens (to me). Examples
|
|
348
|
+
more sens (to me). Examples
|
|
353
349
|
|
|
354
350
|
<pre>
|
|
355
351
|
Query.new(:event => GET_EARS_POSITION, :serial => my_serial, :token => my_token).send! # => #<Response::PositionEar:0x2aaaaaff6908 @xml=<UNDEFINED> ... </>>
|
|
@@ -365,7 +361,7 @@ see <a href="Response/PositionEar.html">Response::PositionEar</a>
|
|
|
365
361
|
<td class="context-item-value">Action.new 13</td>
|
|
366
362
|
<td width="3em"> </td>
|
|
367
363
|
<td class="context-item-desc">
|
|
368
|
-
Send your Rabbit to sleep Examples
|
|
364
|
+
Send your Rabbit to sleep Examples
|
|
369
365
|
|
|
370
366
|
<pre>
|
|
371
367
|
Query.new(:event => SET_RABBIT_ASLEEP, :serial => my_serial, :token => my_token).send! # => #<Response::CommandSend:0x2aaaaafbf980 @xml=<UNDEFINED> ... </>>
|
|
@@ -381,7 +377,7 @@ see <a href="Response/CommandSend.html">Response::CommandSend</a>
|
|
|
381
377
|
<td class="context-item-value">Action.new 14</td>
|
|
382
378
|
<td width="3em"> </td>
|
|
383
379
|
<td class="context-item-desc">
|
|
384
|
-
Wake up your Rabbit Examples
|
|
380
|
+
Wake up your Rabbit Examples
|
|
385
381
|
|
|
386
382
|
<pre>
|
|
387
383
|
Query.new(:event => SET_RABBIT_AWAKE, :serial => my_serial, :token => my_token).send! # => #<Response::CommandSend:0x2aaaaafa60c0 @xml=<UNDEFINED> ... </>>
|