Удалил ненужные классы
This commit is contained in:
parent
7975a28955
commit
54492e551b
@ -1,23 +0,0 @@
|
||||
package org.sadtech.bot.vcs.bitbucket.app.utils;
|
||||
|
||||
import lombok.AccessLevel;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.sadtech.bot.vcs.bitbucket.sdk.domain.CommentState;
|
||||
import org.sadtech.bot.vcs.core.domain.TaskStatus;
|
||||
import org.sadtech.bot.vcs.core.exception.NotFoundException;
|
||||
|
||||
@NoArgsConstructor(access = AccessLevel.PRIVATE)
|
||||
public class Converter {
|
||||
|
||||
public static TaskStatus taskStatus(CommentState commentState) {
|
||||
switch (commentState) {
|
||||
case OPEN:
|
||||
return TaskStatus.OPEN;
|
||||
case RESOLVED:
|
||||
return TaskStatus.RESOLVED;
|
||||
default:
|
||||
throw new NotFoundException("Неизвестный статус задачи");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -1,12 +0,0 @@
|
||||
package org.sadtech.bot.vcs.core.domain;
|
||||
|
||||
/**
|
||||
* TODO: Добавить комментарий енума.
|
||||
*
|
||||
* @author upagge [31.01.2020]
|
||||
*/
|
||||
public enum AuthType {
|
||||
|
||||
TOKEN, LOGIN, TELEGRAM_ID, PASSWORD
|
||||
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
package org.sadtech.bot.vcs.core.domain;
|
||||
|
||||
/**
|
||||
* TODO: Добавить описание класса.
|
||||
*
|
||||
* @author upagge [02.02.2020]
|
||||
*/
|
||||
public class UserAuth {
|
||||
|
||||
private String login;
|
||||
private String password;
|
||||
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
package org.sadtech.bot.vcs.core.exception;
|
||||
|
||||
public class CreateException extends BitbucketBotException {
|
||||
|
||||
public CreateException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
}
|
@ -40,7 +40,7 @@ public enum Smile {
|
||||
BUILD("♻️");
|
||||
|
||||
@Getter
|
||||
private String value;
|
||||
private final String value;
|
||||
|
||||
public static Smile statusPr(LocalDateTime updateDate) {
|
||||
int periodDay = Period.between(updateDate.toLocalDate(), LocalDate.now()).getDays();
|
||||
|
Loading…
Reference in New Issue
Block a user