TestResource

public class TestResource
extends Object

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


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

Tóm tắt

Phương thức công khai

static TestResource fromJson(JSONObject json)
static List<TestResource> fromJsonArray(JSONArray jsonArray)
boolean getDecompress()
String getDecompressDir()
File getDecompressDir(File parentDir)
List<String> 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 List<TestResource> fromJsonArray (JSONArray jsonArray)

Tham số
jsonArray JSONArray

Giá trị trả về
List<TestResource>

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 List<String> getDecompressFiles ()

Giá trị trả về
List<String>

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