radiomanager_client 1.0.99 → 1.0.100

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 (62) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -5
  3. data/docs/BlockApi.md +13 -7
  4. data/docs/BroadcastApi.md +36 -24
  5. data/docs/BroadcastEPGDay.md +9 -0
  6. data/docs/BroadcastEPGRelations.md +13 -0
  7. data/docs/BroadcastEPGResult.md +40 -0
  8. data/docs/CampaignApi.md +9 -3
  9. data/docs/ContactApi.md +11 -5
  10. data/docs/EPGResults.md +10 -0
  11. data/docs/ExternalMessageApi.md +1 -1
  12. data/docs/GenreApi.md +7 -1
  13. data/docs/ItemApi.md +27 -25
  14. data/docs/ModelTypeApi.md +9 -3
  15. data/docs/PresenterApi.md +9 -3
  16. data/docs/PresenterEPGResult.md +18 -0
  17. data/docs/ProgramApi.md +17 -11
  18. data/docs/StationApi.md +57 -0
  19. data/docs/StationResult.md +8 -0
  20. data/docs/StationResultStation.md +33 -0
  21. data/docs/StoryApi.md +11 -5
  22. data/docs/StoryDataInput.md +1 -0
  23. data/docs/StringApi.md +1 -1
  24. data/docs/TagApi.md +7 -1
  25. data/docs/UserApi.md +8 -2
  26. data/docs/VisualSlideApi.md +1 -1
  27. data/lib/radiomanager_client/api/block_api.rb +29 -9
  28. data/lib/radiomanager_client/api/broadcast_api.rb +58 -29
  29. data/lib/radiomanager_client/api/campaign_api.rb +23 -3
  30. data/lib/radiomanager_client/api/contact_api.rb +25 -5
  31. data/lib/radiomanager_client/api/genre_api.rb +20 -0
  32. data/lib/radiomanager_client/api/item_api.rb +50 -39
  33. data/lib/radiomanager_client/api/model_type_api.rb +23 -3
  34. data/lib/radiomanager_client/api/presenter_api.rb +23 -3
  35. data/lib/radiomanager_client/api/program_api.rb +34 -14
  36. data/lib/radiomanager_client/api/station_api.rb +72 -0
  37. data/lib/radiomanager_client/api/story_api.rb +25 -5
  38. data/lib/radiomanager_client/api/tag_api.rb +20 -0
  39. data/lib/radiomanager_client/api/user_api.rb +20 -0
  40. data/lib/radiomanager_client/configuration.rb +1 -1
  41. data/lib/radiomanager_client/models/broadcast_epg_day.rb +204 -0
  42. data/lib/radiomanager_client/models/broadcast_epg_relations.rb +235 -0
  43. data/lib/radiomanager_client/models/broadcast_epg_result.rb +547 -0
  44. data/lib/radiomanager_client/models/epg_results.rb +223 -0
  45. data/lib/radiomanager_client/models/presenter_epg_result.rb +305 -0
  46. data/lib/radiomanager_client/models/station_result.rb +188 -0
  47. data/lib/radiomanager_client/models/station_result_station.rb +413 -0
  48. data/lib/radiomanager_client/models/story_data_input.rb +15 -4
  49. data/lib/radiomanager_client.rb +9 -3
  50. data/radiomanager_client.gemspec +1 -1
  51. data/spec/api/station_api_spec.rb +46 -0
  52. data/spec/configuration_spec.rb +3 -3
  53. data/spec/models/broadcast_epg_day_spec.rb +48 -0
  54. data/spec/models/broadcast_epg_relations_spec.rb +72 -0
  55. data/spec/models/broadcast_epg_result_spec.rb +238 -0
  56. data/spec/models/epg_results_spec.rb +54 -0
  57. data/spec/models/item_data_input_spec.rb +1 -1
  58. data/spec/models/item_input_only_spec.rb +1 -1
  59. data/spec/models/presenter_epg_result_spec.rb +102 -0
  60. data/spec/models/station_result_spec.rb +42 -0
  61. data/spec/models/station_result_station_spec.rb +186 -0
  62. metadata +34 -2
data/docs/UserApi.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # RadioManagerClient::UserApi
2
2
 
3
- All URIs are relative to *https://staging.radiomanager.pluxbox.com/api/v2*
3
+ All URIs are relative to *https://staging.radiomanager.io/api/v2*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -195,7 +195,10 @@ api_instance = RadioManagerClient::UserApi.new
195
195
 
