struct Srcom::Notification
- Srcom::Notification
- Struct
- Value
- Object
Overview
Has shorthand methods to getting the resources that the Link
s in #links
point to.
Included Modules
- JSON::Serializable
Defined in:
srcr/mappings/notification/notification.crConstructors
Instance Method Summary
- #created : Time
- #created=(created : Time)
-
#game : Game | Nil
Returns the
Game
thisNotification
links to, if it links aGame
. - #id : String
- #id=(id : String)
- #item : Notification::Item
- #item=(item : Notification::Item)
- #links : Array(Link) | Nil
- #links=(links : Array(Link) | Nil)
-
#read?
Returns whether this
Notification
has already been read. -
#run : Run | Nil
Returns the
Run
thisNotification
links to, if it links aRun
. - #status : String
- #status=(status : String)
- #text : String
- #text=(text : String)
Constructor Detail
Instance Method Detail
Returns the Game
this Notification
links to, if it links a Game
.