Record Class McpMobileToolchainStatus

java.lang.Object
java.lang.Record
com.shaft.mcp.McpMobileToolchainStatus

public record McpMobileToolchainStatus(String platformName, boolean nodeAvailable, boolean npmAvailable, boolean appiumAvailable, boolean appiumInspectorAvailable, boolean adbAvailable, boolean emulatorAvailable, boolean sdkManagerAvailable, boolean avdManagerAvailable, Path toolRoot, Path androidSdkRoot, Path androidAvdHome, Path appiumRoot, String appiumVersion, String appiumInspectorPluginVersion, List<McpMobileDevice> androidDevices, List<String> cachedAndroidEmulators, List<String> missingDependencies, List<String> warnings) extends Record
Local mobile toolchain discovery status.
  • Constructor Details

    • McpMobileToolchainStatus

      public McpMobileToolchainStatus(String platformName, boolean nodeAvailable, boolean npmAvailable, boolean appiumAvailable, boolean appiumInspectorAvailable, boolean adbAvailable, boolean emulatorAvailable, boolean sdkManagerAvailable, boolean avdManagerAvailable, Path toolRoot, Path androidSdkRoot, Path androidAvdHome, Path appiumRoot, String appiumVersion, String appiumInspectorPluginVersion, List<McpMobileDevice> androidDevices, List<String> cachedAndroidEmulators, List<String> missingDependencies, List<String> warnings)
      Creates an immutable toolchain status.
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • platformName

      public String platformName()
      Returns the value of the platformName record component.
      Returns:
      the value of the platformName record component
    • nodeAvailable

      public boolean nodeAvailable()
      Returns the value of the nodeAvailable record component.
      Returns:
      the value of the nodeAvailable record component
    • npmAvailable

      public boolean npmAvailable()
      Returns the value of the npmAvailable record component.
      Returns:
      the value of the npmAvailable record component
    • appiumAvailable

      public boolean appiumAvailable()
      Returns the value of the appiumAvailable record component.
      Returns:
      the value of the appiumAvailable record component
    • appiumInspectorAvailable

      public boolean appiumInspectorAvailable()
      Returns the value of the appiumInspectorAvailable record component.
      Returns:
      the value of the appiumInspectorAvailable record component
    • adbAvailable

      public boolean adbAvailable()
      Returns the value of the adbAvailable record component.
      Returns:
      the value of the adbAvailable record component
    • emulatorAvailable

      public boolean emulatorAvailable()
      Returns the value of the emulatorAvailable record component.
      Returns:
      the value of the emulatorAvailable record component
    • sdkManagerAvailable

      public boolean sdkManagerAvailable()
      Returns the value of the sdkManagerAvailable record component.
      Returns:
      the value of the sdkManagerAvailable record component
    • avdManagerAvailable

      public boolean avdManagerAvailable()
      Returns the value of the avdManagerAvailable record component.
      Returns:
      the value of the avdManagerAvailable record component
    • toolRoot

      public Path toolRoot()
      Returns the value of the toolRoot record component.
      Returns:
      the value of the toolRoot record component
    • androidSdkRoot

      public Path androidSdkRoot()
      Returns the value of the androidSdkRoot record component.
      Returns:
      the value of the androidSdkRoot record component
    • androidAvdHome

      public Path androidAvdHome()
      Returns the value of the androidAvdHome record component.
      Returns:
      the value of the androidAvdHome record component
    • appiumRoot

      public Path appiumRoot()
      Returns the value of the appiumRoot record component.
      Returns:
      the value of the appiumRoot record component
    • appiumVersion

      public String appiumVersion()
      Returns the value of the appiumVersion record component.
      Returns:
      the value of the appiumVersion record component
    • appiumInspectorPluginVersion

      public String appiumInspectorPluginVersion()
      Returns the value of the appiumInspectorPluginVersion record component.
      Returns:
      the value of the appiumInspectorPluginVersion record component
    • androidDevices

      public List<McpMobileDevice> androidDevices()
      Returns the value of the androidDevices record component.
      Returns:
      the value of the androidDevices record component
    • cachedAndroidEmulators

      public List<String> cachedAndroidEmulators()
      Returns the value of the cachedAndroidEmulators record component.
      Returns:
      the value of the cachedAndroidEmulators record component
    • missingDependencies

      public List<String> missingDependencies()
      Returns the value of the missingDependencies record component.
      Returns:
      the value of the missingDependencies record component
    • warnings

      public List<String> warnings()
      Returns the value of the warnings record component.
      Returns:
      the value of the warnings record component