public class Resource extends AbstractModel
Constructor and Description |
---|
Resource() |
Resource(Resource source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getId()
Get 资源 Id,当 Type 为 MATERIAL 时,取值为素材 Id;当 Type 为 CLASS 时,取值为分类路径 ClassPath。
|
String |
getType()
Get 类型,取值有:
MATERIAL:素材。
CLASS:分类。
|
void |
setId(String Id)
Set 资源 Id,当 Type 为 MATERIAL 时,取值为素材 Id;当 Type 为 CLASS 时,取值为分类路径 ClassPath。
|
void |
setType(String Type)
Set 类型,取值有:
MATERIAL:素材。
CLASS:分类。
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public Resource()
public Resource(Resource source)
public String getType()
public void setType(String Type)
Type
- 类型,取值有:
public String getId()
public void setId(String Id)
Id
- 资源 Id,当 Type 为 MATERIAL 时,取值为素材 Id;当 Type 为 CLASS 时,取值为分类路径 ClassPath。Copyright © 2021. All rights reserved.