struct

DubbedEpisode::DubbedRecent

Inherits JSON::Serializable < Struct < Value < Object

Projection used by GET /inbox/dubbed and the widget renderer. is_new is server-computed (completed_at > NOW() - 24h) so the client doesn't have to do any time math.

Constructors

new(episode_id : Int64, feed_id : Int64, feed_title : String, feed_image : String | Nil, ep_title : String, ep_image : String | Nil, duration_sec : Int32 | Nil, source_lang : String | Nil, target_lang : String, completed_at : Time, subscribed : Bool, is_new : Bool)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

clone
Source
completed_at
copy_with(episode_id _episode_id = @episode_id, feed_id _feed_id = @feed_id, feed_title _feed_title = @feed_title, feed_image _feed_image = @feed_image, ep_title _ep_title = @ep_title, ep_image _ep_image = @ep_image, duration_sec _duration_sec = @duration_sec, source_lang _source_lang = @source_lang, target_lang _target_lang = @target_lang, completed_at _completed_at = @completed_at, subscribed _subscribed = @subscribed, is_new _is_new = @is_new)
Source
duration_sec
ep_image
ep_title
episode_id
feed_id
feed_image
feed_title
is_new
source_lang
subscribed
target_lang