struct Likee::Video

Overview

The Video structure represents a Likee video.

The JSON payload returned by the API call is parsed and transformed to a stable interface.

Included Modules

Defined in:

likee/concepts/video.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def caption : String | Nil #

Returns the video caption, also known as the video description.


[View source]
def comment_count : UInt32 #

Returns the video comment count.


[View source]
def cover_url : String #

Returns the video cover url, also known as the video thumbnail.


[View source]
def creator_avatar : String | Nil #

Returns the creator avatar.


[View source]
def creator_id : String #

Returns the creator id.

Apparently, it is referred to as uid rather than id. Must not be confused with likeeId, which refers to the creator username.


[View source]
def creator_nickname : String | Nil #

Returns the creator nickname.


[View source]
def creator_username : String #

Returns the creator username.


[View source]
def download_url : String #

Extracts the URL to the video without the watermark.


[View source]
def height : UInt16 #

Returns the video height.


[View source]
def id : String #

Returns the video id.


[View source]
def like_count : UInt32 #

Returns the video like count.


[View source]
def music_id : String | Nil #

Returns the video music id.


[View source]
def music_name : String | Nil #

Returns the video music name.


[View source]
def play_count : UInt32 #

Returns the video play count.


[View source]
def share_count : UInt32 #

Returns the video share count.


[View source]
def share_url : String | Nil #

Returns the video share url.


[View source]
def title : String | Nil #

Returns the video title.


[View source]
def uploaded_at : Time #

Returns the video upload time.


[View source]
def video_url : String #

Returns the video url.


[View source]
def width : UInt16 #

Returns the video width.


[View source]