Skip to content

Commit

Permalink
feat: add WallWallpostHeader
Browse files Browse the repository at this point in the history
  • Loading branch information
SevereCloud committed Jan 11, 2022
1 parent a814259 commit 4e2886e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions object/wall.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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"`
}
1 change: 1 addition & 0 deletions object/widgets.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4e2886e

Please sign in to comment.