Class CapabilityResult

java.lang.Object
ch.threema.apitool.results.CapabilityResult

public class CapabilityResult extends Object
Result of a capability lookup
  • Constructor Details

    • CapabilityResult

      public CapabilityResult(String key, String[] capabilities)
  • Method Details

    • getCapabilities

      public String[] getCapabilities()
      Get all capabilities as a string array.
    • canText

      public boolean canText()
      Check whether the Threema ID can receive text
    • canImage

      public boolean canImage()
      Check whether the Threema ID can receive images
    • canVideo

      public boolean canVideo()
      Check whether the Threema ID can receive videos
    • canAudio

      public boolean canAudio()
      Check whether the Threema ID can receive audio
    • canFile

      public boolean canFile()
      Check whether the Threema ID can receive files
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getKey

      public String getKey()