public class Content
extends java.lang.Object
implements java.io.Serializable
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
COLUMN_CONTENT |
static java.lang.String |
COLUMN_ID |
static java.lang.String |
COLUMN_LINK_TYPE |
static java.lang.String |
COLUMN_MEDIA_ID |
static java.lang.String |
COLUMN_TITLE |
static java.lang.String |
COLUMN_TYPE |
static java.lang.String |
COLUMN_WITHLINK |
static int |
CUSTOM_LINK |
static int |
SCHEDULE_RESULT_LINK |
static ObjectTableMapper |
TABLE_MAPPER |
static java.lang.String |
TABLE_NAME |
构造器和说明 |
---|
Content() |
限定符和类型 | 方法和说明 |
---|---|
static Content |
analyzeJSON(JSONObject contentJson) |
JSONObject |
createJSONConfig() |
java.lang.String |
getContent() |
long |
getId() |
int |
getLinkType() |
java.lang.String |
getMediaId() |
java.lang.String |
getTitle() |
int |
getType() |
java.lang.String |
getWithLink() |
void |
setContent(java.lang.String content) |
void |
setId(long id) |
void |
setLinkType(int linkType) |
void |
setMediaId(java.lang.String mediaId) |
void |
setTitle(java.lang.String title) |
void |
setType(int type) |
void |
setWithLink(java.lang.String withLink) |
public static final int SCHEDULE_RESULT_LINK
public static final int CUSTOM_LINK
public static final java.lang.String TABLE_NAME
public static final java.lang.String COLUMN_ID
public static final java.lang.String COLUMN_TITLE
public static final java.lang.String COLUMN_LINK_TYPE
public static final java.lang.String COLUMN_WITHLINK
public static final java.lang.String COLUMN_CONTENT
public static final java.lang.String COLUMN_MEDIA_ID
public static final java.lang.String COLUMN_TYPE
public static final ObjectTableMapper TABLE_MAPPER
public JSONObject createJSONConfig() throws JSONException
JSONException
public static Content analyzeJSON(JSONObject contentJson)
contentJson
- {"title": "xxx", "linkType": xxx, "withLink": "xxx", "content": "xxx"}public java.lang.String getMediaId()
public int getType()
public void setMediaId(java.lang.String mediaId)
public void setType(int type)
public long getId()
public void setId(long id)
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public int getLinkType()
public void setLinkType(int linkType)
public java.lang.String getWithLink()
public void setWithLink(java.lang.String withLink)
public java.lang.String getContent()
public void setContent(java.lang.String content)