196
196
  opts = {
197
197
  page: 1, # Integer | Current page *(Optional)*
198
- role_id: 789 # Integer | Search on Role ID *(Optional)*
198
+ role_id: 789, # Integer | Search on Role ID *(Optional)*
199
+ limit: 789, # Integer | Results per page *(Optional)*
200
+ order_by: "order_by_example", # String | Field to order the results *(Optional)*
201
+ order_direction: "order_direction_example" # String | Direction of ordering *(Optional)*
199
202
  }
200
203
 
201
204
  begin
@@ -213,6 +216,9 @@ Name | Type | Description | Notes
213
216
  ------------- | ------------- | ------------- | -------------
214
217
  **page** | **Integer**| Current page *(Optional)* | [optional] [default to 1]
215
218
  **role_id** | **Integer**| Search on Role ID *(Optional)* | [optional]
219
+ **limit** | **Integer**| Results per page *(Optional)* | [optional]
220
+ **order_by** | **String**| Field to order the results *(Optional)* | [optional]
221
+ **order_direction** | **String**| Direction of ordering *(Optional)* | [optional]
216
222
 
217
223
  ### Return type
218
224
 
@@ -1,6 +1,6 @@
1
1
  # RadioManagerClient::VisualSlideApi
2
2
 
3
- All URIs are relative to *https://staging.radiomanager.pluxbox.com/api/v2*
3
+ All URIs are relative to *https://staging.radiomanager.io/api/v2*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -184,11 +184,14 @@ module RadioManagerClient
184
184
  # Get a list of all blocks currently in your station. This feature supports pagination and will give a maximum of 50 blocks back.
185
185
  # @param [Hash] opts the optional parameters
186
186
  # @option opts [Integer] :page Current page *(Optional)* (default to 1)
187
- # @option opts [DateTime] :start_min Minimum start date *(Optional)*
188
- # @option opts [DateTime] :start_max Maximum start date *(Optional)*
189
187
  # @option opts [Integer] :broadcast_id Search on Broadcast ID *(Optional)* `(Relation)`
190
- # @option opts [Integer] :program_id Search on Program ID *(Optional)* `(Relation)`
191
188
  # @option opts [Integer] :item_id Search on Item ID *(Optional)* `(Relation)`
189
+ # @option opts [Integer] :program_id Search on Program ID *(Optional)* `(Relation)`
190
+ # @option opts [DateTime] :start_min Minimum start date *(Optional)*
191
+ # @option opts [DateTime] :start_max Maximum start date *(Optional)*
192
+ # @option opts [Integer] :limit Results per page *(Optional)*
193
+ # @option opts [String] :order_by Field to order the results *(Optional)*
194
+ # @option opts [String] :order_direction Direction of ordering *(Optional)*
192
195
  # @option opts [Integer] :_external_station_id Query on a different (content providing) station *(Optional)*
193
196
  # @return [BlockResults]
194
197
  def list_blocks(opts = {})
@@ -200,11 +203,14 @@ module RadioManagerClient
200
203
  # Get a list of all blocks currently in your station. This feature supports pagination and will give a maximum of 50 blocks back.
201
204
  # @param [Hash] opts the optional parameters
202
205
  # @option opts [Integer] :page Current page *(Optional)*
203
- # @option opts [DateTime] :start_min Minimum start date *(Optional)*
204
- # @option opts [DateTime] :start_max Maximum start date *(Optional)*
205
206
  # @option opts [Integer] :broadcast_id Search on Broadcast ID *(Optional)* `(Relation)`
206
- # @option opts [Integer] :program_id Search on Program ID *(Optional)* `(Relation)`
207
207
  # @option opts [Integer] :item_id Search on Item ID *(Optional)* `(Relation)`
208
+ # @option opts [Integer] :program_id Search on Program ID *(Optional)* `(Relation)`
209
+ # @option opts [DateTime] :start_min Minimum start date *(Optional)*
210
+ # @option opts [DateTime] :start_max Maximum start date *(Optional)*
211
+ # @option opts [Integer] :limit Results per page *(Optional)*
212
+ # @option opts [String] :order_by Field to order the results *(Optional)*
213
+ # @option opts [String] :order_direction Direction of ordering *(Optional)*
208
214
  # @option opts [Integer] :_external_station_id Query on a different (content providing) station *(Optional)*
209
215
  # @return [Array<(BlockResults, Fixnum, Hash)>] BlockResults data, response status code and response headers
210
216
  def list_blocks_with_http_info(opts = {})
