dev.struchkov.godfather.main.domain.EventContainer Maven / Gradle / Ivy
package dev.struchkov.godfather.main.domain;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import dev.struchkov.godfather.main.domain.jackson.TelegramEventContainerDeserializer;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
@JsonDeserialize(using = TelegramEventContainerDeserializer.class)
public class EventContainer {
private Class type;
private T object;
}