sakuraio-platform-0.1.0.0: Haskell representation of messages exchanged on the sakura.io platform.

Safe HaskellNone
LanguageHaskell2010

Network.SakuraIO.Platform.Message

Description

This module provides Haskell representation of messages exchanged on the sakura.io platform.

https://sakura.io/docs/pages/spec/platform/message.html

Synopsis

Documentation

type ModuleID = String Source #

Module ID starting with 'u'.

type ChannelID = Word8 Source #

7bit channel number.

data OGChannel Source #

Channel payload sent from sakura.io to external services as part of OGChannels.

It supports FromJSON to parse from json using aeson.

type Latitude = Float Source #

Latitude.

type Longitude = Float Source #

Longitude.

type RangeM = Int32 Source #

Range in meters.

data Coordinate Source #

Coordinate payload sent from sakura.io to external services as part of OGLocation.

It supports FromJSON to get json representation using aeson.

data InComingMessage Source #

Messages sent from external services to sakura.io.

It supports ToJSON to get json representation using aeson.

Constructors

ICChannels ModuleID [ICChannel] 

data ICChannel Source #

Channel payload sent from external services to sakura.io as part of ICChannels.

It supports ToJSON to get json representation using aeson.

data ChannelValue Source #

Data exchanged between sakura.io and external services as part of OGChannel and ICChannel.