activeAccounts.json 1008 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {
  2. "type" : "object",
  3. "$schema" : "http://json-schema.org/draft-06/schema",
  4. "title" : "Lobby protocol: activeAccounts",
  5. "description" : "Sent by server to initialized or update list of active accounts",
  6. "required" : [ "type", "accounts" ],
  7. "additionalProperties" : false,
  8. "properties" : {
  9. "type" :
  10. {
  11. "type" : "string",
  12. "const" : "activeAccounts"
  13. },
  14. "accounts" :
  15. {
  16. "type" : "array",
  17. "description" : "List of accounts that are currently online",
  18. "items" :
  19. {
  20. "type" : "object",
  21. "additionalProperties" : false,
  22. "required" : [ "accountID", "displayName", "status" ],
  23. "properties" : {
  24. "accountID" :
  25. {
  26. "type" : "string",
  27. "description" : "Unique ID of an account"
  28. },
  29. "displayName" :
  30. {
  31. "type" : "string",
  32. "description" : "Display name of an account"
  33. },
  34. "status" :
  35. {
  36. "type" : "string",
  37. "description" : "Current status of an account, such as in lobby or in match"
  38. }
  39. }
  40. }
  41. }
  42. }
  43. }