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 aAddSubscriptionReq
record class. -
Method Summary
Modifier and TypeMethodDescriptionappId()
Returns the value of theappId
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.into()
Returns the value of theopenapiCode
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
AddSubscriptionReq
Creates an instance of aAddSubscriptionReq
record class.- Parameters:
appId
- the value for theappId
record componentopenapiCode
- the value for theopenapiCode
record component
-
-
Method Details
-
into
- Specified by:
into
in 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 theappId
record component.- Returns:
- the value of the
appId
record component
-
openapiCode
Returns the value of theopenapiCode
record component.- Returns:
- the value of the
openapiCode
record component
-