Message

zio.http.Flash.Message
sealed trait Message[+A, +B]

A fash message can represent a notice, an alert or both - it's some kind of a specialized zio.prelude.These.

Using a flash message allows one to categorize those into notice or alert and by that wrap both messages with a different ui design.

Attributes

Source
Flash.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Message[A, B]

Members list

Value members

Concrete methods

def fold[C](f: A => C, g: B => C)(h: (C, C) => C): C

Folds a notice with f into C, an alert with g into C and both with h into another C.

Folds a notice with f into C, an alert with g into C and both with h into another C.

Attributes

Source
Flash.scala

Returns true if this Message represents an alert only.

Returns true if this Message represents an alert only.

Attributes

Source
Flash.scala

Returns true if this Message represents both, a notice and and alert.

Returns true if this Message represents both, a notice and and alert.

Attributes

Source
Flash.scala

Returns true if this Message represents a notice only.

Returns true if this Message represents a notice only.

Attributes

Source
Flash.scala