mirror of https://github.com/synctv-org/synctv.git
Feat: expire id notify
This commit is contained in:
parent
c3f2b271b5
commit
2f537cd54d
|
@ -1,7 +1,7 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.32.0
|
||||
// protoc v4.25.3
|
||||
// protoc-gen-go v1.34.1
|
||||
// protoc v5.26.1
|
||||
// source: proto/message/message.proto
|
||||
|
||||
package pb
|
||||
|
@ -37,6 +37,7 @@ const (
|
|||
ElementMessageType_MOVIES_CHANGED ElementMessageType = 11
|
||||
ElementMessageType_PEOPLE_CHANGED ElementMessageType = 12
|
||||
ElementMessageType_SYNC_MOVIE_STATUS ElementMessageType = 13
|
||||
ElementMessageType_CURRENT_EXPIRED ElementMessageType = 14
|
||||
)
|
||||
|
||||
// Enum value maps for ElementMessageType.
|
||||
|
@ -56,6 +57,7 @@ var (
|
|||
11: "MOVIES_CHANGED",
|
||||
12: "PEOPLE_CHANGED",
|
||||
13: "SYNC_MOVIE_STATUS",
|
||||
14: "CURRENT_EXPIRED",
|
||||
}
|
||||
ElementMessageType_value = map[string]int32{
|
||||
"UNKNOWN": 0,
|
||||
|
@ -72,6 +74,7 @@ var (
|
|||
"MOVIES_CHANGED": 11,
|
||||
"PEOPLE_CHANGED": 12,
|
||||
"SYNC_MOVIE_STATUS": 13,
|
||||
"CURRENT_EXPIRED": 14,
|
||||
}
|
||||
)
|
||||
|
||||
|
@ -585,7 +588,7 @@ var file_proto_message_message_proto_rawDesc = []byte{
|
|||
0x64, 0x12, 0x35, 0x0a, 0x0e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x43, 0x68, 0x61, 0x6e,
|
||||
0x67, 0x65, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x0e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e,
|
||||
0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x2a, 0xf0, 0x01, 0x0a, 0x12, 0x45, 0x6c, 0x65,
|
||||
0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x2a, 0x85, 0x02, 0x0a, 0x12, 0x45, 0x6c, 0x65,
|
||||
0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12,
|
||||
0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05,
|
||||
0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x43, 0x48, 0x41, 0x54, 0x5f,
|
||||
|
@ -600,8 +603,9 @@ var file_proto_message_message_proto_rawDesc = []byte{
|
|||
0x4d, 0x4f, 0x56, 0x49, 0x45, 0x53, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x44, 0x10, 0x0b,
|
||||
0x12, 0x12, 0x0a, 0x0e, 0x50, 0x45, 0x4f, 0x50, 0x4c, 0x45, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47,
|
||||
0x45, 0x44, 0x10, 0x0c, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x4d, 0x4f, 0x56,
|
||||
0x49, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x10, 0x0d, 0x42, 0x06, 0x5a, 0x04, 0x2e,
|
||||
0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x49, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x10, 0x0d, 0x12, 0x13, 0x0a, 0x0f, 0x43,
|
||||
0x55, 0x52, 0x52, 0x45, 0x4e, 0x54, 0x5f, 0x45, 0x58, 0x50, 0x49, 0x52, 0x45, 0x44, 0x10, 0x0e,
|
||||
0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
|
|
|
@ -18,6 +18,7 @@ enum ElementMessageType {
|
|||
MOVIES_CHANGED = 11;
|
||||
PEOPLE_CHANGED = 12;
|
||||
SYNC_MOVIE_STATUS = 13;
|
||||
CURRENT_EXPIRED = 14;
|
||||
}
|
||||
|
||||
message ChatResp {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.32.0
|
||||
// protoc v4.25.3
|
||||
// protoc-gen-go v1.34.1
|
||||
// protoc v5.26.1
|
||||
// source: proto/provider/plugin.proto
|
||||
|
||||
package providerpb
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.3.0
|
||||
// - protoc v4.25.3
|
||||
// - protoc v5.26.1
|
||||
// source: proto/provider/plugin.proto
|
||||
|
||||
package providerpb
|
||||
|
|
|
@ -248,7 +248,7 @@ func handleElementMsg(cli *op.Client, msg *pb.ElementMessage) error {
|
|||
}
|
||||
if currentMovie.CheckExpired(msg.CheckReq.ExpireId) {
|
||||
return cli.Send(&pb.ElementMessage{
|
||||
Type: pb.ElementMessageType_CURRENT_CHANGED,
|
||||
Type: pb.ElementMessageType_CURRENT_EXPIRED,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue