TestResource

public class TestResource
extends Object

java.lang.Object
   ↳ com.android.tradefed.cluster.TestResource


Một lớp để mô hình hoá thông báo TestResource do API TFC trả về.

Tóm tắt

Phương thức công khai

static TestResource fromJson(JSONObject json)
static fromJsonArray(JSONArray jsonArray)
boolean getDecompress()
String getDecompressDir()
File getDecompressDir(File parentDir)
getDecompressFiles()
File getFile(File parentDir)
String getName()
String getUrl()
boolean mountZip()
JSONObject toJson()

Phương thức công khai

fromJson

public static TestResource fromJson (JSONObject json)

Tham số
json JSONObject

Giá trị trả về
TestResource

fromJsonArray

public static  fromJsonArray (JSONArray jsonArray)

Tham số
jsonArray JSONArray

Giá trị trả về

Gửi
JSONException

getDecompress

public boolean getDecompress ()

Giá trị trả về
boolean

getDecompressDir

public String getDecompressDir ()

Giá trị trả về
String

getDecompressDir

public File getDecompressDir (File parentDir)

Tham số
parentDir File

Giá trị trả về
File

getDecompressFiles

public  getDecompressFiles ()

Giá trị trả về

getFile

public File getFile (File parentDir)

Tham số
parentDir File

Giá trị trả về
File

getName

public String getName ()

Giá trị trả về
String

getUrl

public String getUrl ()

Giá trị trả về
String

mountZip

public boolean mountZip ()

Giá trị trả về
boolean

toJson

public JSONObject toJson ()

Giá trị trả về
JSONObject

Gửi
JSONException