From b98ecfd729d6c95551530642798e9b02dd1846b5 Mon Sep 17 00:00:00 2001 From: Norbert Bartels Date: Fri, 18 Feb 2022 09:31:27 +0100 Subject: [PATCH] Issue #1198 - media_product_type added to IgMedia and some comments added --- .../com/restfb/types/instagram/IgMedia.java | 8 +++++- .../restfb/types/instagram/IgMediaChild.java | 27 +++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/src/main/lombok/com/restfb/types/instagram/IgMedia.java b/src/main/lombok/com/restfb/types/instagram/IgMedia.java index 7c6794c38..dfa393eb2 100644 --- a/src/main/lombok/com/restfb/types/instagram/IgMedia.java +++ b/src/main/lombok/com/restfb/types/instagram/IgMedia.java @@ -64,7 +64,13 @@ public class IgMedia extends IgMediaChild { /** * Count of likes on the media. * - * Excludes likes on album child media and likes on promoted posts created from the media. Includes replies on comments. + * Excludes likes on album child media and likes on promoted posts created from the media. Includes replies on + * comments. + * + * */ @Getter @Setter diff --git a/src/main/lombok/com/restfb/types/instagram/IgMediaChild.java b/src/main/lombok/com/restfb/types/instagram/IgMediaChild.java index d335ba875..42492b93e 100644 --- a/src/main/lombok/com/restfb/types/instagram/IgMediaChild.java +++ b/src/main/lombok/com/restfb/types/instagram/IgMediaChild.java @@ -46,11 +46,23 @@ public class IgMediaChild extends FacebookType { @Facebook("media_type") private String mediaType; + /** + * Media URL. Will be omitted from responses if the media contains copyrighted material, or has been flagged for a + * copyright violation. + */ @Getter @Setter @Facebook("media_url") private String mediaUrl; + /** + * Surface where the media is published. Can be AD, FEED, or STORY. + */ + @Getter + @Setter + @Facebook("media_product_type") + private String mediaProductType; + /** * ID of Instagram user who created the media. Only returned if the app user making the query also created the media, * otherwise username field will be returned instead. @@ -63,26 +75,41 @@ public class IgMediaChild extends FacebookType { @Deprecated private IgUser owner; + /** + * Permanent URL to the media. + */ @Getter @Setter @Facebook private String permalink; + /** + * Shortcode to the media. + */ @Getter @Setter @Facebook private String shortcode; + /** + * Media thumbnail URL. Only available on VIDEO media. + */ @Getter @Setter @Facebook("thumbnail_url") private String thumbnailUrl; + /** + * ISO 8601 formatted creation date in UTC (default is UTC ±00:00) + */ @Getter @Setter @Facebook private Date timestamp; + /** + * Username of user who created the media. + */ @Getter @Setter @Facebook