001// Generated by delombok at Fri Oct 04 16:05:59 CEST 2024 002/* 003 * Copyright (c) 2010-2024 Mark Allen, Norbert Bartels. 004 * 005 * Permission is hereby granted, free of charge, to any person obtaining a copy 006 * of this software and associated documentation files (the "Software"), to deal 007 * in the Software without restriction, including without limitation the rights 008 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 009 * copies of the Software, and to permit persons to whom the Software is 010 * furnished to do so, subject to the following conditions: 011 * 012 * The above copyright notice and this permission notice shall be included in 013 * all copies or substantial portions of the Software. 014 * 015 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 016 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 017 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 018 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 019 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 020 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 021 * THE SOFTWARE. 022 */ 023package com.restfb.types.send; 024 025import com.restfb.Facebook; 026import com.restfb.types.AbstractFacebookType; 027 028/** 029 * Represents the 030 * <a href="https://developers.facebook.com/docs/messenger-platform/reference/messenger-profile-api/home-url">Messenger 031 * Profile Home Url</a> 032 */ 033public class HomeUrl extends AbstractFacebookType { 034 /** 035 * The URL to be invoked from drawer. Must be whitelisted. Must use https. 036 */ 037 @Facebook 038 private String url; 039 /** 040 * Controls the height of webview. Only allowed value is tall. 041 */ 042 @Facebook("webview_height_ratio") 043 private String webviewHeightRatio; 044 /** 045 * Controls whether the share button in the webview is enabled. Either show or hide, defaults to "hide" 046 */ 047 @Facebook("webview_share_button") 048 private String webviewShareButton; 049 /** 050 * Controls whether users not assigned a role for your bot or its Facebook page can see the Chat Extension. 051 * 052 * This should be set to true until the Chat Extension is ready to be used by others. 053 */ 054 @Facebook("in_test") 055 private Boolean inTest; 056 057 /** 058 * The URL to be invoked from drawer. Must be whitelisted. Must use https. 059 */ 060 @java.lang.SuppressWarnings("all") 061 public String getUrl() { 062 return this.url; 063 } 064 065 /** 066 * The URL to be invoked from drawer. Must be whitelisted. Must use https. 067 */ 068 @java.lang.SuppressWarnings("all") 069 public void setUrl(final String url) { 070 this.url = url; 071 } 072 073 /** 074 * Controls the height of webview. Only allowed value is tall. 075 */ 076 @java.lang.SuppressWarnings("all") 077 public String getWebviewHeightRatio() { 078 return this.webviewHeightRatio; 079 } 080 081 /** 082 * Controls the height of webview. Only allowed value is tall. 083 */ 084 @java.lang.SuppressWarnings("all") 085 public void setWebviewHeightRatio(final String webviewHeightRatio) { 086 this.webviewHeightRatio = webviewHeightRatio; 087 } 088 089 /** 090 * Controls whether the share button in the webview is enabled. Either show or hide, defaults to "hide" 091 */ 092 @java.lang.SuppressWarnings("all") 093 public String getWebviewShareButton() { 094 return this.webviewShareButton; 095 } 096 097 /** 098 * Controls whether the share button in the webview is enabled. Either show or hide, defaults to "hide" 099 */ 100 @java.lang.SuppressWarnings("all") 101 public void setWebviewShareButton(final String webviewShareButton) { 102 this.webviewShareButton = webviewShareButton; 103 } 104 105 /** 106 * Controls whether users not assigned a role for your bot or its Facebook page can see the Chat Extension. 107 * 108 * This should be set to true until the Chat Extension is ready to be used by others. 109 */ 110 @java.lang.SuppressWarnings("all") 111 public Boolean getInTest() { 112 return this.inTest; 113 } 114 115 /** 116 * Controls whether users not assigned a role for your bot or its Facebook page can see the Chat Extension. 117 * 118 * This should be set to true until the Chat Extension is ready to be used by others. 119 */ 120 @java.lang.SuppressWarnings("all") 121 public void setInTest(final Boolean inTest) { 122 this.inTest = inTest; 123 } 124}