module TD.Query.GetActiveSessions
(GetActiveSessions(..)
) where
import qualified Data.Aeson as A
import qualified Data.Aeson.Types as AT
import qualified TD.Lib.Internal as I
data GetActiveSessions
= GetActiveSessions
deriving (GetActiveSessions -> GetActiveSessions -> Bool
(GetActiveSessions -> GetActiveSessions -> Bool)
-> (GetActiveSessions -> GetActiveSessions -> Bool)
-> Eq GetActiveSessions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GetActiveSessions -> GetActiveSessions -> Bool
== :: GetActiveSessions -> GetActiveSessions -> Bool
$c/= :: GetActiveSessions -> GetActiveSessions -> Bool
/= :: GetActiveSessions -> GetActiveSessions -> Bool
Eq, Int -> GetActiveSessions -> ShowS
[GetActiveSessions] -> ShowS
GetActiveSessions -> String
(Int -> GetActiveSessions -> ShowS)
-> (GetActiveSessions -> String)
-> ([GetActiveSessions] -> ShowS)
-> Show GetActiveSessions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GetActiveSessions -> ShowS
showsPrec :: Int -> GetActiveSessions -> ShowS
$cshow :: GetActiveSessions -> String
show :: GetActiveSessions -> String
$cshowList :: [GetActiveSessions] -> ShowS
showList :: [GetActiveSessions] -> ShowS
Show)
instance I.ShortShow GetActiveSessions where
shortShow :: GetActiveSessions -> String
shortShow
GetActiveSessions
GetActiveSessions
= String
"GetActiveSessions"
instance AT.ToJSON GetActiveSessions where
toJSON :: GetActiveSessions -> Value
toJSON
GetActiveSessions
GetActiveSessions
= [Pair] -> Value
A.object
[ Key
"@type" Key -> Value -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
forall v. ToJSON v => Key -> v -> Pair
A..= Text -> Value
AT.String Text
"getActiveSessions"
]