{
  "name": "Post",
  "namespace": "eu.driver.model.sim.entity",
  "doc":
    "Common Simulation Space Post, representing a media entity inside the simulation world (e.g. email, news article, facebook post, etc.). *Copyright (C) 2017-2018 XVR Simulation B.V., Delft, The Netherlands, Martijn Hendriks <hendriks @ xvrsim.com>. This file is part of DRIVER+ WP923 Test-bed infrastructure project. This file is licensed under the MIT license : https://github.com/DRIVER-EU/avro-schemas/blob/master/LICENSE*",
  "type": "record",
  "fields": [
    {
      "name": "guid",
      "doc": "Globally unique identifier for this post",
      "type": "string"
    },
    {
      "name": "name",
      "doc": "Name of this post",
      "type": "string"
    },
    {
      "name": "owner",
      "doc": "Identifier of the simulator currently responsible for this post",
      "type": "string"
    },
    {
      "name": "mediumType",
      "doc": "Type of crisis media medium this post was placed on/in",
      "type": {
        "name": "MediumTypes",
        "namespace": "eu.driver.model.sim.entity.post",
        "type": "enum",
        "symbols": [
          "CHAT",
          "INCIDENT_REPORT",
          "MAIL",
          "MICROBLOG",
          "NEWS",
          "SITUATION_REPORT",
          "SOCIAL_NETWORK",
          "VIDEO"
        ]
      }
    },
    {
      "name": "mediumName",
      "doc": "Name of the medium this post was placed on/in",
      "type": "string"
    },
    {
      "name": "header",
      "doc": "Title of this post",
      "type": ["null", "string"],
      "default": null
    },
    {
      "name": "intro",
      "doc": "Introduction of this post",
      "type": ["null", "string"],
      "default": null
    },
    {
      "name": "body",
      "doc": "The body text of this post",
      "type": "string"
    },
    {
      "name": "files",
      "doc": "Links to files attached to this post",
      "type": [
        "null",
        {
          "type": "array",
          "items": "string"
        }
      ],
      "default": null
    },
    {
      "name": "visibleForParticipant",
      "doc": "Indication whether or not this post is visible for any participant",
      "type": "boolean"
    },
    {
      "name": "senderName",
      "doc": "Name of the sender sending this post",
      "type": "string"
    },
    {
      "name": "senderRole",
      "doc": "Reference to the role sending this post",
      "type": ["null", "string"],
      "default": null
    },
    {
      "name": "recipients",
      "doc": "List of references to the roles that should receive this post personally",
      "type": [
        "null",
        {
          "type": "array",
          "items": "string"
        }
      ],
      "default": null
    },
    {
      "name": "date",
      "type": "long",
      "logicalType": "timestamp-millis",
      "doc":
        "The fictive creation date and time of this post as the number of milliseconds from the unix epoch, 1 January 1970 00:00:00.000 UTC."
    },
    {
      "name": "location",
      "doc": "Location of this item",
      "type": [
        "null",
        {
          "name": "Location",
          "namespace": "eu.driver.model.sim.geo",
          "doc": "WGS84-based standard representation of a location on earth",
          "type": "record",
          "fields": [
            {
              "name": "latitude",
              "doc": "Latitude in degrees (-90, 90] - 0 is equator",
              "type": "double"
            },
            {
              "name": "longitude",
              "doc": "Longitude in degrees (-180, 180] - 0 is line [geographic north - Greenwich - geographic south]",
              "type": "double"
            },
            {
              "name": "altitude",
              "doc": "Altitude in meters - 0 is surface of WGS84-based ellipsoid",
              "type": ["null", "double"],
              "default": null
            }
          ]
        }
      ],
      "default": null
    }
  ]
}
