aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/server/protocol/ProtocolReply.java
blob: d9d36a5db29201645a4bb361f79adb33ae8df61b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.juick.server.protocol;

import java.util.Optional;

/**
 * Created by vitalyster on 08.04.2016.
 */
public class ProtocolReply {

    private Optional<String> json;
    private String description;

    public ProtocolReply(String text, Optional<String> json) {
        this.description = text;
        this.json = json;
    }
    public String getDescription() {
        return description;
    }
    public Optional<String> getJson() {
        return json;
    }
}