Skip to content

Commit

Permalink
cleaned up README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lpandzic committed Jun 21, 2023
1 parent 6698d2a commit ff9e0f5
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,21 +94,35 @@ enum Channel {
}
}

@Getter
@AllArgsConstructor
enum Direction implements TypeProvider<Message> {
INBOUND(InboundMessage.class),
OUTBOUND(OutboundMessage.class);

private final Class<? extends Message> type;

Direction(Class<? extends Message> type) {
this.type = type;
}

@Override
public Class<? extends Message> getType() {
return type;
}
}

@Getter
@AllArgsConstructor
public enum CommonContentType implements TypeProvider, ContentType {
public enum CommonContentType implements TypeProvider<CommonContent>, ContentType {
TEXT(TextContent.class);

private final Class<? extends CommonContent> type;

CommonContentType(Class<? extends CommonContent> type) {
this.type = type;
}

@Override
public Class<? extends CommonContent> getType() {
return type;
}
}

@JsonTypeResolveWith(InboundMessageJsonTypeResolver.class)
Expand Down

0 comments on commit ff9e0f5

Please sign in to comment.