3535import java .util .Objects ;
3636
3737@ JsonIgnoreProperties (ignoreUnknown = true )
38- public class Recording extends Resource {
38+ public class RoomRecording extends Resource {
3939 private static final long serialVersionUID = 258585563555163L ;
4040
4141 public enum Status {
@@ -144,39 +144,39 @@ public static Codec forValue(final String value) {
144144 }
145145
146146 /**
147- * Create a RecordingFetcher to execute fetch.
147+ * Create a RoomRecordingFetcher to execute fetch.
148148 *
149149 * @param pathRoomSid The room_sid
150150 * @param pathSid The sid
151- * @return RecordingFetcher capable of executing the fetch
151+ * @return RoomRecordingFetcher capable of executing the fetch
152152 */
153- public static RecordingFetcher fetcher (final String pathRoomSid ,
154- final String pathSid ) {
155- return new RecordingFetcher (pathRoomSid , pathSid );
153+ public static RoomRecordingFetcher fetcher (final String pathRoomSid ,
154+ final String pathSid ) {
155+ return new RoomRecordingFetcher (pathRoomSid , pathSid );
156156 }
157157
158158 /**
159- * Create a RecordingReader to execute read.
159+ * Create a RoomRecordingReader to execute read.
160160 *
161161 * @param pathRoomSid The room_sid
162- * @return RecordingReader capable of executing the read
162+ * @return RoomRecordingReader capable of executing the read
163163 */
164- public static RecordingReader reader (final String pathRoomSid ) {
165- return new RecordingReader (pathRoomSid );
164+ public static RoomRecordingReader reader (final String pathRoomSid ) {
165+ return new RoomRecordingReader (pathRoomSid );
166166 }
167167
168168 /**
169- * Converts a JSON String into a Recording object using the provided
169+ * Converts a JSON String into a RoomRecording object using the provided
170170 * ObjectMapper.
171171 *
172172 * @param json Raw JSON String
173173 * @param objectMapper Jackson ObjectMapper
174- * @return Recording object represented by the provided JSON
174+ * @return RoomRecording object represented by the provided JSON
175175 */
176- public static Recording fromJson (final String json , final ObjectMapper objectMapper ) {
176+ public static RoomRecording fromJson (final String json , final ObjectMapper objectMapper ) {
177177 // Convert all checked exceptions to Runtime
178178 try {
179- return objectMapper .readValue (json , Recording .class );
179+ return objectMapper .readValue (json , RoomRecording .class );
180180 } catch (final JsonMappingException | JsonParseException e ) {
181181 throw new ApiException (e .getMessage (), e );
182182 } catch (final IOException e ) {
@@ -185,17 +185,17 @@ public static Recording fromJson(final String json, final ObjectMapper objectMap
185185 }
186186
187187 /**
188- * Converts a JSON InputStream into a Recording object using the provided
188+ * Converts a JSON InputStream into a RoomRecording object using the provided
189189 * ObjectMapper.
190190 *
191191 * @param json Raw JSON InputStream
192192 * @param objectMapper Jackson ObjectMapper
193- * @return Recording object represented by the provided JSON
193+ * @return RoomRecording object represented by the provided JSON
194194 */
195- public static Recording fromJson (final InputStream json , final ObjectMapper objectMapper ) {
195+ public static RoomRecording fromJson (final InputStream json , final ObjectMapper objectMapper ) {
196196 // Convert all checked exceptions to Runtime
197197 try {
198- return objectMapper .readValue (json , Recording .class );
198+ return objectMapper .readValue (json , RoomRecording .class );
199199 } catch (final JsonMappingException | JsonParseException e ) {
200200 throw new ApiException (e .getMessage (), e );
201201 } catch (final IOException e ) {
@@ -204,49 +204,49 @@ public static Recording fromJson(final InputStream json, final ObjectMapper obje
204204 }
205205
206206 private final String accountSid ;
207- private final Recording .Status status ;
207+ private final RoomRecording .Status status ;
208208 private final DateTime dateCreated ;
209209 private final String sid ;
210210 private final String sourceSid ;
211211 private final Integer size ;
212- private final Recording .Type type ;
212+ private final RoomRecording .Type type ;
213213 private final Integer duration ;
214- private final Recording .Format containerFormat ;
215- private final Recording .Codec codec ;
214+ private final RoomRecording .Format containerFormat ;
215+ private final RoomRecording .Codec codec ;
216216 private final Map <String , Object > groupingSids ;
217217 private final String roomSid ;
218218 private final URI url ;
219219 private final Map <String , String > links ;
220220
221221 @ JsonCreator
222- private Recording (@ JsonProperty ("account_sid" )
223- final String accountSid ,
224- @ JsonProperty ("status" )
225- final Recording .Status status ,
226- @ JsonProperty ("date_created" )
227- final String dateCreated ,
228- @ JsonProperty ("sid" )
229- final String sid ,
230- @ JsonProperty ("source_sid" )
231- final String sourceSid ,
232- @ JsonProperty ("size" )
233- final Integer size ,
234- @ JsonProperty ("type" )
235- final Recording .Type type ,
236- @ JsonProperty ("duration" )
237- final Integer duration ,
238- @ JsonProperty ("container_format" )
239- final Recording .Format containerFormat ,
240- @ JsonProperty ("codec" )
241- final Recording .Codec codec ,
242- @ JsonProperty ("grouping_sids" )
243- final Map <String , Object > groupingSids ,
244- @ JsonProperty ("room_sid" )
245- final String roomSid ,
246- @ JsonProperty ("url" )
247- final URI url ,
248- @ JsonProperty ("links" )
249- final Map <String , String > links ) {
222+ private RoomRecording (@ JsonProperty ("account_sid" )
223+ final String accountSid ,
224+ @ JsonProperty ("status" )
225+ final RoomRecording .Status status ,
226+ @ JsonProperty ("date_created" )
227+ final String dateCreated ,
228+ @ JsonProperty ("sid" )
229+ final String sid ,
230+ @ JsonProperty ("source_sid" )
231+ final String sourceSid ,
232+ @ JsonProperty ("size" )
233+ final Integer size ,
234+ @ JsonProperty ("type" )
235+ final RoomRecording .Type type ,
236+ @ JsonProperty ("duration" )
237+ final Integer duration ,
238+ @ JsonProperty ("container_format" )
239+ final RoomRecording .Format containerFormat ,
240+ @ JsonProperty ("codec" )
241+ final RoomRecording .Codec codec ,
242+ @ JsonProperty ("grouping_sids" )
243+ final Map <String , Object > groupingSids ,
244+ @ JsonProperty ("room_sid" )
245+ final String roomSid ,
246+ @ JsonProperty ("url" )
247+ final URI url ,
248+ @ JsonProperty ("links" )
249+ final Map <String , String > links ) {
250250 this .accountSid = accountSid ;
251251 this .status = status ;
252252 this .dateCreated = DateConverter .iso8601DateTimeFromString (dateCreated );
@@ -277,7 +277,7 @@ public final String getAccountSid() {
277277 *
278278 * @return The status
279279 */
280- public final Recording .Status getStatus () {
280+ public final RoomRecording .Status getStatus () {
281281 return this .status ;
282282 }
283283
@@ -322,7 +322,7 @@ public final Integer getSize() {
322322 *
323323 * @return The type
324324 */
325- public final Recording .Type getType () {
325+ public final RoomRecording .Type getType () {
326326 return this .type ;
327327 }
328328
@@ -340,7 +340,7 @@ public final Integer getDuration() {
340340 *
341341 * @return The container_format
342342 */
343- public final Recording .Format getContainerFormat () {
343+ public final RoomRecording .Format getContainerFormat () {
344344 return this .containerFormat ;
345345 }
346346
@@ -349,7 +349,7 @@ public final Recording.Format getContainerFormat() {
349349 *
350350 * @return The codec
351351 */
352- public final Recording .Codec getCodec () {
352+ public final RoomRecording .Codec getCodec () {
353353 return this .codec ;
354354 }
355355
@@ -399,7 +399,7 @@ public boolean equals(final Object o) {
399399 return false ;
400400 }
401401
402- Recording other = (Recording ) o ;
402+ RoomRecording other = (RoomRecording ) o ;
403403
404404 return Objects .equals (accountSid , other .accountSid ) &&
405405 Objects .equals (status , other .status ) &&
0 commit comments