examples/appnet-api-server/src/main/java/com/hedera/hashgraph/identity/hcs/example/appnet/dto/VerifiableCredentialStatus.java
/**
   * Creates a new instance of this DTO from the given VC message and its consensus timestamp.
   *
   * @param message            VC message received from the mirror node.
   * @param consensusTimestamp Consensus timestamp of the message.
   * @return The DTO instance.
   */
Creates a new instance of this DTO from the given VC message and its consensus timestamp.
@param message            VC message received from the mirror node.
@param consensusTimestamp Consensus timestamp of the message.
@return The DTO instance.
Creates a new instance of this DTO from the given VC message and its consensus timestamp . @param message VC message received from the mirror node . @param consensusTimestamp Consensus timestamp of the message . @return The DTO instance .
public static VerifiableCredentialStatus fromHcsVcMessage(final HcsVcMessage message,
                                                            final Instant consensusTimestamp) {
    VerifiableCredentialStatus result = new VerifiableCredentialStatus();
    result.setOperation(message.getOperation());
    result.setCredentialHash(message.getCredentialHash());
    result.setTimestamp(message.getTimestamp());
    result.setUpdated(consensusTimestamp);
    return result;
  }
public static VerifiableCredentialStatus fromHcsVcMessage ( final HcsVcMessage message , final Instant consensusTimestamp ) { VerifiableCredentialStatus result = new VerifiableCredentialStatus ( ) ; result . setOperation ( message . getOperation ( ) ) ; result . setCredentialHash ( message . getCredentialHash ( ) ) ; result . setTimestamp ( message . getTimestamp ( ) ) ; result . setUpdated ( consensusTimestamp ) ; return result ; }
Creates a new instance of this DTO from the given VC message and its consensus timestamp.
Creates a new instance of this DTO from the given VC message and its consensus timestamp .