Projekt

Obecné

Profil

Akce

Server-client communication » Historie » Revize 1

Revize 1/4 | Další »
Alex Konig, 2021-04-30 10:06


Server-client communication

Sending xml format files

Request
- temperature - double (in °C)
- wind - double (in m/s)
- rain probability - double in range <0, 1>
- weather conditions - an enum

date
- start date:
- day (int)
- month (int)
- year (int)
- start hour (int)
- use end date (bool)
- end date (optional)
- day (int)
- month (int)
- year (int)
- end hour (int)

Response
- hoursPerSegment (int)
- pole objektů - datum, čas (jako nahoře)
- pole rušností uspořádaný podle enumu - hodnota 0-100 (+ -1)
- paleta pro rušnosti -> budou přicházet jako procenta 0-100
- -1 pro neznámou hodnotu (nevím, neumím odvodit)

if server unresponsive/unavailible -> try again after a while
display warning for user

Aktualizováno uživatelem Alex Konig před téměř 4 roky(ů) · 1 revizí