Skip to content

Commit 05d4186

Browse files
github-actions[bot]github-actions
andauthored
Codes are generated by openapi generator (#1238)
Co-authored-by: github-actions <[email protected]>
1 parent f79a384 commit 05d4186

File tree

3 files changed

+59
-3
lines changed

3 files changed

+59
-3
lines changed

line-bot-webhook/.openapi-generator/FILES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ src/main/java/com/linecorp/bot/webhook/model/Emoji.java
1818
src/main/java/com/linecorp/bot/webhook/model/Event.java
1919
src/main/java/com/linecorp/bot/webhook/model/EventMode.java
2020
src/main/java/com/linecorp/bot/webhook/model/FileMessageContent.java
21+
src/main/java/com/linecorp/bot/webhook/model/FollowDetail.java
2122
src/main/java/com/linecorp/bot/webhook/model/FollowEvent.java
2223
src/main/java/com/linecorp/bot/webhook/model/GroupSource.java
2324
src/main/java/com/linecorp/bot/webhook/model/ImageMessageContent.java
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/*
2+
* Copyright 2023 LINE Corporation
3+
*
4+
* LINE Corporation licenses this file to you under the Apache License,
5+
* version 2.0 (the "License"); you may not use this file except in compliance
6+
* with the License. You may obtain a copy of the License at:
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13+
* License for the specific language governing permissions and limitations
14+
* under the License.
15+
*/
16+
17+
/**
18+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
19+
* https://openapi-generator.tech Do not edit the class manually.
20+
*/
21+
package com.linecorp.bot.webhook.model;
22+
23+
24+
25+
import com.fasterxml.jackson.annotation.JsonInclude;
26+
import com.fasterxml.jackson.annotation.JsonInclude.Include;
27+
import com.fasterxml.jackson.annotation.JsonProperty;
28+
29+
/** FollowDetail */
30+
@JsonInclude(Include.NON_NULL)
31+
@javax.annotation.Generated(value = "com.linecorp.bot.codegen.LineJavaCodegenGenerator")
32+
public record FollowDetail(
33+
/** Whether a user has added your LINE Official Account as a friend or unblocked. */
34+
@JsonProperty("isUnblocked") Boolean isUnblocked) {
35+
36+
public static class Builder {
37+
private Boolean isUnblocked;
38+
39+
public Builder(Boolean isUnblocked) {
40+
41+
this.isUnblocked = isUnblocked;
42+
}
43+
44+
public FollowDetail build() {
45+
return new FollowDetail(isUnblocked);
46+
}
47+
}
48+
}

line-bot-webhook/src/main/java/com/linecorp/bot/webhook/model/FollowEvent.java

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ public record FollowEvent(
4949
/** Get deliveryContext */
5050
@JsonProperty("deliveryContext") DeliveryContext deliveryContext,
5151
/** Reply token used to send reply message to this event */
52-
@JsonProperty("replyToken") String replyToken)
52+
@JsonProperty("replyToken") String replyToken,
53+
/** Get follow */
54+
@JsonProperty("follow") FollowDetail follow)
5355
implements Event, ReplyEvent {
5456

5557
public static class Builder {
@@ -59,13 +61,15 @@ public static class Builder {
5961
private String webhookEventId;
6062
private DeliveryContext deliveryContext;
6163
private String replyToken;
64+
private FollowDetail follow;
6265

6366
public Builder(
6467
Long timestamp,
6568
EventMode mode,
6669
String webhookEventId,
6770
DeliveryContext deliveryContext,
68-
String replyToken) {
71+
String replyToken,
72+
FollowDetail follow) {
6973

7074
this.timestamp = timestamp;
7175

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

7882
this.replyToken = replyToken;
83+
84+
this.follow = follow;
7985
}
8086

8187
public Builder source(Source source) {
@@ -84,7 +90,8 @@ public Builder source(Source source) {
8490
}
8591

8692
public FollowEvent build() {
87-
return new FollowEvent(source, timestamp, mode, webhookEventId, deliveryContext, replyToken);
93+
return new FollowEvent(
94+
source, timestamp, mode, webhookEventId, deliveryContext, replyToken, follow);
8895
}
8996
}
9097
}

0 commit comments

Comments
 (0)