| Copyright | (c) 2015-2016 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.Google.Resource.Games.Rooms.Leave
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
- type RoomsLeaveResource = "games" :> ("v1" :> ("rooms" :> (Capture "roomId" Text :> ("leave" :> (QueryParam "language" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] RoomLeaveRequest :> Post '[JSON] Room)))))))
- roomsLeave :: RoomLeaveRequest -> Text -> RoomsLeave
- data RoomsLeave
- rlPayload :: Lens' RoomsLeave RoomLeaveRequest
- rlRoomId :: Lens' RoomsLeave Text
- rlLanguage :: Lens' RoomsLeave (Maybe Text)
REST Resource
type RoomsLeaveResource = "games" :> ("v1" :> ("rooms" :> (Capture "roomId" Text :> ("leave" :> (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
Arguments
| :: RoomLeaveRequest | |
| -> Text | |
| -> RoomsLeave |
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
Request Lenses
rlPayload :: Lens' RoomsLeave RoomLeaveRequest Source #
Multipart request metadata.
rlLanguage :: Lens' RoomsLeave (Maybe Text) Source #
The preferred language to use for strings returned by this method.