@@ -215,17 +221,31 @@ module RadioManagerClient
215
221
  fail ArgumentError, 'invalid value for "opts[:"page"]" when calling BlockApi.list_blocks, must be greater than or equal to 0.'
216
222
  end
217
223
 
224
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 50
225
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling BlockApi.list_blocks, must be smaller than or equal to 50.'
226
+ end
227
+
228
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
229
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling BlockApi.list_blocks, must be greater than or equal to 1.'
230
+ end
231
+
232
+ if @api_client.config.client_side_validation && opts[:'order_direction'] && !['asc', 'desc'].include?(opts[:'order_direction'])
233
+ fail ArgumentError, 'invalid value for "order_direction", must be one of asc, desc'
234
+ end
218
235
  # resource path
219
236
  local_var_path = "/blocks"
220
237
 
221
238
  # query parameters
222
239
  query_params = {}
223
240
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
224
- query_params[:'start-min'] = opts[:'start_min'] if !opts[:'start_min'].nil?
225
- query_params[:'start-max'] = opts[:'start_max'] if !opts[:'start_max'].nil?
226
241
  query_params[:'broadcast_id'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil?
227
- query_params[:'program_id'] = opts[:'program_id'] if !opts[:'program_id'].nil?
228
242
  query_params[:'item_id'] = opts[:'item_id'] if !opts[:'item_id'].nil?
243
+ query_params[:'program_id'] = opts[:'program_id'] if !opts[:'program_id'].nil?
244
+ query_params[:'start-min'] = opts[:'start_min'] if !opts[:'start_min'].nil?
245
+ query_params[:'start-max'] = opts[:'start_max'] if !opts[:'start_max'].nil?
246
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
247
+ query_params[:'order-by'] = opts[:'order_by'] if !opts[:'order_by'].nil?
248
+ query_params[:'order-direction'] = opts[:'order_direction'] if !opts[:'order_direction'].nil?
229
249
  query_params[:'_external_station_id'] = opts[:'_external_station_id'] if !opts[:'_external_station_id'].nil?
230
250
 
231
251
  # header parameters
@@ -249,7 +249,8 @@ module RadioManagerClient
249
249
  # Get current Broadcast
250
250
  # @param [Hash] opts the optional parameters
251
251
  # @option opts [DateTime] :date Date *(Optional)*
252
- # @return [EPGBroadcast]
252
+ # @option opts [BOOLEAN] :withunpublished Show Unpublished *(Optional)*
253
+ # @return [EPGResults]
253
254
  def get_daily_epg(opts = {})
254
255
  data, _status_code, _headers = get_daily_epg_with_http_info(opts)
255
256
  return data
@@ -259,7 +260,8 @@ module RadioManagerClient
259
260
  # Get current Broadcast
260
261
  # @param [Hash] opts the optional parameters
261
262
  # @option opts [DateTime] :date Date *(Optional)*
262
- # @return [Array<(EPGBroadcast, Fixnum, Hash)>] EPGBroadcast data, response status code and response headers
263
+ # @option opts [BOOLEAN] :withunpublished Show Unpublished *(Optional)*
264
+ # @return [Array<(EPGResults, Fixnum, Hash)>] EPGResults data, response status code and response headers
263
265
  def get_daily_epg_with_http_info(opts = {})
264
266
  if @api_client.config.debugging
265
267
  @api_client.config.logger.debug "Calling API: BroadcastApi.get_daily_epg ..."
@@ -270,6 +272,7 @@ module RadioManagerClient
270
272
  # query parameters
271
273
  query_params = {}
272
274
  query_params[:'date'] = opts[:'date'] if !opts[:'date'].nil?
275
+ query_params[:'withunpublished'] = opts[:'withunpublished'] if !opts[:'withunpublished'].nil?
273
276
 
274
277
  # header parameters
275
278
  header_params = {}
@@ -290,7 +293,7 @@ module RadioManagerClient
290
293
  :form_params => form_params,
291
294
  :body => post_body,
292
295
  :auth_names => auth_names,
293
- :return_type => 'EPGBroadcast')
296
+ :return_type => 'EPGResults')
294
297
  if @api_client.config.debugging
295
298
  @api_client.config.logger.debug "API called: BroadcastApi#get_daily_epg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
296
299
  end
@@ -301,7 +304,8 @@ module RadioManagerClient
301
304
  # Get EPG by date
302
305
  # @param [Hash] opts the optional parameters
303
306
  # @option opts [DateTime] :date Date *(Optional)*
