Skip to content
Snippets Groups Projects
Commit 941ff3b4 authored by Vlastimil Zima's avatar Vlastimil Zima
Browse files

Merge branch '27330-update-id'

parents 953aba9a 7f4fab16
Branches
Tags
No related merge requests found
......@@ -5,7 +5,13 @@ import "google/protobuf/timestamp.proto";
package Fred.Messenger.Api.Email;
message Uuid
/*
Unique identifier
Because of database partitioning, messages can't be identified simply by an UUID.
An implementation-specific identifier is used instead.
*/
message Uid
{
string value = 1;
}
......@@ -49,7 +55,8 @@ Complete email message and its metadata
*/
message EmailEnvelope
{
Uuid uuid = 1;
// Email message unique identifier
Uid uid = 1;
google.protobuf.Timestamp create_datetime = 2;
google.protobuf.Timestamp send_datetime = 3;
google.protobuf.Timestamp delivery_datetime = 4;
......
......@@ -19,14 +19,15 @@ message SendEmailReply
Data data = 1;
message Data
{
Uuid uuid = 1;
// Email message unique identifier
Uid uid = 1;
}
}
message GetEmailRequest
{
// Email message UUID
Uuid uuid = 1;
// Email message unique identifier
Uid uid = 1;
}
message GetEmailReply
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment