imbrobits.loosh.core.Config.java Source code

Java tutorial

Introduction

Here is the source code for imbrobits.loosh.core.Config.java

Source

/*
 * MIT License
 *
 * Copyright (c) 2016 Nhan Nguyen
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

package imbrobits.loosh.core;

import io.vertx.core.json.JsonObject;

public class Config extends JsonObject {

    public static final String HTTP_PORT = "http.port";
    public static final String TODOIST_CLIENT_SECRET = "todoist.client_secret";
    public static final String TODOIST_CLIENT_ID = "todoist.client_id";
    public static final String DB_URL = "db.url";
    public static final String DB_PORT = "db.port";
    public static final String DB_USERNAME = "db.username";
    public static final String DB_PWD = "db.pwd";
    public static final String DB_NAME = "db.name";

    // TODO replace this with unmodifiable map

}