304
- # @return [EPGBroadcast]
307
+ # @option opts [BOOLEAN] :withunpublished Show Unpublished *(Optional)*
308
+ # @return [EPGResults]
305
309
  def get_epg_by_date(opts = {})
306
310
  data, _status_code, _headers = get_epg_by_date_with_http_info(opts)
307
311
  return data
@@ -311,7 +315,8 @@ module RadioManagerClient
311
315
  # Get EPG by date
312
316
  # @param [Hash] opts the optional parameters
313
317
  # @option opts [DateTime] :date Date *(Optional)*
314
- # @return [Array<(EPGBroadcast, Fixnum, Hash)>] EPGBroadcast data, response status code and response headers
318
+ # @option opts [BOOLEAN] :withunpublished Show Unpublished *(Optional)*
319
+ # @return [Array<(EPGResults, Fixnum, Hash)>] EPGResults data, response status code and response headers
315
320
  def get_epg_by_date_with_http_info(opts = {})
316
321
  if @api_client.config.debugging
317
322
  @api_client.config.logger.debug "Calling API: BroadcastApi.get_epg_by_date ..."
@@ -322,6 +327,7 @@ module RadioManagerClient
322
327
  # query parameters
323
328
  query_params = {}
324
329
  query_params[:'date'] = opts[:'date'] if !opts[:'date'].nil?
330
+ query_params[:'withunpublished'] = opts[:'withunpublished'] if !opts[:'withunpublished'].nil?
325
331
 
326
332
  # header parameters
327
333
  header_params = {}
@@ -342,7 +348,7 @@ module RadioManagerClient
342
348
  :form_params => form_params,
343
349
  :body => post_body,
344
350
  :auth_names => auth_names,
345
- :return_type => 'EPGBroadcast')
351
+ :return_type => 'EPGResults')
346
352
  if @api_client.config.debugging
347
353
  @api_client.config.logger.debug "API called: BroadcastApi#get_epg_by_date\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
348
354
  end
@@ -402,7 +408,8 @@ module RadioManagerClient
402
408
  # Get weekly EPG
403
409
  # @param [Hash] opts the optional parameters
404
410
  # @option opts [String] :date Date *(Optional)*
405
- # @return [EPGBroadcast]
411
+ # @option opts [BOOLEAN] :withunpublished Show Unpublished *(Optional)*
412
+ # @return [EPGResults]
406
413
  def get_weekly_epg(opts = {})
407
414
  data, _status_code, _headers = get_weekly_epg_with_http_info(opts)
408
415
  return data
@@ -412,7 +419,8 @@ module RadioManagerClient
412
419
  # Get weekly EPG
413
420
  # @param [Hash] opts the optional parameters
414
421
  # @option opts [String] :date Date *(Optional)*
415
- # @return [Array<(EPGBroadcast, Fixnum, Hash)>] EPGBroadcast data, response status code and response headers
422
+ # @option opts [BOOLEAN] :withunpublished Show Unpublished *(Optional)*
423
+ # @return [Array<(EPGResults, Fixnum, Hash)>] EPGResults data, response status code and response headers
416
424
  def get_weekly_epg_with_http_info(opts = {})
417
425
  if @api_client.config.debugging
418
426
  @api_client.config.logger.debug "Calling API: BroadcastApi.get_weekly_epg ..."
@@ -423,6 +431,7 @@ module RadioManagerClient
423
431
  # query parameters
424
432
  query_params = {}
425
433
  query_params[:'date'] = opts[:'date'] if !opts[:'date'].nil?
434
+ query_params[:'withunpublished'] = opts[:'withunpublished'] if !opts[:'withunpublished'].nil?
426
435
 
427
436
  # header parameters
428
437
  header_params = {}
@@ -443,7 +452,7 @@ module RadioManagerClient
443
452
  :form_params => form_params,
444
453
  :body => post_body,
445
454
  :auth_names => auth_names,
446
- :return_type => 'EPGBroadcast')
455
+ :return_type => 'EPGResults')
447
456
  if @api_client.config.debugging
448
457
  @api_client.config.logger.debug "API called: BroadcastApi#get_weekly_epg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
449
458
  end
@@ -454,15 +463,18 @@ module RadioManagerClient
454
463
  # List all broadcasts.
455
464
  # @param [Hash] opts the optional parameters
456
465
  # @option opts [Integer] :page Current page *(Optional)* (default to 1)
