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.Achievements.Unlock

Contents

Description

Unlocks this achievement for the currently authenticated player.

See: Google Play Game Services API Reference for games.achievements.unlock.

Synopsis

REST Resource

type AchievementsUnlockResource = "games" :> ("v1" :> ("achievements" :> (Capture "achievementId" Text :> ("unlock" :> (QueryParam "builtinGameId" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] AchievementUnlockResponse)))))) Source #

A resource alias for games.achievements.unlock method which the AchievementsUnlock request conforms to.

Creating a Request

achievementsUnlock Source #

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

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

data AchievementsUnlock Source #

Unlocks this achievement for the currently authenticated player.

See: achievementsUnlock smart constructor.

Instances
Eq AchievementsUnlock Source # 
Instance details

Defined in Network.Google.Resource.Games.Achievements.Unlock

Data AchievementsUnlock Source # 
Instance details

Defined in Network.Google.Resource.Games.Achievements.Unlock

Methods

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

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

toConstr :: AchievementsUnlock -> Constr #

dataTypeOf :: AchievementsUnlock -> DataType #

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

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

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

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

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

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

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

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

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

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

Show AchievementsUnlock Source # 
Instance details

Defined in Network.Google.Resource.Games.Achievements.Unlock

Generic AchievementsUnlock Source # 
Instance details

Defined in Network.Google.Resource.Games.Achievements.Unlock

Associated Types

type Rep AchievementsUnlock :: Type -> Type #

GoogleRequest AchievementsUnlock Source # 
Instance details

Defined in Network.Google.Resource.Games.Achievements.Unlock

Associated Types

type Rs AchievementsUnlock :: Type #

type Scopes AchievementsUnlock :: [Symbol] #

type Rep AchievementsUnlock Source # 
Instance details

Defined in Network.Google.Resource.Games.Achievements.Unlock

type Rep AchievementsUnlock = D1 (MetaData "AchievementsUnlock" "Network.Google.Resource.Games.Achievements.Unlock" "gogol-games-0.4.0-EPjClsFfNAGupIHqlLfHm" False) (C1 (MetaCons "AchievementsUnlock'" PrefixI True) (S1 (MetaSel (Just "_auBuiltinGameId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_auAchievementId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Scopes AchievementsUnlock Source # 
Instance details

Defined in Network.Google.Resource.Games.Achievements.Unlock

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

Defined in Network.Google.Resource.Games.Achievements.Unlock

Request Lenses

auBuiltinGameId :: Lens' AchievementsUnlock (Maybe Text) Source #

Override used only by built-in games in Play Games application.

auAchievementId :: Lens' AchievementsUnlock Text Source #

The ID of the achievement used by this method.