Skip to content

Commit

Permalink
Codes are generated by openapi generator (#1238)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions <[email protected]>
  • Loading branch information
github-actions[bot] and github-actions authored Feb 6, 2024
1 parent f79a384 commit 05d4186
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 3 deletions.
1 change: 1 addition & 0 deletions line-bot-webhook/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ src/main/java/com/linecorp/bot/webhook/model/Emoji.java
src/main/java/com/linecorp/bot/webhook/model/Event.java
src/main/java/com/linecorp/bot/webhook/model/EventMode.java
src/main/java/com/linecorp/bot/webhook/model/FileMessageContent.java
src/main/java/com/linecorp/bot/webhook/model/FollowDetail.java
src/main/java/com/linecorp/bot/webhook/model/FollowEvent.java
src/main/java/com/linecorp/bot/webhook/model/GroupSource.java
src/main/java/com/linecorp/bot/webhook/model/ImageMessageContent.java
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*
* Copyright 2023 LINE Corporation
*
* LINE Corporation licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/

/**
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech Do not edit the class manually.
*/
package com.linecorp.bot.webhook.model;



import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;

/** FollowDetail */
@JsonInclude(Include.NON_NULL)
@javax.annotation.Generated(value = "com.linecorp.bot.codegen.LineJavaCodegenGenerator")
public record FollowDetail(
/** Whether a user has added your LINE Official Account as a friend or unblocked. */
@JsonProperty("isUnblocked") Boolean isUnblocked) {

public static class Builder {
private Boolean isUnblocked;

public Builder(Boolean isUnblocked) {

this.isUnblocked = isUnblocked;
}

public FollowDetail build() {
return new FollowDetail(isUnblocked);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ public record FollowEvent(
/** Get deliveryContext */
@JsonProperty("deliveryContext") DeliveryContext deliveryContext,
/** Reply token used to send reply message to this event */
@JsonProperty("replyToken") String replyToken)
@JsonProperty("replyToken") String replyToken,
/** Get follow */
@JsonProperty("follow") FollowDetail follow)
implements Event, ReplyEvent {

public static class Builder {
Expand All @@ -59,13 +61,15 @@ public static class Builder {
private String webhookEventId;
private DeliveryContext deliveryContext;
private String replyToken;
private FollowDetail follow;

public Builder(
Long timestamp,
EventMode mode,
String webhookEventId,
DeliveryContext deliveryContext,
String replyToken) {
String replyToken,
FollowDetail follow) {

this.timestamp = timestamp;

Expand All @@ -76,6 +80,8 @@ public Builder(
this.deliveryContext = deliveryContext;

this.replyToken = replyToken;

this.follow = follow;
}

public Builder source(Source source) {
Expand All @@ -84,7 +90,8 @@ public Builder source(Source source) {
}

public FollowEvent build() {
return new FollowEvent(source, timestamp, mode, webhookEventId, deliveryContext, replyToken);
return new FollowEvent(
source, timestamp, mode, webhookEventId, deliveryContext, replyToken, follow);
}
}
}

0 comments on commit 05d4186

Please sign in to comment.