twilio-0.3.0.0: 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.SID

Description

This module defines all of the SIDs (string identifiers) for Twilio resources in a single place.

Synopsis

Documentation

data SID a b #

A SID (string identifier) is a 34-character string. The first two characters are capital letters A through Z; the remaining 32 characters represent a 128-bit natural number in hexadecimal.

Constructors

SID !Word64 !Word64 

Instances

Bounded (SID a b) # 

Methods

minBound :: SID a b #

maxBound :: SID a b #

Eq (SID a b) # 

Methods

(==) :: SID a b -> SID a b -> Bool #

(/=) :: SID a b -> SID a b -> Bool #

(Typeable Alpha a, Typeable Alpha b) => Data (SID a b) # 

Methods

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

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

toConstr :: SID a b -> Constr #

dataTypeOf :: SID a b -> DataType #

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

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

gmapT :: (forall c. Data c => c -> c) -> SID a b -> SID a b #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SID a b -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SID a b -> r #

gmapQ :: (forall d. Data d => d -> u) -> SID a b -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SID a b -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SID a b -> m (SID a b) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SID a b -> m (SID a b) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SID a b -> m (SID a b) #

Ord (SID a b) # 

Methods

compare :: SID a b -> SID a b -> Ordering #

(<) :: SID a b -> SID a b -> Bool #

(<=) :: SID a b -> SID a b -> Bool #

(>) :: SID a b -> SID a b -> Bool #

(>=) :: SID a b -> SID a b -> Bool #

max :: SID a b -> SID a b -> SID a b #

min :: SID a b -> SID a b -> SID a b #

(IsAlpha a, IsAlpha b) => Read (SID a b) # 

Methods

readsPrec :: Int -> ReadS (SID a b) #

readList :: ReadS [SID a b] #

readPrec :: ReadPrec (SID a b) #

readListPrec :: ReadPrec [SID a b] #

(IsAlpha a, IsAlpha b) => Show (SID a b) # 

Methods

showsPrec :: Int -> SID a b -> ShowS #

show :: SID a b -> String #

showList :: [SID a b] -> ShowS #

Ix (SID a b) # 

Methods

range :: (SID a b, SID a b) -> [SID a b] #

index :: (SID a b, SID a b) -> SID a b -> Int #

unsafeIndex :: (SID a b, SID a b) -> SID a b -> Int

inRange :: (SID a b, SID a b) -> SID a b -> Bool #

rangeSize :: (SID a b, SID a b) -> Int #

unsafeRangeSize :: (SID a b, SID a b) -> Int

(IsAlpha a, IsAlpha b) => IsString (SID a b) # 

Methods

fromString :: String -> SID a b #

Generic (SID a b) # 

Associated Types

type Rep (SID a b) :: * -> * #

Methods

from :: SID a b -> Rep (SID a b) x #

to :: Rep (SID a b) x -> SID a b #

Binary (SID a b) # 

Methods

put :: SID a b -> Put #

get :: Get (SID a b) #

putList :: [SID a b] -> Put #

NFData (SID a b) # 

Methods

rnf :: SID a b -> () #

(IsAlpha a, IsAlpha b) => ToJSON (SID a b) # 

Methods

toJSON :: SID a b -> Value

toEncoding :: SID a b -> Encoding

toJSONList :: [SID a b] -> Value

toEncodingList :: [SID a b] -> Encoding

(IsAlpha a, IsAlpha b) => FromJSON (SID a b) # 

Methods

parseJSON :: Value -> Parser (SID a b)

parseJSONList :: Value -> Parser [SID a b]

Hashable (SID a b) # 

Methods

hashWithSalt :: Int -> SID a b -> Int

hash :: SID a b -> Int

(IsAlpha a, IsAlpha b) => IsSID (SID a b) # 

Methods

getSID :: SID a b -> Text #

parseSID :: Text -> Maybe (SID a b) #

