geverse

package module
v0.0.0-...-0ea085c Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2019 License: MIT Imports: 11 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artist

type Artist struct {
	ID                  int64  `json:"id"`
	CommunityUserID     int64  `json:"communityUserId"`
	Name                string `json:"name"`
	IsOnline            bool   `json:"isOnline"`
	ProfileImgPath      string `json:"profileImgPath"`
	GroupName           string `json:"groupName"`
	MaxCommentCount     int64  `json:"maxCommentCount"`
	CommunityID         int64  `json:"communityId"`
	IsEnabled           bool   `json:"isEnabled"`
	HasNewToFans        bool   `json:"hasNewToFans"`
	HasNewPrivateToFans bool   `json:"hasNewPrivateToFans"`
	ToFanLastID         int64  `json:"toFanLastId"`
	NameI18N            string `json:"nameI18n"`
}

type ArtistPost

type ArtistPost struct {
	ID                int64         `json:"id"`
	CommunityUser     CommunityUser `json:"communityUser"`
	Community         Community     `json:"community"`
	CommunityTabID    int64         `json:"communityTabId"`
	Type              string        `json:"type"`
	Body              string        `json:"body"`
	CommentCount      int           `json:"commentCount"`
	LikeCount         int           `json:"likeCount"`
	MaxCommentCount   int64         `json:"maxCommentCount"`
	HasMyLike         bool          `json:"hasMyLike"`
	CreatedAt         time.Time     `json:"createdAt"`
	UpdatedAt         time.Time     `json:"updatedAt"`
	IsLocked          bool          `json:"isLocked"`
	IsBlind           bool          `json:"isBlind"`
	IsActive          bool          `json:"isActive"`
	IsPrivate         bool          `json:"isPrivate"`
	Photos            []Photo       `json:"photos,omitempty"`
	IsHotTrendingPost bool          `json:"isHotTrendingPost"`
}

type ArtistPosts

type ArtistPosts struct {
	Posts   []ArtistPost `json:"posts"`
	IsEnded bool         `json:"isEnded"`
}

type CaptionS3Path

type CaptionS3Path struct {
	LanguageCode    string `json:"languageCode"`
	CaptionFilePath string `json:"captionFilePath"`
}

type Community

type Community struct {
	ID                    int64    `json:"id"`
	Name                  string   `json:"name"`
	Description           string   `json:"description"`
	MemberCount           int      `json:"memberCount"`
	HomeBannerImgPath     string   `json:"homeBannerImgPath"`
	IconImgPath           string   `json:"iconImgPath"`
	BannerImgPath         string   `json:"bannerImgPath"`
	Fullname              []string `json:"fullname"`
	ShowMemberCount       bool     `json:"showMemberCount"`
	FcMember              bool     `json:"fcMember"`
	MembershipBenefitLink string   `json:"membershipBenefitLink"`
	Artists               []Artist `json:"artists"`
	Tabs                  []Tab    `json:"tabs"`
}

type CommunityUser

type CommunityUser struct {
	ID              int64     `json:"id"`
	CommunityID     int64     `json:"communityId"`
	ArtistID        int64     `json:"artistId"`
	ProfileNickname string    `json:"profileNickname"`
	ProfileImgPath  string    `json:"profileImgPath"`
	Status          string    `json:"status"`
	Grade           string    `json:"grade"`
	Official        bool      `json:"official"`
	FcMember        bool      `json:"fcMember"`
	JoinedAt        time.Time `json:"joinedAt"`
}

type Geverse

type Geverse struct {
	// contains filtered or unexported fields
}

func NewGeverse

func NewGeverse(httpClient *http.Client, token string) *Geverse

func (*Geverse) GetArtistMoments

func (g *Geverse) GetArtistMoments(ctx context.Context, communityID, artistID int64) (*ArtistPosts, error)

func (*Geverse) GetArtistPosts

func (g *Geverse) GetArtistPosts(ctx context.Context, communityID int64) (*ArtistPosts, error)

func (*Geverse) GetCommunity

func (g *Geverse) GetCommunity(ctx context.Context, communityID int64) (*Community, error)

