Add bottomSheetEnabled and authorBiosBSE to End Actions and Start Actions.
MODIFY
XRayBuilder.Core/src/Extras/Artifacts/EndActions.cs
XRayBuilder.Core/src/Extras/Artifacts/EndActions.cs
@@ -18,6 +18,9 @@ public class EndActions
[JsonProperty("data")]
public DataJson Data { get; set; }
+ [JsonProperty("bottomSheetEnabled")]
+ public bool? BottomSheetEnabled { get; set; }
+
public class BookInformation
{
[JsonProperty("class")]
@@ -200,6 +203,9 @@ public class DataJson
[JsonProperty("customerProfile")]
public CustomerProfile CustomerProfile { get; set; }
+ [JsonProperty("authorBiosBSE")]
+ public AuthorBios AuthorBiosBSE { get; set; }
+
[JsonProperty("rating")]
public Rating Rating { get; set; }

MODIFY
XRayBuilder.Core/src/Extras/Artifacts/StartActions.cs
XRayBuilder.Core/src/Extras/Artifacts/StartActions.cs
@@ -17,6 +17,9 @@ public sealed class StartActions
[JsonProperty("data")]
public DataJson Data { get; set; }
+ [JsonProperty("bottomSheetEnabled")]
+ public bool? BottomSheetEnabled { get; set; }
+
public sealed class BookInformation
{
[JsonProperty("class")]
@@ -313,6 +316,9 @@ public sealed class DataJson
[JsonProperty("followSubscriptions")]
public AuthorSubscriptions FollowSubscriptions { get; set; }
+ [JsonProperty("authorBiosBSE")]
+ public AuthorBios AuthorBiosBSE { get; set; }
+
[JsonProperty("welcomeText")]
public WelcomeText WelcomeText { get; set; }

MODIFY
XRayBuilder.Core/src/Extras/EndActions/EndActionsArtifactService.cs
XRayBuilder.Core/src/Extras/EndActions/EndActionsArtifactService.cs
@@ -48,10 +48,11 @@ public string GenerateNew(Request request)
Asin = request.BookAsin,
ContentType = "EBOK",
Timestamp = Functions.UnixTimestampMilliseconds(),
- RefTagSuffix = "AAATAAB",
+ RefTagSuffix = "AAATAAA",
ImageUrl = request.BookImageUrl,
EmbeddedID = $"{request.BookDatabaseName}:{request.BookGuid}",
- Erl = request.BookErl
+ FictionStatus = "unknown",
+ Erl = -1 //request.BookErl
};
endActions.Data.FollowSubscriptions = new Extras.Artifacts.EndActions.AuthorSubscriptions
{
@@ -93,6 +94,19 @@ public string GenerateNew(Request request)
}
}
};
+ endActions.Data.AuthorBiosBSE = new AuthorBios
+ {
+ Authors = new[]
+ {
+ new Author
+ {
+ Asin = request.AuthorAsin,
+ Name = request.Author,
+ Bio = request.AuthorBiography,
+ ImageUrl = request.AuthorImageUrl
+ }
+ }
+ };
endActions.Data.AuthorRecs = new Recs
{
Class = "featuredRecommendationList",
@@ -110,6 +124,8 @@ public string GenerateNew(Request request)
.ToArray()
};
+ endActions.BottomSheetEnabled = false;
+
try
{
return Functions.ExpandUnicode(JsonConvert.SerializeObject(endActions));

MODIFY
XRayBuilder.Core/src/Extras/StartActions/StartActionsArtifactService.cs
XRayBuilder.Core/src/Extras/StartActions/StartActionsArtifactService.cs
@@ -45,6 +45,7 @@ public Artifacts.StartActions GenerateStartActions(BookInfo curBook, AuthorProfi
Timestamp = Functions.UnixTimestampMilliseconds(),
RefTagSuffix = "AAATAAA",
ImageUrl = curBook.ImageUrl,
+ FictionStatus = "unknown",
Erl = -1
};
if (!string.IsNullOrEmpty(curBook.Series?.Position))
@@ -102,6 +103,19 @@ public Artifacts.StartActions GenerateStartActions(BookInfo curBook, AuthorProfi
}
}
};
+ startActions.Data.AuthorBiosBSE = new AuthorBios
+ {
+ Authors = new[]
+ {
+ new Author
+ {
+ Asin = authorProfile.Asin,
+ Name = curBook.Author,
+ Bio = authorProfile.Biography,
+ ImageUrl = authorProfile.ImageUrl
+ }
+ }
+ };
startActions.Data.AuthorRecs = new Recs
{
Class = "recommendationList",
@@ -114,6 +128,8 @@ public Artifacts.StartActions GenerateStartActions(BookInfo curBook, AuthorProfi
startActions.Data.PreviousBookInTheSeries = Extensions.BookInfoToBook(curBook.Series?.Previous, true);
startActions.Data.ReadingPages.PagesInBook = curBook.PageCount;
+ startActions.BottomSheetEnabled = true;
+
return startActions;
}
}

Add bottomSheetEnabled and authorBiosBSE to End Actions and Start Actions.