Commit 29/07/2025

This commit is contained in:
2025-07-29 18:43:50 +07:00
parent 86d81f030f
commit 461b5d2581
4 changed files with 59 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
package zello
import com.fasterxml.jackson.annotation.JsonPropertyOrder
@Suppress("unused")
@JsonPropertyOrder(value = ["command", "error"])
class Event_OnError {
var command: String = "" // must be "on_error"
var error: String = ""
}

View File

@@ -0,0 +1,17 @@
package zello
import com.fasterxml.jackson.annotation.JsonPropertyOrder
@Suppress("unused")
@JsonPropertyOrder(value = ["command", "channel", "from", "for", "message_id", "type", "height", "width", "source"])
class Event_OnImage {
var command: String = "" // must be "on_image"
var channel: String = ""
var from: String = "" // user who sent the image
var For: String = "" // should be "for" not "For"
var message_id: Int=0
var type: String = "" // must be "jpeg"
var height: Int = 0
var width: Int = 0
var source: String = "" // "camera" or "library"
}

View File

@@ -0,0 +1,18 @@
package zello
import com.fasterxml.jackson.annotation.JsonPropertyOrder
@Suppress("unused")
@JsonPropertyOrder(value = ["command", "channel", "from", "for", "message_id", "latitude", "longitude", "formatted_address", "accuracy"])
class Event_OnLocation {
var command: String = "" // must be "on_location"
var channel: String = ""
var from: String = "" // user
var For: String = "" // should be "for" not "For"
var message_id: Int = 0
var latitude: Double = 0.0
var longitude: Double = 0.0
var formatted_address: String = ""
var accuracy: Double = 0.0
}

View File

@@ -0,0 +1,14 @@
package zello
import com.fasterxml.jackson.annotation.JsonPropertyOrder
@Suppress("unused")
@JsonPropertyOrder(value = ["command", "channel", "from", "For", "message_id", "text"])
class Event_OnTextMessage {
var command : String = "" // must be "on_text_message"
var channel : String = ""
var from: String = ""
var For: String = "" // should be "for" not "For"
var message_id: Int=0
var text: String = ""
}