diff --git a/src/zello/Event_OnError.kt b/src/zello/Event_OnError.kt new file mode 100644 index 0000000..1ae928c --- /dev/null +++ b/src/zello/Event_OnError.kt @@ -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 = "" +} \ No newline at end of file diff --git a/src/zello/Event_OnImage.kt b/src/zello/Event_OnImage.kt new file mode 100644 index 0000000..8db4479 --- /dev/null +++ b/src/zello/Event_OnImage.kt @@ -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" +} \ No newline at end of file diff --git a/src/zello/Event_OnLocation.kt b/src/zello/Event_OnLocation.kt new file mode 100644 index 0000000..9066cd8 --- /dev/null +++ b/src/zello/Event_OnLocation.kt @@ -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 + +} \ No newline at end of file diff --git a/src/zello/Event_OnTextMessage.kt b/src/zello/Event_OnTextMessage.kt new file mode 100644 index 0000000..b197dac --- /dev/null +++ b/src/zello/Event_OnTextMessage.kt @@ -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 = "" +} \ No newline at end of file