Server invitation process functions
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -24,11 +24,12 @@ message PackedServerMessage {
|
||||
message Invitation {
|
||||
bytes payload = 1; // invitation payload, encrypted after step 2
|
||||
int32 timeout = 2; // how long do I want the invitation to remain available on the server
|
||||
int32 idlen = 3; // len of the id you wish for short url transmission
|
||||
string password = 4; // password tou set for accessin invitation (optional)
|
||||
string id = 5; // id that the friend shall request to get teh invitation
|
||||
int64 expiry = 6; // the server allowed expiry date, it may be samller than the requested timeout according to server policy
|
||||
int32 step = 7; // progress in the inviattion process : 1=invite friend, 2=friend requests invitation, 3=friend's answer, 4=request answer
|
||||
int32 shortcodeLen = 3; // len of the shortcode you wish for short url transmission
|
||||
string shortcode = 4; // shortcode that the friend shall request to get the invitation
|
||||
string password = 5; // password tou set for accessin invitation (optional)
|
||||
string uuid = 6; // id that the friend gave you, that you should include to your reply to get recognized
|
||||
int64 expiry = 7; // the server allowed expiry date, it may be samller than the requested timeout according to server policy
|
||||
int32 step = 8; // progress in the inviattion process : 1=invite friend, 2=friend requests invitation, 3=friend's answer
|
||||
}
|
||||
|
||||
|
||||
@ -57,7 +58,7 @@ message ToServerMessage {
|
||||
|
||||
string uuid = 8;
|
||||
|
||||
Invitation invitation = 9;
|
||||
Invitation invitation = 9; // invitation for the 2 first steps of a "through server" invitation process
|
||||
|
||||
}
|
||||
|
||||
@ -77,7 +78,7 @@ message FromServerMessage {
|
||||
|
||||
repeated ServerCard knownServers = 7;
|
||||
|
||||
Invitation invitation = 8;
|
||||
Invitation invitation = 8; // invitation answer, for the third steps of any invitation
|
||||
|
||||
}
|
||||
|
||||
@ -160,13 +161,15 @@ message UserMessage {
|
||||
Location currentLocation = 10;
|
||||
|
||||
bytes appdata = 11;
|
||||
|
||||
Invitation invitation = 12;
|
||||
}
|
||||
|
||||
message File {
|
||||
string filename=1;
|
||||
uint64 size=2;
|
||||
uint32 chunk=3;
|
||||
bytes data=4;
|
||||
string filename=1; // the proposed filename
|
||||
uint64 size=2; // the file size
|
||||
uint32 chunk=3; // the chunk counter if file is sent by chunks
|
||||
bytes data=4; // the file/chunk content
|
||||
}
|
||||
|
||||
message Location {
|
||||
|
Reference in New Issue
Block a user