func (*Geverse) GetMe

func (g *Geverse) GetMe(ctx context.Context) (*Me, error)

func (*Geverse) GetMediaPosts

func (g *Geverse) GetMediaPosts(ctx context.Context, communityID int64) (*MediaPosts, error)

func (*Geverse) GetNotices

func (g *Geverse) GetNotices(ctx context.Context, communityID int64) ([]Notice, error)

type Me

type Me struct {
	UserKey       string          `json:"userKey"`
	FirstName     string          `json:"firstName"`
	LastName      string          `json:"lastName"`
	Email         string          `json:"email"`
	MyCommunities []Community     `json:"myCommunities"`
	Profiles      []CommunityUser `json:"profiles"`
	SocialTypes   []interface{}   `json:"socialTypes"` // TODO: no example yet, did not want to connect my SNS accounts…
	LanguageCode  string          `json:"languageCode"`
}

type MediaCategory

type MediaCategory struct {
	ID   int64  `json:"id"`
	Name string `json:"name"`
}

type MediaPost

type MediaPost struct {
	ID                 int64     `json:"id"`
	CommunityID        int64     `json:"communityId"`
	Body               string    `json:"body"`
	Type               string    `json:"type"`
	ThumbnailPath      string    `json:"thumbnailPath"`
	Photos             []Photo   `json:"photos"`
	Video              Video     `json:"video,omitempty"`
	Title              string    `json:"title"`
	Level              string    `json:"level"`
	TotalPlaytime      int       `json:"totalPlaytime"`
	IsExtVideoVertical bool      `json:"isExtVideoVertical"`
	ViewCount          int       `json:"viewCount"`
	LikeCount          int       `json:"likeCount"`
	PlayCount          int       `json:"playCount"`
	HasMyLike          bool      `json:"hasMyLike"`
	CreatedAt          time.Time `json:"createdAt"`
	ExtVideoPath       string    `json:"extVideoPath,omitempty"`
	YouTubeID          string    `json:"youtubeId,omitempty"`
}

type MediaPosts

type MediaPosts struct {
	Medias          []MediaPost     `json:"medias"`
	TotalCount      int             `json:"totalCount"`
	IsEnded         bool            `json:"isEnded"`
	LastID          int64           `json:"lastId"`
	MediaCategories []MediaCategory `json:"mediaCategories"`
}

type Notice

type Notice struct {
	ID    int64
	Link  string
	Label string
	Title string
	Date  time.Time
}

type Photo

type Photo struct {
	ID                  int64  `json:"id"`
	ContentIndex        int    `json:"contentIndex"`
	ThumbnailImgURL     string `json:"thumbnailImgUrl"`
	ThumbnailImgWidth   int    `json:"thumbnailImgWidth"`
	ThumbnailImgHeight  int    `json:"thumbnailImgHeight"`
	OrgImgURL           string `json:"orgImgUrl"`
	OrgImgWidth         int    `json:"orgImgWidth"`
	OrgImgHeight        int    `json:"orgImgHeight"`
	DownloadImgFilename string `json:"downloadImgFilename"`
}

type Tab

type Tab struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

type Video

type Video struct {
	ID               int64           `json:"id"`
	ContentIndex     int             `json:"contentIndex"`
	Playtime         int             `json:"playtime"`
	ThumbnailImgPath string          `json:"thumbnailImgPath"`
	ThumbnailWidth   int             `json:"thumbnailWidth"`
	ThumbnailHeight  int             `json:"thumbnailHeight"`
	CommunityID      int64           `json:"communityId"`
	Status           string          `json:"status"`
	HlsPath          string          `json:"hlsPath"`
	DashPath         string          `json:"dashPath"`
	PlayreadyPath    string          `json:"playreadyPath"`
	VideoWidth       int             `json:"videoWidth"`
	VideoHeight      int             `json:"videoHeight"`
	Level            string          `json:"level"`
	IsVertical       bool            `json:"isVertical"`
	CaptionS3Paths   []CaptionS3Path `json:"captionS3Paths"`
}

Jump to

Keyboard shortcuts

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