Record Class Debot.DebotInfo

java.lang.Object
java.lang.Record
tech.deplant.java4ever.binding.Debot.DebotInfo
Record Components:
name - DeBot short name.
version - DeBot semantic version.
publisher - The name of DeBot deployer.
caption - Short info about DeBot.
author - The name of DeBot developer.
support - TON address of author for questions and donations.
hello - String with the first messsage from DeBot.
language - String with DeBot interface language (ISO-639).
dabi - String with DeBot ABI.
icon - DeBot icon.
interfaces - Vector with IDs of DInterfaces used by DeBot.
dabiversion - ABI version ("x.y") supported by DeBot
Enclosing class:
Debot

public static record Debot.DebotInfo(String name, String version, String publisher, String caption, String author, String support, String hello, String language, String dabi, String icon, String[] interfaces, String dabiversion) extends Record
[UNSTABLE](UNSTABLE.md) Describes DeBot metadata.
  • Constructor Details

    • DebotInfo

      public DebotInfo(String name, String version, String publisher, String caption, String author, String support, String hello, String language, String dabi, String icon, String[] interfaces, String dabiversion)
      Creates an instance of a DebotInfo record class.
      Parameters:
      name - the value for the name record component
      version - the value for the version record component
      publisher - the value for the publisher record component
      caption - the value for the caption record component
      author - the value for the author record component
      support - the value for the support record component
      hello - the value for the hello record component
      language - the value for the language record component
      dabi - the value for the dabi record component
      icon - the value for the icon record component
      interfaces - the value for the interfaces record component
      dabiversion - the value for the dabiversion record component
  • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • version

      public String version()
      Returns the value of the version record component.
      Returns:
      the value of the version record component
    • publisher

      public String publisher()
      Returns the value of the publisher record component.
      Returns:
      the value of the publisher record component
    • caption

      public String caption()
      Returns the value of the caption record component.
      Returns:
      the value of the caption record component
    • author

      public String author()
      Returns the value of the author record component.
      Returns:
      the value of the author record component
    • support

      public String support()
      Returns the value of the support record component.
      Returns:
      the value of the support record component
    • hello

      public String hello()
      Returns the value of the hello record component.
      Returns:
      the value of the hello record component
    • language

      public String language()
      Returns the value of the language record component.
      Returns:
      the value of the language record component
    • dabi

      public String dabi()
      Returns the value of the dabi record component.
      Returns:
      the value of the dabi record component
    • icon

      public String icon()
      Returns the value of the icon record component.
      Returns:
      the value of the icon record component
    • interfaces

      public String[] interfaces()
      Returns the value of the interfaces record component.
      Returns:
      the value of the interfaces record component
    • dabiversion

      public String dabiversion()
      Returns the value of the dabiversion record component.
      Returns:
      the value of the dabiversion record component