MCPcopy Create free account
hub / github.com/FongMi/CatVodSpider / Drive

Class Drive

app/src/main/java/com/github/catvod/bean/alist/Drive.java:19–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17import java.util.Map;
18
19public class Drive {
20
21 @SerializedName("params")
22 private List<Param> params;
23 @SerializedName("login")
24 private Login login;
25 @SerializedName("name")
26 private String name;
27 @SerializedName("server")
28 private String server;
29 @SerializedName("version")
30 private int version;
31 @SerializedName("path")
32 private String path;
33 @SerializedName("token")
34 private String token;
35 @SerializedName("search")
36 private Boolean search;
37 @SerializedName("hidden")
38 private Boolean hidden;
39
40 public static List<Drive> arrayFrom(String str) {
41 Type listType = TypeToken.getParameterized(List.class, Drive.class).getType();
42 return new Gson().fromJson(str, listType);
43 }
44
45 public List<Param> getParams() {
46 return params == null ? new ArrayList<>() : params;
47 }
48
49 public Login getLogin() {
50 return login;
51 }
52
53 public Drive(String name) {
54 this.name = name;
55 }
56
57 public String getName() {
58 return TextUtils.isEmpty(name) ? "" : name;
59 }
60
61 public String getServer() {
62 return TextUtils.isEmpty(server) ? "" : server;
63 }
64
65 public int getVersion() {
66 return version;
67 }
68
69 public void setVersion(int version) {
70 this.version = version;
71 }
72
73 public String getPath() {
74 return TextUtils.isEmpty(path) ? "" : path;
75 }
76

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected