类 OTAInstance

java.lang.Object
com.ghostchu.crowdin.OTAInstance

public class OTAInstance extends Object
  • 构造器详细资料

    • 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

      @NotNull public @NotNull Collection<String> listFiles()
      List the available files in this OTA instance.
      返回:
      The available files in this OTA instance.
    • getFileInstance

      @Nullable public @Nullable OTAFileInstance getFileInstance(@NotNull @NotNull String fileName)
      Gets the parent CrowdinOTA instance.
      参数:
      fileName - The file name.
      返回:
      The parent CrowdinOTA instance. Null for no instance found.