Package lv.odylab.evedb.rpc.dto

Examples of lv.odylab.evedb.rpc.dto.InvTypeBasicInfoDto


    public ItemTypeDto getItemTypeDtoByName(String itemTypeName) throws EveDbException, InvalidItemTypeException {
        try {
            if (itemTypeName.length() == 0) {
                throw new InvalidItemTypeException(itemTypeName, ErrorCode.NAME_CANNOT_BE_EMPTY);
            }
            InvTypeBasicInfoDto invTypeBasicInfoDto = client.getTypeBasicInfoByTypeName(itemTypeName);
            return invTypeBasicInfoDto == null ? null : mapper.map(invTypeBasicInfoDto, ItemTypeDto.class);
        } catch (BadRequestException e) {
            logger.error("Caught BadRequestException", e.getMessage());
            throw new InvalidItemTypeException(e.getMessage(), ErrorCode.INVALID_ITEM_TYPE);
        } catch (RuntimeException e) {
View Full Code Here


        ramTypeRequirementDto.setRequiredTypeVolume(BigDecimal.valueOf(ramTypeRequirement.getRequiredTypeVolume()).toPlainString());
        return ramTypeRequirementDto;
    }

    public InvTypeBasicInfoDto map(InvType invType) {
        InvTypeBasicInfoDto invTypeBasicInfoDto = new InvTypeBasicInfoDto();
        invTypeBasicInfoDto.setItemTypeID(invType.getTypeID());
        invTypeBasicInfoDto.setItemCategoryID(invType.getCategoryID());
        invTypeBasicInfoDto.setName(invType.getTypeName());
        invTypeBasicInfoDto.setIcon(invType.getTypeIcon());
        invTypeBasicInfoDto.setMetaLevel(invType.getMetaLevel());
        return invTypeBasicInfoDto;
    }
View Full Code Here

TOP

Related Classes of lv.odylab.evedb.rpc.dto.InvTypeBasicInfoDto

Copyright © 2018 www.massapicom. 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.