-
Notifications
You must be signed in to change notification settings - Fork 156
/
Copy pathsteammessages_parties.proto
95 lines (74 loc) · 2.76 KB
/
steammessages_parties.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
syntax = "proto2";
import "steammessages_base.proto";
import "steammessages_unified_base.proto";
option py_generic_services = true;
message CParties_JoinParty_Request {
optional fixed64 steamid = 1;
optional uint64 beacon_id = 2;
}
message CParties_JoinParty_Response {
optional uint64 beacon_id = 1;
optional string connect_string = 2;
}
message CParties_BeaconLocation {
optional uint32 location_type = 1;
optional uint64 location_id = 2;
}
message CParties_CreateBeacon_Request {
optional uint32 appid = 1;
optional uint32 num_open_slots = 2;
repeated .CParties_BeaconLocation locations = 3;
optional string connect_string = 4;
optional string metadata = 5;
}
message CParties_CreateBeacon_Response {
optional uint64 beacon_id = 1;
}
message CParties_OnReservationCompleted_Request {
optional uint64 beacon_id = 1;
optional fixed64 user_steamid = 2;
}
message CParties_OnReservationCompleted_Response {
optional uint64 beacon_id = 1;
}
message CParties_CancelReservation_Request {
optional uint64 beacon_id = 1;
optional fixed64 user_steamid = 2;
}
message CParties_CancelReservation_Response {
optional uint64 beacon_id = 1;
}
message CParties_ChangeNumOpenSlots_Request {
optional uint64 beacon_id = 1;
optional uint32 num_open_slots = 2;
}
message CParties_ChangeNumOpenSlots_Response {
optional uint64 beacon_id = 1;
}
message CParties_DestroyBeacon_Request {
optional uint64 beacon_id = 1;
}
message CParties_DestroyBeacon_Response {
optional uint64 beacon_id = 1;
}
service Parties {
option (service_description) = "Party-related services";
rpc JoinParty (.CParties_JoinParty_Request) returns (.CParties_JoinParty_Response) {
option (method_description) = "Request to join a Party via the given Beacon ID. If successful, will be given the necessary 'connect' string.";
}
rpc CreateBeacon (.CParties_CreateBeacon_Request) returns (.CParties_CreateBeacon_Response) {
option (method_description) = "Create a Beacon to attract people to your Party.";
}
rpc OnReservationCompleted (.CParties_OnReservationCompleted_Request) returns (.CParties_OnReservationCompleted_Response) {
option (method_description) = "Notify Steam that a user with a reservation has successfully joined.";
}
rpc CancelReservation (.CParties_CancelReservation_Request) returns (.CParties_CancelReservation_Response) {
option (method_description) = "Notify Steam that a user with a reservation either never showed up, or has left the party.";
}
rpc ChangeNumOpenSlots (.CParties_ChangeNumOpenSlots_Request) returns (.CParties_ChangeNumOpenSlots_Response) {
option (method_description) = "Change the number of open slots";
}
rpc DestroyBeacon (.CParties_DestroyBeacon_Request) returns (.CParties_DestroyBeacon_Response) {
option (method_description) = "Delete the Beacon.";
}
}