Documentation ¶
Index ¶
- type ACNH
- func (a *ACNH) AuthToken(userID string) (*AuthTokenResponse, error)
- func (a *ACNH) Friends(token string) (*FriendsResponse, error)
- func (a *ACNH) LandProfile(token, landID string) (*LandProfileResponse, error)
- func (a *ACNH) PresenceFriends(token string) (*PresenceFriendsResponse, error)
- func (a *ACNH) SendMessageAll(token, message string) (*SendMessageResponse, error)
- func (a *ACNH) SendMessageFriend(token, userID, message string) (*SendMessageResponse, error)
- func (a *ACNH) SendMessageLocal(token, message string) (*SendMessageResponse, error)
- func (a *ACNH) UserProfile(token, userID string) (*UserProfileResponse, error)
- func (a *ACNH) Users() (*UsersResponse, error)
- type AuthTokenRequest
- type AuthTokenResponse
- type Friend
- type FriendsResponse
- type Land
- type LandProfileResponse
- type MBirth
- type MFruit
- type MNormalNpc
- type MTimeStamp
- type MVillager
- type PresenceFriendsResponse
- type SendMessageRequest
- type SendMessageResponse
- type User
- type UserProfileResponse
- type UsersResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ACNH ¶
type ACNH struct {
// contains filtered or unexported fields
}
func (*ACNH) LandProfile ¶
func (a *ACNH) LandProfile(token, landID string) (*LandProfileResponse, error)
func (*ACNH) PresenceFriends ¶
func (a *ACNH) PresenceFriends(token string) (*PresenceFriendsResponse, error)
func (*ACNH) SendMessageAll ¶
func (a *ACNH) SendMessageAll(token, message string) (*SendMessageResponse, error)
func (*ACNH) SendMessageFriend ¶
func (a *ACNH) SendMessageFriend(token, userID, message string) (*SendMessageResponse, error)
func (*ACNH) SendMessageLocal ¶
func (a *ACNH) SendMessageLocal(token, message string) (*SendMessageResponse, error)
func (*ACNH) UserProfile ¶
func (a *ACNH) UserProfile(token, userID string) (*UserProfileResponse, error)
func (*ACNH) Users ¶
func (a *ACNH) Users() (*UsersResponse, error)
type AuthTokenRequest ¶
type AuthTokenRequest struct {
UserID string `json:"userId"`
}
type AuthTokenResponse ¶
type FriendsResponse ¶
type FriendsResponse struct { Friends []Friend `json:"friends"` Code code `json:"code"` }
type LandProfileResponse ¶
type MNormalNpc ¶
type MTimeStamp ¶
type PresenceFriendsResponse ¶
type PresenceFriendsResponse struct { Presences []Friend `json:"presences"` Code code `json:"code"` }
type SendMessageRequest ¶
type SendMessageResponse ¶
type SendMessageResponse struct { Status string `json:"status"` Code code `json:"code"` }
type UserProfileResponse ¶
type UserProfileResponse struct { ContentID string `json:"contentId"` CreatedAt int `json:"createdAt"` Digest string `json:"digest"` LandName string `json:"landName"` MBirth MBirth `json:"mBirth"` MComment string `json:"mComment"` MHandleName string `json:"mHandleName"` MIsLandMaster bool `json:"mIsLandMaster"` MJpeg string `json:"mJpeg"` MLanguage string `json:"mLanguage"` MMyDesignAuthorID string `json:"mMyDesignAuthorId"` MPNm string `json:"mPNm"` MTimeStamp MTimeStamp `json:"mTimeStamp"` MVer int `json:"mVer"` Code code `json:"code"` }
type UsersResponse ¶
type UsersResponse struct { Users []User `json:"users"` Code code `json:"code"` }
Click to show internal directories.
Click to hide internal directories.