2022-10-06 16:04:03 +03:00
|
|
|
|
|
|
|
from datetime import datetime
|
|
|
|
from typing import OrderedDict, Union
|
|
|
|
from pyrmv.classes.Stop import Stop
|
2022-10-05 15:19:50 +03:00
|
|
|
from pyrmv.errors.not_ready import NotReadyYetError
|
2022-10-06 16:04:03 +03:00
|
|
|
from pyrmv.enums.search_mode import SearchMode
|
|
|
|
from pyrmv.enums.aff_journey_mode import AffectedJourneyMode
|
|
|
|
from pyrmv.enums.aff_journey_stop_mode import AffectedJourneyStopMode
|
|
|
|
|
|
|
|
try:
|
|
|
|
from typing import Literal
|
|
|
|
except ImportError:
|
|
|
|
from typing_extensions import Literal
|
|
|
|
|
|
|
|
def him_search(
|
2022-10-05 15:19:50 +03:00
|
|
|
|
2022-10-06 16:04:03 +03:00
|
|
|
access_id: str,
|
|
|
|
date_begin: Union[str, datetime] = None,
|
|
|
|
date_end: Union[str, datetime] = None,
|
|
|
|
time_begin: Union[str, datetime] = None,
|
|
|
|
time_end: Union[str, datetime] = None,
|
|
|
|
weekdays: Union[str, OrderedDict[str, bool]] = None,
|
|
|
|
ids: list = None,
|
|
|
|
operators: list = None,
|
|
|
|
categories: list = None,
|
|
|
|
channels: list = None,
|
|
|
|
companies: list = None,
|
|
|
|
lines: list = None,
|
|
|
|
lineids: list = None,
|
|
|
|
stations: list = None,
|
|
|
|
station_from: Union[str, Stop] = None,
|
|
|
|
station_to: Union[str, Stop] = None,
|
|
|
|
bothways: bool = None,
|
|
|
|
trainnames: list = None,
|
|
|
|
search_mode: Literal[SearchMode.MATCH, SearchMode.NOMATCH, SearchMode.TFMATCH] = None,
|
|
|
|
affected_journey_mode: Literal[AffectedJourneyMode.ALL, AffectedJourneyMode.OFF] = None,
|
|
|
|
affected_journey_stop_mode: Literal[AffectedJourneyStopMode.ALL, AffectedJourneyStopMode.IMP, AffectedJourneyStopMode.OFF] = None,
|
|
|
|
priority_min: int = None,
|
|
|
|
priority_max: int = None
|
|
|
|
) -> None: #List[Message]:
|
2022-10-05 15:19:50 +03:00
|
|
|
|
|
|
|
raise NotReadyYetError()
|