2013-10-11 10:06:24 +02:00
|
|
|
package proto;
|
|
|
|
|
|
|
|
message HyperionRequest {
|
|
|
|
enum Command {
|
|
|
|
COLOR = 1;
|
|
|
|
IMAGE = 2;
|
|
|
|
CLEAR = 3;
|
|
|
|
CLEARALL = 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
// command specification
|
|
|
|
required Command command = 1;
|
|
|
|
|
|
|
|
// extensions to define all specific requests
|
|
|
|
extensions 10 to 100;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ColorRequest {
|
|
|
|
extend HyperionRequest {
|
2014-09-26 20:27:30 +02:00
|
|
|
optional ColorRequest colorRequest = 10;
|
2013-10-11 10:06:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// priority to use when setting the color
|
|
|
|
required int32 priority = 1;
|
|
|
|
|
2013-10-13 20:22:32 +02:00
|
|
|
// integer value containing the rgb color (0x00RRGGBB)
|
2013-11-11 10:00:37 +01:00
|
|
|
required int32 RgbColor = 2;
|
2013-10-11 10:06:24 +02:00
|
|
|
|
|
|
|
// duration of the request (negative results in infinite)
|
|
|
|
optional int32 duration = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ImageRequest {
|
|
|
|
extend HyperionRequest {
|
2014-09-26 20:27:30 +02:00
|
|
|
optional ImageRequest imageRequest = 11;
|
2013-10-11 10:06:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// priority to use when setting the image
|
|
|
|
required int32 priority = 1;
|
|
|
|
|
|
|
|
// width of the image
|
|
|
|
required int32 imagewidth = 2;
|
|
|
|
|
|
|
|
// height of the image
|
|
|
|
required int32 imageheight = 3;
|
|
|
|
|
|
|
|
// image data
|
|
|
|
required bytes imagedata = 4;
|
|
|
|
|
|
|
|
// duration of the request (negative results in infinite)
|
|
|
|
optional int32 duration = 5;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ClearRequest {
|
|
|
|
extend HyperionRequest {
|
2014-09-26 20:27:30 +02:00
|
|
|
optional ClearRequest clearRequest = 12;
|
2013-10-11 10:06:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// priority which need to be cleared
|
|
|
|
required int32 priority = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message HyperionReply {
|
2016-06-07 23:12:18 +02:00
|
|
|
enum Type {
|
|
|
|
REPLY = 1;
|
|
|
|
GRABBING = 2;
|
|
|
|
VIDEO = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Identifies which field is filled in.
|
|
|
|
required Type type = 1;
|
|
|
|
|
2013-10-11 10:06:24 +02:00
|
|
|
// flag indication success or failure
|
2016-06-07 23:12:18 +02:00
|
|
|
optional bool success = 2;
|
2013-10-11 10:06:24 +02:00
|
|
|
|
|
|
|
// string indicating the reason for failure (if applicable)
|
2016-06-07 23:12:18 +02:00
|
|
|
optional string error = 3;
|
|
|
|
|
2016-07-10 22:04:31 +02:00
|
|
|
// KODI Video Checker Proto Messages for Grabbing mode
|
2016-06-07 23:12:18 +02:00
|
|
|
optional int32 grabbing = 4;
|
|
|
|
|
2016-07-10 22:04:31 +02:00
|
|
|
// KODI Video Checker Proto Messages for Video mode
|
2016-06-07 23:12:18 +02:00
|
|
|
optional int32 video = 5;
|
2013-10-11 10:06:24 +02:00
|
|
|
}
|