[Move] Core, Event-API(Event), Framework-API, Template-API(Template) 更改模块名以规范命名;

[Move] :Event-API 更改模块名(原 'Event');
[Move] :Template-API 更改模块名(原 'Template');
[Change] Project/pom.xml 适配更改;
[Change] :Core, :Framework-API 适配更改;
This commit is contained in:
LamGC 2021-02-13 13:09:16 +08:00
parent 612956b594
commit 711c80175e
Signed by: LamGC
GPG Key ID: 6C5AE2A913941E1D
19 changed files with 12 additions and 11 deletions

View File

@ -26,7 +26,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>ContentGrabbingJi-Event</artifactId>
<artifactId>ContentGrabbingJi-Event-api</artifactId>
</project>

View File

@ -26,7 +26,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>ContentGrabbingJi-Template</artifactId>
<artifactId>ContentGrabbingJi-Template-api</artifactId>
<properties>
<maven.compiler.source>8</maven.compiler.source>

View File

@ -46,7 +46,7 @@
</dependency>
<dependency>
<groupId>net.lamgc</groupId>
<artifactId>ContentGrabbingJi-Event</artifactId>
<artifactId>ContentGrabbingJi-Event-api</artifactId>
<version>3.0.0-alpha-SNAPSHOT</version>
</dependency>
<dependency>

View File

@ -42,7 +42,7 @@
<dependency>
<groupId>net.lamgc</groupId>
<artifactId>ContentGrabbingJi-Event</artifactId>
<artifactId>ContentGrabbingJi-Event-api</artifactId>
<version>3.0.0-alpha-SNAPSHOT</version>
</dependency>
<dependency>

View File

@ -20,6 +20,7 @@ package net.lamgc.cgj.bot.framework.message;
import net.lamgc.cgj.bot.event.AbstractEventObject;
import net.lamgc.cgj.bot.framework.Platform;
import java.util.Locale;
import java.util.Objects;
import java.util.ResourceBundle;
@ -50,7 +51,7 @@ public abstract class AbstractMessageEvent extends AbstractEventObject {
* <p> 如果激活 i18n 的话就会使用到该属性, Bot 将使用对应的消息模板构建回复消息内容.
* <p> Framework 不提供时将使用内置默认语言包.
*/
private ResourceBundle resourceBundle = null;
private Locale locale = null;
protected AbstractMessageEvent(
Platform fromPlatform,
@ -87,12 +88,12 @@ public abstract class AbstractMessageEvent extends AbstractEventObject {
return content;
}
public ResourceBundle getResourceBundle() {
return resourceBundle;
public Locale getLocale() {
return locale;
}
public void setResourceBundle(ResourceBundle resourceBundle) {
this.resourceBundle = resourceBundle;
public void setLocale(Locale locale) {
this.locale = locale;
}
public MessageSender getSender() {

View File

@ -35,11 +35,11 @@
<module>ContentGrabbingJi-CacheStore-redis</module>
<module>ContentGrabbingJi-CacheStore-local</module>
<module>ContentGrabbingJi-common</module>
<module>ContentGrabbingJi-Event</module>
<module>ContentGrabbingJi-Event-api</module>
<module>ContentGrabbingJi-Command-api</module>
<module>ContentGrabbingJi-Command-pixiv</module>
<module>ContentGrabbingJi-framework-telegrambots</module>
<module>ContentGrabbingJi-Template</module>
<module>ContentGrabbingJi-Template-api</module>
<module>ContentGrabbingJi-framework-OneBot</module>
</modules>