mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 04:02:00 -06:00
Add docs to wallpaper
This commit is contained in:
parent
2569ddd1c7
commit
3dcfbc0fbb
1 changed files with 2 additions and 0 deletions
|
|
@ -5,10 +5,12 @@ import "fmt"
|
|||
// Wallpaper contains a wallpaper name which can be set via Account.ChangeWallpaper.
|
||||
type Wallpaper string
|
||||
|
||||
// TinyUrl returns the url to the wallpaper in low resolution.
|
||||
func (w *Wallpaper) TinyUrl() string {
|
||||
return fmt.Sprintf("https://static.crunchyroll.com/assets/wallpaper/360x115/%s", *w)
|
||||
}
|
||||
|
||||
// BigUrl returns the url to the wallpaper in high resolution.
|
||||
func (w *Wallpaper) BigUrl() string {
|
||||
return fmt.Sprintf("https://static.crunchyroll.com/assets/wallpaper/1920x400/%s", *w)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue