|
|
|
@ -151,16 +151,18 @@ func (m *Alert) GetTitleLocArgs() []string {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type NotificationRequest struct {
|
|
|
|
|
Tokens []string `protobuf:"bytes,1,rep,name=tokens" json:"tokens,omitempty"`
|
|
|
|
|
Platform int32 `protobuf:"varint,2,opt,name=platform" json:"platform,omitempty"`
|
|
|
|
|
Message string `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"`
|
|
|
|
|
Title string `protobuf:"bytes,4,opt,name=title" json:"title,omitempty"`
|
|
|
|
|
Topic string `protobuf:"bytes,5,opt,name=topic" json:"topic,omitempty"`
|
|
|
|
|
Key string `protobuf:"bytes,6,opt,name=key" json:"key,omitempty"`
|
|
|
|
|
Badge int32 `protobuf:"varint,7,opt,name=badge" json:"badge,omitempty"`
|
|
|
|
|
Category string `protobuf:"bytes,8,opt,name=category" json:"category,omitempty"`
|
|
|
|
|
Alert *Alert `protobuf:"bytes,9,opt,name=alert" json:"alert,omitempty"`
|
|
|
|
|
Sound string `protobuf:"bytes,10,opt,name=sound" json:"sound,omitempty"`
|
|
|
|
|
Tokens []string `protobuf:"bytes,1,rep,name=tokens" json:"tokens,omitempty"`
|
|
|
|
|
Platform int32 `protobuf:"varint,2,opt,name=platform" json:"platform,omitempty"`
|
|
|
|
|
Message string `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"`
|
|
|
|
|
Title string `protobuf:"bytes,4,opt,name=title" json:"title,omitempty"`
|
|
|
|
|
Topic string `protobuf:"bytes,5,opt,name=topic" json:"topic,omitempty"`
|
|
|
|
|
Key string `protobuf:"bytes,6,opt,name=key" json:"key,omitempty"`
|
|
|
|
|
Badge int32 `protobuf:"varint,7,opt,name=badge" json:"badge,omitempty"`
|
|
|
|
|
Category string `protobuf:"bytes,8,opt,name=category" json:"category,omitempty"`
|
|
|
|
|
Alert *Alert `protobuf:"bytes,9,opt,name=alert" json:"alert,omitempty"`
|
|
|
|
|
Sound string `protobuf:"bytes,10,opt,name=sound" json:"sound,omitempty"`
|
|
|
|
|
ContentAvailable bool `protobuf:"varint,11,opt,name=contentAvailable" json:"contentAvailable,omitempty"`
|
|
|
|
|
ThreadID string `protobuf:"bytes,12,opt,name=threadID" json:"threadID,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *NotificationRequest) Reset() { *m = NotificationRequest{} }
|
|
|
|
@ -238,6 +240,20 @@ func (m *NotificationRequest) GetSound() string {
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *NotificationRequest) GetContentAvailable() bool {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.ContentAvailable
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *NotificationRequest) GetThreadID() string {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.ThreadID
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type NotificationReply struct {
|
|
|
|
|
Success bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
|
|
|
|
|
Counts int32 `protobuf:"varint,2,opt,name=counts" json:"counts,omitempty"`
|
|
|
|
@ -442,37 +458,40 @@ var _Health_serviceDesc = grpc.ServiceDesc{
|
|
|
|
|
func init() { proto1.RegisterFile("gorush.proto", fileDescriptor0) }
|
|
|
|
|
|
|
|
|
|
var fileDescriptor0 = []byte{
|
|
|
|
|
// 510 bytes of a gzipped FileDescriptorProto
|
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x53, 0x4d, 0x8f, 0xda, 0x30,
|
|
|
|
|
0x10, 0xdd, 0x00, 0x09, 0x30, 0xd0, 0x96, 0x7a, 0xab, 0xca, 0xe5, 0x84, 0x72, 0xe2, 0xc4, 0x81,
|
|
|
|
|
0xde, 0x7a, 0x58, 0x75, 0x55, 0xad, 0x76, 0x57, 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, 0xde, 0xac, 0x62, 0x03, 0xe3, 0x3f, 0x01, 0x5c, 0xb6,
|
|
|
|
|
0x0a, 0x74, 0xa9, 0x0a, 0x2d, 0xc8, 0x47, 0x88, 0xb4, 0x61, 0xa6, 0x76, 0x17, 0xbf, 0x5c, 0xce,
|
|
|
|
|
0xfd, 0x24, 0x67, 0x72, 0x17, 0x2b, 0xab, 0x55, 0x64, 0x2b, 0xcc, 0x4f, 0x7d, 0x5d, 0xfc, 0x01,
|
|
|
|
|
0x5e, 0xb4, 0x08, 0x32, 0x82, 0xfe, 0xd7, 0xe4, 0x21, 0x79, 0xfc, 0x9e, 0x4c, 0x2e, 0x2c, 0x58,
|
|
|
|
|
0xdd, 0xa4, 0xdf, 0xee, 0x93, 0xdb, 0x49, 0x40, 0x5e, 0xc1, 0x28, 0x79, 0xfc, 0xf2, 0xa3, 0x09,
|
|
|
|
|
0x74, 0x96, 0x77, 0x10, 0xdd, 0xe2, 0x9f, 0x45, 0xae, 0xa0, 0xb7, 0x12, 0xc5, 0x86, 0x4c, 0xfd,
|
|
|
|
|
0xfd, 0x67, 0x56, 0x66, 0x4a, 0xcf, 0x72, 0xa5, 0x3c, 0xc4, 0x17, 0x56, 0xc9, 0xb5, 0x4c, 0xae,
|
|
|
|
|
0x20, 0xc4, 0xb6, 0xc9, 0xbb, 0x73, 0xa3, 0x38, 0xa5, 0xe9, 0xf3, 0x53, 0xae, 0x23, 0xa4, 0xde,
|
|
|
|
|
0xff, 0x0b, 0x00, 0x00, 0xff, 0xff, 0x48, 0x9a, 0x50, 0x65, 0xf4, 0x03, 0x00, 0x00,
|
|
|
|
|
// 546 bytes of a gzipped FileDescriptorProto
|
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x53, 0xcb, 0x8e, 0xda, 0x30,
|
|
|
|
|
0x14, 0x9d, 0x00, 0xe1, 0x71, 0xa1, 0x2d, 0xf5, 0x54, 0x95, 0xcb, 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