001// Generated by delombok at Wed Jan 31 21:27:42 UTC 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.JsonMapper;
028
029/**
030 * Represents the <a href="https://developers.facebook.com/docs/graph-api/reference/live-video/">Live Video API
031 * type</a>.
032 */
033public class LiveVideo extends FacebookType {
034  @Facebook("broadcast_start_time")
035  private Date broadcastStartTime;
036  @Facebook("creation_time")
037  private Date creationTime;
038  @Facebook
039  private String description;
040  @Facebook("embed_html")
041  private String embedHtml;
042  @Facebook("is_manual_mode")
043  private Boolean isManualMode;
044  @Facebook("is_reference_only")
045  private Boolean isReferenceOnly;
046  @Facebook("live_views")
047  private Long liveViews;
048  @Facebook("permalink_url")
049  private String permalinkUrl;
050  @Facebook("planned_start_time")
051  private Date plannedStartTime;
052  @Facebook("preview_url")
053  private String previewUrl;
054  @Facebook("seconds_left")
055  private Integer secondsLeft;
056  @Facebook("secure_stream_url")
057  private String secureStreamUrl;
058  @Facebook
059  private String source;
060  @Facebook
061  private String status;
062  @Facebook("stream_url")
063  private String streamUrl;
064  @Facebook
065  private String title;
066  @Facebook
067  private Video video;
068
069  @JsonMapper.JsonMappingCompleted
070  private void provideFallback() {
071    if (getType() == null && source != null) {
072      setType(source);
073    }
074    if (getType() != null && source == null) {
075      setSource(getType());
076    }
077  }
078
079  @java.lang.SuppressWarnings("all")
080  public Date getBroadcastStartTime() {
081    return this.broadcastStartTime;
082  }
083
084  @java.lang.SuppressWarnings("all")
085  public void setBroadcastStartTime(final Date broadcastStartTime) {
086    this.broadcastStartTime = broadcastStartTime;
087  }
088
089  @java.lang.SuppressWarnings("all")
090  public Date getCreationTime() {
091    return this.creationTime;
092  }
093
094  @java.lang.SuppressWarnings("all")
095  public void setCreationTime(final Date creationTime) {
096    this.creationTime = creationTime;
097  }
098
099  @java.lang.SuppressWarnings("all")
100  public String getDescription() {
101    return this.description;
102  }
103
104  @java.lang.SuppressWarnings("all")
105  public void setDescription(final String description) {
106    this.description = description;
107  }
108
109  @java.lang.SuppressWarnings("all")
110  public String getEmbedHtml() {
111    return this.embedHtml;
112  }
113
114  @java.lang.SuppressWarnings("all")
115  public void setEmbedHtml(final String embedHtml) {
116    this.embedHtml = embedHtml;
117  }
118
119  @java.lang.SuppressWarnings("all")
120  public Boolean getIsManualMode() {
121    return this.isManualMode;
122  }
123
124  @java.lang.SuppressWarnings("all")
125  public void setIsManualMode(final Boolean isManualMode) {
126    this.isManualMode = isManualMode;
127  }
128
129  @java.lang.SuppressWarnings("all")
130  public Boolean getIsReferenceOnly() {
131    return this.isReferenceOnly;
132  }
133
134  @java.lang.SuppressWarnings("all")
135  public void setIsReferenceOnly(final Boolean isReferenceOnly) {
136    this.isReferenceOnly = isReferenceOnly;
137  }
138
139  @java.lang.SuppressWarnings("all")
140  public Long getLiveViews() {
141    return this.liveViews;
142  }
143
144  @java.lang.SuppressWarnings("all")
145  public void setLiveViews(final Long liveViews) {
146    this.liveViews = liveViews;
147  }
148
149  @java.lang.SuppressWarnings("all")
150  public String getPermalinkUrl() {
151    return this.permalinkUrl;
152  }
153
154  @java.lang.SuppressWarnings("all")
155  public void setPermalinkUrl(final String permalinkUrl) {
156    this.permalinkUrl = permalinkUrl;
157  }
158
159  @java.lang.SuppressWarnings("all")
160  public Date getPlannedStartTime() {
161    return this.plannedStartTime;
162  }
163
164  @java.lang.SuppressWarnings("all")
165  public void setPlannedStartTime(final Date plannedStartTime) {
166    this.plannedStartTime = plannedStartTime;
167  }
168
169  @java.lang.SuppressWarnings("all")
170  public String getPreviewUrl() {
171    return this.previewUrl;
172  }
173
174  @java.lang.SuppressWarnings("all")
175  public void setPreviewUrl(final String previewUrl) {
176    this.previewUrl = previewUrl;
177  }
178
179  @java.lang.SuppressWarnings("all")
180  public Integer getSecondsLeft() {
181    return this.secondsLeft;
182  }
183
184  @java.lang.SuppressWarnings("all")
185  public void setSecondsLeft(final Integer secondsLeft) {
186    this.secondsLeft = secondsLeft;
187  }
188
189  @java.lang.SuppressWarnings("all")
190  public String getSecureStreamUrl() {
191    return this.secureStreamUrl;
192  }
193
194  @java.lang.SuppressWarnings("all")
195  public void setSecureStreamUrl(final String secureStreamUrl) {
196    this.secureStreamUrl = secureStreamUrl;
197  }
198
199  @java.lang.SuppressWarnings("all")
200  public String getSource() {
201    return this.source;
202  }
203
204  @java.lang.SuppressWarnings("all")
205  public void setSource(final String source) {
206    this.source = source;
207  }
208
209  @java.lang.SuppressWarnings("all")
210  public String getStatus() {
211    return this.status;
212  }
213
214  @java.lang.SuppressWarnings("all")
215  public void setStatus(final String status) {
216    this.status = status;
217  }
218
219  @java.lang.SuppressWarnings("all")
220  public String getStreamUrl() {
221    return this.streamUrl;
222  }
223
224  @java.lang.SuppressWarnings("all")
225  public void setStreamUrl(final String streamUrl) {
226    this.streamUrl = streamUrl;
227  }
228
229  @java.lang.SuppressWarnings("all")
230  public String getTitle() {
231    return this.title;
232  }
233
234  @java.lang.SuppressWarnings("all")
235  public void setTitle(final String title) {
236    this.title = title;
237  }
238
239  @java.lang.SuppressWarnings("all")
240  public Video getVideo() {
241    return this.video;
242  }
243
244  @java.lang.SuppressWarnings("all")
245  public void setVideo(final Video video) {
246    this.video = video;
247  }
248}