Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IRIS-928-fps-extend-c-sharp-options #48

Merged
merged 3 commits into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions visual-dotnet/SauceLabs.Visual/FullPageConfig.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System;
using System.Collections.Generic;
using SauceLabs.Visual.GraphQL;

Expand All @@ -6,15 +7,21 @@ namespace SauceLabs.Visual
public class FullPageConfig
{
public int? DelayAfterScrollMs { get; set; }
public bool? DisableCSSAnimation { get; set; }
public IEnumerable<string>? HideAfterFirstScroll { get; set; }
public bool? HideScrollBars { get; set; }
public int? ScrollLimit { get; set; }

internal FullPageConfigIn ToFullPageConfigIn()
{
return new FullPageConfigIn()
{
DelayAfterScrollMs = DelayAfterScrollMs,
HideAfterFirstScroll = HideAfterFirstScroll
DisableCSSAnimation = DisableCSSAnimation,
HideAfterFirstScroll = HideAfterFirstScroll,
HideScrollBars = HideScrollBars,
ScrollLimit = ScrollLimit
};
}
}
}
}
6 changes: 6 additions & 0 deletions visual-dotnet/SauceLabs.Visual/GraphQL/FullPageConfigIn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ internal class FullPageConfigIn
{
[JsonProperty("delayAfterScrollMs")]
public int? DelayAfterScrollMs { get; set; }
[JsonProperty("disableCSSAnimation")]
public bool? DisableCSSAnimation { get; set; }
[JsonProperty("hideAfterFirstScroll")]
public IEnumerable<string>? HideAfterFirstScroll { get; set; }
[JsonProperty("hideScrollBars")]
public bool? HideScrollBars { get; set; }
[JsonProperty("scrollLimit")]
public int? ScrollLimit { get; set; }
}
}
Loading