457
- # @option opts [DateTime] :start_min Minimum start date *(Optional)*
458
- # @option opts [DateTime] :start_max Maximum start date *(Optional)*
459
- # @option opts [Integer] :model_type_id Search on ModelType ID *(Optional)*
466
+ # @option opts [Integer] :program_id Search on Program ID *(Optional)* &#x60;(Relation)&#x60;
467
+ # @option opts [Integer] :block_id Search on Block ID *(Optional)* &#x60;(Relation)&#x60;
468
+ # @option opts [Integer] :model_type_id Search on ModelType ID *(Optional)* &#x60;(Relation)&#x60;
460
469
  # @option opts [Integer] :tag_id Search on Tag ID *(Optional)* &#x60;(Relation)&#x60;
461
470
  # @option opts [Integer] :presenter_id Search on Presenter ID *(Optional)* &#x60;(Relation)&#x60;
462
- # @option opts [Integer] :item_id Search on Item ID *(Optional)* &#x60;(Relation)&#x60;
463
- # @option opts [Integer] :block_id Search on Block ID *(Optional)* &#x60;(Relation)&#x60;
464
471
  # @option opts [Integer] :genre_id Search on Genre ID *(Optional)* &#x60;(Relation)&#x60;
465
- # @option opts [Integer] :program_id Search on Program ID *(Optional)* &#x60;(Relation)&#x60;
472
+ # @option opts [Integer] :item_id Search on Item ID *(Optional)* &#x60;(Relation)&#x60;
473
+ # @option opts [DateTime] :start_min Minimum start date *(Optional)*
474
+ # @option opts [DateTime] :start_max Maximum start date *(Optional)*
475
+ # @option opts [Integer] :limit Results per page *(Optional)*
476
+ # @option opts [String] :order_by Field to order the results *(Optional)*
477
+ # @option opts [String] :order_direction Direction of ordering *(Optional)*
466
478
  # @option opts [Integer] :_external_station_id Query on a different (content providing) station *(Optional)*
467
479
  # @return [BroadcastResults]
468
480
  def list_broadcasts(opts = {})
@@ -474,15 +486,18 @@ module RadioManagerClient
474
486
  # List all broadcasts.
475
487
  # @param [Hash] opts the optional parameters
476
488
  # @option opts [Integer] :page Current page *(Optional)*
477
- # @option opts [DateTime] :start_min Minimum start date *(Optional)*
478
- # @option opts [DateTime] :start_max Maximum start date *(Optional)*
479
- # @option opts [Integer] :model_type_id Search on ModelType ID *(Optional)*
489
+ # @option opts [Integer] :program_id Search on Program ID *(Optional)* &#x60;(Relation)&#x60;
490
+ # @option opts [Integer] :block_id Search on Block ID *(Optional)* &#x60;(Relation)&#x60;
491
+ # @option opts [Integer] :model_type_id Search on ModelType ID *(Optional)* &#x60;(Relation)&#x60;
480
492
  # @option opts [Integer] :tag_id Search on Tag ID *(Optional)* &#x60;(Relation)&#x60;
481
493
  # @option opts [Integer] :presenter_id Search on Presenter ID *(Optional)* &#x60;(Relation)&#x60;
482
- # @option opts [Integer] :item_id Search on Item ID *(Optional)* &#x60;(Relation)&#x60;
483
- # @option opts [Integer] :block_id Search on Block ID *(Optional)* &#x60;(Relation)&#x60;
484
494
  # @option opts [Integer] :genre_id Search on Genre ID *(Optional)* &#x60;(Relation)&#x60;
485
- # @option opts [Integer] :program_id Search on Program ID *(Optional)* &#x60;(Relation)&#x60;
495
+ # @option opts [Integer] :item_id Search on Item ID *(Optional)* &#x60;(Relation)&#x60;
496
+ # @option opts [DateTime] :start_min Minimum start date *(Optional)*
497
+ # @option opts [DateTime] :start_max Maximum start date *(Optional)*
498
+ # @option opts [Integer] :limit Results per page *(Optional)*
499
+ # @option opts [String] :order_by Field to order the results *(Optional)*
500
+ # @option opts [String] :order_direction Direction of ordering *(Optional)*
486
501
  # @option opts [Integer] :_external_station_id Query on a different (content providing) station *(Optional)*
487
502
  # @return [Array<(BroadcastResults, Fixnum, Hash)>] BroadcastResults data, response status code and response headers
488
503
  def list_broadcasts_with_http_info(opts = {})
