commit | 678ca4b4e4e2eb117c7146088fbf279b70a2702c | [log] [tgz] |
---|---|---|
author | Yingdi Yu <yuyingdi@gmail.com> | Wed Oct 30 11:25:07 2013 -0700 |
committer | Yingdi Yu <yuyingdi@gmail.com> | Wed Oct 30 11:25:07 2013 -0700 |
tree | 350e664baed08fe2bf52905285789dc47dff024d | |
parent | 89da3050da4a0424dc68a6d81d61f71cff26254b [diff] |
Add chatbuf.proto
diff --git a/src/chatbuf.proto b/src/chatbuf.proto new file mode 100644 index 0000000..6ea6ea4 --- /dev/null +++ b/src/chatbuf.proto
@@ -0,0 +1,16 @@ +package SyncDemo; + +message ChatMessage { + required string to = 1; + required string from = 2; + enum ChatMessageType { + CHAT = 0; + HELLO = 1; + LEAVE = 2; + JOIN = 3; + OTHER = 4; + } + required ChatMessageType type = 3 [default = CHAT]; + optional string data = 4; + required int32 timestamp = 5; +}