twilio-0.2.0.1: Twilio REST API library for Haskell

Copyright(C) 2017- Mark Andrus Roberts
LicenseBSD-style (see the file LICENSE)
MaintainerMark Andrus Roberts <markandrusroberts@gmail.com>
Stabilityprovisional
Safe HaskellNone
LanguageHaskell98

Twilio.Types.List

Description

 

Synopsis

Documentation

class FromJSON b => List a b | a -> b where Source #

Minimal complete definition

getListWrapper, getList, getPlural

Methods

getListWrapper :: Wrapper (Maybe PagingInformation -> [b] -> a) Source #

Get the wrap-ed constructor of the List.

getList :: a -> [b] Source #

The items in the List.

getPlural :: Const Text (a, b) Source #

The plural name for the items in the List.

parseJSONToList :: Value -> Parser a Source #

Parse a JSON Value to an instance of the List.

Instances

List Transcriptions Transcription Source # 
List ShortCodes ShortCode Source # 
List Recordings Recording Source # 
List Members Member Source # 
List Queues Queue Source # 
List OutgoingCallerIDs OutgoingCallerID Source # 
List MediaList Media Source # 
List Messages Message Source # 
List Participants Participant Source # 
List Conferences Conference Source # 
List IncomingPhoneNumbers IncomingPhoneNumber Source # 
List ConnectApps ConnectApp Source # 
List Calls Call Source # 
List AvailablePhoneNumbers AvailablePhoneNumber Source # 
List AuthorizedConnectApps AuthorizedConnectApp Source # 
List Applications Application Source # 
List Addresses Address Source # 
List Accounts Account Source # 
List APIKeys APIKey Source # 
List UsageRecords UsageRecord Source # 
List UsageTriggers UsageTrigger Source # 

data PagingInformation Source #

Constructors

PagingInformation 

Fields

Instances

Eq PagingInformation Source # 
Data PagingInformation Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PagingInformation -> c PagingInformation #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PagingInformation #

toConstr :: PagingInformation -> Constr #

dataTypeOf :: PagingInformation -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c PagingInformation) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PagingInformation) #

gmapT :: (forall b. Data b => b -> b) -> PagingInformation -> PagingInformation #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PagingInformation -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PagingInformation -> r #

gmapQ :: (forall d. Data d => d -> u) -> PagingInformation -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PagingInformation -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PagingInformation -> m PagingInformation #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PagingInformation -> m PagingInformation #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PagingInformation -> m PagingInformation #

Ord PagingInformation Source # 
Show PagingInformation Source # 
Generic PagingInformation Source # 
FromJSON PagingInformation Source # 
type Rep PagingInformation Source # 
type Rep PagingInformation = D1 * (MetaData "PagingInformation" "Twilio.Types.List" "twilio-0.2.0.1-Cwy6vZAHYb886DlZ9eauoR" False) (C1 * (MetaCons "PagingInformation" PrefixI True) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "pageNumber") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Integer)) (S1 * (MetaSel (Just Symbol "numberOfPages") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Integer)))) ((:*:) * (S1 * (MetaSel (Just Symbol "pageSize") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Integer)) ((:*:) * (S1 * (MetaSel (Just Symbol "total") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Integer))) (S1 * (MetaSel (Just Symbol "start") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Integer))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "end") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Integer)) ((:*:) * (S1 * (MetaSel (Just Symbol "pageURI") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe URI))) (S1 * (MetaSel (Just Symbol "firstPageURI") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe URI))))) ((:*:) * (S1 * (MetaSel (Just Symbol "nextPageURI") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe URI))) ((:*:) * (S1 * (MetaSel (Just Symbol "previousPageURI") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe URI))) (S1 * (MetaSel (Just Symbol "lastPageURI") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe URI))))))))

wrap :: a -> Wrapper a Source #

wraps a value so as not to break encapsulation.