@@ -493,21 +508,35 @@ module RadioManagerClient
493
508
  fail ArgumentError, 'invalid value for "opts[:"page"]" when calling BroadcastApi.list_broadcasts, must be greater than or equal to 0.'
494
509
  end
495
510
 
511
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 50
512
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling BroadcastApi.list_broadcasts, must be smaller than or equal to 50.'
513
+ end
514
+
515
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
516
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling BroadcastApi.list_broadcasts, must be greater than or equal to 1.'
517
+ end
518
+
519
+ if @api_client.config.client_side_validation && opts[:'order_direction'] && !['asc', 'desc'].include?(opts[:'order_direction'])
520
+ fail ArgumentError, 'invalid value for "order_direction", must be one of asc, desc'
521
+ end
496
522
  # resource path
497
523
  local_var_path = "/broadcasts"
498
524
 
499
525
  # query parameters
500
526
  query_params = {}
501
527
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
502
- query_params[:'start-min'] = opts[:'start_min'] if !opts[:'start_min'].nil?
503
- query_params[:'start-max'] = opts[:'start_max'] if !opts[:'start_max'].nil?
528
+ query_params[:'program_id'] = opts[:'program_id'] if !opts[:'program_id'].nil?
529
+ query_params[:'block_id'] = opts[:'block_id'] if !opts[:'block_id'].nil?
504
530
  query_params[:'model_type_id'] = opts[:'model_type_id'] if !opts[:'model_type_id'].nil?
505
531
  query_params[:'tag_id'] = opts[:'tag_id'] if !opts[:'tag_id'].nil?
506
532
  query_params[:'presenter_id'] = opts[:'presenter_id'] if !opts[:'presenter_id'].nil?
507
- query_params[:'item_id'] = opts[:'item_id'] if !opts[:'item_id'].nil?
508
- query_params[:'block_id'] = opts[:'block_id'] if !opts[:'block_id'].nil?
509
533
  query_params[:'genre_id'] = opts[:'genre_id'] if !opts[:'genre_id'].nil?
510
- query_params[:'program_id'] = opts[:'program_id'] if !opts[:'program_id'].nil?
534
+ query_params[:'item_id'] = opts[:'item_id'] if !opts[:'item_id'].nil?
535
+ query_params[:'start-min'] = opts[:'start_min'] if !opts[:'start_min'].nil?
536
+ query_params[:'start-max'] = opts[:'start_max'] if !opts[:'start_max'].nil?
537
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
538
+ query_params[:'order-by'] = opts[:'order_by'] if !opts[:'order_by'].nil?
539
+ query_params[:'order-direction'] = opts[:'order_direction'] if !opts[:'order_direction'].nil?
511
540
  query_params[:'_external_station_id'] = opts[:'_external_station_id'] if !opts[:'_external_station_id'].nil?
512
541
 
513
542
  # header parameters
@@ -543,7 +572,7 @@ module RadioManagerClient
543
572
  # @option opts [Integer] :program_id Search on Program ID *(Optional)* &#x60;(Relation)&#x60;
544
573
  # @option opts [Integer] :presenter_id Search on Presenter ID *(Optional)* &#x60;(Relation)&#x60;
545
574
  # @option opts [Integer] :tag_id Search on Tag ID *(Optional)* &#x60;(Relation)&#x60;
546
- # @return [EPGBroadcast]
575
+ # @return [EPGResults]
547
576
  def print_broadcast_by_id(id, opts = {})
548
577
  data, _status_code, _headers = print_broadcast_by_id_with_http_info(id, opts)
549
578
  return data
@@ -556,7 +585,7 @@ module RadioManagerClient
556
585
  # @option opts [Integer] :program_id Search on Program ID *(Optional)* &#x60;(Relation)&#x60;
557
586
  # @option opts [Integer] :presenter_id Search on Presenter ID *(Optional)* &#x60;(Relation)&#x60;
558
587
  # @option opts [Integer] :tag_id Search on Tag ID *(Optional)* &#x60;(Relation)&#x60;
559
- # @return [Array<(EPGBroadcast, Fixnum, Hash)>] EPGBroadcast data, response status code and response headers
588
+ # @return [Array<(EPGResults, Fixnum, Hash)>] EPGResults data, response status code and response headers
560
589
  def print_broadcast_by_id_with_http_info(id, opts = {})
561
590
  if @api_client.config.debugging
562
591
  @api_client.config.logger.debug "Calling API: BroadcastApi.print_broadcast_by_id ..."
@@ -597,7 +626,7 @@ module RadioManagerClient
597
626
  :form_params => form_params,
