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 |
Create 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.create
.
Synopsis
- type RoomsCreateResource = "games" :> ("v1" :> ("rooms" :> ("create" :> (QueryParam "language" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] RoomCreateRequest :> Post '[JSON] Room))))))
- roomsCreate :: RoomCreateRequest -> RoomsCreate
- data RoomsCreate
- rcPayload :: Lens' RoomsCreate RoomCreateRequest
- rcLanguage :: Lens' RoomsCreate (Maybe Text)
REST Resource
type RoomsCreateResource = "games" :> ("v1" :> ("rooms" :> ("create" :> (QueryParam "language" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] RoomCreateRequest :> Post '[JSON] Room)))))) Source #
A resource alias for games.rooms.create
method which the
RoomsCreate
request conforms to.
Creating a Request
Creates a value of RoomsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data RoomsCreate Source #
Create a room. For internal use by the Games SDK only. Calling this method directly is unsupported.
See: roomsCreate
smart constructor.
Instances
Request Lenses
rcPayload :: Lens' RoomsCreate RoomCreateRequest Source #
Multipart request metadata.
rcLanguage :: Lens' RoomsCreate (Maybe Text) Source #
The preferred language to use for strings returned by this method.