74 lines
1.5 KiB
Java
74 lines
1.5 KiB
Java
package com.mitac.cell.internet.app;
|
|
|
|
import com.google.common.base.Strings;
|
|
|
|
public class PlayApp {
|
|
private String appId;
|
|
private String title;
|
|
private String summary;
|
|
private String developer;
|
|
private String icon;
|
|
private Float score;
|
|
|
|
public String getAppId() {
|
|
return this.appId;
|
|
}
|
|
|
|
public void setAppId(String appId) {
|
|
int idIndex = appId.indexOf("id=");
|
|
this.appId = idIndex >= 0 ? appId.substring(idIndex + 3) : appId;
|
|
}
|
|
|
|
public String getTitle() {
|
|
return this.title;
|
|
}
|
|
|
|
public void setTitle(String title) {
|
|
this.title = title;
|
|
}
|
|
|
|
public String getSummary() {
|
|
return this.summary;
|
|
}
|
|
|
|
public void setSummary(String summary) {
|
|
this.summary = summary;
|
|
}
|
|
|
|
public String getDeveloper() {
|
|
return this.developer;
|
|
}
|
|
|
|
public void setDeveloper(String developer) {
|
|
this.developer = developer;
|
|
}
|
|
|
|
public String getIcon() {
|
|
return this.icon;
|
|
}
|
|
|
|
public void setIcon(String icon) {
|
|
int indexSlash = icon.lastIndexOf("/");
|
|
int endsIndex = icon.lastIndexOf("=");
|
|
this.icon = indexSlash >= 0 ? icon.substring(indexSlash + 1, endsIndex > 0 ? endsIndex : icon.length()) : icon;
|
|
}
|
|
|
|
public Float getScore() {
|
|
return this.score;
|
|
}
|
|
|
|
public void setScore(String score) {
|
|
try {
|
|
if (!Strings.isNullOrEmpty(score)) {
|
|
this.setScore(Float.parseFloat(score));
|
|
}
|
|
} catch (Exception var3) {
|
|
}
|
|
|
|
}
|
|
|
|
public void setScore(Float score) {
|
|
this.score = score;
|
|
}
|
|
}
|