Class DeedMetadataService


  • @Component
    public class DeedMetadataService
    extends Object
    • Constructor Detail

      • DeedMetadataService

        public DeedMetadataService()
    • Method Detail

      • 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 Card
        cardTypeIndex - Card Type index of selected Card
        Returns:
        DEED NFT metadatas from metadata pattern.
      • getContractMetadata

        public io.meeds.deeds.model.DeedMetadata getContractMetadata()
        Returns:
        DeedMetadata representing the contract Metadata used by OpenSea