1
mirror of https://github.com/carm-outsource/TimeReward.git synced 2026-06-05 00:25:15 +08:00

添加示例配置文件。

This commit is contained in:
2022-02-28 04:54:50 +08:00
parent 8f15e30d98
commit ca5859e5bc
2 changed files with 87 additions and 0 deletions
@@ -0,0 +1,63 @@
package cc.carm.plugin.timereward.data;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.List;
import java.util.Objects;
public class RewardContents {
public final @NotNull String id;
private final long time;
private final @Nullable String name;
private final @Nullable String permission;
private final @NotNull List<String> commands;
public RewardContents(@NotNull String id, long time,
@Nullable String name, @Nullable String permission,
@NotNull List<String> commands) {
this.id = id;
this.time = time;
this.name = name;
this.permission = permission;
this.commands = commands;
}
public String getRewardID() {
return id;
}
public long getTime() {
return time;
}
public @Nullable String getName() {
return name;
}
public @Nullable String getPermission() {
return permission;
}
public @NotNull List<String> getCommands() {
return commands;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
RewardContents that = (RewardContents) o;
return id.equals(that.id);
}
@Override
public int hashCode() {
return Objects.hash(id);
}
}