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