gogol-games-0.2.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.Rooms.Leave

Contents

Description

Leave a room. For internal use by the Games SDK only. Calling this method directly is unsupported.

See: Google Play Game Services API Reference for games.rooms.leave.

Synopsis

REST Resource

type RoomsLeaveResource = "games" :> ("v1" :> ("rooms" :> (Capture "roomId" Text :> ("leave" :> (QueryParam "consistencyToken" (Textual Int64) :> (QueryParam "language" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] RoomLeaveRequest :> Post '[JSON] Room)))))))) Source #

A resource alias for games.rooms.leave method which the RoomsLeave request conforms to.

Creating a Request

roomsLeave Source #

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

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

data RoomsLeave Source #

Leave a room. For internal use by the Games SDK only. Calling this method directly is unsupported.

See: roomsLeave smart constructor.

Instances

Eq RoomsLeave Source # 
Data RoomsLeave Source # 

Methods

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

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

toConstr :: RoomsLeave -> Constr #

dataTypeOf :: RoomsLeave -> DataType #

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

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

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

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

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

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

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

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

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

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

Show RoomsLeave Source # 
Generic RoomsLeave Source # 

Associated Types

type Rep RoomsLeave :: * -> * #

GoogleRequest RoomsLeave Source # 

Associated Types

type Rs RoomsLeave :: * #

type Scopes RoomsLeave :: [Symbol] #

type Rep RoomsLeave Source # 
type Rep RoomsLeave = D1 (MetaData "RoomsLeave" "Network.Google.Resource.Games.Rooms.Leave" "gogol-games-0.2.0-KphkSErLqFDEpZZf11weia" False) (C1 (MetaCons "RoomsLeave'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_rlConsistencyToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))) (S1 (MetaSel (Just Symbol "_rlPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 RoomLeaveRequest))) ((:*:) (S1 (MetaSel (Just Symbol "_rlRoomId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_rlLanguage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes RoomsLeave Source # 
type Scopes RoomsLeave = (:) Symbol "https://www.googleapis.com/auth/games" ((:) Symbol "https://www.googleapis.com/auth/plus.login" ([] Symbol))
type Rs RoomsLeave Source # 

Request Lenses

rlConsistencyToken :: Lens' RoomsLeave (Maybe Int64) Source #

The last-seen mutation timestamp.

rlPayload :: Lens' RoomsLeave RoomLeaveRequest Source #

Multipart request metadata.

rlRoomId :: Lens' RoomsLeave Text Source #

The ID of the room.

rlLanguage :: Lens' RoomsLeave (Maybe Text) Source #

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