chatMessage.json 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {
  2. "type" : "object",
  3. "$schema" : "http://json-schema.org/draft-06/schema",
  4. "title" : "Lobby protocol: chatMessage",
  5. "description" : "Sent by server to all players in lobby whenever new message is sent to game chat",
  6. "required" : [ "type", "messageText", "accountID", "displayName", "channelType", "channelName" ],
  7. "additionalProperties" : false,
  8. "properties" : {
  9. "type" :
  10. {
  11. "type" : "string",
  12. "const" : "chatMessage"
  13. },
  14. "messageText" :
  15. {
  16. "type" : "string",
  17. "description" : "Text of sent message"
  18. },
  19. "accountID" :
  20. {
  21. "type" : "string",
  22. "description" : "ID of account that have sent this message"
  23. },
  24. "displayName" :
  25. {
  26. "type" : "string",
  27. "description" : "Display name of account that have sent this message"
  28. },
  29. "channelType" :
  30. {
  31. "type" : "string",
  32. "enum" : [ "global", "match", "player" ],
  33. "description" : "Type of room to which this message has been set."
  34. },
  35. "channelName" :
  36. {
  37. "type" : "string",
  38. "description" : "Name of room to which this message has been set. For 'global' this is language, for 'match' and 'player' this is receiver UUID"
  39. }
  40. }
  41. }