-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0bb7933
commit 2d11422
Showing
15 changed files
with
490 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package objects | ||
|
||
// Audio https://dev.vk.com/ru/reference/objects/audio. | ||
type Audio struct { | ||
ID int `json:"id"` | ||
OwnerID int `json:"owner_id"` | ||
Artist string `json:"artist"` | ||
Title string `json:"title"` | ||
Duration int `json:"duration"` | ||
URL string `json:"url"` | ||
LyricsID int `json:"lyrics_id"` | ||
AlbumID int `json:"album_id"` | ||
GenreID int `json:"genre_id"` | ||
Date int `json:"date"` | ||
NoSearch int `json:"no_search"` | ||
IsHq int `json:"is_hq"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package objects | ||
|
||
type Button struct { | ||
Title string `json:"title"` | ||
Action Action `json:"action"` | ||
} | ||
|
||
type Action struct { | ||
Type string `json:"type"` | ||
URL string `json:"URL"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package objects | ||
|
||
// Doc https://dev.vk.com/ru/reference/objects/doc | ||
type Doc struct { | ||
ID int `json:"id"` // Document ID | ||
OwnerID int `json:"owner_id"` // Document owner ID | ||
Title string `json:"title"` // Document title | ||
Size int `json:"size"` // File size in bites | ||
Ext string `json:"ext"` // File extension | ||
URL string `json:"url"` // File URL | ||
Date int `json:"date"` // Date when file has been uploaded in Unixtime | ||
Type int `json:"type"` // Document type | ||
Preview DocPreview `json:"preview"` | ||
} | ||
|
||
// DocPreview https://dev.vk.com/ru/reference/objects/doc#preview. | ||
type DocPreview struct { | ||
Photo DocPreviewPhoto `json:"photo"` | ||
Graffiti DocPreviewGraffiti `json:"graffiti"` | ||
AudioMessage DocPreviewAudioMessage `json:"audio_message"` | ||
} | ||
|
||
type DocPreviewPhoto struct { | ||
Sizes []DocPreviewPhotoSizes `json:"sizes"` | ||
} | ||
|
||
// DocPreviewPhotoSizes https://dev.vk.com/ru/reference/objects/photo-sizes. | ||
type DocPreviewPhotoSizes struct { | ||
Height int `json:"height"` // Height in px | ||
URL string `json:"url"` // URL of the image | ||
Type string `json:"type"` | ||
Width int `json:"width"` // Width in px | ||
} | ||
|
||
type DocPreviewGraffiti struct { | ||
Src string `json:"src"` | ||
Width int `json:"width"` | ||
Height int `json:"height"` | ||
} | ||
|
||
// DocPreviewAudioMessage struct. | ||
type DocPreviewAudioMessage struct { | ||
Duration int `json:"duration"` | ||
Waveform []int `json:"waveform"` | ||
LinkOgg string `json:"link_ogg"` | ||
LinkMp3 string `json:"link_mp3"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package objects | ||
|
||
// Link . https://dev.vk.com/ru/reference/objects/link | ||
type Link struct { | ||
URL string `json:"url"` | ||
Title string `json:"title"` | ||
Caption string `json:"caption"` | ||
Description string `json:"description"` | ||
Photo Photo `json:"photo"` | ||
PreviewPage string `json:"preview_page"` | ||
PreviewURL string `json:"preview_url"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package objects | ||
|
||
// MarketAlbum https://dev.vk.com/ru/reference/objects/market-album. | ||
type MarketAlbum struct { | ||
ID int `json:"id"` // Market album ID | ||
OwnerID int `json:"owner_id"` // Market album owner's ID | ||
Title string `json:"title"` // Market album title | ||
IsMain bool `json:"is_main"` | ||
IsHidden bool `json:"is_hidden"` | ||
Count int `json:"count"` // Items number | ||
Photo Photo `json:"photo"` | ||
} |
Oops, something went wrong.