blob: 337f6bb5c8f3b3b9e26103970fe5f80e3ea18ccd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
/* Copyright (c) 2016, Isode Limited, London, England.
* All rights reserved.
*
* Acquisition and use of this software and related materials for any
* purpose requires a written license agreement from Isode Limited,
* or a written license from an organisation licensed by Isode Limited
* to grant such a license.
*
*/
package com.isode.stroke.elements;
public class WhiteboardPayload extends Payload {
private String data_;
private Type type_;
private WhiteboardElement element_;
private WhiteboardOperation operation_;
public enum Type {
UnknownType,
Data,
SessionRequest,
SessionAccept,
SessionTerminate;
}
public WhiteboardPayload() {
this(Type.Data);
}
public WhiteboardPayload(Type type) {
type_ = type;
}
public void setData(String data) {
data_ = data;
}
public String getData() {
return data_;
}
public Type getType() {
return type_;
}
public void setType(Type type) {
type_ = type;
}
public WhiteboardElement getElement() {
return element_;
}
public void setElement(WhiteboardElement element) {
element_ = element;
}
public WhiteboardOperation getOperation() {
return operation_;
}
public void setOperation(WhiteboardOperation operation) {
operation_ = operation;
}
}
|