diff --git a/src/InstagramApiSharp/Classes/ResponseWrappers/Story/InstaReelStoryMediaViewersResponse.cs b/src/InstagramApiSharp/Classes/ResponseWrappers/Story/InstaReelStoryMediaViewersResponse.cs index 31169e61..8148dbe0 100644 --- a/src/InstagramApiSharp/Classes/ResponseWrappers/Story/InstaReelStoryMediaViewersResponse.cs +++ b/src/InstagramApiSharp/Classes/ResponseWrappers/Story/InstaReelStoryMediaViewersResponse.cs @@ -19,13 +19,13 @@ public class InstaReelStoryMediaViewersResponse [JsonProperty("screenshotter_user_ids")] public object[] ScreenshotterUserIds { get; set; } [JsonProperty("total_screenshot_count")] - public int TotalScreenshotCount { get; set; } + public double? TotalScreenshotCount { get; set; } [JsonProperty("total_viewer_count")] - public int TotalViewerCount { get; set; } + public double? TotalViewerCount { get; set; } [JsonProperty("updated_media")] public InstaStoryItemResponse UpdatedMedia { get; set; } [JsonProperty("user_count")] - public int UserCount { get; set; } + public double? UserCount { get; set; } [JsonProperty("users")] public List Users { get; set; } } diff --git a/src/InstagramApiSharp/Converters/Stories/InstaReelStoryMediaViewersConverter.cs b/src/InstagramApiSharp/Converters/Stories/InstaReelStoryMediaViewersConverter.cs index dfeed5c2..32d30e5e 100644 --- a/src/InstagramApiSharp/Converters/Stories/InstaReelStoryMediaViewersConverter.cs +++ b/src/InstagramApiSharp/Converters/Stories/InstaReelStoryMediaViewersConverter.cs @@ -24,9 +24,9 @@ public InstaReelStoryMediaViewers Convert() var reelViewers = new InstaReelStoryMediaViewers { NextMaxId = SourceObject.NextMaxId, - TotalScreenshotCount = SourceObject.TotalScreenshotCount, - TotalViewerCount = SourceObject.TotalViewerCount, - UserCount = SourceObject.UserCount + TotalScreenshotCount = (int)(SourceObject.TotalScreenshotCount ?? 0), + TotalViewerCount = (int)(SourceObject.TotalViewerCount ?? 0), + UserCount = (int)(SourceObject.UserCount ?? 0) }; if (SourceObject.Users?.Count > 0)