Record Class AddSubscriptionReq
java.lang.Object
java.lang.Record
io.github.xezzon.zeroweb.subscription.entity.AddSubscriptionReq
- Record Components:
openapiCode- 被订阅的对外接口的编码appId- 订阅接口的第三方应用标识
- All Implemented Interfaces:
io.github.xezzon.tao.trait.Into<Subscription>
public record AddSubscriptionReq(String appId, String openapiCode)
extends Record
implements io.github.xezzon.tao.trait.Into<Subscription>
- Author:
- xezzon
-
Constructor Summary
ConstructorsConstructorDescriptionAddSubscriptionReq(String appId, String openapiCode) Creates an instance of aAddSubscriptionReqrecord class. -
Method Summary
Modifier and TypeMethodDescriptionappId()Returns the value of theappIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.into()Returns the value of theopenapiCoderecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AddSubscriptionReq
Creates an instance of aAddSubscriptionReqrecord class.- Parameters:
appId- the value for theappIdrecord componentopenapiCode- the value for theopenapiCoderecord component
-
-
Method Details
-
into
- Specified by:
intoin interfaceio.github.xezzon.tao.trait.Into<Subscription>
-
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). -
appId
Returns the value of theappIdrecord component.- Returns:
- the value of the
appIdrecord component
-
openapiCode
Returns the value of theopenapiCoderecord component.- Returns:
- the value of the
openapiCoderecord component
-