{
"type": "object",
"properties": {
"registration_ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "The firebase receivers ID"
},
"time_to_live": {
"type": "number",
"description": "The number of seconds that a notification has to be delivered to the receiver before being discarded"
},
"data": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "See enum Notification Type"
},
"title": {
"type": "string",
"description": "Title entered by the Nido"
},
"description": {
"type": "string",
"description": "Description entered by the Nido"
},
"price": {
"type": "number",
"description": "Amount offered by the Nido"
},
"latitude": {
"type": "number"
},
"longitude": {
"type": "number"
},
"accuracy": {
"type": "number"
},
"job_id": {
"type": "number",
"description": "The job id in the server db"
},
"epoch": {
"type": "number",
"description": "Unix epoch job creation time"
},
"author": {
"type": "string",
"description": "The name of the job poster"
},
"rating": {
"type": "number",
"description": "The raiting of the job poster"
}
},
"required": [
"type",
"title",
"description",
"price",
"latitude",
"longitude",
"accuracy",
"job_id",
"epoch",
],
"additionalProperties": false
}
},
"required": [
"registration_ids",
"data"
],
"additionalProperties": false
}