-
Notifications
You must be signed in to change notification settings - Fork 948
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 (#1467)
Co-authored-by: github-actions <[email protected]>
- Loading branch information
1 parent
2207f67
commit 42ab9a7
Showing
10 changed files
with
408 additions
and
2 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
49 changes: 49 additions & 0 deletions
49
...messaging-api-client/src/main/java/com/linecorp/bot/messaging/model/AllMentionTarget.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,49 @@ | ||
/* | ||
* 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.JsonTypeName; | ||
|
||
/** | ||
* AllMentionTarget | ||
* | ||
* @see <a | ||
* href="https://developers.line.biz/en/reference/messaging-api/#text-message-v2-mentionee-all"> | ||
* Documentation</a> | ||
*/ | ||
@JsonTypeName("all") | ||
@JsonInclude(Include.NON_NULL) | ||
@javax.annotation.Generated(value = "com.linecorp.bot.codegen.LineJavaCodegenGenerator") | ||
public record AllMentionTarget() implements MentionTarget { | ||
|
||
public static class Builder { | ||
|
||
public Builder() {} | ||
|
||
public AllMentionTarget build() { | ||
return new AllMentionTarget(); | ||
} | ||
} | ||
} |
62 changes: 62 additions & 0 deletions
62
...ng-api-client/src/main/java/com/linecorp/bot/messaging/model/EmojiSubstitutionObject.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,62 @@ | ||
/* | ||
* 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; | ||
|
||
/** | ||
* An object representing a emoji substitution. | ||
* | ||
* @see <a | ||
* href="https://developers.line.biz/en/reference/messaging-api/#text-message-v2-emoji-object"> | ||
* Documentation</a> | ||
*/ | ||
@JsonTypeName("emoji") | ||
@JsonInclude(Include.NON_NULL) | ||
@javax.annotation.Generated(value = "com.linecorp.bot.codegen.LineJavaCodegenGenerator") | ||
public record EmojiSubstitutionObject( | ||
/** Get productId */ | ||
@JsonProperty("productId") String productId, | ||
/** Get emojiId */ | ||
@JsonProperty("emojiId") String emojiId) | ||
implements SubstitutionObject { | ||
|
||
public static class Builder { | ||
private String productId; | ||
private String emojiId; | ||
|
||
public Builder(String productId, String emojiId) { | ||
|
||
this.productId = productId; | ||
|
||
this.emojiId = emojiId; | ||
} | ||
|
||
public EmojiSubstitutionObject build() { | ||
return new EmojiSubstitutionObject(productId, emojiId); | ||
} | ||
} | ||
} |
56 changes: 56 additions & 0 deletions
56
...-api-client/src/main/java/com/linecorp/bot/messaging/model/MentionSubstitutionObject.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,56 @@ | ||
/* | ||
* 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; | ||
|
||
/** | ||
* An object representing a mention substitution. | ||
* | ||
* @see <a | ||
* href="https://developers.line.biz/en/reference/messaging-api/#text-message-v2-mention-object"> | ||
* Documentation</a> | ||
*/ | ||
@JsonTypeName("mention") | ||
@JsonInclude(Include.NON_NULL) | ||
@javax.annotation.Generated(value = "com.linecorp.bot.codegen.LineJavaCodegenGenerator") | ||
public record MentionSubstitutionObject( | ||
/** Get mentionee */ | ||
@JsonProperty("mentionee") MentionTarget mentionee) implements SubstitutionObject { | ||
|
||
public static class Builder { | ||
private MentionTarget mentionee; | ||
|
||
public Builder(MentionTarget mentionee) { | ||
|
||
this.mentionee = mentionee; | ||
} | ||
|
||
public MentionSubstitutionObject build() { | ||
return new MentionSubstitutionObject(mentionee); | ||
} | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
...ot-messaging-api-client/src/main/java/com/linecorp/bot/messaging/model/MentionTarget.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,38 @@ | ||
/* | ||
* 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.JsonSubTypes; | ||
import com.fasterxml.jackson.annotation.JsonTypeInfo; | ||
|
||
/** MentionTarget */ | ||
@JsonSubTypes({ | ||
@JsonSubTypes.Type(value = AllMentionTarget.class, name = "all"), | ||
@JsonSubTypes.Type(value = UserMentionTarget.class, name = "user"), | ||
}) | ||
@JsonTypeInfo( | ||
use = JsonTypeInfo.Id.NAME, | ||
include = JsonTypeInfo.As.PROPERTY, | ||
property = "type", | ||
visible = true) | ||
public interface MentionTarget {} |
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
38 changes: 38 additions & 0 deletions
38
...ssaging-api-client/src/main/java/com/linecorp/bot/messaging/model/SubstitutionObject.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,38 @@ | ||
/* | ||
* 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.JsonSubTypes; | ||
import com.fasterxml.jackson.annotation.JsonTypeInfo; | ||
|
||
/** An object that defines the replacement value for a placeholder in the text. */ | ||
@JsonSubTypes({ | ||
@JsonSubTypes.Type(value = EmojiSubstitutionObject.class, name = "emoji"), | ||
@JsonSubTypes.Type(value = MentionSubstitutionObject.class, name = "mention"), | ||
}) | ||
@JsonTypeInfo( | ||
use = JsonTypeInfo.Id.NAME, | ||
include = JsonTypeInfo.As.PROPERTY, | ||
property = "type", | ||
visible = true) | ||
public interface SubstitutionObject {} |
91 changes: 91 additions & 0 deletions
91
...ot-messaging-api-client/src/main/java/com/linecorp/bot/messaging/model/TextMessageV2.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,91 @@ | ||
/* | ||
* 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; | ||
import java.util.Map; | ||
|
||
/** | ||
* TextMessageV2 | ||
* | ||
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#text-message-v2"> | ||
* Documentation</a> | ||
*/ | ||
@JsonTypeName("textV2") | ||
@JsonInclude(Include.NON_NULL) | ||
@javax.annotation.Generated(value = "com.linecorp.bot.codegen.LineJavaCodegenGenerator") | ||
public record TextMessageV2( | ||
/** Get quickReply */ | ||
@JsonProperty("quickReply") QuickReply quickReply, | ||
/** Get sender */ | ||
@JsonProperty("sender") Sender sender, | ||
/** Get text */ | ||
@JsonProperty("text") String text, | ||
/** | ||
* A mapping that specifies substitutions for parts enclosed in {} within the 'text' | ||
* field. | ||
*/ | ||
@JsonProperty("substitution") Map<String, SubstitutionObject> substitution, | ||
/** Quote token of the message you want to quote. */ | ||
@JsonProperty("quoteToken") String quoteToken) | ||
implements Message { | ||
|
||
public static class Builder { | ||
private QuickReply quickReply; | ||
private Sender sender; | ||
private String text; | ||
private Map<String, SubstitutionObject> substitution; | ||
private String quoteToken; | ||
|
||
public Builder(String text) { | ||
|
||
this.text = text; | ||
} | ||
|
||
public Builder quickReply(QuickReply quickReply) { | ||
this.quickReply = quickReply; | ||
return this; | ||
} | ||
|
||
public Builder sender(Sender sender) { | ||
this.sender = sender; | ||
return this; | ||
} | ||
|
||
public Builder substitution(Map<String, SubstitutionObject> substitution) { | ||
this.substitution = substitution; | ||
return this; | ||
} | ||
|
||
public Builder quoteToken(String quoteToken) { | ||
this.quoteToken = quoteToken; | ||
return this; | ||
} | ||
|
||
public TextMessageV2 build() { | ||
return new TextMessageV2(quickReply, sender, text, substitution, quoteToken); | ||
} | ||
} | ||
} |
Oops, something went wrong.