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
001df44
commit f84400a
Showing
11 changed files
with
95 additions
and
181 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
2 changes: 1 addition & 1 deletion
2
...usicdownloader/api/github/GithubData.java → ...wnloader/api/github/model/GithubData.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
4 changes: 3 additions & 1 deletion
4
...nloader/api/github/GithubDataService.java → ...api/github/service/GithubDataService.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
14 changes: 0 additions & 14 deletions
14
app/src/main/java/com/example/application/musicdownloader/api/server/ServerDataService.java
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...usicdownloader/api/server/ServerData.java → .../api/server/model/ServerDownloadData.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
26 changes: 26 additions & 0 deletions
26
...c/main/java/com/example/application/musicdownloader/api/server/model/ServerQueryData.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,26 @@ | ||
package com.example.application.musicdownloader.api.server.model; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
||
public class ServerQueryData { | ||
@SerializedName("id") | ||
private String id; | ||
|
||
@SerializedName("title") | ||
private String title; | ||
|
||
@SerializedName("thumbnailUrl") | ||
private String thumbnailUrl; | ||
|
||
public String getId() { | ||
return id; | ||
} | ||
|
||
public String getTitle() { | ||
return title; | ||
} | ||
|
||
public String getThumbnailUrl() { | ||
return thumbnailUrl; | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...in/java/com/example/application/musicdownloader/api/server/service/ServerDataService.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,22 @@ | ||
package com.example.application.musicdownloader.api.server.service; | ||
|
||
import com.example.application.musicdownloader.api.server.model.ServerDownloadData; | ||
import com.example.application.musicdownloader.api.server.model.ServerQueryData; | ||
|
||
import retrofit2.Call; | ||
import retrofit2.http.GET; | ||
import retrofit2.http.Query; | ||
|
||
public interface ServerDataService { | ||
@GET("download") | ||
Call<ServerDownloadData> getDownloadLink( | ||
@Query("id") String id, | ||
@Query("encoding") String format, | ||
@Query("quality") String quality | ||
); | ||
|
||
@GET("id") | ||
Call<ServerQueryData> getYouTubeId( | ||
@Query("q") String query | ||
); | ||
} |
97 changes: 0 additions & 97 deletions
97
app/src/main/java/com/example/application/musicdownloader/api/youtube/YouTubeData.java
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
...src/main/java/com/example/application/musicdownloader/api/youtube/YouTubeDataService.java
This file was deleted.
Oops, something went wrong.
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