|
| 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.liff.model; |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | +import com.fasterxml.jackson.annotation.JsonEnumDefaultValue; |
| 26 | +import com.fasterxml.jackson.annotation.JsonInclude; |
| 27 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; |
| 28 | +import com.fasterxml.jackson.annotation.JsonProperty; |
| 29 | +import java.net.URI; |
| 30 | + |
| 31 | +/** |
| 32 | + * UpdateLiffView |
| 33 | + * |
| 34 | + * @see <a href="https://developers.line.biz/en/reference/liff-server/#update-liff-app"> |
| 35 | + * Documentation</a> |
| 36 | + */ |
| 37 | +@JsonInclude(Include.NON_NULL) |
| 38 | +@javax.annotation.Generated(value = "com.linecorp.bot.codegen.LineJavaCodegenGenerator") |
| 39 | +public record UpdateLiffView( |
| 40 | + /** Size of the LIFF app view. Specify one of these values: - compact - tall - full */ |
| 41 | + @JsonProperty("type") Type type, |
| 42 | + /** |
| 43 | + * Endpoint URL. This is the URL of the web app that implements the LIFF app (e.g. |
| 44 | + * https://example.com). Used when the LIFF app is launched using the LIFF URL. The URL scheme |
| 45 | + * must be https. URL fragments (#URL-fragment) can't be specified. |
| 46 | + */ |
| 47 | + @JsonProperty("url") URI url, |
| 48 | + /** |
| 49 | + * `true` to use the LIFF app in modular mode. When in modular mode, the action button |
| 50 | + * in the header is not displayed. |
| 51 | + */ |
| 52 | + @JsonProperty("moduleMode") Boolean moduleMode) { |
| 53 | + |
| 54 | + /** Size of the LIFF app view. Specify one of these values: - compact - tall - full */ |
| 55 | + public enum Type { |
| 56 | + @JsonProperty("compact") |
| 57 | + COMPACT, |
| 58 | + @JsonProperty("tall") |
| 59 | + TALL, |
| 60 | + @JsonProperty("full") |
| 61 | + FULL, |
| 62 | + |
| 63 | + @JsonEnumDefaultValue |
| 64 | + UNDEFINED; |
| 65 | + } |
| 66 | + |
| 67 | + public static class Builder { |
| 68 | + private Type type; |
| 69 | + private URI url; |
| 70 | + private Boolean moduleMode; |
| 71 | + |
| 72 | + public Builder() {} |
| 73 | + |
| 74 | + public Builder type(Type type) { |
| 75 | + this.type = type; |
| 76 | + return this; |
| 77 | + } |
| 78 | + |
| 79 | + public Builder url(URI url) { |
| 80 | + this.url = url; |
| 81 | + return this; |
| 82 | + } |
| 83 | + |
| 84 | + public Builder moduleMode(Boolean moduleMode) { |
| 85 | + this.moduleMode = moduleMode; |
| 86 | + return this; |
| 87 | + } |
| 88 | + |
| 89 | + public UpdateLiffView build() { |
| 90 | + return new UpdateLiffView(type, url, moduleMode); |
| 91 | + } |
| 92 | + } |
| 93 | +} |
0 commit comments