Package io.meeds.dapp.service
Class DeedMetadataService
java.lang.Object
io.meeds.dapp.service.DeedMetadataService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.meeds.deeds.common.elasticsearch.model.DeedMetadataio.meeds.deeds.common.elasticsearch.model.DeedMetadatagetDeedMetadata(Long nftId) io.meeds.deeds.common.elasticsearch.model.DeedMetadatagetDeedMetadataOfCard(int cityIndex, int cardTypeIndex) voidinit()
-
Constructor Details
-
DeedMetadataService
public DeedMetadataService()
-
-
Method Details
-
init
@PostConstruct public void init() -
getDeedMetadata
@Cacheable(cacheNames="deedMetadata") public io.meeds.deeds.common.elasticsearch.model.DeedMetadata getDeedMetadata(Long nftId) - Parameters:
nftId- DEED NFT identifier- Returns:
- DEED NFT metadatas of type
DeedMetadata. If the Metadata entry doesn't exist in storage, it will build a new one base on City and Card Type of the NFT.
-
getDeedMetadataOfCard
public io.meeds.deeds.common.elasticsearch.model.DeedMetadata getDeedMetadataOfCard(int cityIndex, int cardTypeIndex) - Parameters:
cityIndex- City index of selected CardcardTypeIndex- Card Type index of selected Card- Returns:
- DEED NFT metadatas from metadata pattern.
-
getContractMetadata
public io.meeds.deeds.common.elasticsearch.model.DeedMetadata getContractMetadata()- Returns:
DeedMetadatarepresenting the contract Metadata used by OpenSea
-