libastag 0.0.1

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.
Files changed (96) hide show
  1. data/CHANGES +7 -0
  2. data/MIT-LICENSE +19 -0
  3. data/README +65 -0
  4. data/Rakefile +276 -0
  5. data/TODO +7 -0
  6. data/doc/classes/Helpers/REXML/Attributes.html +179 -0
  7. data/doc/classes/Helpers/REXML.html +115 -0
  8. data/doc/classes/Helpers.html +181 -0
  9. data/doc/classes/Libastag/Rabbit.html +462 -0
  10. data/doc/classes/Libastag/RabitEar.html +120 -0
  11. data/doc/classes/Libastag/RabitLed.html +120 -0
  12. data/doc/classes/Libastag.html +141 -0
  13. data/doc/classes/Request/Action.html +213 -0
  14. data/doc/classes/Request/Base/Event.html +226 -0
  15. data/doc/classes/Request/Base/EventCollection.html +246 -0
  16. data/doc/classes/Request/Base.html +134 -0
  17. data/doc/classes/Request/GET_EARS_POSITION.html +151 -0
  18. data/doc/classes/Request/Query.html +244 -0
  19. data/doc/classes/Request/SetEarsPosition.html +213 -0
  20. data/doc/classes/Request/TtsMessage.html +235 -0
  21. data/doc/classes/Request.html +414 -0
  22. data/doc/classes/Response/AbuseSending.html +165 -0
  23. data/doc/classes/Response/Base/BadServerRsp.html +163 -0
  24. data/doc/classes/Response/Base/GoodServerRsp.html +161 -0
  25. data/doc/classes/Response/Base/ServerRsp.html +347 -0
  26. data/doc/classes/Response/Base.html +162 -0
  27. data/doc/classes/Response/Blacklist.html +165 -0
  28. data/doc/classes/Response/ChorNotSend.html +166 -0
  29. data/doc/classes/Response/ChorSend.html +165 -0
  30. data/doc/classes/Response/CommandSend.html +168 -0
  31. data/doc/classes/Response/EarPositionNotSend.html +165 -0
  32. data/doc/classes/Response/EarPositionSend.html +165 -0
  33. data/doc/classes/Response/EmptyServerRsp.html +161 -0
  34. data/doc/classes/Response/LangListUser.html +166 -0
  35. data/doc/classes/Response/LinkPreview.html +165 -0
  36. data/doc/classes/Response/ListFriend.html +165 -0
  37. data/doc/classes/Response/ListReceivedMsg.html +165 -0
  38. data/doc/classes/Response/MessageNotSend.html +165 -0
  39. data/doc/classes/Response/MessageSend.html +165 -0
  40. data/doc/classes/Response/NabCastNotSend.html +169 -0
  41. data/doc/classes/Response/NabCastSend.html +165 -0
  42. data/doc/classes/Response/NoCorrectParameters.html +165 -0
  43. data/doc/classes/Response/NoGoodTokenOrSerial.html +165 -0
  44. data/doc/classes/Response/NotV2Rabbit.html +165 -0
  45. data/doc/classes/Response/PositionEar.html +166 -0
  46. data/doc/classes/Response/ProtocolExcepion.html +164 -0
  47. data/doc/classes/Response/RabbitName.html +164 -0
  48. data/doc/classes/Response/RabbitSleep.html +164 -0
  49. data/doc/classes/Response/RabbitVersion.html +164 -0
  50. data/doc/classes/Response/Signature.html +164 -0
  51. data/doc/classes/Response/Timezone.html +164 -0
  52. data/doc/classes/Response/TtsNotSend.html +168 -0
  53. data/doc/classes/Response/TtsSend.html +165 -0
  54. data/doc/classes/Response/VoiceListTts.html +165 -0
  55. data/doc/classes/Response/WebRadioNotSend.html +165 -0
  56. data/doc/classes/Response/WebRadioSend.html +165 -0
  57. data/doc/classes/Response.html +337 -0
  58. data/doc/classes/VioletAPI.html +118 -0
  59. data/doc/created.rid +1 -0
  60. data/doc/dot/f_0.dot +14 -0
  61. data/doc/dot/f_0.png +0 -0
  62. data/doc/dot/f_4.dot +57 -0
  63. data/doc/dot/f_4.png +0 -0
  64. data/doc/dot/f_5.dot +489 -0
  65. data/doc/dot/f_5.png +0 -0
  66. data/doc/dot/f_6.dot +55 -0
  67. data/doc/dot/f_6.png +0 -0
  68. data/doc/dot/f_7.dot +30 -0
  69. data/doc/dot/f_7.png +0 -0
  70. data/doc/dot/f_8.dot +142 -0
  71. data/doc/dot/f_8.png +0 -0
  72. data/doc/files/CHANGES.html +126 -0
  73. data/doc/files/MIT-LICENSE.html +134 -0
  74. data/doc/files/README.html +192 -0
  75. data/doc/files/TODO.html +126 -0
  76. data/doc/files/lib/libastag_rb.html +116 -0
  77. data/doc/files/lib/violet/helpers_rb.html +123 -0
  78. data/doc/files/lib/violet/request_rb.html +133 -0
  79. data/doc/files/lib/violet/response_rb.html +220 -0
  80. data/doc/files/lib/violet/violetapi_rb.html +114 -0
  81. data/doc/fr_class_index.html +79 -0
  82. data/doc/fr_file_index.html +35 -0
  83. data/doc/fr_method_index.html +56 -0
  84. data/doc/index.html +24 -0
  85. data/doc/rdoc-style.css +208 -0
  86. data/lib/libastag.rb +116 -0
  87. data/lib/violet/helpers.rb +48 -0
  88. data/lib/violet/request.rb +301 -0
  89. data/lib/violet/response.rb +412 -0
  90. data/lib/violet/violetapi.rb +14 -0
  91. data/test/fake_violet_srv.rb +94 -0
  92. data/test/test_helpers.rb +31 -0
  93. data/test/test_request.rb +20 -0
  94. data/test/test_response.rb +295 -0
  95. data/test/test_send.rb +137 -0
  96. metadata +264 -0
