-
Notifications
You must be signed in to change notification settings - Fork 1
/
badge_service.proto
32 lines (25 loc) · 1 KB
/
badge_service.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
syntax = "proto3";
package code.badge.v1;
option go_package = "github.com/code-payments/code-protobuf-api/generated/go/badge/v1;badge";
option java_package = "com.codeinc.gen.badge.v1";
option objc_class_prefix = "CPBBadgeV1";
import "common/v1/model.proto";
import "validate/validate.proto";
service Badge {
// ResetBadgeCount resets an owner account's app icon badge count back to zero
rpc ResetBadgeCount(ResetBadgeCountRequest) returns (ResetBadgeCountResponse);
}
message ResetBadgeCountRequest {
// The owner account to clear badge count
common.v1.SolanaAccountId owner = 1 [(validate.rules).message.required = true];
// The signature is of serialize(ResetBadgeCountRequest) without this field set
// using the private key of the owner account. This provides an authentication
// mechanism to the RPC.
common.v1.Signature signature = 2 [(validate.rules).message.required = true];
}
message ResetBadgeCountResponse {
Result result = 1;
enum Result {
OK = 0;
}
}