Skip to content

Commit

Permalink
fix: ViberVideoRequest TTL field
Browse files Browse the repository at this point in the history
  • Loading branch information
SMadani committed Oct 17, 2024
1 parent e1d48fb commit 354d02b
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public abstract class ViberRequest extends MessageRequest {
protected ViberRequest(Builder<?, ?> builder, MessageType messageType) {
super(builder, Channel.VIBER, messageType);
viberService = ViberService.construct(
builder.category, ttl, builder.viberType,
builder.category, builder.ttl, builder.viberType,
Action.construct(builder.actionUrl, builder.actionText),
builder.duration, builder.fileSize
);
Expand All @@ -52,7 +52,7 @@ public ViberService getViberService() {
@SuppressWarnings("unchecked")
protected abstract static class Builder<M extends ViberRequest, B extends Builder<? extends M, ? extends B>> extends MessageRequest.Builder<M, B> {
protected Category category;
protected Integer duration, fileSize;
protected Integer duration, fileSize, ttl;
protected String viberType, actionUrl, actionText;

/**
Expand All @@ -78,7 +78,8 @@ public B category(Category category) {
*/
@Override
public B ttl(int ttl) {
return super.ttl(ttl);
this.ttl = ttl;
return (B) this;
}

/**
Expand Down

0 comments on commit 354d02b

Please sign in to comment.