2019-05-31 14:17:14 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package Aurora.Backend.Proto;
|
|
|
|
|
2019-07-05 15:37:44 +00:00
|
|
|
import "Backend/Proto/general.proto";
|
|
|
|
|
|
|
|
service RemotePartyService {
|
2019-05-31 14:17:14 +00:00
|
|
|
//Party Service
|
|
|
|
rpc JoinParty(JoinPartyRequest) returns (JoinPartyResponse);
|
|
|
|
rpc LeaveParty(LeavePartyRequest) returns (LeavePartyResponse);
|
|
|
|
}
|
|
|
|
|
|
|
|
message JoinPartyRequest {
|
|
|
|
string clientId = 1;
|
|
|
|
string userName = 2;
|
|
|
|
string ipAddress = 3;
|
|
|
|
string port = 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
message JoinPartyResponse {
|
|
|
|
PartyJoinedStatusEnum status = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message LeavePartyRequest {
|
|
|
|
string clientId = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message LeavePartyResponse {
|
|
|
|
PartyJoinedStatusEnum status = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
enum PartyJoinedStatusEnum {
|
|
|
|
Connected = 0;
|
|
|
|
Disconnected = 1;
|
|
|
|
}
|