类 OTAInstance
java.lang.Object
com.ghostchu.crowdin.OTAInstance
-
构造器概要
构造器限定符构造器说明protectedOTAInstance(@NotNull CrowdinOTA parent, @NotNull kong.unirest.UnirestInstance unirest) Create a OTAInstance instance from a CrowdinOTA instance. -
方法概要
修饰符和类型方法说明@Nullable OTAFileInstancegetFileInstance(@NotNull String fileName) Gets the parent CrowdinOTA instance.@NotNull Collection<String>List the available files in this OTA instance.
-
构造器详细资料
-
OTAInstance
protected OTAInstance(@NotNull @NotNull CrowdinOTA parent, @NotNull @NotNull kong.unirest.UnirestInstance unirest) throws OTAException Create a OTAInstance instance from a CrowdinOTA instance.- 参数:
parent- The parent CrowdinOTA instance.- 抛出:
OTAException- Throws a OTAException while failed during requesting or processing manifest.
-
-
方法详细资料
-
listFiles
List the available files in this OTA instance.- 返回:
- The available files in this OTA instance.
-
getFileInstance
Gets the parent CrowdinOTA instance.- 参数:
fileName- The file name.- 返回:
- The parent CrowdinOTA instance. Null for no instance found.
-