aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/server/helpers/ApplicationStatus.java
blob: 61109c47edf225a151a9b8e52507395d36b96eb8 (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
24
25
26
27
28
29
30
31
32
33
34
35
package com.juick.server.helpers;

import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * Created by vt on 03/09/16.
 */
public class ApplicationStatus {
    private boolean connected;
    private boolean crosspostEnabled;

    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("connected", connected)
                .append("crosspostEnabled", crosspostEnabled)
                .toString();
    }

    public boolean isConnected() {
        return connected;
    }

    public void setConnected(boolean connected) {
        this.connected = connected;
    }

    public boolean isCrosspostEnabled() {
        return crosspostEnabled;
    }

    public void setCrosspostEnabled(boolean crosspostEnabled) {
        this.crosspostEnabled = crosspostEnabled;
    }
}