1
0
mirror of https://github.com/Mojang/bedrock-protocol-docs.git synced 2025-11-07 10:35:13 +00:00
Files
bedrock-protocol-docs/json/PhotoTransferPacket.json

86 lines
3.0 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "1339922872",
"x-format-version": "MISSING VERSION",
"x-minecraft-version": "1.21.120",
"x-protocol-version": 859,
"definitions": {
"399069043": {
"title": "PhotoTransferPacketPayload",
"type": "object",
"properties": {
"Book ID": {
"type": "string",
"x-ordinal-index": 2
},
"New Photo Name": {
"type": "string",
"x-ordinal-index": 6
},
"Owner ID": {
"type": "integer",
"x-underlying-type": "int64",
"x-ordinal-index": 5
},
"Photo Data": {
"type": "string",
"x-ordinal-index": 1
},
"Photo Name": {
"type": "string",
"x-ordinal-index": 0
},
"Source Type": {
"title": "PhotoType",
"type": "string",
"enum": [
"Portfolio",
"PhotoItem",
"Book"
],
"x-underlying-type": "uint8",
"x-serialization-options": [
"EnumAsValue"
],
"x-ordinal-index": 4
},
"Type": {
"title": "PhotoType",
"type": "string",
"enum": [
"Portfolio",
"PhotoItem",
"Book"
],
"x-underlying-type": "uint8",
"x-serialization-options": [
"EnumAsValue"
],
"x-ordinal-index": 3
}
},
"required": [
"Book ID",
"New Photo Name",
"Owner ID",
"Photo Data",
"Photo Name",
"Source Type",
"Type"
]
}
},
"title": "PhotoTransferPacket",
"description": "There is a camera item in EDU and they can use it to take screenshots and add them to a scrapbook.",
"type": "object",
"properties": {
"mPayload": {
"$ref": "#/definitions/399069043",
"x-ordinal-index": 0
}
},
"$metaProperties": {
"[cereal:packet]": 99,
"[cereal:packet_details]": "\n\tWhen the player uses the camera item or adds a photo to the scrapbook it sends the photo to the server, \n\tthen the server sends a response back on whether that was successful or not. \n\tEither uploads a photo to the server's photoStorage or request one from it to be stored in client's photoStorage.\n\tIf no mPhotoData is provided it is a request for the given filename.\n\t"
}
}