Skip to content

Commit

Permalink
Codes are generated by openapi generator (#1234)
Browse files Browse the repository at this point in the history
In the Messaging API, we've added the [clipboard
action](https://developers.line.biz/en/reference/messaging-api/#clipboard-action)
for users to copy text to the clipboard. This new feature allows users
to more easily copy coupon codes and other text.

news:
https://developers.line.biz/en/news/2024/02/05/messaging-api-updated/

Note only the latest app(version >= `14.0.0`) supports this feature.
Please update your LINE app to try this feature.

Co-authored-by: github-actions <[email protected]>
  • Loading branch information
github-actions[bot] and github-actions authored Feb 5, 2024
1 parent ea6cac4 commit 260c049
Show file tree
Hide file tree
Showing 5 changed files with 138 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ src/main/java/com/linecorp/bot/messaging/model/CameraRollAction.java
src/main/java/com/linecorp/bot/messaging/model/CarouselColumn.java
src/main/java/com/linecorp/bot/messaging/model/CarouselTemplate.java
src/main/java/com/linecorp/bot/messaging/model/ChatReference.java
src/main/java/com/linecorp/bot/messaging/model/ClipboardAction.java
src/main/java/com/linecorp/bot/messaging/model/ClipboardImagemapAction.java
src/main/java/com/linecorp/bot/messaging/model/ConfirmTemplate.java
src/main/java/com/linecorp/bot/messaging/model/CreateRichMenuAliasRequest.java
src/main/java/com/linecorp/bot/messaging/model/DatetimePickerAction.java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
@JsonSubTypes({
@JsonSubTypes.Type(value = CameraAction.class, name = "camera"),
@JsonSubTypes.Type(value = CameraRollAction.class, name = "cameraRoll"),
@JsonSubTypes.Type(value = ClipboardAction.class, name = "clipboard"),
@JsonSubTypes.Type(value = DatetimePickerAction.class, name = "datetimepicker"),
@JsonSubTypes.Type(value = LocationAction.class, name = "location"),
@JsonSubTypes.Type(value = MessageAction.class, name = "message"),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/*
* 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.messaging.model;



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

/**
* ClipboardAction
*
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#clipboard-action">
* Documentation</a>
*/
@JsonTypeName("clipboard")
@JsonInclude(Include.NON_NULL)
@javax.annotation.Generated(value = "com.linecorp.bot.codegen.LineJavaCodegenGenerator")
public record ClipboardAction(
/** Label for the action. */
@JsonProperty("label") String label,
/** Text that is copied to the clipboard. Max character limit: 1000 */
@JsonProperty("clipboardText") String clipboardText)
implements Action {

public static class Builder {
private String label;
private String clipboardText;

public Builder(String clipboardText) {

this.clipboardText = clipboardText;
}

public Builder label(String label) {
this.label = label;
return this;
}

public ClipboardAction build() {
return new ClipboardAction(label, clipboardText);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
/*
* 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.messaging.model;



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

/**
* ClipboardImagemapAction
*
* @see <a
* href="https://developers.line.biz/en/reference/messaging-api/#imagemap-clipboard-action-object">
* Documentation</a>
*/
@JsonTypeName("clipboard")
@JsonInclude(Include.NON_NULL)
@javax.annotation.Generated(value = "com.linecorp.bot.codegen.LineJavaCodegenGenerator")
public record ClipboardImagemapAction(
/** Get area */
@JsonProperty("area") ImagemapArea area,
/** Text that is copied to the clipboard. Max character limit: 1000 */
@JsonProperty("clipboardText") String clipboardText,
/** Get label */
@JsonProperty("label") String label)
implements ImagemapAction {

public static class Builder {
private ImagemapArea area;
private String clipboardText;
private String label;

public Builder(ImagemapArea area, String clipboardText) {

this.area = area;

this.clipboardText = clipboardText;
}

public Builder label(String label) {
this.label = label;
return this;
}

public ClipboardImagemapAction build() {
return new ClipboardImagemapAction(area, clipboardText, label);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

/** ImagemapAction */
@JsonSubTypes({
@JsonSubTypes.Type(value = ClipboardImagemapAction.class, name = "clipboard"),
@JsonSubTypes.Type(value = MessageImagemapAction.class, name = "message"),
@JsonSubTypes.Type(value = URIImagemapAction.class, name = "uri"),
})
Expand Down

0 comments on commit 260c049

Please sign in to comment.