Record Class WeixinLoginChallenge
java.lang.Object
java.lang.Record
io.agentscope.extensions.channel.weixin.WeixinLoginChallenge
Initial QR challenge and portable session returned when an iLink login starts.
-
Constructor Summary
ConstructorsConstructorDescriptionWeixinLoginChallenge(WeixinLoginSession session, String imageContent) Creates an instance of aWeixinLoginChallengerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theimageContentrecord component.session()Returns the value of thesessionrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
WeixinLoginChallenge
Creates an instance of aWeixinLoginChallengerecord class.- Parameters:
session- the value for thesessionrecord componentimageContent- the value for theimageContentrecord 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). -
session
Returns the value of thesessionrecord component.- Returns:
- the value of the
sessionrecord component
-
imageContent
Returns the value of theimageContentrecord component.- Returns:
- the value of the
imageContentrecord component
-