aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/gnunet/secretsharing/messages/GenerateMessage.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/gnunet/secretsharing/messages/GenerateMessage.java')
-rw-r--r--src/main/java/org/gnunet/secretsharing/messages/GenerateMessage.java51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/main/java/org/gnunet/secretsharing/messages/GenerateMessage.java b/src/main/java/org/gnunet/secretsharing/messages/GenerateMessage.java
new file mode 100644
index 0000000..b1ce6b2
--- /dev/null
+++ b/src/main/java/org/gnunet/secretsharing/messages/GenerateMessage.java
@@ -0,0 +1,51 @@
1/*
2
3 This file is part of GNUnet.
4 (C) 2014 Christian Grothoff (and other contributing authors)
5
6 GNUnet is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published
8 by the Free Software Foundation; either version 3, or (at your
9 option) any later version.
10
11 GNUnet is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with GNUnet; see the file COPYING. If not, write to the
18 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA.
20
21 */
22
23package org.gnunet.secretsharing.messages;
24
25import org.gnunet.construct.NestedMessage;
26import org.gnunet.construct.UInt16;
27import org.gnunet.construct.UnionCase;
28import org.gnunet.construct.VariableSizeArray;
29import org.gnunet.util.*;
30
31
32@UnionCase(780)
33public class GenerateMessage implements GnunetMessage.Body {
34 @NestedMessage
35 public HashCode sessionId;
36
37 @NestedMessage
38 public AbsoluteTimeMessage start;
39
40 @NestedMessage
41 public AbsoluteTimeMessage deadline;
42
43 @UInt16
44 public int threshold;
45
46 @UInt16
47 public int numPeers;
48
49 @VariableSizeArray(lengthField = "numPeers")
50 public PeerIdentity[] peers;
51}