forked from FongMi/CatVodSpider
-
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
Showing
9 changed files
with
169 additions
and
114 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.github.catvod.bean.star; | ||
|
||
import android.text.TextUtils; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
||
import java.util.Collections; | ||
import java.util.List; | ||
|
||
public class Group { | ||
|
||
@SerializedName("name") | ||
private String name; | ||
@SerializedName("videos") | ||
private List<Video> videos; | ||
|
||
public String getName() { | ||
return TextUtils.isEmpty(name) ? "" : name; | ||
} | ||
|
||
public List<Video> getVideos() { | ||
return videos == null ? Collections.emptyList() : videos; | ||
} | ||
} |
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,71 @@ | ||
package com.github.catvod.bean.star; | ||
|
||
import android.text.TextUtils; | ||
|
||
import com.google.gson.Gson; | ||
import com.google.gson.annotations.SerializedName; | ||
|
||
import java.util.Collections; | ||
import java.util.List; | ||
|
||
public class Info { | ||
|
||
@SerializedName("videosGroup") | ||
private List<Group> videosGroup; | ||
@SerializedName("actor") | ||
private List<Person> actor; | ||
@SerializedName("country") | ||
private String country; | ||
@SerializedName("desc") | ||
private String desc; | ||
@SerializedName("director") | ||
private List<Person> director; | ||
@SerializedName("name") | ||
private String name; | ||
@SerializedName("picurl") | ||
private String picurl; | ||
@SerializedName("time") | ||
private String time; | ||
@SerializedName("countStr") | ||
private String countStr; | ||
|
||
public static Info objectFrom(String str) { | ||
return new Gson().fromJson(str, Info.class); | ||
} | ||
|
||
public List<Group> getVideosGroup() { | ||
return videosGroup == null ? Collections.emptyList() : videosGroup; | ||
} | ||
|
||
public List<Person> getActor() { | ||
return actor == null ? Collections.emptyList() : actor; | ||
} | ||
|
||
public String getCountry() { | ||
return TextUtils.isEmpty(country) ? "" : country; | ||
} | ||
|
||
public String getDesc() { | ||
return TextUtils.isEmpty(desc) ? "" : desc; | ||
} | ||
|
||
public List<Person> getDirector() { | ||
return director == null ? Collections.emptyList() : director; | ||
} | ||
|
||
public String getName() { | ||
return TextUtils.isEmpty(name) ? "" : name; | ||
} | ||
|
||
public String getPicurl() { | ||
return TextUtils.isEmpty(picurl) ? "" : picurl; | ||
} | ||
|
||
public String getTime() { | ||
return TextUtils.isEmpty(time) ? "" : time; | ||
} | ||
|
||
public String getCountStr() { | ||
return TextUtils.isEmpty(countStr) ? "" : countStr; | ||
} | ||
} |
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,21 @@ | ||
package com.github.catvod.bean.star; | ||
|
||
import android.text.TextUtils; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
||
public class Person { | ||
|
||
@SerializedName("id") | ||
private int id; | ||
@SerializedName("name") | ||
private String name; | ||
|
||
public int getId() { | ||
return id; | ||
} | ||
|
||
public String getName() { | ||
return TextUtils.isEmpty(name) ? "" : name; | ||
} | ||
} |
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,21 @@ | ||
package com.github.catvod.bean.star; | ||
|
||
import android.text.TextUtils; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
||
public class Video { | ||
|
||
@SerializedName("purl") | ||
private String purl; | ||
@SerializedName("eporder") | ||
private int eporder; | ||
|
||
public String getPurl() { | ||
return TextUtils.isEmpty(purl) ? "" : purl; | ||
} | ||
|
||
public int getEporder() { | ||
return eporder; | ||
} | ||
} |
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
Binary file not shown.
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 |
---|---|---|
@@ -1 +1 @@ | ||
1d4ff8f544bca8e9c4c931bc67f186c9 | ||
79ce46d06a14fbf6a8032fb0b1d5b98a |