aboutsummaryrefslogtreecommitdiff
path: root/types/malsync.go
blob: 2957ce8fedf4276388d3c24cb23816a5b1cbcb32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package types

type MalsyncStreamingSite struct {
	ID         int    `json:"id,omitempty"`
	Identifier any    `json:"identifier"`
	Image      string `json:"image,omitempty"`
	MalID      int    `json:"malId,omitempty"`
	AniID      int    `json:"aniId,omitempty"`
	Page       string `json:"page"`
	Title      string `json:"title"`
	Type       string `json:"type"`
	URL        string `json:"url"`
	External   bool   `json:"external,omitempty"`
}

type MalsyncSitesCollection map[string]map[string]MalsyncStreamingSite

type MalsyncAnimeResponse struct {
	ID      int                    `json:"id"`
	Type    string                 `json:"type"`
	Title   string                 `json:"title"`
	URL     string                 `json:"url"`
	Total   int                    `json:"total"`
	Image   string                 `json:"image"`
	AnidbID int                    `json:"anidbId,omitempty"`
	Sites   MalsyncSitesCollection `json:"Sites"`
}