pusher-http-haskell-1.5.1.10: Haskell client library for the Pusher HTTP API

Copyright(c) Will Sewell 2016
LicenseMIT
Maintainerme@willsewell.com
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Network.Pusher.Protocol

Description

Types representing the JSON format of Pusher messages.

There are also types for query string parameters.

Synopsis

Documentation

newtype ChannelInfo Source #

The possible returned channel attributes when multiple when multiple channels are queried.

Constructors

ChannelInfo 

data ChannelInfoAttributes Source #

Enumeration of the attributes that can be queried about a single channel.

Instances
Eq ChannelInfoAttributes Source # 
Instance details

Defined in Network.Pusher.Protocol

Generic ChannelInfoAttributes Source # 
Instance details

Defined in Network.Pusher.Protocol

Associated Types

type Rep ChannelInfoAttributes :: Type -> Type #

Hashable ChannelInfoAttributes Source # 
Instance details

Defined in Network.Pusher.Protocol

ToURLParam ChannelInfoAttributes Source # 
Instance details

Defined in Network.Pusher.Protocol

type Rep ChannelInfoAttributes Source # 
Instance details

Defined in Network.Pusher.Protocol

type Rep ChannelInfoAttributes = D1 (MetaData "ChannelInfoAttributes" "Network.Pusher.Protocol" "pusher-http-haskell-1.5.1.10-BttP1lyh8yZqTT7neTp15" False) (C1 (MetaCons "ChannelUserCount" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "ChannelSubscriptionCount" PrefixI False) (U1 :: Type -> Type))

newtype ChannelsInfo Source #

A map of channels to their ChannelInfo. The result of querying channel info from multuple channels.

data ChannelsInfoAttributes Source #

Enumeration of the attributes that can be queried about multiple channels.

Constructors

ChannelsUserCount 
Instances
Eq ChannelsInfoAttributes Source # 
Instance details

Defined in Network.Pusher.Protocol

Generic ChannelsInfoAttributes Source # 
Instance details

Defined in Network.Pusher.Protocol

Associated Types

type Rep ChannelsInfoAttributes :: Type -> Type #

Hashable ChannelsInfoAttributes Source # 
Instance details

Defined in Network.Pusher.Protocol

ToURLParam ChannelsInfoAttributes Source # 
Instance details

Defined in Network.Pusher.Protocol

type Rep ChannelsInfoAttributes Source # 
Instance details

Defined in Network.Pusher.Protocol

type Rep ChannelsInfoAttributes = D1 (MetaData "ChannelsInfoAttributes" "Network.Pusher.Protocol" "pusher-http-haskell-1.5.1.10-BttP1lyh8yZqTT7neTp15" False) (C1 (MetaCons "ChannelsUserCount" PrefixI False) (U1 :: Type -> Type))

newtype User Source #

The data about a user returned when querying for users in a presence channel.

Constructors

User 

Fields

Instances
Eq User Source # 
Instance details

Defined in Network.Pusher.Protocol

Methods

(==) :: User -> User -> Bool #

(/=) :: User -> User -> Bool #

Show User Source # 
Instance details

Defined in Network.Pusher.Protocol

Methods

showsPrec :: Int -> User -> ShowS #

show :: User -> String #

showList :: [User] -> ShowS #

FromJSON User Source # 
Instance details

Defined in Network.Pusher.Protocol

newtype Users Source #

A list of users returned by querying for users in a presence channel.

Constructors

Users [User] 
Instances
Eq Users Source # 
Instance details

Defined in Network.Pusher.Protocol

Methods

(==) :: Users -> Users -> Bool #

(/=) :: Users -> Users -> Bool #

Show Users Source # 
Instance details

Defined in Network.Pusher.Protocol

Methods

showsPrec :: Int -> Users -> ShowS #

show :: Users -> String #

showList :: [Users] -> ShowS #

FromJSON Users Source # 
Instance details

Defined in Network.Pusher.Protocol

class ToURLParam a Source #

Types that can be serialised to a querystring parameter value.

Minimal complete definition

toURLParam