aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/polyfrost/oneconfig/test/TestConfig.java
blob: 21259ac340ecea4e3c09ced610ca25d5ecdb3c9a (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
package io.polyfrost.oneconfig.test;

import io.polyfrost.oneconfig.annotations.Category;
import io.polyfrost.oneconfig.annotations.Switch;
import io.polyfrost.oneconfig.annotations.TextField;
import io.polyfrost.oneconfig.interfaces.Config;

import java.io.File;

public class TestConfig extends Config {

    @Switch(name = "Cool Switch")
    public static boolean toggle = false;

    @Category(name = "Cool Category")
    public static class category {
        @TextField(name = "Cool text field")
        public static String text = "e";
    }

    public TestConfig() {
        super(new File("./config/testConfig.json"));
    }
}