001// Generated by delombok at Sun Apr 14 14:59:49 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;
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  public Date getCreatedTime() {
084    return this.createdTime;
085  }
086
087  /**
088   * When the review was created.
089   * 
090   * @since 1.6.16
091   */
092  @java.lang.SuppressWarnings("all")
093  public void setCreatedTime(final Date createdTime) {
094    this.createdTime = createdTime;
095  }
096
097  /**
098   * The user that created the review.
099   * 
100   * @return The user that created the review
101   * @since 1.6.16
102   */
103  @Override
104  @java.lang.SuppressWarnings("all")
105  public NamedFacebookType getFrom() {
106    return this.from;
107  }
108
109  /**
110   * The user that created the review.
111   * 
112   * @since 1.6.16
113   */
114  @java.lang.SuppressWarnings("all")
115  public void setFrom(final NamedFacebookType from) {
116    this.from = from;
117  }
118
119  /**
120   * The review text, if any.
121   * 
122   * @return The review text, if any
123   * @since 1.6.16
124   */
125  @Override
126  @java.lang.SuppressWarnings("all")
127  public String getMessage() {
128    return this.message;
129  }
130
131  /**
132   * The review text, if any.
133   * 
134   * @since 1.6.16
135   */
136  @java.lang.SuppressWarnings("all")
137  public void setMessage(final String message) {
138    this.message = message;
139  }
140
141  /**
142   * The review rating.
143   * 
144   * @return The review rating
145   * @since 1.6.16
146   */
147  @java.lang.SuppressWarnings("all")
148  public int getRating() {
149    return this.rating;
150  }
151
152  /**
153   * The review rating.
154   * 
155   * @since 1.6.16
156   */
157  @java.lang.SuppressWarnings("all")
158  public void setRating(final int rating) {
159    this.rating = rating;
160  }
161
162  /**
163   * The app to which this review applies.
164   * 
165   * @return The app to which this review applies
166   * @since 1.6.16
167   */
168  @java.lang.SuppressWarnings("all")
169  public NamedFacebookType getTo() {
170    return this.to;
171  }
172
173  /**
174   * The app to which this review applies.
175   * 
176   * @since 1.6.16
177   */
178  @java.lang.SuppressWarnings("all")
179  public void setTo(final NamedFacebookType to) {
180    this.to = to;
181  }
182}