2019-05-31 14:17:14 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2019-07-07 21:12:13 +00:00
|
|
|
package Aurora.Proto.Party;
|
2019-05-31 14:17:14 +00:00
|
|
|
|
2019-07-05 18:17:09 +00:00
|
|
|
import "Proto/general.proto";
|
2019-07-05 15:37:44 +00:00
|
|
|
|
|
|
|
service RemotePartyService {
|
2019-05-31 14:17:14 +00:00
|
|
|
//Party Service
|
|
|
|
rpc JoinParty(JoinPartyRequest) returns (JoinPartyResponse);
|
|
|
|
rpc LeaveParty(LeavePartyRequest) returns (LeavePartyResponse);
|
2019-07-07 21:12:13 +00:00
|
|
|
rpc GetPartyMembers(Aurora.Proto.General.Empty) returns (MembersResponse);
|
2019-05-31 14:17:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message JoinPartyRequest {
|
|
|
|
string userName = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message JoinPartyResponse {
|
|
|
|
PartyJoinedStatusEnum status = 1;
|
2019-07-12 15:34:06 +00:00
|
|
|
string clientId = 2;
|
2019-05-31 14:17:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message LeavePartyRequest {
|
|
|
|
string clientId = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message LeavePartyResponse {
|
|
|
|
PartyJoinedStatusEnum status = 1;
|
|
|
|
}
|
|
|
|
|
2019-07-06 19:52:28 +00:00
|
|
|
message PartyMember {
|
|
|
|
string userName = 1;
|
|
|
|
string id = 2;
|
|
|
|
string ipAddress = 3;
|
|
|
|
int32 port = 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
message MembersResponse {
|
|
|
|
repeated PartyMember members = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-05-31 14:17:14 +00:00
|
|
|
enum PartyJoinedStatusEnum {
|
|
|
|
Connected = 0;
|
|
|
|
Disconnected = 1;
|
|
|
|
}
|