gogol-games-0.1.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.TurnBasedMatches.Rematch

Contents

Description

Create a rematch of a match that was previously completed, with the same participants. This can be called by only one player on a match still in their list; the player must have called Finish first. Returns the newly created match; it will be the caller's turn.

See: Google Play Game Services API Reference for games.turnBasedMatches.rematch.

Synopsis

REST Resource

type TurnBasedMatchesRematchResource = "games" :> ("v1" :> ("turnbasedmatches" :> (Capture "matchId" Text :> ("rematch" :> (QueryParam "requestId" (Textual Int64) :> (QueryParam "consistencyToken" (Textual Int64) :> (QueryParam "language" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] TurnBasedMatchRematch)))))))) Source #

A resource alias for games.turnBasedMatches.rematch method which the TurnBasedMatchesRematch request conforms to.

Creating a Request

turnBasedMatchesRematch Source #

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

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

data TurnBasedMatchesRematch Source #

Create a rematch of a match that was previously completed, with the same participants. This can be called by only one player on a match still in their list; the player must have called Finish first. Returns the newly created match; it will be the caller's turn.

See: turnBasedMatchesRematch smart constructor.

Instances

Eq TurnBasedMatchesRematch Source # 
Data TurnBasedMatchesRematch Source # 

Methods

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

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

toConstr :: TurnBasedMatchesRematch -> Constr #

dataTypeOf :: TurnBasedMatchesRematch -> DataType #

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

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

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

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

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

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

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

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

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

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

Show TurnBasedMatchesRematch Source # 
Generic TurnBasedMatchesRematch Source # 
GoogleRequest TurnBasedMatchesRematch Source # 
type Rep TurnBasedMatchesRematch Source # 
type Rep TurnBasedMatchesRematch = D1 (MetaData "TurnBasedMatchesRematch" "Network.Google.Resource.Games.TurnBasedMatches.Rematch" "gogol-games-0.1.0-Ie5bQD7CsWE1e0aKgiwDY3" False) (C1 (MetaCons "TurnBasedMatchesRematch'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_tbmrRequestId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))) (S1 (MetaSel (Just Symbol "_tbmrConsistencyToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64))))) ((:*:) (S1 (MetaSel (Just Symbol "_tbmrLanguage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_tbmrMatchId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes TurnBasedMatchesRematch Source # 
type Scopes TurnBasedMatchesRematch = (:) Symbol "https://www.googleapis.com/auth/games" ((:) Symbol "https://www.googleapis.com/auth/plus.login" ([] Symbol))
type Rs TurnBasedMatchesRematch Source # 

Request Lenses

tbmrRequestId :: Lens' TurnBasedMatchesRematch (Maybe Int64) Source #

A randomly generated numeric ID for each request specified by the caller. This number is used at the server to ensure that the request is handled correctly across retries.

tbmrConsistencyToken :: Lens' TurnBasedMatchesRematch (Maybe Int64) Source #

The last-seen mutation timestamp.

tbmrLanguage :: Lens' TurnBasedMatchesRematch (Maybe Text) Source #

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