radiomanager_client 1.1.2 → 1.1.6

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 +3 -2
  3. data/docs/BlockApi.md +4 -4
  4. data/docs/InviteUserData.md +1 -1
  5. data/docs/ItemApi.md +2 -2
  6. data/docs/ItemDataInput.md +1 -0
  7. data/docs/ItemInputOnly.md +1 -0
  8. data/docs/ModelTypeOptions.md +1 -0
  9. data/docs/StationResultStation.md +0 -1
  10. data/docs/UserResult.md +1 -1
  11. data/docs/UserResultRoles.md +11 -0
  12. data/lib/radiomanager_client/api/block_api.rb +4 -4
  13. data/lib/radiomanager_client/api/item_api.rb +2 -2
  14. data/lib/radiomanager_client/models/invite_user_data.rb +12 -10
  15. data/lib/radiomanager_client/models/item_data_input.rb +10 -1
  16. data/lib/radiomanager_client/models/item_input_only.rb +10 -1
  17. data/lib/radiomanager_client/models/model_type_options.rb +13 -4
  18. data/lib/radiomanager_client/models/station_result_station.rb +4 -13
  19. data/lib/radiomanager_client/models/user_result.rb +9 -7
  20. data/lib/radiomanager_client/models/{broadcast_field_values.rb → user_result_roles.rb} +35 -8
  21. data/lib/radiomanager_client.rb +1 -0
  22. data/radiomanager_client.gemspec +1 -1
  23. data/spec/api/block_api_spec.rb +8 -5
  24. data/spec/api/broadcast_api_spec.rb +20 -12
  25. data/spec/api/campaign_api_spec.rb +4 -1
  26. data/spec/api/contact_api_spec.rb +5 -2
  27. data/spec/api/genre_api_spec.rb +3 -0
  28. data/spec/api/item_api_spec.rb +14 -13
  29. data/spec/api/model_type_api_spec.rb +4 -1
  30. data/spec/api/presenter_api_spec.rb +4 -1
  31. data/spec/api/program_api_spec.rb +8 -5
  32. data/spec/api/story_api_spec.rb +5 -2
  33. data/spec/api/tag_api_spec.rb +3 -0
  34. data/spec/api/user_api_spec.rb +3 -0
  35. data/spec/configuration_spec.rb +3 -3
  36. data/spec/models/invite_user_data_spec.rb +1 -1
  37. data/spec/models/item_data_input_spec.rb +7 -1
  38. data/spec/models/item_input_only_spec.rb +7 -1
  39. data/spec/models/model_type_options_spec.rb +6 -0
  40. data/spec/models/station_result_station_spec.rb +1 -1
  41. data/spec/models/{epg_broadcast_spec.rb → user_result_roles_spec.rb} +15 -9
  42. data/spec/models/user_result_spec.rb +1 -1
  43. metadata +7 -31
  44. data/docs/BroadcastFieldValues.md +0 -8
  45. data/docs/ContactFieldValues.md +0 -8
  46. data/docs/EPGBroadcast.md +0 -10
  47. data/docs/ExternalMessageApi.md +0 -63
  48. data/docs/ExternalMessageQueueData.md +0 -14
  49. data/docs/ImportItemFieldValues.md +0 -8
  50. data/docs/ProgramFieldValues.md +0 -8
  51. data/lib/radiomanager_client/api/external_message_api.rb +0 -78
  52. data/lib/radiomanager_client/models/contact_field_values.rb +0 -188
  53. data/lib/radiomanager_client/models/epg_broadcast.rb +0 -227
  54. data/lib/radiomanager_client/models/external_message_queue_data.rb +0 -333
  55. data/lib/radiomanager_client/models/import_item_field_values.rb +0 -188
  56. data/lib/radiomanager_client/models/program_field_values.rb +0 -188
  57. data/spec/api/external_message_api_spec.rb +0 -47
  58. data/spec/models/broadcast_field_values_spec.rb +0 -42
  59. data/spec/models/contact_field_values_spec.rb +0 -42
  60. data/spec/models/external_message_queue_data_spec.rb +0 -78
  61. data/spec/models/import_item_field_values_spec.rb +0 -42
  62. data/spec/models/program_field_values_spec.rb +0 -42
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0f31c2e9253c27cf795afad074304af1fe33a0c4
4
- data.tar.gz: c7b7118ca3f5a3504a5965e826e34d9ada54d812
3
+ metadata.gz: 06f7aaab06a696b09d9ecf69ddc4a6b637e9349c
4
+ data.tar.gz: fbf7196c3493bc400ac7792ae76e68d8d9b85de9
5
5
  SHA512:
