gogol-games-0.3.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.QuestMilestones.Claim

Contents

Description

Report that a reward for the milestone corresponding to milestoneId for the quest corresponding to questId has been claimed by the currently authorized user.

See: Google Play Game Services API Reference for games.questMilestones.claim.

Synopsis

REST Resource

type QuestMilestonesClaimResource = "games" :> ("v1" :> ("quests" :> (Capture "questId" Text :> ("milestones" :> (Capture "milestoneId" Text :> ("claim" :> (QueryParam "requestId" (Textual Int64) :> (QueryParam "consistencyToken" (Textual Int64) :> (QueryParam "alt" AltJSON :> Put '[JSON] ()))))))))) Source #

A resource alias for games.questMilestones.claim method which the QuestMilestonesClaim request conforms to.

Creating a Request

questMilestonesClaim Source #

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

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

data QuestMilestonesClaim Source #

Report that a reward for the milestone corresponding to milestoneId for the quest corresponding to questId has been claimed by the currently authorized user.

See: questMilestonesClaim smart constructor.

Instances

Eq QuestMilestonesClaim Source # 
Data QuestMilestonesClaim Source # 

Methods

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

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

toConstr :: QuestMilestonesClaim -> Constr #

dataTypeOf :: QuestMilestonesClaim -> DataType #

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

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

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

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

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

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

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

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

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

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

Show QuestMilestonesClaim Source # 
Generic QuestMilestonesClaim Source # 
GoogleRequest QuestMilestonesClaim Source # 
type Rep QuestMilestonesClaim Source # 
type Rep QuestMilestonesClaim = D1 (MetaData "QuestMilestonesClaim" "Network.Google.Resource.Games.QuestMilestones.Claim" "gogol-games-0.3.0-8BCKppY4rzpLLml8wyBtKz" False) (C1 (MetaCons "QuestMilestonesClaim'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_qmcRequestId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Textual Int64))) (S1 (MetaSel (Just Symbol "_qmcConsistencyToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64))))) ((:*:) (S1 (MetaSel (Just Symbol "_qmcMilestoneId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_qmcQuestId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes QuestMilestonesClaim Source # 
type Scopes QuestMilestonesClaim = (:) Symbol "https://www.googleapis.com/auth/games" ((:) Symbol "https://www.googleapis.com/auth/plus.login" ([] Symbol))
type Rs QuestMilestonesClaim Source # 

Request Lenses

qmcRequestId :: Lens' QuestMilestonesClaim Int64 Source #

A numeric ID to ensure that the request is handled correctly across retries. Your client application must generate this ID randomly.

qmcConsistencyToken :: Lens' QuestMilestonesClaim (Maybe Int64) Source #

The last-seen mutation timestamp.