Skip to content

Commit d5ece22

Browse files
committed
onEnd -> endOn
1 parent 0d61fb7 commit d5ece22

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/Skybrud.Social.TwentyThree/Options/Embed/TwentyThreePhotoEmbedOnEnd.cs renamed to src/Skybrud.Social.TwentyThree/Options/Embed/TwentyThreePhotoEmbedEndOn.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/// <summary>
44
/// Enum class indicating what should happen when a video ends.
55
/// </summary>
6-
public enum TwentyThreePhotoEmbedOnEnd {
6+
public enum TwentyThreePhotoEmbedEndOn {
77

88
/// <summary>
99
/// Show sharing.

src/Skybrud.Social.TwentyThree/Options/Embed/TwentyThreePhotoEmbedOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class TwentyThreePhotoEmbedOptions {
1414

1515
public bool? AutoPlay { get; set; }
1616

17-
public TwentyThreePhotoEmbedOnEnd? OnEnd { get; set; }
17+
public TwentyThreePhotoEmbedEndOn? EndOn { get; set; }
1818

1919
}
2020

src/Skybrud.Social.TwentyThree/TwentyThreeUtils.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ public static string GetEmbedCode(TwentyThreeSite site, TwentyThreePhoto photo,
5757
return GetEmbedCode(site.Domain, photo.PhotoId, photo.Token, playerId);
5858
}
5959

60-
public static string GetEmbedCode(TwentyThreeSite site, TwentyThreePhoto photo, string playerId, bool? autoPlay, TwentyThreePhotoEmbedOnEnd onEnd) {
61-
return GetEmbedCode(site.Domain, photo.PhotoId, photo.Token, playerId, autoPlay, onEnd);
60+
public static string GetEmbedCode(TwentyThreeSite site, TwentyThreePhoto photo, string playerId, bool? autoPlay, TwentyThreePhotoEmbedEndOn endOn) {
61+
return GetEmbedCode(site.Domain, photo.PhotoId, photo.Token, playerId, autoPlay, endOn);
6262
}
6363

6464
public static string GetEmbedCode(TwentyThreePhotoEmbedOptions options) {
6565
if (options == null) throw new ArgumentNullException(nameof(options));
66-
return GetEmbedCode(options.Domain, options.PhotoId, options.Token, options.PlayerId, options.AutoPlay, options.OnEnd);
66+
return GetEmbedCode(options.Domain, options.PhotoId, options.Token, options.PlayerId, options.AutoPlay, options.EndOn);
6767
}
6868

6969
public static string GetEmbedCode(string domain, string photoId, string token) {
@@ -74,7 +74,7 @@ public static string GetEmbedCode(string domain, string photoId, string token, s
7474
return GetEmbedCode(domain, photoId, token, playerId, null, default);
7575
}
7676

77-
public static string GetEmbedCode(string domain, string photoId, string token, string playerId, bool? autoPlay, TwentyThreePhotoEmbedOnEnd? onEnd) {
77+
public static string GetEmbedCode(string domain, string photoId, string token, string playerId, bool? autoPlay, TwentyThreePhotoEmbedEndOn? endOn) {
7878

7979
if (string.IsNullOrWhiteSpace(domain)) throw new ArgumentNullException(nameof(domain));
8080
if (string.IsNullOrWhiteSpace(photoId)) throw new ArgumentNullException(nameof(photoId));
@@ -86,7 +86,7 @@ public static string GetEmbedCode(string domain, string photoId, string token, s
8686
string url = $"//{domain}/{playerId}.ihtml/player.html?token={token}&source=embed&photo%5fid={photoId}";
8787

8888
if (autoPlay != null) url += "&autoPlay=1";
89-
if (onEnd != default) url += $"&onEnd={onEnd.ToLower()}";
89+
if (endOn != default) url += $"&endOn={endOn.ToLower()}";
9090

9191
return $"<div style=\"width:100%; height:0; position: relative; padding-bottom:100.0%\"><iframe src=\"{url}\" style=\"width:100%; height:100%; position: absolute; top: 0; left: 0;\" frameborder=\"0\" border=\"0\" scrolling=\"no\" mozallowfullscreen=\"1\" webkitallowfullscreen=\"1\" allowfullscreen=\"1\" allow=\"autoplay; fullscreen\"></iframe></div>";
9292

0 commit comments

Comments
 (0)