Skip to content

Commit

Permalink
♻️ refactor: refactor codebase #2
Browse files Browse the repository at this point in the history
  • Loading branch information
pnguyen215 committed Jun 15, 2024
1 parent de1a5b8 commit 26f107b
Show file tree
Hide file tree
Showing 13 changed files with 40 additions and 16 deletions.
2 changes: 1 addition & 1 deletion plugin/src/main/groovy/org/bot4j/slack/common/Slack4j.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import kong.unirest.HttpResponse;
import kong.unirest.JsonNode;
import kong.unirest.Unirest;
import org.bot4j.slack.model.onlyrd.AbstractSlackClass;
import org.bot4j.slack.model.rd.AbstractSlackClass;
import org.unify4j.common.*;
import org.unify4j.model.builder.HttpStatusBuilder;
import org.unify4j.model.builder.HttpWrapBuilder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.bot4j.slack.model.builder;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.bot4j.slack.model.options.SlackConnections;
import org.bot4j.slack.model.request.SlackConnections;

import java.io.Serializable;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.bot4j.slack.model.builder;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.bot4j.slack.model.options.SlackOptions;
import org.bot4j.slack.model.request.SlackOptions;
import org.unify4j.common.UniqueId4j;

import java.io.Serializable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package org.bot4j.slack.model.onlyrd;
package org.bot4j.slack.model.rd;

import org.bot4j.slack.model.builder.SlackConnectionBuilder;
import org.bot4j.slack.model.builder.SlackOptionBuilder;
import org.bot4j.slack.model.options.SlackConnections;
import org.bot4j.slack.model.options.SlackOptions;
import org.bot4j.slack.model.request.SlackConnections;
import org.bot4j.slack.model.request.SlackOptions;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.unify4j.model.response.WrapResponse;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.bot4j.slack.model.options;
package org.bot4j.slack.model.request;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.bot4j.slack.model.options;
package org.bot4j.slack.model.request;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import kong.unirest.HttpResponse;
import kong.unirest.JsonNode;
import kong.unirest.Unirest;
import org.bot4j.telegram.model.onlyrd.AbstractTelegramClass;
import org.bot4j.telegram.model.rd.AbstractTelegramClass;
import org.unify4j.common.Json4j;
import org.unify4j.common.Object4j;
import org.unify4j.common.String4j;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.bot4j.telegram.model.builder;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.bot4j.telegram.model.options.TelegramConnections;
import org.bot4j.telegram.model.request.TelegramConnections;

import java.io.Serializable;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.bot4j.telegram.model.builder;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.bot4j.telegram.model.options.TelegramOptions;
import org.bot4j.telegram.model.request.TelegramOptions;
import org.unify4j.common.UniqueId4j;

import java.io.Serializable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package org.bot4j.telegram.model.onlyrd;
package org.bot4j.telegram.model.rd;

import org.bot4j.telegram.model.builder.TelegramConnectionBuilder;
import org.bot4j.telegram.model.builder.TelegramOptionBuilder;
import org.bot4j.telegram.model.enums.TelegramTextMode;
import org.bot4j.telegram.model.options.TelegramConnections;
import org.bot4j.telegram.model.options.TelegramOptions;
import org.bot4j.telegram.model.request.TelegramConnections;
import org.bot4j.telegram.model.request.TelegramOptions;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.unify4j.common.Class4j;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.bot4j.telegram.model.options;
package org.bot4j.telegram.model.request;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.bot4j.telegram.model.options;
package org.bot4j.telegram.model.request;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package org.bot4j.viber.model.enums;

public enum ViberTextMode {
TEXT("text"),
PICTURE("picture"),
VIDEO("video"),
FILE("file"),
LOCATION("location"),
CONTACT("contact"),
STICKER("sticker"),
CAROUSEL("carousel"),
CONTENT("content"),
URL("url");

ViberTextMode(String value) {
this.value = value;
}

private final String value;

public String getValue() {
return value;
}
}

0 comments on commit 26f107b

Please # to comment.