598
627
  :body => post_body,
599
628
  :auth_names => auth_names,
600
- :return_type => 'EPGBroadcast')
629
+ :return_type => 'EPGResults')
601
630
  if @api_client.config.debugging
602
631
  @api_client.config.logger.debug "API called: BroadcastApi#print_broadcast_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
603
632
  end
@@ -200,10 +200,13 @@ module RadioManagerClient
200
200
  # List all campaigns.
201
201
  # @param [Hash] opts the optional parameters
202
202
  # @option opts [Integer] :page Current page *(Optional)*
203
- # @option opts [Integer] :model_type_id Search on ModelType ID *(Optional)*
204
203
  # @option opts [Integer] :item_id Search on Item ID *(Optional)* &#x60;(Relation)&#x60;
204
+ # @option opts [Integer] :model_type_id Search on ModelType ID *(Optional)* &#x60;(Relation)&#x60;
205
205
  # @option opts [DateTime] :start_min Minimum start date *(Optional)*
206
206
  # @option opts [DateTime] :start_max Maximum start date *(Optional)*
207
+ # @option opts [Integer] :limit Results per page *(Optional)*
208
+ # @option opts [String] :order_by Field to order the results *(Optional)*
209
+ # @option opts [String] :order_direction Direction of ordering *(Optional)*
207
210
  # @option opts [Integer] :_external_station_id Query on a different (content providing) station *(Optional)*
208
211
  # @return [CampaignResults]
209
212
  def list_campaigns(opts = {})
@@ -215,10 +218,13 @@ module RadioManagerClient
215
218
  # List all campaigns.
216
219
  # @param [Hash] opts the optional parameters
217
220
  # @option opts [Integer] :page Current page *(Optional)*
218
- # @option opts [Integer] :model_type_id Search on ModelType ID *(Optional)*
219
221
  # @option opts [Integer] :item_id Search on Item ID *(Optional)* &#x60;(Relation)&#x60;
222
+ # @option opts [Integer] :model_type_id Search on ModelType ID *(Optional)* &#x60;(Relation)&#x60;
220
223
  # @option opts [DateTime] :start_min Minimum start date *(Optional)*
221
224
  # @option opts [DateTime] :start_max Maximum start date *(Optional)*
225
+ # @option opts [Integer] :limit Results per page *(Optional)*
226
+ # @option opts [String] :order_by Field to order the results *(Optional)*
227
+ # @option opts [String] :order_direction Direction of ordering *(Optional)*
222
228
  # @option opts [Integer] :_external_station_id Query on a different (content providing) station *(Optional)*
223
229
  # @return [Array<(CampaignResults, Fixnum, Hash)>] CampaignResults data, response status code and response headers
224
230
  def list_campaigns_with_http_info(opts = {})
@@ -229,16 +235,30 @@ module RadioManagerClient
229
235
  fail ArgumentError, 'invalid value for "opts[:"page"]" when calling CampaignApi.list_campaigns, must be greater than or equal to 0.'
230
236
  end
231
237
 
238
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 50
239
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CampaignApi.list_campaigns, must be smaller than or equal to 50.'
240
+ end
241
+
242
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
243
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CampaignApi.list_campaigns, must be greater than or equal to 1.'
244
+ end
245
+
246
+ if @api_client.config.client_side_validation && opts[:'order_direction'] && !['asc', 'desc'].include?(opts[:'order_direction'])
247
+ fail ArgumentError, 'invalid value for "order_direction", must be one of asc, desc'
248
+ end
232
249
  # resource path
233
250
  local_var_path = "/campaigns"
234
251
 
235
252
  # query parameters
236
253
  query_params = {}
237
254
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
238
- query_params[:'model_type_id'] = opts[:'model_type_id'] if !opts[:'model_type_id'].nil?
239
255
  query_params[:'item_id'] = opts[:'item_id'] if !opts[:'item_id'].nil?
256
+ query_params[:'model_type_id'] = opts[:'model_type_id'] if !opts[:'model_type_id'].nil?
240
257
  query_params[:'start-min'] = opts[:'start_min'] if !opts[:'start_min'].nil?
241
258
  query_params[:'start-max'] = opts[:'start_max'] if !opts[:'start_max'].nil?
259
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
260
+ query_params[:'order-by'] = opts[:'order_by'] if !opts[:'order_by'].nil?
261
+ query_params[:'order-direction'] = opts[:'order_direction'] if !opts[:'order_direction'].nil?
242
262
  query_params[:'_external_station_id'] = opts[:'_external_station_id'] if !opts[:'_external_station_id'].nil?
