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 theauthorrecord component.caption()Returns the value of thecaptionrecord component.dabi()Returns the value of thedabirecord component.Returns the value of thedabiversionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.hello()Returns the value of thehellorecord component.icon()Returns the value of theiconrecord component.String[]Returns the value of theinterfacesrecord component.language()Returns the value of thelanguagerecord component.name()Returns the value of thenamerecord component.Returns the value of thepublisherrecord component.support()Returns the value of thesupportrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord 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 aDebotInforecord class.- Parameters:
name- the value for thenamerecord componentversion- the value for theversionrecord componentpublisher- the value for thepublisherrecord componentcaption- the value for thecaptionrecord componentauthor- the value for theauthorrecord componentsupport- the value for thesupportrecord componenthello- the value for thehellorecord componentlanguage- the value for thelanguagerecord componentdabi- the value for thedabirecord componenticon- the value for theiconrecord componentinterfaces- the value for theinterfacesrecord componentdabiversion- the value for thedabiversionrecord 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 thenamerecord component.- Returns:
- the value of the
namerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
publisher
Returns the value of thepublisherrecord component.- Returns:
- the value of the
publisherrecord component
-
caption
Returns the value of thecaptionrecord component.- Returns:
- the value of the
captionrecord component
-
author
Returns the value of theauthorrecord component.- Returns:
- the value of the
authorrecord component
-
support
Returns the value of thesupportrecord component.- Returns:
- the value of the
supportrecord component
-
hello
Returns the value of thehellorecord component.- Returns:
- the value of the
hellorecord component
-
language
Returns the value of thelanguagerecord component.- Returns:
- the value of the
languagerecord component
-
dabi
Returns the value of thedabirecord component.- Returns:
- the value of the
dabirecord component
-
icon
Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-
interfaces
Returns the value of theinterfacesrecord component.- Returns:
- the value of the
interfacesrecord component
-
dabiversion
Returns the value of thedabiversionrecord component.- Returns:
- the value of the
dabiversionrecord component
-