Package io.meeds.deeds.service
Class DeedMetadataService
- java.lang.Object
-
- io.meeds.deeds.service.DeedMetadataService
-
@Component public class DeedMetadataService extends Object
-
-
Constructor Summary
Constructors Constructor Description DeedMetadataService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.meeds.deeds.model.DeedMetadatagetContractMetadata()io.meeds.deeds.model.DeedMetadatagetDeedMetadata(Long nftId)io.meeds.deeds.model.DeedMetadatagetDeedMetadataOfCard(short cityIndex, short cardTypeIndex)voidinit()
-
-
-
Method Detail
-
init
@PostConstruct public void init()
-
getDeedMetadata
@Cacheable(cacheNames="deedMetadata") public io.meeds.deeds.model.DeedMetadata getDeedMetadata(Long nftId)
- Parameters:
nftId- DEED NFT identifier- Returns:
- DEED NFT metadatas. 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.model.DeedMetadata getDeedMetadataOfCard(short cityIndex, short 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.model.DeedMetadata getContractMetadata()
- Returns:
DeedMetadatarepresenting the contract Metadata used by OpenSea
-
-