help-esb-0.1.2: A Haskell client for the Help.com team's ESB.

Safe HaskellNone

JSON.Login.Response

Documentation

data Meta Source

Constructors

Meta 

Fields

h_type :: Text
 
h_id :: [Char]
 
h_source :: Text
 
h_replyTo :: Text
 
h_result :: Text
 

Instances

Show Meta 
Generic Meta 
ToJSON Meta 
FromJSON Meta 

data Data Source

Constructors

Data 

Fields

h_heartbeatInterval :: Int
 
h_channelId :: Text
 

Instances

Show Data 
Generic Data 
ToJSON Data 
FromJSON Data 

data Message Source

Constructors

Message 

Fields

h_meta :: Meta
 
h_data :: Data
 

Instances

Show Message 
Generic Message 
ToJSON Message 
FromJSON Message 
EsbRecieve Message

The EsbRecieve instance for a Login response.

encode :: ToJSON a => a -> ByteString

decode :: FromJSON a => ByteString -> Maybe a

eitherDecode :: FromJSON a => ByteString -> Either String a