Class DeedMetadataService

java.lang.Object
io.meeds.deeds.service.DeedMetadataService

@Component public class DeedMetadataService extends Object
  • Constructor Details

    • DeedMetadataService

      public DeedMetadataService()
  • Method Details

    • init

      @PostConstruct public void init()
    • getDeedMetadata

      @Cacheable(cacheNames="deedMetadata") public io.meeds.deeds.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.elasticsearch.model.DeedMetadata getDeedMetadataOfCard(int cityIndex, int 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.elasticsearch.model.DeedMetadata getContractMetadata()
      Returns:
      DeedMetadata representing the contract Metadata used by OpenSea