001// Generated by delombok at Thu Aug 13 13:56:44 UTC 2026 002/* 003 * Copyright (c) 2010-2026 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.webhook.messaging; 024 025import com.restfb.Facebook; 026 027/** 028 * Represents a receiving postback object as defined here: 029 * https://developers.facebook.com/docs/messenger-platform/webhook-reference/postback 030 */ 031public class PostbackItem implements InnerMessagingItem { 032 /** 033 * Message ID 034 */ 035 @Facebook 036 private String mid; 037 /** 038 * Title for the CTA that was clicked on. This is sent to all apps subscribed to the page. 039 * 040 * For apps other than the original CTA sender, the postback event will be delivered via the 041 * <a href="https://developers.facebook.com/docs/messenger-platform/webhook-reference/standby-channel" target= 042 * "_self">standby channel</a>. 043 */ 044 @Facebook 045 private String title; 046 /** 047 * payload parameter that was defined with the button 048 */ 049 @Facebook 050 private String payload; 051 /** 052 * Comes only with Get Started postback and if an optional ref param was passed from the entry point, such as m.me 053 * link. 054 */ 055 @Facebook 056 private PostbackReferral referral; 057 058 @java.lang.Override 059 @java.lang.SuppressWarnings("all") 060 @lombok.Generated 061 public java.lang.String toString() { 062 return "PostbackItem(mid=" + this.getMid() + ", title=" + this.getTitle() + ", payload=" + this.getPayload() + ", referral=" + this.getReferral() + ")"; 063 } 064 065 /** 066 * Message ID 067 */ 068 @java.lang.SuppressWarnings("all") 069 @lombok.Generated 070 public String getMid() { 071 return this.mid; 072 } 073 074 /** 075 * Message ID 076 */ 077 @java.lang.SuppressWarnings("all") 078 @lombok.Generated 079 public void setMid(final String mid) { 080 this.mid = mid; 081 } 082 083 /** 084 * Title for the CTA that was clicked on. This is sent to all apps subscribed to the page. 085 * 086 * For apps other than the original CTA sender, the postback event will be delivered via the 087 * <a href="https://developers.facebook.com/docs/messenger-platform/webhook-reference/standby-channel" target= 088 * "_self">standby channel</a>. 089 */ 090 @java.lang.SuppressWarnings("all") 091 @lombok.Generated 092 public String getTitle() { 093 return this.title; 094 } 095 096 /** 097 * Title for the CTA that was clicked on. This is sent to all apps subscribed to the page. 098 * 099 * For apps other than the original CTA sender, the postback event will be delivered via the 100 * <a href="https://developers.facebook.com/docs/messenger-platform/webhook-reference/standby-channel" target= 101 * "_self">standby channel</a>. 102 */ 103 @java.lang.SuppressWarnings("all") 104 @lombok.Generated 105 public void setTitle(final String title) { 106 this.title = title; 107 } 108 109 /** 110 * payload parameter that was defined with the button 111 */ 112 @java.lang.SuppressWarnings("all") 113 @lombok.Generated 114 public String getPayload() { 115 return this.payload; 116 } 117 118 /** 119 * payload parameter that was defined with the button 120 */ 121 @java.lang.SuppressWarnings("all") 122 @lombok.Generated 123 public void setPayload(final String payload) { 124 this.payload = payload; 125 } 126 127 /** 128 * Comes only with Get Started postback and if an optional ref param was passed from the entry point, such as m.me 129 * link. 130 */ 131 @java.lang.SuppressWarnings("all") 132 @lombok.Generated 133 public PostbackReferral getReferral() { 134 return this.referral; 135 } 136 137 /** 138 * Comes only with Get Started postback and if an optional ref param was passed from the entry point, such as m.me 139 * link. 140 */ 141 @java.lang.SuppressWarnings("all") 142 @lombok.Generated 143 public void setReferral(final PostbackReferral referral) { 144 this.referral = referral; 145 } 146}