Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AvatarUrls ¶
type ConsoleAvailability ¶
type ConsoleAvailability struct {
AvailabilityStatus string `json:"availabilityStatus"`
}
type EarnedTrophies ¶
type PersonalDetail ¶
type Profile ¶
type Profile struct { OnlineID string `json:"onlineId"` NpID string `json:"npId"` AvatarUrls []AvatarUrls `json:"avatarUrls"` Plus int `json:"plus"` AboutMe string `json:"aboutMe"` LanguagesUsed []string `json:"languagesUsed"` TrophySummary TrophySummary `json:"trophySummary"` IsOfficiallyVerified bool `json:"isOfficiallyVerified"` PersonalDetail PersonalDetail `json:"personalDetail"` PersonalDetailSharing string `json:"personalDetailSharing"` PrimaryOnlineStatus string `json:"primaryOnlineStatus"` Presences []Presences `json:"presences"` FriendRelation string `json:"friendRelation"` Blocking bool `json:"blocking"` MutualFriendsCount int `json:"mutualFriendsCount"` Following bool `json:"following"` FollowerCount int `json:"followerCount"` ConsoleAvailability ConsoleAvailability `json:"consoleAvailability"` }
type ProfileResponse ¶
type ProfileResponse struct {
Profile Profile `json:"profile"`
}
type TrophiesResponse ¶ added in v1.0.0
type TrophiesResponse struct { Trophies []struct { TrophyID int `json:"trophyId"` TrophyHidden bool `json:"trophyHidden"` TrophyType string `json:"trophyType"` TrophyName string `json:"trophyName"` TrophyDetail string `json:"trophyDetail"` TrophyIconURL string `json:"trophyIconUrl"` TrophySmallIconURL string `json:"trophySmallIconUrl"` TrophyRare int `json:"trophyRare"` TrophyEarnedRate string `json:"trophyEarnedRate"` FromUser struct { OnlineID string `json:"onlineId"` Earned bool `json:"earned"` } `json:"fromUser,omitempty"` } `json:"trophies"` }
type TrophyGroupResponse ¶ added in v0.0.4
type TrophyGroupResponse struct { TrophyTitleName string `json:"trophyTitleName"` TrophyTitleDetail string `json:"trophyTitleDetail"` TrophyTitleIconURL string `json:"trophyTitleIconUrl"` TrophyTitlePlatfrom string `json:"trophyTitlePlatfrom"` DefinedTrophies struct { Bronze int `json:"bronze"` Silver int `json:"silver"` Gold int `json:"gold"` Platinum int `json:"platinum"` } `json:"definedTrophies"` TrophyGroups []struct { TrophyGroupID string `json:"trophyGroupId"` TrophyGroupName string `json:"trophyGroupName"` TrophyGroupDetail string `json:"trophyGroupDetail"` TrophyGroupIconURL string `json:"trophyGroupIconUrl"` TrophyGroupSmallIconURL string `json:"trophyGroupSmallIconUrl"` DefinedTrophies struct { Bronze int `json:"bronze"` Silver int `json:"silver"` Gold int `json:"gold"` Platinum int `json:"platinum"` } `json:"definedTrophies"` ComparedUser struct { OnlineID string `json:"onlineId"` Progress int `json:"progress"` EarnedTrophies struct { Bronze int `json:"bronze"` Silver int `json:"silver"` Gold int `json:"gold"` Platinum int `json:"platinum"` } `json:"earnedTrophies"` LastUpdateDate time.Time `json:"lastUpdateDate"` } `json:"comparedUser"` } `json:"trophyGroups"` }
type TrophySummary ¶
type TrophySummary struct { Level int `json:"level"` Progress int `json:"progress"` EarnedTrophies EarnedTrophies `json:"earnedTrophies"` }
type TrophyTitleResponse ¶ added in v0.0.2
type TrophyTitleResponse struct { TotalResults int `json:"totalResults"` Offset int `json:"offset"` Limit int `json:"limit"` TrophyTitles []struct { NpCommunicationID string `json:"npCommunicationId"` TrophyTitleName string `json:"trophyTitleName"` TrophyTitleDetail string `json:"trophyTitleDetail"` TrophyTitleIconURL string `json:"trophyTitleIconUrl"` TrophyTitleSmallIconURL string `json:"trophyTitleSmallIconUrl"` TrophyTitlePlatfrom string `json:"trophyTitlePlatfrom"` // typo in Sony's response HasTrophyGroups bool `json:"hasTrophyGroups"` DefinedTrophies struct { Bronze int `json:"bronze"` Silver int `json:"silver"` Gold int `json:"gold"` Platinum int `json:"platinum"` } `json:"definedTrophies"` ComparedUser struct { OnlineID string `json:"onlineId"` Progress int `json:"progress"` EarnedTrophies struct { Bronze int `json:"bronze"` Silver int `json:"silver"` Gold int `json:"gold"` Platinum int `json:"platinum"` } `json:"earnedTrophies"` LastUpdateDate time.Time `json:"lastUpdateDate"` } `json:"comparedUser"` FromUser struct { OnlineID string `json:"onlineId"` Progress int `json:"progress"` EarnedTrophies struct { Bronze int `json:"bronze"` Silver int `json:"silver"` Gold int `json:"gold"` Platinum int `json:"platinum"` } `json:"earnedTrophies"` HiddenFlag bool `json:"hiddenFlag"` LastUpdateDate time.Time `json:"lastUpdateDate"` } `json:"fromUser,omitempty"` } `json:"trophyTitles"` }
Click to show internal directories.
Click to hide internal directories.