async AccessType(id) {
    const contractName = await this.client.ethClient.ContractName(Utils.HashToAddress(id));

    switch(contractName) {
      case "BaseContentSpace":
        return ACCESS_TYPES.SPACE;
      case "BaseLibrary":
        return ACCESS_TYPES.LIBRARY;
      case "BaseContentType":
        return ACCESS_TYPES.TYPE;
      case "BsAccessWallet":
        return ACCESS_TYPES.WALLET;
      case "BsAccessCtrlGrp":
        return ACCESS_TYPES.GROUP;
      case "BaseContent":
        return ACCESS_TYPES.OBJECT;
      default:
        return ACCESS_TYPES.OTHER;
    }
  }
// Determine type of ID based on contract version string
Determine type of ID based on contract version string
Determine type of ID based on contract version string
async AccessType(id) {
    const contractName = await this.client.ethClient.ContractName(Utils.HashToAddress(id));
    switch(contractName) {
      case "BaseContentSpace":
        return ACCESS_TYPES.SPACE;
      case "BaseLibrary":
        return ACCESS_TYPES.LIBRARY;
      case "BaseContentType":
        return ACCESS_TYPES.TYPE;
      case "BsAccessWallet":
        return ACCESS_TYPES.WALLET;
      case "BsAccessCtrlGrp":
        return ACCESS_TYPES.GROUP;
      case "BaseContent":
        return ACCESS_TYPES.OBJECT;
      default:
        return ACCESS_TYPES.OTHER;
    }
  }
async AccessType ( id ) { const contractName = await this . client . ethClient . ContractName ( Utils . HashToAddress ( id ) ) ; switch ( contractName ) { case "BaseContentSpace" : return ACCESS_TYPES . SPACE ; case "BaseLibrary" : return ACCESS_TYPES . LIBRARY ; case "BaseContentType" : return ACCESS_TYPES . TYPE ; case "BsAccessWallet" : return ACCESS_TYPES . WALLET ; case "BsAccessCtrlGrp" : return ACCESS_TYPES . GROUP ; case "BaseContent" : return ACCESS_TYPES . OBJECT ; default : return ACCESS_TYPES . OTHER ; } }
Determine type of ID based on contract version string
Determine type of ID based on contract version string