-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tuunausta oikeustarkistuksiin, korjattu vastaanottajien sivutusta ja …
…huomioidaan vastaanottajien puuttuminen
- Loading branch information
Showing
8 changed files
with
172 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
...nti/src/main/scala/fi/oph/viestinvalitys/raportointi/model/LahetysResourceResponses.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
package fi.oph.viestinvalitys.raportointi.model | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude | ||
|
||
import java.util | ||
import java.util.Optional | ||
import scala.beans.BeanProperty | ||
|
||
|
||
class PalautaLahetyksetResponse() {} | ||
|
||
@JsonInclude(JsonInclude.Include.NON_ABSENT) | ||
case class PalautaLahetyksetSuccessResponse( | ||
@BeanProperty lahetykset: java.util.List[PalautaLahetysSuccessResponse], | ||
@BeanProperty seuraavatAlkaen: Optional[String] | ||
) extends PalautaLahetyksetResponse | ||
|
||
case class PalautaLahetyksetFailureResponse( | ||
@BeanProperty virhe: util.List[String], | ||
) extends PalautaLahetyksetResponse | ||
|
||
|
||
class PalautaLahetysResponse() {} | ||
|
||
@JsonInclude(JsonInclude.Include.NON_ABSENT) | ||
case class PalautaLahetysSuccessResponse( | ||
@BeanProperty lahetysTunniste: String, | ||
@BeanProperty otsikko: String, | ||
@BeanProperty omistaja: String, | ||
@BeanProperty lahettavaPalvelu: String, | ||
@BeanProperty lahettavanVirkailijanOID: String, | ||
@BeanProperty lahettajanNimi: String, | ||
@BeanProperty lahettajanSahkoposti: String, | ||
@BeanProperty replyTo: String, | ||
@BeanProperty luotu: String, | ||
@BeanProperty tilat: java.util.List[VastaanottajatTilassa] | ||
) extends PalautaLahetysResponse | ||
|
||
case class PalautaLahetysFailureResponse( | ||
@BeanProperty virhe: String, | ||
) extends PalautaLahetysResponse | ||
|
||
case class VastaanottajatTilassa( | ||
@BeanProperty vastaanottotila: String, | ||
@BeanProperty vastaanottajaLkm: Int | ||
) | ||
|
||
class VastaanottajatResponse() {} | ||
|
||
@JsonInclude(JsonInclude.Include.NON_ABSENT) | ||
case class VastaanottajaResponse( | ||
@BeanProperty tunniste: String, | ||
@BeanProperty nimi: Optional[String], | ||
@BeanProperty sahkoposti: String, | ||
@BeanProperty viestiTunniste: String, | ||
@BeanProperty tila: String | ||
) | ||
|
||
@JsonInclude(JsonInclude.Include.NON_ABSENT) | ||
case class VastaanottajatSuccessResponse( | ||
@BeanProperty vastaanottajat: java.util.List[VastaanottajaResponse], | ||
@BeanProperty seuraavatAlkaen: Optional[String], | ||
@BeanProperty viimeisenTila: Optional[String], | ||
) extends VastaanottajatResponse | ||
|
||
case class VastaanottajatFailureResponse( | ||
@BeanProperty virheet: util.List[String], | ||
) extends VastaanottajatResponse | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
viestinvalitys-raportointi/src/app/components/HomeIconLink.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
'use client' | ||
import { IconButton } from "@mui/material" | ||
import HomeOutlinedIcon from '@mui/icons-material/HomeOutlined'; | ||
import Link from 'next/link'; | ||
|
||
const HomeIconLink = () => { | ||
return ( | ||
<IconButton aria-label="home" href="/" size="large" component={Link} sx={{ border: "1px solid", borderRadius: "5px", width: 30, height: 30}}> | ||
<HomeOutlinedIcon /> | ||
</IconButton> | ||
) | ||
} | ||
|
||
export default HomeIconLink |
Oops, something went wrong.