Examples of CorporationSheetDto


Examples of lv.odylab.evemanage.integration.eveapi.dto.CorporationSheetDto

        characterSheetDto.setCorporationName("corporationName");
        List<String> corporationTitles = new ArrayList<String>();
        corporationTitles.add("corporationTitle1");
        corporationTitles.add("corporationTitle2");
        characterSheetDto.setCorporationTitles(corporationTitles);
        CorporationSheetDto corporationSheetDto = new CorporationSheetDto();
        corporationSheetDto.setTicker("ticker");
        corporationSheetDto.setAllianceID(5L);
        corporationSheetDto.setAllianceName("allianceName");

        when(securityManager.decrypt("encryptedApiKey".getBytes())).thenReturn("apiKeyString".getBytes());
        when(apiKeyDao.get(apiKeyKey)).thenReturn(apiKey);
        when(eveApiGateway.getCharacterSheet("apiKeyString", 2L, 1L)).thenReturn(characterSheetDto);
        when(eveApiGateway.getCorporationSheet(4L)).thenReturn(corporationSheetDto);
View Full Code Here

Examples of lv.odylab.evemanage.integration.eveapi.dto.CorporationSheetDto

            logger.error("Api key was not found in datastore despite character having reference to it, this is inconsistency, character: {} ({})", character.getName(), character.getCharacterID());
            throw new EveApiException("Character has invalid api key");
        }

        CharacterSheetDto characterSheetDto = eveApiGateway.getCharacterSheet(decodeApiKeyString(apiKey.getEncodedApiKeyString()), apiKey.getApiKeyUserID(), character.getCharacterID());
        CorporationSheetDto corporationSheetDto = eveApiGateway.getCorporationSheet(characterSheetDto.getCorporationID());
        character.setName(characterSheetDto.getName());
        character.setCorporationID(characterSheetDto.getCorporationID());
        character.setCorporationName(characterSheetDto.getCorporationName());
        character.setCorporationTitles(characterSheetDto.getCorporationTitles());
        character.setCorporationTicker(corporationSheetDto.getTicker());
        character.setAllianceID(corporationSheetDto.getAllianceID());
        character.setAllianceName(corporationSheetDto.getAllianceName());
        character.setUpdatedDate(new Date());
    }
View Full Code Here

Examples of lv.odylab.evemanage.integration.eveapi.dto.CorporationSheetDto

        return accountBalanceDto;
    }

    @Override
    public CorporationSheetDto map(ApiCorporationSheetResult apiCorporationSheetResult, Class<CorporationSheetDto> corporationSheetDtoClass) {
        CorporationSheetDto corporationSheetDto = new CorporationSheetDto();
        corporationSheetDto.setTicker(apiCorporationSheetResult.getTicker());
        corporationSheetDto.setAllianceID(apiCorporationSheetResult.getAllianceID());
        corporationSheetDto.setAllianceName(apiCorporationSheetResult.getAllianceName());
        return corporationSheetDto;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.