/*
* Copyright 2018 John Grosh (jagrosh).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.jagrosh.vortex;
/**
*
* @author John Grosh (jagrosh)
*/
public enum Action
{
SILENTBAN("banned", "\uD83D\uDD28", 16), // 🔨
NORAIDMODE("", "\uD83D\uDD13", 15), // 🔓
PARDON( "pardoned", "\uD83C\uDFF3", 14), // 🏳
RAIDMODE( "", "\uD83D\uDD12", 13), // 🔒
STRIKE( "", "\uD83D\uDEA9", 12), // 🚩
UNMUTE( "unmuted", "\uD83D\uDD0A", 11), // 🔊
UNBAN( "unbanned", "\uD83D\uDD27", 10), // 🔧
BAN( "banned", "\uD83D\uDD28", 9), // 🔨
TEMPBAN( "tempbanned", "\u23F2", 8), // ⏲
SOFTBAN( "softbanned", "\uD83C\uDF4C", 7), // 🍌
KICK( "kicked", "\uD83D\uDC62", 6), // 👢
MUTE( "muted", "\uD83D\uDD07", 5), // 🔇
TEMPMUTE( "tempmuted", "\uD83E\uDD10", 4), // 🤐
WARN( "warned", "\uD83D\uDDE3", 3), // 🗣
CLEAN( "cleaned", "\uD83D\uDDD1", 2), // 🗑
DELETE( "deleted", "\uD83D\uDDD1", 1), // 🗑
NONE( "did not act", "\uD83D\uDE36", 0); // 😶
private final String verb;
private final String emoji;
private final int bit;
private Action(String verb, String emoji, int bit)
{
this.verb = verb;
this.emoji = emoji;
this.bit = bit;
}
public String getVerb()
{
return verb;
}
public String getEmoji()
{
return emoji;
}
public int getBit()
{
return bit;
}
public static Action fromBit(int bit)
{
for(Action a: values())
if(a.bit == bit)
return a;
return null;
}
}