From 4e2886e52210acd3b99a7354210efbc01d90c17d Mon Sep 17 00:00:00 2001 From: Suvorov Daniil Date: Tue, 11 Jan 2022 18:03:32 +0300 Subject: [PATCH] feat: add WallWallpostHeader --- object/wall.go | 13 +++++++++++++ object/widgets.go | 1 + 2 files changed, 14 insertions(+) diff --git a/object/wall.go b/object/wall.go index 62ad681a..63b17540 100644 --- a/object/wall.go +++ b/object/wall.go @@ -165,6 +165,7 @@ type WallWallpost struct { Donut WallWallpostDonut `json:"donut"` ShortTextRate float64 `json:"short_text_rate"` CarouselOffset int `json:"carousel_offset"` + Header WallWallpostHeader `json:"header"` } // Attachment type. @@ -256,3 +257,15 @@ type WallPostCopyright struct { Type string `json:"type"` Name string `json:"name"` } + +// WallWallpostHeader struct. +type WallWallpostHeader struct { + Type string `json:"type"` + CustomDescription WallWallpostHeaderCustomDescription `json:"custom_description"` +} + +// WallWallpostHeaderCustomDescription struct. +type WallWallpostHeaderCustomDescription struct { + SourceID int `json:"source_id"` + Date int `json:"date"` +} diff --git a/object/widgets.go b/object/widgets.go index ae2aee07..75ca8be2 100644 --- a/object/widgets.go +++ b/object/widgets.go @@ -47,6 +47,7 @@ type WidgetsWidgetComment struct { } `json:"views"` Donut WallWallpostDonut `json:"donut"` ShortTextRate float64 `json:"short_text_rate"` + Header WallWallpostHeader `json:"header"` } // WidgetsWidgetLikes struct.