6
- metadata.gz: 13979c4f4e555aabace0a7e21f063df51b47fb2bdfdd376e8b469f6e81ed2cdb21471953de82e5682e1c096eebe27293b4d5d119ace127d856505ad3f9ce52f6
7
- data.tar.gz: 30a14227a7e7b9a3661d8c9ea251adc8409044bac75f353f1feff232f33eb0a71f8c9c688074d4ac25e685aa4a69dee9a8dfdcb71f89fe26664677d3a40af0dc
6
+ metadata.gz: 54dbee82cb993972d4ed3d5969dc7d37ac84b1cf397f7730c81eba56f1d82951043d7dd9a2763acf732504c0cd4cdc76c999a5689b1e4524fa08e4d7f1ecc120
7
+ data.tar.gz: 06d5fb4d9b03a8f08a7fcf7d004990ce024027b6f007f4cc4f76fde35f75c0b3e4ab81e8a01271f5acde988d038581c0caaf3e19ca52ca17c4ee8fb1ecfc448e
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  RadioManagerClient - the Ruby gem for the RadioManager
4
4
 
5
5
  - API version: 2.0
6
- - Package version: 1.1.2
6
+ - Package version: 1.1.6
7
7
  For more information, please visit [https://pluxbox.com](https://pluxbox.com)
8
8
 
9
9
  ## Installation
@@ -55,7 +55,7 @@ Class | Method | HTTP request | Description
55
55
  ------------ | ------------- | ------------- | -------------
56
56
  *RadioManagerClient::BlockApi* | [**get_block_by_id**](docs/BlockApi.md#get_block_by_id) | **GET** /blocks/{id} | Get block by id
57
57
  *RadioManagerClient::BlockApi* | [**get_current_block**](docs/BlockApi.md#get_current_block) | **GET** /blocks/current | Get current Block
58
- *RadioManagerClient::BlockApi* | [**get_next_block**](docs/BlockApi.md#get_next_block) | **GET** /blocks/next | Get next Block
58
+ *RadioManagerClient::BlockApi* | [**get_next_block**](docs/BlockApi.md#get_next_block) | **GET** /blocks/next | Get upcoming Block
59
59
  *RadioManagerClient::BlockApi* | [**list_blocks**](docs/BlockApi.md#list_blocks) | **GET** /blocks | Get a list of all blocks currently in your station.
60
60
  *RadioManagerClient::BroadcastApi* | [**create_broadcast**](docs/BroadcastApi.md#create_broadcast) | **POST** /broadcasts | Create broadcast.
61
61
  *RadioManagerClient::BroadcastApi* | [**delete_broadcast_by_id**](docs/BroadcastApi.md#delete_broadcast_by_id) | **DELETE** /broadcasts/{id} | Delete broadcast by id
@@ -241,6 +241,7 @@ Class | Method | HTTP request | Description
241
241
  - [RadioManagerClient::TooManyRequests](docs/TooManyRequests.md)
242
242
  - [RadioManagerClient::UnprocessableEntity](docs/UnprocessableEntity.md)
243
243
  - [RadioManagerClient::UserResult](docs/UserResult.md)
244
+ - [RadioManagerClient::UserResultRoles](docs/UserResultRoles.md)
244
245
  - [RadioManagerClient::UserResultSettings](docs/UserResultSettings.md)
245
246
  - [RadioManagerClient::UserResults](docs/UserResults.md)
246
247
  - [RadioManagerClient::VisualResult](docs/VisualResult.md)
data/docs/BlockApi.md CHANGED
@@ -6,7 +6,7 @@ Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
7
  [**get_block_by_id**](BlockApi.md#get_block_by_id) | **GET** /blocks/{id} | Get block by id
8
8
  [**get_current_block**](BlockApi.md#get_current_block) | **GET** /blocks/current | Get current Block
9
- [**get_next_block**](BlockApi.md#get_next_block) | **GET** /blocks/next | Get next Block
9
+ [**get_next_block**](BlockApi.md#get_next_block) | **GET** /blocks/next | Get upcoming Block
10
10
  [**list_blocks**](BlockApi.md#list_blocks) | **GET** /blocks | Get a list of all blocks currently in your station.
11
11
 
12
12
 
@@ -119,9 +119,9 @@ This endpoint does not need any parameter.
119
119
  # **get_next_block**
120
120
  > BlockResult get_next_block
121
121
 
122
- Get next Block
122
+ Get upcoming Block
123
123
 
124
- Get next Block
124
+ Get upcoming Block
125
125
 
126
126
  ### Example
127
127
  ```ruby
@@ -138,7 +138,7 @@ end
138
138
  api_instance = RadioManagerClient::BlockApi.new
139
139
 
140
140
  begin
141
- #Get next Block
141
+ #Get upcoming Block
142
142
  result = api_instance.get_next_block
143
143
  p result
144
144
  rescue RadioManagerClient::ApiError => e
@@ -4,6 +4,6 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **email** | **String** | |
7
- **role_id** | **Integer** | |
7
+ **role_ids** | **Array<Integer>** | |
8
8
 
9
9
 
data/docs/ItemApi.md CHANGED
@@ -519,7 +519,7 @@ api_instance = RadioManagerClient::ItemApi.new
519
519
  id = 789 # Integer | ID of Item **(Required)**
520
520
 
521
521
  opts = {
522
- data: RadioManagerClient::Item.new # Item | Data *(Optional)*
522
+ data: RadioManagerClient::ItemDataInput.new # ItemDataInput | Data *(Optional)*
523
523
  }
524
524
 
525
525
  begin
@@ -536,7 +536,7 @@ end
536
536
  Name | Type | Description | Notes
537
537
  ------------- | ------------- | ------------- | -------------
538
538
  **id** | **Integer**| ID of Item **(Required)** |
539
- **data** | [**Item**](Item.md)| Data *(Optional)* | [optional]
539
+ **data** | [**ItemDataInput**](ItemDataInput.md)| Data *(Optional)* | [optional]
540
540
 
541
541
  ### Return type
542
542
 
@@ -20,6 +20,7 @@ Name | Type | Description | Notes
20
20
  **static_start** | **BOOLEAN** | | [optional]
21
21
  **details** | **String** | | [optional]
22
22
  **_previous_id** | **Integer** | | [optional]
23
+ **_before_id** | **Integer** | | [optional]
23
24
  **contacts** | **Array<Integer>** | | [optional]
24
25
  **tags** | **Array<Integer>** | | [optional]
25
26
 
@@ -4,6 +4,7 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **_previous_id** | **Integer** | | [optional]
7
+ **_before_id** | **Integer** | | [optional]
7
8
  **contacts** | **Array<Integer>** | | [optional]
8
9
  **tags** | **Array<Integer>** | | [optional]
9
10
 
@@ -4,5 +4,6 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **color** | **String** | | [optional]
7
+ **sub_broadcast** | **BOOLEAN** | | [optional]
7
8
 
8
9
 
@@ -28,6 +28,5 @@ Name | Type | Description | Notes
28
28
  **pty_type** | **String** | | [optional]
29
29
  **station_key** | **String** | | [optional]
30
30
  **timezone** | **String** | | [optional]
31
- **trial_date** | **DateTime** | | [optional]
32
31
 
33
32
 
data/docs/UserResult.md CHANGED
@@ -14,6 +14,6 @@ Name | Type | Description | Notes
14
14
  **settings** | [**UserResultSettings**](UserResultSettings.md) | | [optional]
15
15
  **language** | **BOOLEAN** | | [optional]
16
16
  **active_external_station_id** | **Integer** | | [optional]
17
- **role_id** | **Integer** | | [optional]
17
+ **roles** | [**Array<UserResultRoles>**](UserResultRoles.md) | | [optional]
18
18
 
19
19
 
@@ -0,0 +1,11 @@
1
+ # RadioManagerClient::UserResultRoles
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **href** | **String** | | [optional]
7
+ **model** | **String** | | [optional]
8
+ **operation** | **String** | | [optional]
9
+ **params** | **Integer** | | [optional]
10
+
11
+
@@ -131,8 +131,8 @@ module RadioManagerClient
131
131
  return data, status_code, headers
132
132
  end
133
133
 
134
- # Get next Block
135
- # Get next Block
134
+ # Get upcoming Block
135
+ # Get upcoming Block
136
136
  # @param [Hash] opts the optional parameters
137
137
  # @return [BlockResult]
138
138
  def get_next_block(opts = {})
@@ -140,8 +140,8 @@ module RadioManagerClient
140
140
  return data
141
141
  end
142
142
 
143
- # Get next Block
144
- # Get next Block
143
+ # Get upcoming Block
144
+ # Get upcoming Block
145
145
  # @param [Hash] opts the optional parameters
146
146
  # @return [Array<(BlockResult, Fixnum, Hash)>] BlockResult data, response status code and response headers
147
147
  def get_next_block_with_http_info(opts = {})
@@ -527,7 +527,7 @@ module RadioManagerClient
527
527
  # Update item by id.
528
528
  # @param id ID of Item **(Required)**
529
529
  # @param [Hash] opts the optional parameters
530
- # @option opts [Item] :data Data *(Optional)*
530
+ # @option opts [ItemDataInput] :data Data *(Optional)*
531
531
  # @return [Success]
532
532
  def update_item_by_id(id, opts = {})
533
533
  data, _status_code, _headers = update_item_by_id_with_http_info(id, opts)
@@ -538,7 +538,7 @@ module RadioManagerClient
538
538
  # Update item by id.
539
539
  # @param id ID of Item **(Required)**
540
540
  # @param [Hash] opts the optional parameters
541
- # @option opts [Item] :data Data *(Optional)*
541
+ # @option opts [ItemDataInput] :data Data *(Optional)*
542
542
  # @return [Array<(Success, Fixnum, Hash)>] Success data, response status code and response headers
543
543
  def update_item_by_id_with_http_info(id, opts = {})
544
544
  if @api_client.config.debugging
@@ -17,14 +17,14 @@ module RadioManagerClient
17
17
  class InviteUserData
18
18
  attr_accessor :email
19
19
 
20
- attr_accessor :role_id
20
+ attr_accessor :role_ids
21
21
 
22
22
 
23
23
  # Attribute mapping from ruby-style variable name to JSON key.
24
24
  def self.attribute_map
25
25
  {
26
26
  :'email' => :'email',
27
- :'role_id' => :'role_id'
27
+ :'role_ids' => :'role_ids'
28
28
  }
29
29
  end
30
30
 
@@ -32,7 +32,7 @@ module RadioManagerClient
32
32
  def self.swagger_types
33
33
  {
34
34
  :'email' => :'String',
35
- :'role_id' => :'Integer'
35
+ :'role_ids' => :'Array<Integer>'
36
36
  }
37
37
  end
38
38
 
@@ -48,8 +48,10 @@ module RadioManagerClient
48
48
  self.email = attributes[:'email']
49
49
  end
50
50
 
51
- if attributes.has_key?(:'role_id')
52
- self.role_id = attributes[:'role_id']
51
+ if attributes.has_key?(:'role_ids')
52
+ if (value = attributes[:'role_ids']).is_a?(Array)
53
+ self.role_ids = value
54
+ end
53
55
  end
54
56
 
55
57
  end
@@ -62,8 +64,8 @@ module RadioManagerClient
62
64
  invalid_properties.push("invalid value for 'email', email cannot be nil.")
63
65
  end
64
66
 
65
- if @role_id.nil?
66
- invalid_properties.push("invalid value for 'role_id', role_id cannot be nil.")
67
+ if @role_ids.nil?
68
+ invalid_properties.push("invalid value for 'role_ids', role_ids cannot be nil.")
67
69
  end
68
70
 
69
71
  return invalid_properties
@@ -73,7 +75,7 @@ module RadioManagerClient
73
75
  # @return true if the model is valid
74
76
  def valid?
75
77
  return false if @email.nil?
76
- return false if @role_id.nil?
78
+ return false if @role_ids.nil?
77
79
  return true
78
80
  end
79
81
 
@@ -83,7 +85,7 @@ module RadioManagerClient
83
85
  return true if self.equal?(o)
84
86
  self.class == o.class &&
85
87
  email == o.email &&
86
- role_id == o.role_id
88
+ role_ids == o.role_ids
87
89
  end
88
90
 
89
91
  # @see the `==` method
@@ -95,7 +97,7 @@ module RadioManagerClient
95
97
  # Calculates hash code according to all attributes.
96
98
  # @return [Fixnum] Hash code
97
99
  def hash
98
- [email, role_id].hash
100
+ [email, role_ids].hash
99
101
  end
100
102
 
101
103
  # Builds the object from hash
@@ -49,6 +49,8 @@ module RadioManagerClient
49
49
 
50
50
  attr_accessor :_previous_id
51
51
 
52
+ attr_accessor :_before_id
53
+
52
54
  attr_accessor :contacts
53
55
 
54
56
  attr_accessor :tags
@@ -95,6 +97,7 @@ module RadioManagerClient
95
97
  :'static_start' => :'static_start',
96
98
  :'details' => :'details',
97
99
  :'_previous_id' => :'_previous_id',
100
+ :'_before_id' => :'_before_id',
98
101
  :'contacts' => :'contacts',
99
102
  :'tags' => :'tags'
100
103
  }
@@ -120,6 +123,7 @@ module RadioManagerClient
120
123
  :'static_start' => :'BOOLEAN',
121
124
  :'details' => :'String',
122
125
  :'_previous_id' => :'Integer',
126
+ :'_before_id' => :'Integer',
123
127
  :'contacts' => :'Array<Integer>',
124
128
  :'tags' => :'Array<Integer>'
125
129
  }
@@ -201,6 +205,10 @@ module RadioManagerClient
201
205
  self._previous_id = attributes[:'_previous_id']
202
206
  end
203
207
 
208
+ if attributes.has_key?(:'_before_id')
209
+ self._before_id = attributes[:'_before_id']
210
+ end
211
+
204
212
  if attributes.has_key?(:'contacts')
205
213
  if (value = attributes[:'contacts']).is_a?(Array)
206
214
  self.contacts = value
@@ -267,6 +275,7 @@ module RadioManagerClient
267
275
  static_start == o.static_start &&
268
276
  details == o.details &&
269
277
  _previous_id == o._previous_id &&
278
+ _before_id == o._before_id &&
270
279
  contacts == o.contacts &&
271
280
  tags == o.tags
272
281
  end
@@ -280,7 +289,7 @@ module RadioManagerClient
280
289
  # Calculates hash code according to all attributes.
281
290
  # @return [Fixnum] Hash code
282
291
  def hash
283
- [model_type_id, block_id, external_id, field_values, title, duration, start, status, import, campaign_id, recommended, station_draft_id, program_draft_id, user_draft_id, static_start, details, _previous_id, contacts, tags].hash
292
+ [model_type_id, block_id, external_id, field_values, title, duration, start, status, import, campaign_id, recommended, station_draft_id, program_draft_id, user_draft_id, static_start, details, _previous_id, _before_id, contacts, tags].hash
284
293
  end
285
294
 
286
295
  # Builds the object from hash
@@ -17,6 +17,8 @@ module RadioManagerClient
17
17
  class ItemInputOnly
18
18
  attr_accessor :_previous_id
19
19
 
20
+ attr_accessor :_before_id
21
+
20
22
  attr_accessor :contacts
21
23
 
22
24
  attr_accessor :tags
@@ -26,6 +28,7 @@ module RadioManagerClient
26
28
  def self.attribute_map
27
29
  {
28
30
  :'_previous_id' => :'_previous_id',
31
+ :'_before_id' => :'_before_id',
29
32
  :'contacts' => :'contacts',
30
33
  :'tags' => :'tags'
31
34
  }
@@ -35,6 +38,7 @@ module RadioManagerClient
35
38
  def self.swagger_types
36
39
  {
37
40
  :'_previous_id' => :'Integer',
41
+ :'_before_id' => :'Integer',
38
42
  :'contacts' => :'Array<Integer>',
39
43
  :'tags' => :'Array<Integer>'
40
44
  }
@@ -52,6 +56,10 @@ module RadioManagerClient
52
56
  self._previous_id = attributes[:'_previous_id']
53
57
  end
54
58
 
59
+ if attributes.has_key?(:'_before_id')
60
+ self._before_id = attributes[:'_before_id']
61
+ end
62
+
55
63
  if attributes.has_key?(:'contacts')
56
64
  if (value = attributes[:'contacts']).is_a?(Array)
57
65
  self.contacts = value
@@ -85,6 +93,7 @@ module RadioManagerClient
85
93
  return true if self.equal?(o)
86
94
  self.class == o.class &&
87
95
  _previous_id == o._previous_id &&
96
+ _before_id == o._before_id &&
88
97
  contacts == o.contacts &&
89
98
  tags == o.tags
90
99
  end
@@ -98,7 +107,7 @@ module RadioManagerClient
98
107
  # Calculates hash code according to all attributes.
99
108
  # @return [Fixnum] Hash code
100
109
  def hash
101
- [_previous_id, contacts, tags].hash
110
+ [_previous_id, _before_id, contacts, tags].hash
102
111
  end
103
112
 
104
113
  # Builds the object from hash
@@ -17,18 +17,22 @@ module RadioManagerClient
17
17
  class ModelTypeOptions
18
18
  attr_accessor :color
19
19
 
20
+ attr_accessor :sub_broadcast
21
+
20
22
 
21
23
  # Attribute mapping from ruby-style variable name to JSON key.
22
24
  def self.attribute_map
23
25
  {
24
- :'color' => :'color'
26
+ :'color' => :'color',
27
+ :'sub_broadcast' => :'subBroadcast'
25
28
  }
26
29
  end
27
30
 
28
31
  # Attribute type mapping.
29
32
  def self.swagger_types
30
33
  {
31
- :'color' => :'String'
34
+ :'color' => :'String',
35
+ :'sub_broadcast' => :'BOOLEAN'
32
36
  }
33
37
  end
34
38
 
@@ -44,6 +48,10 @@ module RadioManagerClient
44
48
  self.color = attributes[:'color']
45
49
  end
46
50
 
51
+ if attributes.has_key?(:'subBroadcast')
52
+ self.sub_broadcast = attributes[:'subBroadcast']
53
+ end
54
+
47
55
  end
48
56
 
49
57
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -64,7 +72,8 @@ module RadioManagerClient
64
72
  def ==(o)
65
73
  return true if self.equal?(o)
66
74
  self.class == o.class &&
67
- color == o.color
75
+ color == o.color &&
76
+ sub_broadcast == o.sub_broadcast
68
77
  end
69
78
 
70
79
  # @see the `==` method
@@ -76,7 +85,7 @@ module RadioManagerClient
76
85
  # Calculates hash code according to all attributes.
77
86
  # @return [Fixnum] Hash code
78
87
  def hash
79
- [color].hash
88
+ [color, sub_broadcast].hash
80
89
  end
81
90
 
82
91
  # Builds the object from hash
@@ -65,8 +65,6 @@ module RadioManagerClient
65
65
 
66
66
  attr_accessor :timezone
67
67
 
68
- attr_accessor :trial_date
69
-
70
68
 
71
69
  # Attribute mapping from ruby-style variable name to JSON key.
72
70
  def self.attribute_map
@@ -95,8 +93,7 @@ module RadioManagerClient
95
93
  :'pty_code' => :'pty_code',
96
94
  :'pty_type' => :'pty_type',
97
95
  :'station_key' => :'station_key',
98
- :'timezone' => :'timezone',
99
- :'trial_date' => :'trial_date'
96
+ :'timezone' => :'timezone'
100
97
  }
101
98
  end
102
99
 
@@ -127,8 +124,7 @@ module RadioManagerClient
127
124
  :'pty_code' => :'Integer',
128
125
  :'pty_type' => :'String',
129
126
  :'station_key' => :'String',
130
- :'timezone' => :'String',
131
- :'trial_date' => :'DateTime'
127
+ :'timezone' => :'String'
132
128
  }
133
129
  end
134
130
 
@@ -242,10 +238,6 @@ module RadioManagerClient
242
238
  self.timezone = attributes[:'timezone']
243
239
  end
244
240
 
245
- if attributes.has_key?(:'trial_date')
246
- self.trial_date = attributes[:'trial_date']
247
- end
248
-
249
241
  end
250
242
 
251
243
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -290,8 +282,7 @@ module RadioManagerClient
290
282
  pty_code == o.pty_code &&
291
283
  pty_type == o.pty_type &&
292
284
  station_key == o.station_key &&
293
- timezone == o.timezone &&
294
- trial_date == o.trial_date
285
+ timezone == o.timezone
295
286
  end
296
287
 
297
288
  # @see the `==` method
@@ -303,7 +294,7 @@ module RadioManagerClient
303
294
  # Calculates hash code according to all attributes.
304
295
  # @return [Fixnum] Hash code
305
296
  def hash
306
- [id, name, created_at, updated_at, system_name, short_name, medium_name, website, email, keywords, description, sms, telephone, genre_id, language, active, logo_rectangle, logo_128x128, logo_320x320, logo_600x600, pay_off, pty_code, pty_type, station_key, timezone, trial_date].hash
297
+ [id, name, created_at, updated_at, system_name, short_name, medium_name, website, email, keywords, description, sms, telephone, genre_id, language, active, logo_rectangle, logo_128x128, logo_320x320, logo_600x600, pay_off, pty_code, pty_type, station_key, timezone].hash
307
298
  end
308
299
 
309
300
  # Builds the object from hash
@@ -37,7 +37,7 @@ module RadioManagerClient
37
37
 
38
38
  attr_accessor :active_external_station_id
39
39
 
40
- attr_accessor :role_id
40
+ attr_accessor :roles
41
41
 
42
42
 
43
43
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -54,7 +54,7 @@ module RadioManagerClient
54
54
  :'settings' => :'settings',
55
55
  :'language' => :'language',
56
56
  :'active_external_station_id' => :'active_external_station_id',
57
- :'role_id' => :'role_id'
57
+ :'roles' => :'roles'
58
58
  }
59
59
  end
60
60
 
@@ -72,7 +72,7 @@ module RadioManagerClient
72
72
  :'settings' => :'UserResultSettings',
73
73
  :'language' => :'BOOLEAN',
74
74
  :'active_external_station_id' => :'Integer',
75
- :'role_id' => :'Integer'
75
+ :'roles' => :'Array<UserResultRoles>'
76
76
  }
77
77
  end
78
78
 
@@ -128,8 +128,10 @@ module RadioManagerClient
128
128
  self.active_external_station_id = attributes[:'active_external_station_id']
129
129
  end
130
130
 
131
- if attributes.has_key?(:'role_id')
132
- self.role_id = attributes[:'role_id']
131
+ if attributes.has_key?(:'roles')
132
+ if (value = attributes[:'roles']).is_a?(Array)
133
+ self.roles = value
134
+ end
133
135
  end
134
136
 
135
137
  end
@@ -183,7 +185,7 @@ module RadioManagerClient
183
185
  settings == o.settings &&
184
186
  language == o.language &&
185
187
  active_external_station_id == o.active_external_station_id &&
186
- role_id == o.role_id
188
+ roles == o.roles
187
189
  end
188
190
 
189
191
  # @see the `==` method
@@ -195,7 +197,7 @@ module RadioManagerClient
195
197
  # Calculates hash code according to all attributes.
196
198
  # @return [Fixnum] Hash code
197
199
  def hash
198
- [id, email, firstname, lastname, phone, created_at, updated_at, active, settings, language, active_external_station_id, role_id].hash
200
+ [id, email, firstname, lastname, phone, created_at, updated_at, active, settings, language, active_external_station_id, roles].hash
199
201
  end
200
202
 
201
203
  # Builds the object from hash
@@ -14,21 +14,33 @@ require 'date'
14
14
 
15
15
  module RadioManagerClient
16
16
 
17
- class BroadcastFieldValues
18
- attr_accessor :image
17
+ class UserResultRoles
18
+ attr_accessor :href
19
+
20
+ attr_accessor :model
21
+
22
+ attr_accessor :operation
23
+
24
+ attr_accessor :params
19
25
 
20
26
 
21
27
  # Attribute mapping from ruby-style variable name to JSON key.
22
28
  def self.attribute_map
23
29
  {
24
- :'image' => :'image'
30
+ :'href' => :'href',
31
+ :'model' => :'model',
32
+ :'operation' => :'operation',
33
+ :'params' => :'params'
25
34
  }
26
35
  end
27
36
 
28
37
  # Attribute type mapping.
29
38
  def self.swagger_types
30
39
  {
31
- :'image' => :'String'
40
+ :'href' => :'String',
41
+ :'model' => :'String',
42
+ :'operation' => :'String',
43
+ :'params' => :'Integer'
32
44
  }
33
45
  end
34
46
 
@@ -40,8 +52,20 @@ module RadioManagerClient
40
52
  # convert string to symbol for hash key
41
53
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
42
54
 
43
- if attributes.has_key?(:'image')
44
- self.image = attributes[:'image']
55
+ if attributes.has_key?(:'href')
56
+ self.href = attributes[:'href']
57
+ end
58
+
59
+ if attributes.has_key?(:'model')
60
+ self.model = attributes[:'model']
61
+ end
62
+
63
+ if attributes.has_key?(:'operation')
64
+ self.operation = attributes[:'operation']
65
+ end
66
+
67
+ if attributes.has_key?(:'params')
68
+ self.params = attributes[:'params']
45
69
  end
46
70
 
47
71
  end
@@ -64,7 +88,10 @@ module RadioManagerClient
64
88
  def ==(o)
65
89
  return true if self.equal?(o)
66
90
  self.class == o.class &&
67
- image == o.image
91
+ href == o.href &&
92
+ model == o.model &&
93
+ operation == o.operation &&
94
+ params == o.params
68
95
  end
69
96
 
70
97
  # @see the `==` method
@@ -76,7 +103,7 @@ module RadioManagerClient
76
103
  # Calculates hash code according to all attributes.
77
104
  # @return [Fixnum] Hash code
78
105
  def hash
79
- [image].hash
106
+ [href, model, operation, params].hash
80
107
  end
81
108
 
82
109
  # Builds the object from hash
@@ -136,6 +136,7 @@ require 'radiomanager_client/models/text_string'
136
136
  require 'radiomanager_client/models/too_many_requests'
137
137
  require 'radiomanager_client/models/unprocessable_entity'
138
138
  require 'radiomanager_client/models/user_result'
139
+ require 'radiomanager_client/models/user_result_roles'
139
140
  require 'radiomanager_client/models/user_result_settings'
140
141
  require 'radiomanager_client/models/user_results'
141
142
  require 'radiomanager_client/models/visual_result'
@@ -17,7 +17,7 @@ require "radiomanager_client/version"
17
17
 
18
18
  Gem::Specification.new do |s|
19
19
  s.name = "radiomanager_client"
20
- s.version = "1.1.2"
20
+ s.version = "1.1.6"
21
21
  s.platform = Gem::Platform::RUBY
22
22
  s.authors = ["Pluxbox"]
23
23
  s.email = ["support@pluxbox.com"]