Skip to content

Commit

Permalink
feat(core): message flow prototypes (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
moul committed Aug 2, 2018
1 parent 0719773 commit 236cb5e
Show file tree
Hide file tree
Showing 9 changed files with 779 additions and 64 deletions.
289 changes: 261 additions & 28 deletions core/api/node/service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions core/api/node/service.proto
Expand Up @@ -35,6 +35,7 @@ service Service {
rpc ConversationCreate(berty.entity.Conversation) returns (berty.entity.Conversation);
rpc ConversationList(Void) returns (stream berty.entity.Conversation);
rpc ConversationInvite(berty.entity.ConversationMember) returns (berty.entity.Conversation);
rpc ConversationAddMessage(ConversationAddMessageInput) returns (berty.p2p.Event);
//rpc ConversationLeave(berty.entity.Conversation) returns (berty.entity.Conversation);
//rpc ConversationJoinRequest(berty.entity.Conversation) returns (berty.entity.Conversation);
//rpc ConverstionAcceptJoinRequest(berty.entity.Conversation) returns (berty.entity.Conversation);
Expand All @@ -45,4 +46,9 @@ message ContactRequestInput {
string intro_text = 2;
}

message ConversationAddMessageInput {
berty.entity.Conversation conversation = 1;
berty.entity.Message message = 2;
}

message Void {}

0 comments on commit 236cb5e

Please sign in to comment.