29 lines
		
	
	
		
			669 B
		
	
	
	
		
			Protocol Buffer
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			669 B
		
	
	
	
		
			Protocol Buffer
		
	
	
	
	
	
| syntax = "proto3";
 | |
| 
 | |
| package dyson_network.sphere.account;
 | |
| 
 | |
| import "google/protobuf/empty.proto";
 | |
| 
 | |
| option csharp_namespace = "DysonNetwork.Sphere.Account.Proto";
 | |
| 
 | |
| service AccountService {
 | |
|   // Retrieves the current user's account information
 | |
|   rpc GetAccount(google.protobuf.Empty) returns (AccountResponse);
 | |
| 
 | |
|   // Updates the current user's account information
 | |
|   rpc UpdateAccount(UpdateAccountRequest) returns (AccountResponse);
 | |
| }
 | |
| 
 | |
| message AccountResponse {
 | |
|   string id = 1;
 | |
|   string username = 2;
 | |
|   string email = 3;
 | |
|   string display_name = 4;
 | |
| }
 | |
| 
 | |
| message UpdateAccountRequest {
 | |
|   // Fields to update
 | |
|   optional string email = 1;
 | |
|   optional string display_name = 2;
 | |
| }
 |