mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-12 04:42:16 +00:00
Sigil value in API for UNREAL's sake. Ugh.
This commit is contained in:
1 parent
68a3c123eb
commit
cab4840a61
1 file changed
+10
-1
+10
-1
@@ -45,8 +45,14 @@ pub struct GetNextNewsStoryAudioFileResponse {
|
||||
pub has_next_in_sequence: bool,
|
||||
|
||||
/// If there's a next cursor in the current sequence, this is it.
|
||||
/// If no such cursor, the field will be set to JSON NULL.
|
||||
pub maybe_next_cursor: Option<u64>,
|
||||
|
||||
/// If there's a next cursor in the current sequence, this is it.
|
||||
/// If no such cursor, the field will be set to the sigil "-1".
|
||||
/// This is for Unreal Engine's sake, which is sloppy with handling JSON.
|
||||
pub maybe_next_cursor_else_sigil_value: i64,
|
||||
|
||||
//pub audio_total_duration_seconds: u64,
|
||||
}
|
||||
|
||||
@@ -152,7 +158,10 @@ pub async fn get_next_news_story_audio_file_handler(
|
||||
current_audio_index: audio_cursor as u64,
|
||||
audio_file_path: audio_filename,
|
||||
has_next_in_sequence,
|
||||
maybe_next_cursor,
|
||||
maybe_next_cursor: maybe_next_cursor.clone(),
|
||||
maybe_next_cursor_else_sigil_value: maybe_next_cursor
|
||||
.map(|val| val as i64)
|
||||
.unwrap_or(-1),
|
||||
};
|
||||
|
||||
warn!("Response: {:?}", &response);
|
||||
|
||||
Reference in new issue
Block a user