feat: add VideoRestriction
@@ -19,6 +19,7 @@ type VideoVideo struct {
IsPrivate BaseBoolInt `json:"is_private"`
Added BaseBoolInt `json:"added"`
Repeat BaseBoolInt `json:"repeat"` // Information whether the video is repeated
+ ContentRestricted BaseBoolInt `json:"content_restricted"`
Comments int `json:"comments"` // Number of comments
Date int `json:"date"` // Date when video has been uploaded in Unixtime
Description string `json:"description"` // Video description
@@ -49,6 +50,7 @@ type VideoVideo struct {
PrivacyView []interface{} `json:"privacy_view"`
PrivacyComment []interface{} `json:"privacy_comment"`
ActionButton VideoActionButton `json:"action_button"`
+ Restriction VideoRestriction `json:"restriction"`
}
// ToAttachment return attachment format
@@ -56,6 +58,18 @@ func (video VideoVideo) ToAttachment() string {
return fmt.Sprintf("video%d_%d", video.OwnerID, video.ID)
}
+// VideoRestriction struct
+type VideoRestriction struct {
+ Title string `json:"title"`
+ Text string `json:"text"`
+ AlwaysShown BaseBoolInt `json:"always_shown"`
+ Blur BaseBoolInt `json:"blur"`
+ CanPlay BaseBoolInt `json:"can_play"`
+ CanPreview BaseBoolInt `json:"can_preview"`
+ CardIcon []BaseImage `json:"card_icon"`
+ ListIcon []BaseImage `json:"list_icon"`
+}
+
// VideoActionButton struct
type VideoActionButton struct {
ID string `json:"id"`
