-
-
Save maxandersen/c3cad44ca6620de7e5a3abb8a98879a9 to your computer and use it in GitHub Desktop.
Revisions
-
tivrfoa revised this gist
Nov 11, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -6,7 +6,7 @@ class GsonHelper { static Gson gson = new Gson(); public static Albums getAlbums(String json) { System.out.println("Getting Album: " + json); return gson.fromJson(json, Albums.class); } } -
tivrfoa revised this gist
Nov 11, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -6,7 +6,7 @@ class GsonHelper { static Gson gson = new Gson(); public static Albums getAlbums(String json) { System.out.println("Getting Album ...: " + json); return gson.fromJson(json, Albums.class); } } -
tivrfoa revised this gist
Nov 11, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -6,7 +6,7 @@ class GsonHelper { static Gson gson = new Gson(); public static Albums getAlbums(String json) { System.out.println("Getting Album ..." + json); return gson.fromJson(json, Albums.class); } } -
tivrfoa revised this gist
Nov 9, 2020 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -6,6 +6,7 @@ class GsonHelper { static Gson gson = new Gson(); public static Albums getAlbums(String json) { System.out.println("Getting Album ..."); return gson.fromJson(json, Albums.class); } } -
tivrfoa revised this gist
Oct 27, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -6,5 +6,5 @@ class Dataset { public String album_id; public String album_title; List<AlbumImages> album_images = new ArrayList<AlbumImages>(); } -
tivrfoa revised this gist
Oct 27, 2020 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ //SOURCES Dataset.java import java.util.ArrayList; import java.util.List; @@ -9,5 +11,5 @@ class Albums { public int total_pages; public int page; public String limit; List<Dataset> dataset = new ArrayList<>(); } -
tivrfoa revised this gist
Oct 27, 2020 . 3 changed files with 9 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,6 @@ import java.util.ArrayList; import java.util.List; class Albums { public String title; public String message; This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,8 @@ //SOURCES AlbumImages.java import java.util.ArrayList; import java.util.List; class Dataset { public String album_id; public String album_title; This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ //DEPS com.google.code.gson:gson:2.8.6 //SOURCES Albums.java import com.google.gson.Gson; -
tivrfoa revised this gist
Oct 26, 2020 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,6 @@ //DEPS com.google.code.gson:gson:2.8.6 //SOURCES Albums import com.google.gson.Gson; class GsonHelper { -
tivrfoa created this gist
Oct 26, 2020 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ class AlbumImages { public String image_id; public String user_id; public String albumId; } This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ class Albums { public String title; public String message; public List errors = new ArrayList(); public String total; public int total_pages; public int page; public String limit; List dataset = new ArrayList(); } This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ class Dataset { public String album_id; public String album_title; List<<AlbumImages> album_images = new ArrayList<AlbumImages>(); } This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ import com.google.gson.Gson; class GsonHelper { static Gson gson = new Gson(); public static Albums getAlbums(String json) { return gson.fromJson(json, Albums.class); } }