works.chatterbox.hooks.ircchannels.api.modes.ModesAPI.java Source code

Java tutorial

Introduction

Here is the source code for works.chatterbox.hooks.ircchannels.api.modes.ModesAPI.java

Source

/*
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */
package works.chatterbox.hooks.ircchannels.api.modes;

import com.google.common.base.Preconditions;
import org.jetbrains.annotations.NotNull;
import works.chatterbox.hooks.ircchannels.IRCChannels;
import works.chatterbox.hooks.ircchannels.channels.modes.Modes;

public class ModesAPI {

    private final Modes modes;

    public ModesAPI(@NotNull final IRCChannels ircChannels) {
        Preconditions.checkNotNull(ircChannels, "ircChannels was null");
        this.modes = new Modes(ircChannels);
    }

    public Modes getModes() {
        return this.modes;
    }

}