application/ClientReference.js
/**
     * Select from the name of the organization the configuration file of the gateway connecting to the blockchain network.
     * @param {string} organizatonName 
     */
Select from the name of the organization the configuration file of the gateway connecting to the blockchain network.
@param {string} organizatonName
Select from the name of the organization the configuration file of the gateway connecting to the blockchain network . @param { string } organizatonName
static chooseGatewayFromOrg(organizatonName){
        if (organizatonName == null || organizatonName == undefined){
            return ClientReference.getGatewayFileConfigGuarani();
        }
        if (organizatonName == ClientReference.getOrgGuarani()){
            return ClientReference.getGatewayFileConfigGuarani();
        } else if (organizatonName == ClientReference.getOrgTiccuna()){
            return ClientReference.getGatewayFileConfigTiccuna();
        } else if (organizatonName == ClientReference.getOrgXavante()){
            return ClientReference.getGatewayFileConfigXavante();
        } else {
            return ClientReference.getGatewayFileConfigGuarani();
        }
    }
static chooseGatewayFromOrg ( organizatonName ) { if ( organizatonName == null || organizatonName == undefined ) { return ClientReference . getGatewayFileConfigGuarani ( ) ; } if ( organizatonName == ClientReference . getOrgGuarani ( ) ) { return ClientReference . getGatewayFileConfigGuarani ( ) ; } else if ( organizatonName == ClientReference . getOrgTiccuna ( ) ) { return ClientReference . getGatewayFileConfigTiccuna ( ) ; } else if ( organizatonName == ClientReference . getOrgXavante ( ) ) { return ClientReference . getGatewayFileConfigXavante ( ) ; } else { return ClientReference . getGatewayFileConfigGuarani ( ) ; } }
Select from the name of the organization the configuration file of the gateway connecting to the blockchain network.
Select from the name of the organization the configuration file of the gateway connecting to the blockchain network .