@@ -0,0 +1,235 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: Request::TtsMessage</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">Request::TtsMessage</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/violet/request_rb.html">
59
+ lib/violet/request.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ <a href="Base/Event.html">
69
+ Base::Event
70
+ </a>
71
+ </td>
72
+ </tr>
73
+ </table>
74
+ </div>
75
+ <!-- banner header -->
76
+
77
+ <div id="bodyContent">
78
+
79
+
80
+
81
+ <div id="contextContent">
82
+ <div id="diagram">
83
+ <map id="map" name="map">
84
+ <area shape="rect" coords="392,85,464,133" href="Base/Event.html" alt="Event" />
85
+ <area shape="rect" coords="27,181,99,229" href="Action.html" alt="Action" />
86
+ <area shape="rect" coords="123,181,211,229" href="TtsMessage.html" alt="TtsMessage" />
87
+ <area shape="rect" coords="235,181,341,229" href="SetEarsPosition.html" alt="SetEarsPosition" />
88
+ <area shape="rect" coords="365,181,469,229" href="Base/EventCollection.html" alt="EventCollection" />
89
+ <area shape="rect" coords="647,85,724,133" href="../Enumerable.html" alt="Enumerable" />
90
+ <area shape="rect" coords="135,85,207,133" href="Query.html" alt="Query" />
91
+ <area shape="rect" coords="491,73,625,121" href="GET_EARS_POSITION.html" alt="GET_EARS_POSITION" />
92
+ <area shape="rect" coords="355,51,480,240" href="Base.html" alt="Base" />
93
+ <area shape="rect" coords="16,16,636,251" href="../Request.html" alt="Request" />
94
+ </map>
95
+ <img src="../../dot/f_8.png" usemap="#map" border="0" alt="dot/f_8.png">
96
+ </div>
97
+
98
+
99
+
100
+ </div>
101
+
102
+ <div id="method-list">
103
+ <h3 class="section-bar">Methods</h3>
104
+
105
+ <div class="name-list">
106
+ <a href="#M000027">new</a>&nbsp;&nbsp;
107
+ <a href="#M000028">to_url</a>&nbsp;&nbsp;
108
+ </div>
109
+ </div>
110
+
111
+ </div>
112
+
113
+
114
+ <!-- if includes -->
115
+
116
+ <div id="section">
117
+
118
+
119
+ <div id="constants-list">
120
+ <h3 class="section-bar">Constants</h3>
121
+
122
+ <div class="name-list">
123
+ <table summary="Constants">
124
+ <tr class="top-aligned-row context-row">
125
+ <td class="context-item-name">MIN_SPEED</td>
126
+ <td>=</td>
127
+ <td class="context-item-value">1</td>
128
+ </tr>
129
+ <tr class="top-aligned-row context-row">
130
+ <td class="context-item-name">MAX_SPEED</td>
131
+ <td>=</td>
132
+ <td class="context-item-value">32000</td>
133
+ </tr>
134
+ <tr class="top-aligned-row context-row">
135
+ <td class="context-item-name">MIN_PITCH</td>
136
+ <td>=</td>
137
+ <td class="context-item-value">1</td>
138
+ </tr>
139
+ <tr class="top-aligned-row context-row">
140
+ <td class="context-item-name">MAX_PITCH</td>
141
+ <td>=</td>
142
+ <td class="context-item-value">32000</td>
143
+ </tr>
144
+ </table>
145
+ </div>
146
+ </div>
147
+
148
+
149
+
150
+
151
+
152
+
153
+ <!-- if method_list -->
154
+ <div id="methods">
155
+ <h3 class="section-bar">Public Class methods</h3>
156
+
157
+ <div id="method-M000027" class="method-detail">
158
+ <a name="M000027"></a>
159
+
160
+ <div class="method-heading">
161
+ <a href="#M000027" class="method-signature">
162
+ <span class="method-name">new</span><span class="method-args">(h)</span>
163
+ </a>
164
+ </div>
165
+
166
+ <div class="method-description">
167
+ <p><a class="source-toggle" href="#"
168
+ onclick="toggleCode('M000027-source');return false;">[Source]</a></p>
169
+ <div class="method-source-code" id="M000027-source">
170
+ <pre>
171
+ <span class="ruby-comment cmt"># File lib/violet/request.rb, line 140</span>
172
+ 140: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">h</span>
173
+ 141: <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'no text given'</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">h</span>[<span class="ruby-identifier">:tts</span>]
174
+ 142: <span class="ruby-ivar">@h</span> = <span class="ruby-identifier">h</span>.<span class="ruby-identifier">dup</span>
175
+ 143:
176
+ 144: [<span class="ruby-identifier">:speed</span>,<span class="ruby-identifier">:pitch</span>].<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">p</span><span class="ruby-operator">|</span>
177
+ 145: <span class="ruby-identifier">min</span> = <span class="ruby-constant">Helpers</span>.<span class="ruby-identifier">constantize</span>(<span class="ruby-node">&quot;#{self.class}::MIN_#{p.to_s.upcase}&quot;</span>)
178
+ 146: <span class="ruby-identifier">max</span> = <span class="ruby-constant">Helpers</span>.<span class="ruby-identifier">constantize</span>(<span class="ruby-node">&quot;#{self.class}::MAX_#{p.to_s.upcase}&quot;</span>)
179
+ 147:
180
+ 148: <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@h</span>[<span class="ruby-identifier">p</span>].<span class="ruby-identifier">to_i</span>.<span class="ruby-identifier">between?</span>(<span class="ruby-identifier">min</span>,<span class="ruby-identifier">max</span>)
181
+ 149: <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">&quot;#{p} values must be between #{min} and #{max}&quot;</span>)
182
+ 150: <span class="ruby-keyword kw">else</span>
183
+ 151: <span class="ruby-ivar">@h</span>[<span class="ruby-identifier">p</span>] = <span class="ruby-ivar">@h</span>[<span class="ruby-identifier">p</span>].<span class="ruby-identifier">to_i</span>
184
+ 152: <span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@h</span>[<span class="ruby-identifier">p</span>]
185
+ 153: <span class="ruby-keyword kw">end</span>
186
+ 154:
187
+ 155: <span class="ruby-ivar">@h</span>[<span class="ruby-identifier">:tts</span>] = <span class="ruby-constant">CGI</span>.<span class="ruby-identifier">escape</span> <span class="ruby-ivar">@h</span>[<span class="ruby-identifier">:tts</span>]
188
+ 156: <span class="ruby-keyword kw">end</span>
189
+ </pre>
190
+ </div>
191
+ </div>
192
+ </div>
193
+
194
+ <h3 class="section-bar">Public Instance methods</h3>
195
+
196
+ <div id="method-M000028" class="method-detail">
197
+ <a name="M000028"></a>
198
+
199
+ <div class="method-heading">
200
+ <a href="#M000028" class="method-signature">
201
+ <span class="method-name">to_url</span><span class="method-args">()</span>
202
+ </a>
203
+ </div>
204
+
205
+ <div class="method-description">
206
+ <p><a class="source-toggle" href="#"
207
+ onclick="toggleCode('M000028-source');return false;">[Source]</a></p>
208
+ <div class="method-source-code" id="M000028-source">
209
+ <pre>
210
+ <span class="ruby-comment cmt"># File lib/violet/request.rb, line 158</span>
211
+ 158: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_url</span>
212
+ 159: <span class="ruby-keyword kw">for</span> <span class="ruby-identifier">p</span> <span class="ruby-keyword kw">in</span> [<span class="ruby-identifier">:tts</span>,<span class="ruby-identifier">:voice</span>,<span class="ruby-identifier">:speed</span>,<span class="ruby-identifier">:pitch</span>] <span class="ruby-keyword kw">do</span>
213
+ 160: (<span class="ruby-identifier">url</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>) <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{p}=#{@h[p]}&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@h</span>[<span class="ruby-identifier">p</span>]
214
+ 161: <span class="ruby-keyword kw">end</span>
215
+ 162:
216
+ 163: <span class="ruby-identifier">url</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">'&amp;'</span>)
217
+ 164: <span class="ruby-keyword kw">end</span>
218
+ </pre>
219
+ </div>
220
+ </div>
221
+ </div>
222
+
223
+
224
+ </div>
225
+
226
+
227
+ </div>
228
+
229
+
230
+ <div id="validator-badges">
231
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
232
+ </div>
233
+
234
+ </body>
235
+ </html>
@@ -0,0 +1,414 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Module: Request</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Module</strong></td>
53
+ <td class="class-name-in-header">Request</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../files/lib/violet/request_rb.html">
59
+ lib/violet/request.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ </table>
66
+ </div>
67
+ <!-- banner header -->
68
+
69
+ <div id="bodyContent">
70
+
71
+
72
+
73
+ <div id="contextContent">
74
+ <div id="diagram">
75
+ <map id="map" name="map">
76
+ <area shape="rect" coords="392,85,464,133" href="Request/Base/Event.html" alt="Event" />
77
+ <area shape="rect" coords="27,181,99,229" href="Request/Action.html" alt="Action" />
78
+ <area shape="rect" coords="123,181,211,229" href="Request/TtsMessage.html" alt="TtsMessage" />
79
+ <area shape="rect" coords="235,181,341,229" href="Request/SetEarsPosition.html" alt="SetEarsPosition" />
80
+ <area shape="rect" coords="365,181,469,229" href="Request/Base/EventCollection.html" alt="EventCollection" />
81
+ <area shape="rect" coords="647,85,724,133" href="Enumerable.html" alt="Enumerable" />
82
+ <area shape="rect" coords="135,85,207,133" href="Request/Query.html" alt="Query" />
83
+ <area shape="rect" coords="491,73,625,121" href="Request/GET_EARS_POSITION.html" alt="GET_EARS_POSITION" />
84
+ <area shape="rect" coords="355,51,480,240" href="Request/Base.html" alt="Base" />
85
+ <area shape="rect" coords="16,16,636,251" href="Request.html" alt="Request" />
86
+ </map>
87
+ <img src="../dot/f_8.png" usemap="#map" border="0" alt="dot/f_8.png">
88
+ </div>
89
+
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&#8216;re always the same request, but other Event derivated class are
96
+ used to create objects.
97
+ </p>
98
+
99
+ </div>
100
+
101
+
102
+ </div>
103
+
104
+
105
+ </div>
106
+
107
+
108
+ <!-- if includes -->
109
+
110
+ <div id="section">
111
+
112
+ <div id="class-list">
113
+ <h3 class="section-bar">Classes and Modules</h3>
114
+
115
+ Module <a href="Request/Base.html" class="link">Request::Base</a><br />
116
+ Module <a href="Request/GET_EARS_POSITION.html" class="link">Request::GET_EARS_POSITION</a><br />
117
+ Class <a href="Request/Action.html" class="link">Request::Action</a><br />
118
+ Class <a href="Request/Query.html" class="link">Request::Query</a><br />
119
+ Class <a href="Request/SetEarsPosition.html" class="link">Request::SetEarsPosition</a><br />
120
+ Class <a href="Request/TtsMessage.html" class="link">Request::TtsMessage</a><br />
121
+
122
+ </div>
123
+
124
+ <div id="constants-list">
125
+ <h3 class="section-bar">Constants</h3>
126
+
127
+ <div class="name-list">
128
+ <table summary="Constants">
129
+ <tr class="top-aligned-row context-row">
130
+ <td class="context-item-name">API_URL</td>
131
+ <td>=</td>
132
+ <td class="context-item-value">'http://api.nabaztag.com/vl/FR/api.jsp'</td>
133
+ <td width="3em">&nbsp;</td>
134
+ <td class="context-item-desc">
135
+ the <a href="VioletAPI.html">VioletAPI</a> url where we send request.
136
+
137
+ </td>
138
+ </tr>
139
+ <tr class="top-aligned-row context-row">
140
+ <td class="context-item-name">APISTREAM_URL</td>
141
+ <td>=</td>
142
+ <td class="context-item-value">'http://api.nabaztag.com/vl/FR/api_stream.jsp'</td>
143
+ <td width="3em">&nbsp;</td>
144
+ <td class="context-item-desc">
145
+ the <a href="VioletAPI.html">VioletAPI</a> url for stream request.
146
+
147
+ </td>
148
+ </tr>
149
+ <tr class="top-aligned-row context-row">
150
+ <td class="context-item-name">GET_LINKPREVIEW</td>
151
+ <td>=</td>
152
+ <td class="context-item-value">Action.new 1</td>
153
+ <td width="3em">&nbsp;</td>
154
+ <td class="context-item-desc">
155
+ Preview the TTS or music (with music id) without sending it Examples:
156
+
157
+ <pre>
158
+ Query.new(:event =&gt; GET_LINKPREVIEW, :serial =&gt; my_serial, :token =&gt; my_token).send! # =&gt; #&lt;Response::LinkPreview:0x2aaaab100f88 @xml=&lt;UNDEFINED&gt; ... &lt;/&gt;&gt;
159
+ </pre>
160
+ <p>
161
+ see <a href="Response/LinkPreview.html">Response::LinkPreview</a>
162
+ </p>
163
+ </td>
164
+ </tr>
165
+ <tr class="top-aligned-row context-row">
166
+ <td class="context-item-name">GET_FRIENDS_LIST</td>
167
+ <td>=</td>
168
+ <td class="context-item-value">Action.new 2</td>
169
+ <td width="3em">&nbsp;</td>
170
+ <td class="context-item-desc">
171
+ Get a list of your friends Examples:
172
+
173
+ <pre>
174
+ Query.new(:event =&gt; GET_FRIENDS_LIST, :serial =&gt; my_serial, :token =&gt; my_token).send! # =&gt; #&lt;Response::ListFriend:0x2af08fd53568 @xml=&lt;UNDEFINED&gt; ... &lt;/&gt;&gt;
175
+ </pre>
176
+ <p>
177
+ see <a href="Response/ListFriend.html">Response::ListFriend</a>
178
+ </p>
179
+ </td>
180
+ </tr>
181
+ <tr class="top-aligned-row context-row">
182
+ <td class="context-item-name">GET_INBOX_LIST</td>
183
+ <td>=</td>
184
+ <td class="context-item-value">Action.new 3</td>
185
+ <td width="3em">&nbsp;</td>
186
+ <td class="context-item-desc">
187
+ Get a count and the list of the messages in your inbox Examples:
188
+
189
+ <pre>
190
+ Query.new(:event =&gt; GET_INBOX_LIST, :serial =&gt; my_serial, :token =&gt; my_token).send! # =&gt; #&lt;Response::ListReceivedMsg:0x2aaaab0e0be8 @xml=&lt;UNDEFINED&gt; ... &lt;/&gt;&gt;
191
+ </pre>
192
+ <p>
193
+ see <a href="Response/ListReceivedMsg.html">Response::ListReceivedMsg</a>
194
+ </p>
195
+ </td>
196
+ </tr>
197
+ <tr class="top-aligned-row context-row">
198
+ <td class="context-item-name">GET_TIMEZONE</td>
199
+ <td>=</td>
200
+ <td class="context-item-value">Action.new 4</td>
201
+ <td width="3em">&nbsp;</td>
202
+ <td class="context-item-desc">
203
+ Get the timezone in which your Nabaztag is set Examples:
204
+
205
+ <pre>
206
+ Query.new(:event =&gt; GET_TIMEZONE, :serial =&gt; my_serial, :token =&gt; my_token).send! # =&gt; #&lt;Response::Timezone:0x2af091e58f60 @xml=&lt;UNDEFINED&gt; ... &lt;/&gt;&gt;
207
+ </pre>
208
+ <p>
209
+ see <a href="Response/Timezone.html">Response::Timezone</a>
210
+ </p>
211
+ </td>
212
+ </tr>
213
+ <tr class="top-aligned-row context-row">
214
+ <td class="context-item-name">GET_SIGNATURE</td>
215
+ <td>=</td>
216
+ <td class="context-item-value">Action.new 5</td>
217
+ <td width="3em">&nbsp;</td>
218
+ <td class="context-item-desc">
219
+ Get the signature defined for the Nabaztag Examples:
220
+
221
+ <pre>
222
+ Query.new(:event =&gt; GET_SIGNATURE, :serial =&gt; my_serial, :token =&gt; my_token).send! # =&gt; #&lt;Response::Signature:0x2aaaab0c8c28 @xml=&lt;UNDEFINED&gt; ... &lt;/&gt;&gt;
223
+ </pre>
224
+ <p>
225
+ see <a href="Response/Signature.html">Response::Signature</a>
226
+ </p>
227
+ </td>
228
+ </tr>
229
+ <tr class="top-aligned-row context-row">
230
+ <td class="context-item-name">GET_BLACKLISTED</td>
231
+ <td>=</td>
232
+ <td class="context-item-value">Action.new 6</td>
233
+ <td width="3em">&nbsp;</td>
234
+ <td class="context-item-desc">
235
+ Get a count and the list of people in your blacklist Examples:
236
+
237
+ <pre>
238
+ Query.new(:event =&gt; GET_BLACKLISTED, :serial =&gt; my_serial, :token =&gt; my_token).send! # =&gt; #&lt;Response::Blacklist:0x2aaaab0b0ad8 @xml=&lt;UNDEFINED&gt; ... &lt;/&gt;&gt;
239
+ </pre>
240
+ <p>
241
+ see <a href="Response/Blacklist.html">Response::Blacklist</a>
242
+ </p>
243
+ </td>
244
+ </tr>
245
+ <tr class="top-aligned-row context-row">
246
+ <td class="context-item-name">GET_RABBIT_STATUS</td>
247
+ <td>=</td>
248
+ <td class="context-item-value">Action.new 7</td>
249
+ <td width="3em">&nbsp;</td>
250
+ <td class="context-item-desc">
251
+ Get to know if the Nabaztag is sleeping (YES) or not (NO) Examples:
252
+
253
+ <pre>
254
+ Query.new(:event =&gt; GET_RABBIT_STATUS, :serial =&gt; my_serial, :token =&gt; my_token).send! # =&gt; #&lt;Response::RabbitSleep:0x2aaaab092a88 @xml=&lt;UNDEFINED&gt; ... &lt;/&gt;&gt;
255
+ </pre>
256
+ <p>
257
+ see <a href="Response/RabbitSleep.html">Response::RabbitSleep</a>
258
+ </p>
259
+ </td>
260
+ </tr>
261
+ <tr class="top-aligned-row context-row">
262
+ <td class="context-item-name">GET_RABBIT_VERSION</td>
263
+ <td>=</td>
264
+ <td class="context-item-value">Action.new 8</td>
265
+ <td width="3em">&nbsp;</td>
266
+ <td class="context-item-desc">
267
+ Get to know if the Nabaztag is a Nabaztag (V1) or a Nabaztag/tag (V2)
268
+ Examples:
269
+
270
+ <pre>
271
+ Query.new(:event =&gt; GET_RABBIT_VERSION, :serial =&gt; my_serial, :token =&gt; my_token).send! # =&gt; #&lt;Response::RabbitVersion:0x2aaaab07c418 @xml=&lt;UNDEFINED&gt; ... &lt;/&gt;&gt;
272
+ </pre>
273
+ <p>
274
+ see <a href="Response/RabbitVersion.html">Response::RabbitVersion</a>
275
+ </p>
276
+ </td>
277
+ </tr>
278
+ <tr class="top-aligned-row context-row">
279
+ <td class="context-item-name">GET_LANG_VOICE</td>
280
+ <td>=</td>
281
+ <td class="context-item-value">Action.new 9</td>
282
+ <td width="3em">&nbsp;</td>
283
+ <td class="context-item-desc">
284
+ Get a list of all supported languages/voices for TTS (text to speach)
285
+ engine Examples:
286
+
287
+ <pre>
288
+ Query.new(:event =&gt; GET_LANG_VOICE, :serial =&gt; my_serial, :token =&gt; my_token).send! # =&gt; #&lt;Response::VoiceListTts:0x2aaaab064368 @xml=&lt;UNDEFINED&gt; ... &lt;/&gt;&gt;
289
+ </pre>
290
+ <p>
291
+ see <a href="Response/VoiceListTts.html">Response::VoiceListTts</a>
292
+ </p>
293
+ </td>
294
+ </tr>
295
+ <tr class="top-aligned-row context-row">
296
+ <td class="context-item-name">GET_RABBIT_NAME</td>
297
+ <td>=</td>
298
+ <td class="context-item-value">Action.new 10</td>
299
+ <td width="3em">&nbsp;</td>
300
+ <td class="context-item-desc">
301
+ Get the name of the Nabaztag Examples:
302
+
303
+ <pre>
304
+ Query.new(:event =&gt; GET_RABBIT_NAME, :serial =&gt; my_serial, :token =&gt; my_token).send! # =&gt; #&lt;Response::RabbitName:0x2aaaab0459b8 @xml=&lt;UNDEFINED&gt; ... &lt;/&gt;&gt;
305
+ </pre>
306
+ <p>
307
+ see <a href="Response/RabbitName.html">Response::RabbitName</a>
308
+ </p>
309
+ </td>
310
+ </tr>
311
+ <tr class="top-aligned-row context-row">
312
+ <td class="context-item-name">GET_SELECTED_LANG</td>
313
+ <td>=</td>
314
+ <td class="context-item-value">Action.new 11</td>
315
+ <td width="3em">&nbsp;</td>
316
+ <td class="context-item-desc">
317
+ Get the languages selected for the Nabaztag Examples:
318
+
319
+ <pre>
320
+ Query.new(:event =&gt; GET_SELECTED_LANG, :serial =&gt; my_serial, :token =&gt; my_token).send! # =&gt; #&lt;Response::LangListUser:0x2aaaab02bfb8 @xml=&lt;UNDEFINED&gt; ... &lt;/&gt;&gt;
321
+ </pre>
322
+ <p>
323
+ see <a href="Response/LangListUser.html">Response::LangListUser</a>
324
+ </p>
325
+ </td>
326
+ </tr>
327
+ <tr class="top-aligned-row context-row">
328
+ <td class="context-item-name">GET_MESSAGE_PREVIEW</td>
329
+ <td>=</td>
330
+ <td class="context-item-value">Action.new 12</td>
331
+ <td width="3em">&nbsp;</td>
332
+ <td class="context-item-desc">
333
+ Get a preview of a message. This works only with the urlPlay parameter and
334
+ URLs like broad/001/076/801/262.mp3 Examples:
335
+
336
+ <pre>
337
+ Query.new(:event =&gt; GET_MESSAGE_PREVIEW, :serial =&gt; my_serial, :token =&gt; my_token).send! # =&gt; #&lt;Response::LinkPreview:0x2aaaab011258 @xml=&lt;UNDEFINED&gt; ... &lt;/&gt;&gt;
338
+ </pre>
339
+ <p>
340
+ see <a href="Response/LinkPreview.html">Response::LinkPreview</a>
341
+ </p>
342
+ </td>
343
+ </tr>
344
+ <tr class="top-aligned-row context-row">
345
+ <td class="context-item-name">GET_EARS_POSITION</td>
346
+ <td>=</td>
347
+ <td class="context-item-value">Action.new nil</td>
348
+ <td width="3em">&nbsp;</td>
349
+ <td class="context-item-desc">
350
+ Get the position of the ears to your Nabaztag. this request is not an
351
+ action in the Violet API but we do as if it was because it&#8216;s make
352
+ more sens (to me). Examples:
353
+
354
+ <pre>
355
+ Query.new(:event =&gt; GET_EARS_POSITION, :serial =&gt; my_serial, :token =&gt; my_token).send! # =&gt; #&lt;Response::PositionEar:0x2aaaaaff6908 @xml=&lt;UNDEFINED&gt; ... &lt;/&gt;&gt;
356
+ </pre>
357
+ <p>
358
+ see <a href="Response/PositionEar.html">Response::PositionEar</a>
359
+ </p>
360
+ </td>
361
+ </tr>
362
+ <tr class="top-aligned-row context-row">
363
+ <td class="context-item-name">SET_RABBIT_ASLEEP</td>
364
+ <td>=</td>
365
+ <td class="context-item-value">Action.new 13</td>
366
+ <td width="3em">&nbsp;</td>
367
+ <td class="context-item-desc">
368
+ Send your Rabbit to sleep Examples:
369
+
370
+ <pre>
371
+ Query.new(:event =&gt; SET_RABBIT_ASLEEP, :serial =&gt; my_serial, :token =&gt; my_token).send! # =&gt; #&lt;Response::CommandSend:0x2aaaaafbf980 @xml=&lt;UNDEFINED&gt; ... &lt;/&gt;&gt;
372
+ </pre>
373
+ <p>
374
+ see <a href="Response/CommandSend.html">Response::CommandSend</a>
375
+ </p>
376
+ </td>
377
+ </tr>
378
+ <tr class="top-aligned-row context-row">
379
+ <td class="context-item-name">SET_RABBIT_AWAKE</td>
380
+ <td>=</td>
381
+ <td class="context-item-value">Action.new 14</td>
382
+ <td width="3em">&nbsp;</td>
383
+ <td class="context-item-desc">
384
+ Wake up your Rabbit Examples:
385
+
386
+ <pre>
387
+ Query.new(:event =&gt; SET_RABBIT_AWAKE, :serial =&gt; my_serial, :token =&gt; my_token).send! # =&gt; #&lt;Response::CommandSend:0x2aaaaafa60c0 @xml=&lt;UNDEFINED&gt; ... &lt;/&gt;&gt;
388
+ </pre>
389
+ <p>
390
+ see <a href="Response/CommandSend.html">Response::CommandSend</a>
391
+ </p>
392
+ </td>
393
+ </tr>
394
+ </table>
395
+ </div>
396
+ </div>
397
+
398
+
399
+
400
+
401
+
402
+
403
+ <!-- if method_list -->
404
+
405
+
406
+ </div>
407
+
408
+
409
+ <div id="validator-badges">
410
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
411
+ </div>
412
+
413
+ </body>
414
+ </html>