app/src/main/java/net/nashlegend/sourcewall/model/SubItem.java
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
package net.nashlegend.sourcewall.model;
import android.os.Parcel;
/**
* Created by NashLegend on 2014/10/31 0031
*/
public class SubItem extends AceModel {
public static final int Type_Group = -1;//集合,如科学人、热贴、精彩问答、热门问答
public static final int Type_Collections = 0;//集合,如科学人、热贴、精彩问答、热门问答
public static final int Type_Single_Channel = 1;//单项
public static final int Type_Private_Channel = 2;//私人频道,我的小组
public static final int Type_Subject_Channel = 3;//科学人学科频道
public static final int Section_Article = 0;
public static final int Section_Post = 1;
public static final int Section_Question = 2;
public static final int Section_Favor = 3;
private int section;//分组 比如科学人、小组、问答
private int type;//类型,比如Type_Collections,Type_Single_Channel
private String name = "";//名字 比如Geek笑点低
private String value = "";//id 比如63
public SubItem(int section, int type, String name, String value) {
setSection(section);
setType(type);
setName(name);
setValue(value);
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public String getName() {
if (name == null) {
name = "";
}
return name;
}
public void setName(String name) {
this.name = name;
}
public int getType() {
return type;
}
public void setType(int type) {
this.type = type;
}
public int getSection() {
后面还有 48 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