type Rep (SID a b) # 
type Rep (SID a b) = D1 (MetaData "SID" "Twilio.Types.SID" "twilio-0.3.0.0-5MJriwViwXZ5B3Ok1irAlv" False) (C1 (MetaCons "SID" PrefixI False) ((:*:) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Word64)) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Word64))))

class IsSID sid where #

Minimal complete definition

getSID, parseSID

Methods

getSID :: sid -> Text #

parseSID :: Text -> Maybe sid #

Instances

IsSID AccountSID # 

Methods

getSID :: AccountSID -> Text #

parseSID :: Text -> Maybe AccountSID #

IsSID AddressSID # 

Methods

getSID :: AddressSID -> Text #

parseSID :: Text -> Maybe AddressSID #

IsSID APIKeySID # 

Methods

getSID :: APIKeySID -> Text #

parseSID :: Text -> Maybe APIKeySID #

IsSID ApplicationSID # 

Methods

getSID :: ApplicationSID -> Text #

parseSID :: Text -> Maybe ApplicationSID #

IsSID CallSID # 

Methods

getSID :: CallSID -> Text #

parseSID :: Text -> Maybe CallSID #

IsSID ConferenceSID # 

Methods

getSID :: ConferenceSID -> Text #

parseSID :: Text -> Maybe ConferenceSID #

IsSID ConnectAppSID # 

Methods

getSID :: ConnectAppSID -> Text #

parseSID :: Text -> Maybe ConnectAppSID #

IsSID CredentialSID # 

Methods

getSID :: CredentialSID -> Text #

parseSID :: Text -> Maybe CredentialSID #

IsSID CredentialListSID # 
IsSID DomainSID # 

Methods

getSID :: DomainSID -> Text #

parseSID :: Text -> Maybe DomainSID #

IsSID FeedbackSummarySID # 
IsSID IPAccessControlListSID # 
IsSID IPAddressSID # 

Methods

getSID :: IPAddressSID -> Text #

parseSID :: Text -> Maybe IPAddressSID #

IsSID MediaSID # 

Methods

getSID :: MediaSID -> Text #

parseSID :: Text -> Maybe MediaSID #

IsSID MMSMessageSID # 

Methods

getSID :: MMSMessageSID -> Text #

parseSID :: Text -> Maybe MMSMessageSID #

IsSID MessagingServiceSID # 
IsSID PhoneNumberSID # 

Methods

getSID :: PhoneNumberSID -> Text #

parseSID :: Text -> Maybe PhoneNumberSID #

IsSID QueueSID # 

Methods

getSID :: QueueSID -> Text #

parseSID :: Text -> Maybe QueueSID #

IsSID RecordingSID # 

Methods

getSID :: RecordingSID -> Text #

parseSID :: Text -> Maybe RecordingSID #

IsSID ShortCodeSID # 

Methods

getSID :: ShortCodeSID -> Text #

parseSID :: Text -> Maybe ShortCodeSID #

IsSID SMSMessageSID # 

Methods

getSID :: SMSMessageSID -> Text #

parseSID :: Text -> Maybe SMSMessageSID #

IsSID TranscriptionSID # 
IsSID MessageSID # 

Methods

getSID :: MessageSID -> Text #

parseSID :: Text -> Maybe MessageSID #

IsSID UsageTriggerSID # 

Methods

getSID :: UsageTriggerSID -> Text #

parseSID :: Text -> Maybe UsageTriggerSID #

(IsAlpha a, IsAlpha b) => IsSID (SID a b) # 

Methods

getSID :: SID a b -> Text #

parseSID :: Text -> Maybe (SID a b) #

readSID :: forall a b. (IsAlpha a, IsAlpha b) => ReadPrec (SID a b) #

parseSIDFromText :: forall m a b. (MonadPlus m, IsAlpha a, IsAlpha b) => Text -> m (SID a b) #

parseSIDFromJSON :: (MonadPlus m, IsAlpha a, IsAlpha b) => Value -> m (SID a b) #

sidToJSON :: (IsAlpha a, IsAlpha b) => SID a b -> Value #

sidToText :: (IsAlpha a, IsAlpha b) => SID a b -> Text #