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.- 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthor()
Returns the value of theauthor
record component.caption()
Returns the value of thecaption
record component.dabi()
Returns the value of thedabi
record component.Returns the value of thedabiversion
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.hello()
Returns the value of thehello
record component.icon()
Returns the value of theicon
record component.String[]
Returns the value of theinterfaces
record component.language()
Returns the value of thelanguage
record component.name()
Returns the value of thename
record component.Returns the value of thepublisher
record component.support()
Returns the value of thesupport
record component.final String
toString()
Returns a string representation of this record class.version()
Returns the value of theversion
record component.
-
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 aDebotInfo
record class.- Parameters:
name
- the value for thename
record componentversion
- the value for theversion
record componentpublisher
- the value for thepublisher
record componentcaption
- the value for thecaption
record componentauthor
- the value for theauthor
record componentsupport
- the value for thesupport
record componenthello
- the value for thehello
record componentlanguage
- the value for thelanguage
record componentdabi
- the value for thedabi
record componenticon
- the value for theicon
record componentinterfaces
- the value for theinterfaces
record componentdabiversion
- the value for thedabiversion
record component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
version
Returns the value of theversion
record component.- Returns:
- the value of the
version
record component
-
publisher
Returns the value of thepublisher
record component.- Returns:
- the value of the
publisher
record component
-
caption
Returns the value of thecaption
record component.- Returns:
- the value of the
caption
record component
-
author
Returns the value of theauthor
record component.- Returns:
- the value of the
author
record component
-
support
Returns the value of thesupport
record component.- Returns:
- the value of the
support
record component
-
hello
Returns the value of thehello
record component.- Returns:
- the value of the
hello
record component
-
language
Returns the value of thelanguage
record component.- Returns:
- the value of the
language
record component
-
dabi
Returns the value of thedabi
record component.- Returns:
- the value of the
dabi
record component
-
icon
Returns the value of theicon
record component.- Returns:
- the value of the
icon
record component
-
interfaces
Returns the value of theinterfaces
record component.- Returns:
- the value of the
interfaces
record component
-
dabiversion
Returns the value of thedabiversion
record component.- Returns:
- the value of the
dabiversion
record component
-