|
|
@ -8,43 +8,24 @@ import com.fr.json.JSONObject; |
|
|
|
* Created by XiaXiang on 2017/4/20. |
|
|
|
* Created by XiaXiang on 2017/4/20. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public class MoreModel extends AlphaCellModel { |
|
|
|
public class MoreModel extends AlphaCellModel { |
|
|
|
private String name; |
|
|
|
|
|
|
|
private boolean needMore; |
|
|
|
private boolean needMore; |
|
|
|
private String content; |
|
|
|
|
|
|
|
private CellType type; |
|
|
|
|
|
|
|
private boolean isLoading; |
|
|
|
private boolean isLoading; |
|
|
|
|
|
|
|
|
|
|
|
public MoreModel(String name, String content, boolean needMore, CellType type) { |
|
|
|
public MoreModel(String name, String content, boolean needMore, CellType type) { |
|
|
|
this.name = name; |
|
|
|
super(name, content, type); |
|
|
|
this.needMore = needMore; |
|
|
|
this.needMore = needMore; |
|
|
|
this.content = content; |
|
|
|
|
|
|
|
this.type = type; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public MoreModel(String name, CellType type) { |
|
|
|
public MoreModel(String name, CellType type) { |
|
|
|
this.name = name; |
|
|
|
super(name, null, type); |
|
|
|
this.needMore = false; |
|
|
|
this.needMore = false; |
|
|
|
this.type = type; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public MoreModel(String name) { |
|
|
|
|
|
|
|
this.name = name; |
|
|
|
|
|
|
|
this.isLoading = true; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public MoreModel(String name, boolean isLoading) { |
|
|
|
public MoreModel(String name, boolean isLoading) { |
|
|
|
this.name = name; |
|
|
|
super(name, null); |
|
|
|
this.isLoading = isLoading; |
|
|
|
this.isLoading = isLoading; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String getName() { |
|
|
|
|
|
|
|
return name; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setName(String name) { |
|
|
|
|
|
|
|
this.name = name; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public boolean isNeedMore() { |
|
|
|
public boolean isNeedMore() { |
|
|
|
return needMore; |
|
|
|
return needMore; |
|
|
|
} |
|
|
|
} |
|
|
@ -53,14 +34,6 @@ public class MoreModel extends AlphaCellModel { |
|
|
|
this.needMore = needMore; |
|
|
|
this.needMore = needMore; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String getContent() { |
|
|
|
|
|
|
|
return content; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setContent(String content) { |
|
|
|
|
|
|
|
this.content = content; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public JSONObject ModelToJson() throws JSONException { |
|
|
|
public JSONObject ModelToJson() throws JSONException { |
|
|
|
return null; |
|
|
|
return null; |
|
|
@ -76,14 +49,6 @@ public class MoreModel extends AlphaCellModel { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public CellType getType() { |
|
|
|
|
|
|
|
return type; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setType(CellType type) { |
|
|
|
|
|
|
|
this.type = type; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public boolean isLoading() { |
|
|
|
public boolean isLoading() { |
|
|
|
return isLoading; |
|
|
|
return isLoading; |
|
|
|
} |
|
|
|
} |
|
|
|