-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
570eb80
commit df813d4
Showing
6 changed files
with
164 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/main/java/org/oopproject/deserializers/MovieVideosResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.oopproject.deserializers; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import java.util.List; | ||
|
||
public class MovieVideosResponse { | ||
@SerializedName("results") | ||
public List<VideoDeserializer> results; // Список видео | ||
|
||
// Конструкторы и методы, если нужно | ||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/org/oopproject/deserializers/VideoDeserializer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package org.oopproject.deserializers; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
||
public class VideoDeserializer { | ||
@SerializedName("key") | ||
public String key; // Ключ видео, который будет использоваться для ссылки | ||
|
||
@SerializedName("name") | ||
public String name; // Название видео (например, "Трейлер") | ||
|
||
@SerializedName("site") | ||
public String site; // Платформа видео (например, "YouTube") | ||
|
||
// Конструкторы и методы, если нужно | ||
} |