def images(self) -> typing.List[tuple]: res = dict() res[Utils.enumToString(NamedEntityKind.MONUMENT)] = EpNerCoreInternalResourceHelper.getBytes("monument.png") res[Utils.enumToString(NamedEntityKind.PLANET)] = EpNerCoreInternalResourceHelper.getBytes("planet.png") res[Utils.enumToString(NamedEntityKind.LOCATION)] = EpNerCoreInternalResourceHelper.getBytes("location.png") res[Utils.enumToString(NamedEntityKind.BUILDING)] = EpNerCoreInternalResourceHelper.getBytes("building.png") return res
def images(self) -> typing.List[tuple]: res = dict() res[MetaBusinessFact. IMAGE_ID] = EpNerCoreInternalResourceHelper.getBytes( "businessfact.png") res[FundsMeta.IMAGE_ID] = EpNerCoreInternalResourceHelper.getBytes( "creditcards.png") return res
def images(self) -> typing.List[tuple]: res = dict() res[MetaBookLink.IMAGE_ID] = EpNerCoreInternalResourceHelper.getBytes( "booklink.png") res[MetaBookLinkRef. IMAGE_ID] = EpNerCoreInternalResourceHelper.getBytes( "booklinkref.png") res[MetaBookLinkRef. IMAGE_ID_INLINE] = EpNerCoreInternalResourceHelper.getBytes( "booklinkrefinline.png") res[MetaBookLinkRef. IMAGE_ID_LAST] = EpNerCoreInternalResourceHelper.getBytes( "booklinkreflast.png") return res
def images(self) -> typing.List[tuple]: res = dict() res[MetaInstrument. DOC_IMAGE_ID] = EpNerCoreInternalResourceHelper.getBytes( "decree.png") res[MetaInstrumentBlock. PART_IMAGE_ID] = EpNerCoreInternalResourceHelper.getBytes( "part.png") res[InstrumentParticipantMeta. IMAGE_ID] = EpNerCoreInternalResourceHelper.getBytes( "participant.png") res[InstrumentArtefactMeta. IMAGE_ID] = EpNerCoreInternalResourceHelper.getBytes( "artefact.png") return res
def getImageById(image_id: str) -> 'ImageWrapper': """ Получить иконку по идентификатору иконки Args: image_id(str): """ if (image_id is not None): wrapres2682 = RefOutArgWrapper(None) inoutres2683 = Utils.tryGetValue(ProcessorService.__m_images, image_id, wrapres2682) res = wrapres2682.value if (inoutres2683): return res if (ProcessorService.__m_unknown_image is None): ProcessorService.__m_unknown_image = ImageWrapper._new2681( "unknown", EpNerCoreInternalResourceHelper.getBytes("unknown.png")) return ProcessorService.__m_unknown_image
def images(self) -> typing.List[tuple]: res = dict() res[Utils.enumToString( TransportKind.FLY)] = EpNerCoreInternalResourceHelper.getBytes( "fly.png") res[Utils.enumToString( TransportKind.SHIP)] = EpNerCoreInternalResourceHelper.getBytes( "ship.png") res[Utils.enumToString( TransportKind.SPACE)] = EpNerCoreInternalResourceHelper.getBytes( "space.png") res[Utils.enumToString( TransportKind.TRAIN)] = EpNerCoreInternalResourceHelper.getBytes( "train.png") res[Utils.enumToString( TransportKind.AUTO)] = EpNerCoreInternalResourceHelper.getBytes( "auto.png") res[MetaTransport.IMAGE_ID] = EpNerCoreInternalResourceHelper.getBytes( "transport.png") return res
def images(self) -> typing.List[tuple]: res = dict() res[MetaWeapon.IMAGE_ID] = EpNerCoreInternalResourceHelper.getBytes( "weapon.jpg") return res