gogol-games-0.4.0: Google Play Game Services SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Games.Scores.Submit

Contents

Description

Submits a score to the specified leaderboard.

See: Google Play Game Services API Reference for games.scores.submit.

Synopsis

REST Resource

type ScoresSubmitResource = "games" :> ("v1" :> ("leaderboards" :> (Capture "leaderboardId" Text :> ("scores" :> (QueryParam "score" (Textual Int64) :> (QueryParam "scoreTag" Text :> (QueryParam "language" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] PlayerScoreResponse)))))))) Source #

A resource alias for games.scores.submit method which the ScoresSubmit request conforms to.

Creating a Request

scoresSubmit Source #

Creates a value of ScoresSubmit with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data ScoresSubmit Source #

Submits a score to the specified leaderboard.

See: scoresSubmit smart constructor.

Instances
Eq ScoresSubmit Source # 
Instance details

Defined in Network.Google.Resource.Games.Scores.Submit

Data ScoresSubmit Source # 
Instance details

Defined in Network.Google.Resource.Games.Scores.Submit

Methods

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

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

toConstr :: ScoresSubmit -> Constr #

dataTypeOf :: ScoresSubmit -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ScoresSubmit Source # 
Instance details

Defined in Network.Google.Resource.Games.Scores.Submit

Generic ScoresSubmit Source # 
Instance details

Defined in Network.Google.Resource.Games.Scores.Submit

Associated Types

type Rep ScoresSubmit :: Type -> Type #

GoogleRequest ScoresSubmit Source # 
Instance details

Defined in Network.Google.Resource.Games.Scores.Submit

Associated Types

type Rs ScoresSubmit :: Type #

type Scopes ScoresSubmit :: [Symbol] #

type Rep ScoresSubmit Source # 
Instance details

Defined in Network.Google.Resource.Games.Scores.Submit

type Rep ScoresSubmit = D1 (MetaData "ScoresSubmit" "Network.Google.Resource.Games.Scores.Submit" "gogol-games-0.4.0-EPjClsFfNAGupIHqlLfHm" False) (C1 (MetaCons "ScoresSubmit'" PrefixI True) ((S1 (MetaSel (Just "_ssScoreTag") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ssScore") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Textual Int64))) :*: (S1 (MetaSel (Just "_ssLeaderboardId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_ssLanguage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))
type Scopes ScoresSubmit Source # 
Instance details

Defined in Network.Google.Resource.Games.Scores.Submit

type Scopes ScoresSubmit = "https://www.googleapis.com/auth/games" ': ([] :: [Symbol])
type Rs ScoresSubmit Source # 
Instance details

Defined in Network.Google.Resource.Games.Scores.Submit

Request Lenses

ssScoreTag :: Lens' ScoresSubmit (Maybe Text) Source #

Additional information about the score you're submitting. Values must contain no more than 64 URI-safe characters as defined by section 2.3 of RFC 3986.

ssScore :: Lens' ScoresSubmit Int64 Source #

The score you're submitting. The submitted score is ignored if it is worse than a previously submitted score, where worse depends on the leaderboard sort order. The meaning of the score value depends on the leaderboard format type. For fixed-point, the score represents the raw value. For time, the score represents elapsed time in milliseconds. For currency, the score represents a value in micro units.

ssLeaderboardId :: Lens' ScoresSubmit Text Source #

The ID of the leaderboard.

ssLanguage :: Lens' ScoresSubmit (Maybe Text) Source #

The preferred language to use for strings returned by this method.