Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Web.Twitter.Types
Synopsis
- type UserId = Integer
- type Friends = [UserId]
- type URIString = Text
- type UserName = Text
- type StatusId = Integer
- type LanguageCode = String
- data StreamingAPI
- data Status = Status {
- statusContributors :: Maybe [Contributor]
- statusCoordinates :: Maybe Coordinates
- statusCreatedAt :: UTCTime
- statusCurrentUserRetweet :: Maybe StatusId
- statusEntities :: Maybe Entities
- statusExtendedEntities :: Maybe ExtendedEntities
- statusFavoriteCount :: Integer
- statusFavorited :: Maybe Bool
- statusFilterLevel :: Maybe Text
- statusId :: StatusId
- statusInReplyToScreenName :: Maybe Text
- statusInReplyToStatusId :: Maybe StatusId
- statusInReplyToUserId :: Maybe UserId
- statusLang :: Maybe LanguageCode
- statusPlace :: Maybe Place
- statusPossiblySensitive :: Maybe Bool
- statusScopes :: Maybe Object
- statusQuotedStatusId :: Maybe StatusId
- statusQuotedStatus :: Maybe Status
- statusRetweetCount :: Integer
- statusRetweeted :: Maybe Bool
- statusRetweetedStatus :: Maybe Status
- statusSource :: Text
- statusText :: Text
- statusTruncated :: Bool
- statusUser :: User
- statusWithheldCopyright :: Maybe Bool
- statusWithheldInCountries :: Maybe [Text]
- statusWithheldScope :: Maybe Text
- statusDisplayTextRange :: Maybe DisplayTextRange
- data SearchResult body = SearchResult {}
- data SearchStatus = SearchStatus {}
- data SearchMetadata = SearchMetadata {
- searchMetadataMaxId :: StatusId
- searchMetadataSinceId :: StatusId
- searchMetadataRefreshURL :: URIString
- searchMetadataNextResults :: Maybe URIString
- searchMetadataCount :: Int
- searchMetadataCompletedIn :: Maybe Float
- searchMetadataSinceIdStr :: String
- searchMetadataQuery :: String
- searchMetadataMaxIdStr :: String
- data RetweetedStatus = RetweetedStatus {
- rsCreatedAt :: UTCTime
- rsId :: StatusId
- rsText :: Text
- rsSource :: Text
- rsTruncated :: Bool
- rsEntities :: Maybe Entities
- rsUser :: User
- rsRetweetedStatus :: Status
- rsCoordinates :: Maybe Coordinates
- data DirectMessage = DirectMessage {
- dmId :: EventId
- dmCreatedTimestamp :: UTCTime
- dmTargetRecipientId :: UserId
- dmSenderId :: UserId
- dmText :: Text
- dmEntities :: Entities
- data EventTarget
- data Event = Event {}
- data Delete = Delete {}
- data User = User {
- userContributorsEnabled :: Bool
- userCreatedAt :: UTCTime
- userDefaultProfile :: Bool
- userDefaultProfileImage :: Bool
- userDescription :: Maybe Text
- userEmail :: Maybe Text
- userFavoritesCount :: Int
- userFollowRequestSent :: Maybe Bool
- userFollowing :: Maybe Bool
- userFollowersCount :: Int
- userFriendsCount :: Int
- userGeoEnabled :: Bool
- userId :: UserId
- userIsTranslator :: Bool
- userLang :: Maybe LanguageCode
- userListedCount :: Int
- userLocation :: Maybe Text
- userName :: Text
- userNotifications :: Maybe Bool
- userProfileBackgroundColor :: Maybe Text
- userProfileBackgroundImageURL :: Maybe URIString
- userProfileBackgroundImageURLHttps :: Maybe URIString
- userProfileBackgroundTile :: Maybe Bool
- userProfileBannerURL :: Maybe URIString
- userProfileImageURL :: Maybe URIString
- userProfileImageURLHttps :: Maybe URIString
- userProfileLinkColor :: Text
- userProfileSidebarBorderColor :: Text
- userProfileSidebarFillColor :: Text
- userProfileTextColor :: Text
- userProfileUseBackgroundImage :: Bool
- userProtected :: Bool
- userScreenName :: Text
- userShowAllInlineMedia :: Maybe Bool
- userStatusesCount :: Int
- userTimeZone :: Maybe Text
- userURL :: Maybe URIString
- userUtcOffset :: Maybe Int
- userVerified :: Bool
- userWithheldInCountries :: Maybe [Text]
- userWithheldScope :: Maybe Text
- data List = List {
- listId :: Int
- listName :: Text
- listFullName :: Text
- listMemberCount :: Int
- listSubscriberCount :: Int
- listMode :: Text
- listUser :: User
- data Entities = Entities {
- enHashTags :: [Entity HashTagEntity]
- enUserMentions :: [Entity UserEntity]
- enURLs :: [Entity URLEntity]
- enMedia :: [Entity MediaEntity]
- type EntityIndices = [Int]
- data ExtendedEntities = ExtendedEntities {
- exeMedia :: [Entity ExtendedEntity]
- data Variant = Variant {}
- data VideoInfo = VideoInfo {
- vsAspectRatio :: [Int]
- vsDurationMillis :: Maybe Int
- vsVariants :: [Variant]
- data ExtendedEntity = ExtendedEntity {
- exeID :: StatusId
- exeMediaUrl :: URIString
- exeMediaUrlHttps :: URIString
- exeSizes :: HashMap Text MediaSize
- exeType :: Text
- exeVideoInfo :: Maybe VideoInfo
- exeDurationMillis :: Maybe Double
- exeExtAltText :: Maybe String
- exeURL :: URLEntity
- data Entity a = Entity {
- entityBody :: a
- entityIndices :: EntityIndices
- data HashTagEntity = HashTagEntity {
- hashTagText :: Text
- data UserEntity = UserEntity {}
- data URLEntity = URLEntity {}
- data MediaEntity = MediaEntity {}
- data MediaSize = MediaSize {}
- data Coordinates = Coordinates {
- coordinates :: [Double]
- coordinatesType :: Text
- data Place = Place {
- placeAttributes :: HashMap Text Text
- placeBoundingBox :: Maybe BoundingBox
- placeCountry :: Text
- placeCountryCode :: Text
- placeFullName :: Text
- placeId :: Text
- placeName :: Text
- placeType :: Text
- placeURL :: Text
- data BoundingBox = BoundingBox {
- boundingBoxCoordinates :: [[[Double]]]
- boundingBoxType :: Text
- data Contributor = Contributor {}
- data UploadedMedia = UploadedMedia {}
- data ImageSizeType = ImageSizeType {}
- data DisplayTextRange = DisplayTextRange {}
- checkError :: Object -> Parser ()
- twitterTimeFormat :: String
Documentation
type LanguageCode = String Source #
data StreamingAPI Source #
Constructors
SStatus Status | |
SRetweetedStatus RetweetedStatus | |
SEvent Event | |
SDelete Delete | |
SFriends Friends | SScrubGeo ScrubGeo |
SDirectMessage DirectMessage | |
SUnknown Value |
Instances
This type represents a Twitter tweet structure. See https://dev.twitter.com/docs/platform-objects/tweets.
Constructors
Instances
data SearchResult body Source #
Constructors
SearchResult | |
Fields |
Instances
FromJSON body => FromJSON (SearchResult body) Source # | |
Defined in Web.Twitter.Types Methods parseJSON :: Value -> Parser (SearchResult body) Source # parseJSONList :: Value -> Parser [SearchResult body] Source # | |
ToJSON body => ToJSON (SearchResult body) Source # | |
Defined in Web.Twitter.Types Methods toJSON :: SearchResult body -> Value Source # toEncoding :: SearchResult body -> Encoding Source # toJSONList :: [SearchResult body] -> Value Source # toEncodingList :: [SearchResult body] -> Encoding Source # | |
Data body => Data (SearchResult body) Source # | |
Defined in Web.Twitter.Types Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SearchResult body -> c (SearchResult body) Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (SearchResult body) Source # toConstr :: SearchResult body -> Constr Source # dataTypeOf :: SearchResult body -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (SearchResult body)) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (SearchResult body)) Source # gmapT :: (forall b. Data b => b -> b) -> SearchResult body -> SearchResult body Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SearchResult body -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SearchResult body -> r Source # gmapQ :: (forall d. Data d => d -> u) -> SearchResult body -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> SearchResult body -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> SearchResult body -> m (SearchResult body) Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SearchResult body -> m (SearchResult body) Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SearchResult body -> m (SearchResult body) Source # | |
Generic (SearchResult body) Source # | |
Defined in Web.Twitter.Types Methods from :: SearchResult body -> Rep (SearchResult body) x Source # to :: Rep (SearchResult body) x -> SearchResult body Source # | |
Show body => Show (SearchResult body) Source # | |
Defined in Web.Twitter.Types | |
Eq body => Eq (SearchResult body) Source # | |
Defined in Web.Twitter.Types Methods (==) :: SearchResult body -> SearchResult body -> Bool Source # (/=) :: SearchResult body -> SearchResult body -> Bool Source # | |
type Rep (SearchResult body) Source # | |
Defined in Web.Twitter.Types type Rep (SearchResult body) = D1 ('MetaData "SearchResult" "Web.Twitter.Types" "twitter-types-0.11.0-5FLUjpL6PtoGQ45eII0tJa" 'False) (C1 ('MetaCons "SearchResult" 'PrefixI 'True) (S1 ('MetaSel ('Just "searchResultStatuses") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 body) :*: S1 ('MetaSel ('Just "searchResultSearchMetadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SearchMetadata))) |
data SearchStatus Source #
Constructors
SearchStatus | |
Instances
data SearchMetadata Source #
Constructors
Instances
data RetweetedStatus Source #
Constructors
RetweetedStatus | |
Fields
|
Instances
data DirectMessage Source #
Constructors
DirectMessage | |
Fields
|
Instances
data EventTarget Source #
Instances
Constructors
Event | |
Fields
|
Instances
FromJSON Event Source # | |
ToJSON Event Source # | |
Data Event Source # | |
Defined in Web.Twitter.Types Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Event -> c Event Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Event Source # toConstr :: Event -> Constr Source # dataTypeOf :: Event -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Event) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Event) Source # gmapT :: (forall b. Data b => b -> b) -> Event -> Event Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Event -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Event -> r Source # gmapQ :: (forall d. Data d => d -> u) -> Event -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> Event -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Event -> m Event Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Event -> m Event Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Event -> m Event Source # | |
Generic Event Source # | |
Show Event Source # | |
Eq Event Source # | |
type Rep Event Source # | |
Defined in Web.Twitter.Types type Rep Event = D1 ('MetaData "Event" "Web.Twitter.Types" "twitter-types-0.11.0-5FLUjpL6PtoGQ45eII0tJa" 'False) (C1 ('MetaCons "Event" 'PrefixI 'True) ((S1 ('MetaSel ('Just "evCreatedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime) :*: S1 ('MetaSel ('Just "evTargetObject") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe EventTarget))) :*: (S1 ('MetaSel ('Just "evEvent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "evTarget") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EventTarget) :*: S1 ('MetaSel ('Just "evSource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EventTarget))))) |
Instances
FromJSON Delete Source # | |
ToJSON Delete Source # | |
Data Delete Source # | |
Defined in Web.Twitter.Types Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Delete -> c Delete Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Delete Source # toConstr :: Delete -> Constr Source # dataTypeOf :: Delete -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Delete) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Delete) Source # gmapT :: (forall b. Data b => b -> b) -> Delete -> Delete Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Delete -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Delete -> r Source # gmapQ :: (forall d. Data d => d -> u) -> Delete -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> Delete -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Delete -> m Delete Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Delete -> m Delete Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Delete -> m Delete Source # | |
Generic Delete Source # | |
Show Delete Source # | |
Eq Delete Source # | |
type Rep Delete Source # | |
Defined in Web.Twitter.Types type Rep Delete = D1 ('MetaData "Delete" "Web.Twitter.Types" "twitter-types-0.11.0-5FLUjpL6PtoGQ45eII0tJa" 'False) (C1 ('MetaCons "Delete" 'PrefixI 'True) (S1 ('MetaSel ('Just "delId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 StatusId) :*: S1 ('MetaSel ('Just "delUserId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UserId))) |
This type represents the Twitter user. See https://dev.twitter.com/docs/platform-objects/users.
Constructors
Instances
Constructors
List | |
Fields
|
Instances
FromJSON List Source # | |
ToJSON List Source # | |
Data List Source # | |
Defined in Web.Twitter.Types Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> List -> c List Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c List Source # toConstr :: List -> Constr Source # dataTypeOf :: List -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c List) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c List) Source # gmapT :: (forall b. Data b => b -> b) -> List -> List Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> List -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> List -> r Source # gmapQ :: (forall d. Data d => d -> u) -> List -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> List -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> List -> m List Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> List -> m List Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> List -> m List Source # | |
Generic List Source # | |
Show List Source # | |
Eq List Source # | |
type Rep List Source # | |
Defined in Web.Twitter.Types type Rep List = D1 ('MetaData "List" "Web.Twitter.Types" "twitter-types-0.11.0-5FLUjpL6PtoGQ45eII0tJa" 'False) (C1 ('MetaCons "List" 'PrefixI 'True) ((S1 ('MetaSel ('Just "listId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: (S1 ('MetaSel ('Just "listName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "listFullName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) :*: ((S1 ('MetaSel ('Just "listMemberCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "listSubscriberCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)) :*: (S1 ('MetaSel ('Just "listMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "listUser") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 User))))) |
Entity handling. See https://dev.twitter.com/docs/platform-objects/entities.
Constructors
Entities | |
Fields
|
Instances
type EntityIndices = [Int] Source #
The character positions the Entity was extracted from
This is experimental implementation. This may be replaced by more definite types.
data ExtendedEntities Source #
Constructors
ExtendedEntities | |
Fields
|
Instances
Instances
FromJSON Variant Source # | |
ToJSON Variant Source # | |
Data Variant Source # | |
Defined in Web.Twitter.Types Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Variant -> c Variant Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Variant Source # toConstr :: Variant -> Constr Source # dataTypeOf :: Variant -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Variant) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Variant) Source # gmapT :: (forall b. Data b => b -> b) -> Variant -> Variant Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Variant -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Variant -> r Source # gmapQ :: (forall d. Data d => d -> u) -> Variant -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> Variant -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Variant -> m Variant Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Variant -> m Variant Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Variant -> m Variant Source # | |
Generic Variant Source # | |
Show Variant Source # | |
Eq Variant Source # | |
type Rep Variant Source # | |
Defined in Web.Twitter.Types type Rep Variant = D1 ('MetaData "Variant" "Web.Twitter.Types" "twitter-types-0.11.0-5FLUjpL6PtoGQ45eII0tJa" 'False) (C1 ('MetaCons "Variant" 'PrefixI 'True) (S1 ('MetaSel ('Just "vBitrate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "vContentType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "vUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 URIString)))) |
Constructors
VideoInfo | |
Fields
|
Instances
FromJSON VideoInfo Source # | |
ToJSON VideoInfo Source # | |
Data VideoInfo Source # | |
Defined in Web.Twitter.Types Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> VideoInfo -> c VideoInfo Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c VideoInfo Source # toConstr :: VideoInfo -> Constr Source # dataTypeOf :: VideoInfo -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c VideoInfo) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c VideoInfo) Source # gmapT :: (forall b. Data b => b -> b) -> VideoInfo -> VideoInfo Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> VideoInfo -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> VideoInfo -> r Source # gmapQ :: (forall d. Data d => d -> u) -> VideoInfo -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> VideoInfo -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> VideoInfo -> m VideoInfo Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> VideoInfo -> m VideoInfo Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> VideoInfo -> m VideoInfo Source # | |
Generic VideoInfo Source # | |
Show VideoInfo Source # | |
Eq VideoInfo Source # | |
type Rep VideoInfo Source # | |
Defined in Web.Twitter.Types type Rep VideoInfo = D1 ('MetaData "VideoInfo" "Web.Twitter.Types" "twitter-types-0.11.0-5FLUjpL6PtoGQ45eII0tJa" 'False) (C1 ('MetaCons "VideoInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "vsAspectRatio") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Int]) :*: (S1 ('MetaSel ('Just "vsDurationMillis") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "vsVariants") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Variant])))) |
data ExtendedEntity Source #
Constructors
ExtendedEntity | |
Fields
|
Instances
Constructors
Entity | |
Fields
|
Instances
Generic1 Entity Source # | |
FromJSON a => FromJSON (Entity a) Source # | |
ToJSON a => ToJSON (Entity a) Source # | |
Data a => Data (Entity a) Source # | |
Defined in Web.Twitter.Types Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Entity a -> c (Entity a) Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (Entity a) Source # toConstr :: Entity a -> Constr Source # dataTypeOf :: Entity a -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (Entity a)) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (Entity a)) Source # gmapT :: (forall b. Data b => b -> b) -> Entity a -> Entity a Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Entity a -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Entity a -> r Source # gmapQ :: (forall d. Data d => d -> u) -> Entity a -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> Entity a -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Entity a -> m (Entity a) Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Entity a -> m (Entity a) Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Entity a -> m (Entity a) Source # | |
Generic (Entity a) Source # | |
Show a => Show (Entity a) Source # | |
Eq a => Eq (Entity a) Source # | |
type Rep1 Entity Source # | |
Defined in Web.Twitter.Types type Rep1 Entity = D1 ('MetaData "Entity" "Web.Twitter.Types" "twitter-types-0.11.0-5FLUjpL6PtoGQ45eII0tJa" 'False) (C1 ('MetaCons "Entity" 'PrefixI 'True) (S1 ('MetaSel ('Just "entityBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) Par1 :*: S1 ('MetaSel ('Just "entityIndices") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EntityIndices))) | |
type Rep (Entity a) Source # | |
Defined in Web.Twitter.Types type Rep (Entity a) = D1 ('MetaData "Entity" "Web.Twitter.Types" "twitter-types-0.11.0-5FLUjpL6PtoGQ45eII0tJa" 'False) (C1 ('MetaCons "Entity" 'PrefixI 'True) (S1 ('MetaSel ('Just "entityBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a) :*: S1 ('MetaSel ('Just "entityIndices") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EntityIndices))) |
data HashTagEntity Source #
Hashtag entity. See https://dev.twitter.com/docs/platform-objects/entities#obj-hashtags.
Constructors
HashTagEntity | |
Fields
|
Instances
data UserEntity Source #
User mention entity. See https://dev.twitter.com/docs/platform-objects/entities#obj-usermention.
Constructors
UserEntity | |
Fields |
Instances
URL entity. See https://dev.twitter.com/docs/platform-objects/entities#obj-url.
Constructors
URLEntity | |
Instances
FromJSON URLEntity Source # | |
ToJSON URLEntity Source # | |
Data URLEntity Source # | |
Defined in Web.Twitter.Types Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> URLEntity -> c URLEntity Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c URLEntity Source # toConstr :: URLEntity -> Constr Source # dataTypeOf :: URLEntity -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c URLEntity) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c URLEntity) Source # gmapT :: (forall b. Data b => b -> b) -> URLEntity -> URLEntity Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> URLEntity -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> URLEntity -> r Source # gmapQ :: (forall d. Data d => d -> u) -> URLEntity -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> URLEntity -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> URLEntity -> m URLEntity Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> URLEntity -> m URLEntity Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> URLEntity -> m URLEntity Source # | |
Generic URLEntity Source # | |
Show URLEntity Source # | |
Eq URLEntity Source # | |
type Rep URLEntity Source # | |
Defined in Web.Twitter.Types type Rep URLEntity = D1 ('MetaData "URLEntity" "Web.Twitter.Types" "twitter-types-0.11.0-5FLUjpL6PtoGQ45eII0tJa" 'False) (C1 ('MetaCons "URLEntity" 'PrefixI 'True) (S1 ('MetaSel ('Just "ueURL") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 URIString) :*: (S1 ('MetaSel ('Just "ueExpanded") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 URIString) :*: S1 ('MetaSel ('Just "ueDisplay") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))) |
data MediaEntity Source #
Constructors
MediaEntity | |
Instances
Size entity. See https://dev.twitter.com/docs/platform-objects/entities#obj-size.
Instances
FromJSON MediaSize Source # | |
ToJSON MediaSize Source # | |
Data MediaSize Source # | |
Defined in Web.Twitter.Types Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> MediaSize -> c MediaSize Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c MediaSize Source # toConstr :: MediaSize -> Constr Source # dataTypeOf :: MediaSize -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c MediaSize) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c MediaSize) Source # gmapT :: (forall b. Data b => b -> b) -> MediaSize -> MediaSize Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> MediaSize -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> MediaSize -> r Source # gmapQ :: (forall d. Data d => d -> u) -> MediaSize -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> MediaSize -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> MediaSize -> m MediaSize Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> MediaSize -> m MediaSize Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> MediaSize -> m MediaSize Source # | |
Generic MediaSize Source # | |
Show MediaSize Source # | |
Eq MediaSize Source # | |
type Rep MediaSize Source # | |
Defined in Web.Twitter.Types type Rep MediaSize = D1 ('MetaData "MediaSize" "Web.Twitter.Types" "twitter-types-0.11.0-5FLUjpL6PtoGQ45eII0tJa" 'False) (C1 ('MetaCons "MediaSize" 'PrefixI 'True) (S1 ('MetaSel ('Just "msWidth") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: (S1 ('MetaSel ('Just "msHeight") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "msResize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))) |
data Coordinates Source #
Constructors
Coordinates | |
Fields
|
Instances
This type represents a place, named locations with corresponding geo coordinates. See https://dev.twitter.com/docs/platform-objects/places.
Constructors
Place | |
Fields
|
Instances
data BoundingBox Source #
A bounding box of coordinates which encloses the place. See https://dev.twitter.com/docs/platform-objects/places#obj-boundingbox.
Constructors
BoundingBox | |
Fields
|
Instances
data Contributor Source #
Constructors
Contributor | |
Fields |
Instances
data UploadedMedia Source #
This type is represents the API response of "/1.1/media/upload.json". See https://dev.twitter.com/docs/api/multiple-media-extended-entities.
Constructors
UploadedMedia | |
Fields |
Instances
data ImageSizeType Source #
Image size type. This type is included in the API response of "/1.1/media/upload.json".
Constructors
ImageSizeType | |
Fields |
Instances
data DisplayTextRange Source #
unicode code point indices, identifying the inclusive start and exclusive end of the displayable content of the Tweet.
Constructors
DisplayTextRange | |
Fields
|
Instances
checkError :: Object -> Parser () Source #