Reorganization
This commit is contained in:
10
Aurora/Proto/general.proto
Normal file
10
Aurora/Proto/general.proto
Normal file
@ -0,0 +1,10 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package Aurora.Proto;
|
||||
|
||||
message Chunk {
|
||||
bytes Content = 1;
|
||||
}
|
||||
|
||||
message Empty{
|
||||
}
|
35
Aurora/Proto/party.proto
Normal file
35
Aurora/Proto/party.proto
Normal file
@ -0,0 +1,35 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package Aurora.Proto;
|
||||
|
||||
import "Proto/general.proto";
|
||||
|
||||
service RemotePartyService {
|
||||
//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;
|
||||
}
|
21
Aurora/Proto/playback.proto
Normal file
21
Aurora/Proto/playback.proto
Normal file
@ -0,0 +1,21 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package Aurora.Proto;
|
||||
|
||||
import "Proto/general.proto";
|
||||
|
||||
service RemotePlaybackService {
|
||||
//Playback Service
|
||||
rpc GetPartyStream(Empty) returns (stream Chunk) {};
|
||||
}
|
||||
|
||||
enum TransferStatusCode {
|
||||
Unknown = 0;
|
||||
Ok = 1;
|
||||
Failed = 2;
|
||||
}
|
||||
|
||||
message TransferStatus {
|
||||
string Message = 1;
|
||||
TransferStatusCode Code = 2;
|
||||
}
|
Reference in New Issue
Block a user