Class MosaicAddressRestrictionTransactionV1Descriptor
- All Implemented Interfaces:
SymbolTransactionDescriptor,SymbolTypedDescriptor,TypedDescriptor
- MosaicAddressRestrictionTransactionV1Descriptor
Type safe descriptor used to generate a descriptor map for MosaicAddressRestrictionTransactionV1Descriptor.
Set address specific rules to transfer a restrictable mosaic (V1, latest).
-
Constructor Summary
ConstructorsConstructorDescriptionMosaicAddressRestrictionTransactionV1Descriptor(UnresolvedMosaicId mosaicId, long restrictionKey, long previousRestrictionValue, long newRestrictionValue, Address targetAddress) Creates a descriptor for MosaicAddressRestrictionTransactionV1. -
Method Summary
-
Constructor Details
-
MosaicAddressRestrictionTransactionV1Descriptor
public MosaicAddressRestrictionTransactionV1Descriptor(UnresolvedMosaicId mosaicId, long restrictionKey, long previousRestrictionValue, long newRestrictionValue, Address targetAddress) Creates a descriptor for MosaicAddressRestrictionTransactionV1.- Parameters:
mosaicId- Identifier of the mosaic to which the restriction applies.restrictionKey- Restriction key.previousRestrictionValue- Previous restriction value. SetpreviousRestrictionValuetoFFFFFFFFFFFFFFFFif the target address does not have a previous restriction value for this mosaic id and restriction key.newRestrictionValue- New restriction value.targetAddress- Address being restricted.
-
-
Method Details
-
toMap
- MosaicAddressRestrictionTransactionV1Descriptor.toMap
Builds a representation of this descriptor that can be passed to a factory function.
- Specified by:
toMapin interfaceTypedDescriptor- Returns:
Descriptor map that can be passed to a transaction factory.
-