-
Notifications
You must be signed in to change notification settings - Fork 947
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Codes are generated by openapi generator (#1234)
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
1 parent
ea6cac4
commit 260c049
Showing
5 changed files
with
138 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
...-messaging-api-client/src/main/java/com/linecorp/bot/messaging/model/ClipboardAction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} | ||
} |
70 changes: 70 additions & 0 deletions
70
...ng-api-client/src/main/java/com/linecorp/bot/messaging/model/ClipboardImagemapAction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters