package Ġat . ac . tu w ien . d se . ss 1 8 . group 0 5 . web Ċ Ċ /* Ġk tl int - disable Ġno - wildcard - imports Ġ*/ Ċ import Ġat . ac . tu w ien . d se . ss 1 8 . group 0 5 . dto . Event Information Ċ import Ġat . ac . tu w ien . d se . ss 1 8 . group 0 5 . dto . G ps Location Ċ import Ġat . ac . tu w ien . d se . ss 1 8 . group 0 5 . dto . Manufacturer Notification Ċ import Ġat . ac . tu w ien . d se . ss 1 8 . group 0 5 . service . I Manufacturer Notification Service Ċ import Ġorg . springframework . web . bind . annotation .* Ċ import Ġreactor . core . publisher . Flux Ċ Ċ /** Ċ Ġ* Ġ< h 4 > About Ġthis Ġclass </ h 4 > Ċ Ġ* Ċ Ġ* Ġ< p > Description </ p > Ċ Ġ* Ċ Ġ* Ġ@ author ĠDaniel ĠF ue ves i Ċ Ġ* Ġ@ version Ġ 1 . 0 . 0 Ċ Ġ* Ġ@ since Ġ 1 . 0 . 0 Ċ Ġ*/ Ċ @ Cross Origin Ċ @ RestController Ċ @ RequestMapping ("/ notifications / manufacturer /{ id }") Ċ class ĠMan ufacturer Notification Controller ( private Ġval Ġservice : ĠI Manufacturer Notification Service ) Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġping Notification Ġ= ĠMan ufacturer Notification ( id Ġ= Ġ"", Ġtime Stamp Ġ= Ġ 0 L , Ġaccident Id Ġ= Ġ"", Ġvehicle Identification Number Ġ= Ġ"", Ġmanufacturer Id Ġ= Ġ"", Ġmodel Ġ= Ġ"", Ġlocation Ġ= ĠG ps Location ( 0 . 0 , Ġ 0 . 0 ), Ġevent Info Ġ= ĠEvent Information . NONE ) ĊĊĠĠĠ Ġ@ GetMapping ĊĠĠĠ Ġfun Ġget Notifications (@ PathVariable (" id ") Ġmanufacturer Id : ĠString ): ĠFlux < Manufacturer Notification > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġservice ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. stream Manufacturer Notifications ( manufacturer Id ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. start With ( ping Notification ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ GetMapping ("/ findAll History Notifications ") ĊĠĠĠ Ġfun ĠfindAll Manufacturer Notifications (@ PathVariable (" id ") Ġmanufacturer Id : ĠString ): ĠFlux < Manufacturer Notification > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġservice . findAll History Notifications ( manufacturer Id ) ĊĠĠĠ Ġ} Ċ }