243
263
 
244
264
  # header parameters
@@ -200,9 +200,12 @@ module RadioManagerClient
200
200
  # List all contacts.
201
201
  # @param [Hash] opts the optional parameters
202
202
  # @option opts [Integer] :page Current page *(Optional)* (default to 1)
203
- # @option opts [Integer] :model_type_id Search on ModelType ID *(Optional)*
204
- # @option opts [Integer] :tag_id Search on Tag ID *(Optional)* &#x60;(Relation)&#x60;
205
203
  # @option opts [Integer] :item_id Search on Item ID *(Optional)* &#x60;(Relation)&#x60;
204
+ # @option opts [Integer] :model_type_id Search on ModelType ID *(Optional)* &#x60;(Relation)&#x60;
205
+ # @option opts [Integer] :tag_id Search on Tag ID *(Optional)* &#x60;(Relation)&#x60;
206
+ # @option opts [Integer] :limit Results per page *(Optional)*
207
+ # @option opts [String] :order_by Field to order the results *(Optional)*
208
+ # @option opts [String] :order_direction Direction of ordering *(Optional)*
206
209
  # @option opts [Integer] :_external_station_id Query on a different (content providing) station *(Optional)*
207
210
  # @return [ContactResults]
208
211
  def list_contacts(opts = {})
@@ -214,9 +217,12 @@ module RadioManagerClient
214
217
  # List all contacts.
215
218
  # @param [Hash] opts the optional parameters
216
219
  # @option opts [Integer] :page Current page *(Optional)*
217
- # @option opts [Integer] :model_type_id Search on ModelType ID *(Optional)*
218
- # @option opts [Integer] :tag_id Search on Tag ID *(Optional)* &#x60;(Relation)&#x60;
219
220
  # @option opts [Integer] :item_id Search on Item ID *(Optional)* &#x60;(Relation)&#x60;
221
+ # @option opts [Integer] :model_type_id Search on ModelType ID *(Optional)* &#x60;(Relation)&#x60;
222
+ # @option opts [Integer] :tag_id Search on Tag ID *(Optional)* &#x60;(Relation)&#x60;
223
+ # @option opts [Integer] :limit Results per page *(Optional)*
224
+ # @option opts [String] :order_by Field to order the results *(Optional)*
225
+ # @option opts [String] :order_direction Direction of ordering *(Optional)*
220
226
  # @option opts [Integer] :_external_station_id Query on a different (content providing) station *(Optional)*
221
227
  # @return [Array<(ContactResults, Fixnum, Hash)>] ContactResults data, response status code and response headers
222
228
  def list_contacts_with_http_info(opts = {})
@@ -227,15 +233,29 @@ module RadioManagerClient
227
233
  fail ArgumentError, 'invalid value for "opts[:"page"]" when calling ContactApi.list_contacts, must be greater than or equal to 0.'
228
234
  end
229
235
 
236
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 50
237
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ContactApi.list_contacts, must be smaller than or equal to 50.'
238
+ end
239
+
240
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
241
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ContactApi.list_contacts, must be greater than or equal to 1.'
242
+ end
243
+
244
+ if @api_client.config.client_side_validation && opts[:'order_direction'] && !['asc', 'desc'].include?(opts[:'order_direction'])
245
+ fail ArgumentError, 'invalid value for "order_direction", must be one of asc, desc'
246
+ end
230
247
  # resource path
231
248
  local_var_path = "/contacts"
232
249
 
233
250
  # query parameters
234
251
  query_params = {}
235
252
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
253
+ query_params[:'item_id'] = opts[:'item_id'] if !opts[:'item_id'].nil?
236
254
  query_params[:'model_type_id'] = opts[:'model_type_id'] if !opts[:'model_type_id'].nil?
237
255
  query_params[:'tag_id'] = opts[:'tag_id'] if !opts[:'tag_id'].nil?
238
- query_params[:'item_id'] = opts[:'item_id'] if !opts[:'item_id'].nil?
256
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
257
+ query_params[:'order-by'] = opts[:'order_by'] if !opts[:'order_by'].nil?
258
+ query_params[:'order-direction'] = opts[:'order_direction'] if !opts[:'order_direction'].nil?
239
259
  query_params[:'_external_station_id'] = opts[:'_external_station_id'] if !opts[:'_external_station_id'].nil?
240
260
 
241
261
  # header parameters