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;
024
025import java.util.Date;
026import com.restfb.Facebook;
027import com.restfb.types.features.HasCreatedTime;
028import com.restfb.types.features.HasFrom;
029import com.restfb.types.features.HasMessage;
030
031/**
032 * Represents the <a href="https://developers.facebook.com/docs/graph-api/reference/review">Review Graph API Type</a>
033 *
034 * @author Norbert Bartels
035 * @since 1.6.16
036 */
037public class Review extends FacebookType implements HasCreatedTime, HasFrom, HasMessage {
038  private static final long serialVersionUID = 1L;
039  /**
040   * When the review was created.
041   *
042   * @since 1.6.16
043   */
044  @Facebook("created_time")
045  private Date createdTime;
046  /**
047   * The user that created the review.
048   *
049   * @since 1.6.16
050   */
051  @Facebook
052  private NamedFacebookType from;
053  /**
054   * The review text, if any.
055   *
056   * @since 1.6.16
057   */
058  @Facebook
059  private String message;
060  /**
061   * The review rating.
062   *
063   * @since 1.6.16
064   */
065  @Facebook
066  private int rating;
067  /**
068   * The app to which this review applies.
069   *
070   * @since 1.6.16
071   */
072  @Facebook
073  private NamedFacebookType to;
074
075  /**
076   * When the review was created.
077   *
078   * @return when the review was created
079   * @since 1.6.16
080   */
081  @Override
082  @java.lang.SuppressWarnings("all")
083  @lombok.Generated
084  public Date getCreatedTime() {
085    return this.createdTime;
086  }
087
088  /**
089   * When the review was created.
090   *
091   * @since 1.6.16
092   */
093  @java.lang.SuppressWarnings("all")
094  @lombok.Generated
095  public void setCreatedTime(final Date createdTime) {
096    this.createdTime = createdTime;
097  }
098
099  /**
100   * The user that created the review.
101   *
102   * @return The user that created the review
103   * @since 1.6.16
104   */
105  @Override
106  @java.lang.SuppressWarnings("all")
107  @lombok.Generated
108  public NamedFacebookType getFrom() {
109    return this.from;
110  }
111
112  /**
113   * The user that created the review.
114   *
115   * @since 1.6.16
116   */
117  @java.lang.SuppressWarnings("all")
118  @lombok.Generated
119  public void setFrom(final NamedFacebookType from) {
120    this.from = from;
121  }
122
123  /**
124   * The review text, if any.
125   *
126   * @return The review text, if any
127   * @since 1.6.16
128   */
129  @Override
130  @java.lang.SuppressWarnings("all")
131  @lombok.Generated
132  public String getMessage() {
133    return this.message;
134  }
135
136  /**
137   * The review text, if any.
138   *
139   * @since 1.6.16
140   */
141  @java.lang.SuppressWarnings("all")
142  @lombok.Generated
143  public void setMessage(final String message) {
144    this.message = message;
145  }
146
147  /**
148   * The review rating.
149   *
150   * @return The review rating
151   * @since 1.6.16
152   */
153  @java.lang.SuppressWarnings("all")
154  @lombok.Generated
155  public int getRating() {
156    return this.rating;
157  }
158
159  /**
160   * The review rating.
161   *
162   * @since 1.6.16
163   */
164  @java.lang.SuppressWarnings("all")
165  @lombok.Generated
166  public void setRating(final int rating) {
167    this.rating = rating;
168  }
169
170  /**
171   * The app to which this review applies.
172   *
173   * @return The app to which this review applies
174   * @since 1.6.16
175   */
176  @java.lang.SuppressWarnings("all")
177  @lombok.Generated
178  public NamedFacebookType getTo() {
179    return this.to;
180  }
181
182  /**
183   * The app to which this review applies.
184   *
185   * @since 1.6.16
186   */
187  @java.lang.SuppressWarnings("all")
188  @lombok.Generated
189  public void setTo(final NamedFacebookType to) {
190    this.to = to;
191  }
192}