dcd

package module
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2019 License: MIT Imports: 7 Imported by: 1

README

aikatsu-dcd-parser

GoDoc Go Report Card

Fetch and parse Aikatsu! DCD mypage data.

dcdkatsu command usage

User

dcdkatsu user <User ID>

Digital Binder

dcdkatsu digital_binder <User ID> <Series ID>

Card

dcdkatsu card <Card URL>

Documentation

See GoDoc.

GoDoc

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Card added in v0.2.0

type Card struct {
	Code string `json:"code"`
	Name string `json:"name"`

	Rarity string `json:"rarity"`
	Stars  string `json:"stars"`

	Type        string `json:"type"`
	Category    string `json:"category"`
	Brand       string `json:"brand"`
	DressAppeal string `json:"dress_appeal"`
	AppealPoint int    `json:"appeal_point"`

	Owner   Idol   `json:"-"`
	OwnerID string `json:"owner_id"`
	Owned   bool   `json:"owned"`

	SeriesID int    `json:"series_id"`
	URL      string `json:"url"`
	ImageURL string `json:"image_url"`
	// contains filtered or unexported fields
}

Card represents a card. Any card would be fetched with user id, so Card has user's ID as "OwnerID".

func FetchCard added in v0.2.0

func FetchCard(url string) (Card, error)

FetchCard returns parsed Idol data for given url.

func (*Card) Detail added in v0.2.0

func (card *Card) Detail() (Card, error)

Detail sets and .

type DigitalBinder added in v0.2.0

type DigitalBinder struct {
	SeriesID   int    `json:"series_id"`
	SeriesName string `json:"series_name"`

	Cards []Card `json:"cards"`

	// Owner   Idol   `json:"-"`
	OwnerID string `json:"owner_id"`
	URL     string `json:"url"`

	DataGetDate time.Time `json:"data_get_date"`
}

DigitalBinder holds acquisition status of series of cards. Series means binder's season.

func FetchDigitalBinder added in v0.2.0

func FetchDigitalBinder(ownerID string, seriesID int) (DigitalBinder, error)

FetchDigitalBinder returns parsed DigitalBinder data. This data will be fetched from http://mypage.aikatsu.com/mypages/digital_binders/<ownerID>/<seriesID> .

Note: Card's detail won't be fetchedf, Because each of them requires one HTTP request per card. Use Card.Detail() for more information.

type Idol

type Idol struct {
	ID  string `json:"id"`
	URL string `json:"url"`

	// Basic Info
	Name             string `json:"name"`
	AvatarURL        string `json:"avatar_url"`
	LastPlayLocation string `json:"last_play_location"`

	// Levels for each type
	CuteLevel int `json:"cute_level"`
	CoolLevel int `json:"cool_level"`
	SexyLevel int `json:"sexy_level"`
	PopLevel  int `json:"pop_level"`

	// Misc
	IdolRank         int    `json:"idol_rank"`
	IdolRankLabel    string `json:"idol_rank_level"`
	FanCount         int    `json:"fan_count"`
	PlayedCardsCount int    `json:"played_cards_count"`

	// DataGetDate is not , but upstream api called time
	DataGetDate time.Time `json:"data_get_date"`
}

Idol hold information for Aikatsu! idol.

func FetchIdol

func FetchIdol(id string) (Idol, error)

FetchIdol returns parsed Idol data. This data will be fetched from http://mypage.aikatsu.com/mypages/index/<ID> .

Directories

Path Synopsis
cmd
dcdkatsu Module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL