protocol

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2025 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package protocol implements the ServiceItemWiiSportsClub protocol

Package protocol implements the ServiceItemWiiSportsClub protocol

Package protocol implements the ServiceItemWiiSportsClub protocol

Package protocol implements the ServiceItemWiiSportsClub protocol

Package protocol implements the ServiceItemWiiSportsClub protocol

Package protocol implements the ServiceItemWiiSportsClub protocol

Package protocol implements the ServiceItemWiiSportsClub protocol

Package protocol implements the ServiceItemWiiSportsClub protocol

Package protocol implements the ServiceItemWiiSportsClub protocol

Package protocol implements the ServiceItemWiiSportsClub protocol

Package protocol implements the ServiceItemWiiSportsClub protocol

Package protocol implements the ServiceItemWiiSportsClub protocol

Package protocol implements the ServiceItemWiiSportsClub protocol

Package protocol implements the ServiceItemWiiSportsClub protocol

Package protocol implements the ServiceItemWiiSportsClub protocol

Package protocol implements the ServiceItemWiiSportsClub protocol

Package protocol implements the ServiceItemWiiSportsClub protocol

Package protocol implements the ServiceItemWiiSportsClub protocol

Package protocol implements the ServiceItemWiiSportsClub protocol

Package protocol implements the ServiceItemWiiSportsClub protocol

Package protocol implements the ServiceItemWiiSportsClub protocol

Package protocol implements the ServiceItemWiiSportsClub protocol

Package protocol implements the ServiceItemWiiSportsClub protocol

Index

Constants

View Source
const (
	// ProtocolID is the Protocol ID for the Service Item (Wii Sports Club) protocol
	ProtocolID = 0x77

	// MethodHello is the method ID for the Hello method
	MethodHello = 0x1

	// MethodHTTPGetRequest is the method ID for the HTTPGetRequest method
	MethodHTTPGetRequest = 0x2

	// MethodHTTPGetResponse is the method ID for the HTTPGetResponse method
	MethodHTTPGetResponse = 0x3

	// MethodPurchaseServiceItemRequest is the method ID for the PurchaseServiceItemRequest method
	MethodPurchaseServiceItemRequest = 0x4

	// MethodPurchaseServiceItemResponse is the method ID for the PurchaseServiceItemResponse method
	MethodPurchaseServiceItemResponse = 0x5

	// MethodListServiceItemRequest is the method ID for the ListServiceItemRequest method
	MethodListServiceItemRequest = 0x6

	// MethodListServiceItemResponse is the method ID for the ListServiceItemResponse method
	MethodListServiceItemResponse = 0x7

	// MethodGetBalanceRequest is the method ID for the GetBalanceRequest method
	MethodGetBalanceRequest = 0x8

	// MethodGetBalanceResponse is the method ID for the GetBalanceResponse method
	MethodGetBalanceResponse = 0x9

	// MethodGetPrepurchaseInfoRequest is the method ID for the GetPrepurchaseInfoRequest method
	MethodGetPrepurchaseInfoRequest = 0xA

	// MethodGetPrepurchaseInfoResponse is the method ID for the GetPrepurchaseInfoResponse method
	MethodGetPrepurchaseInfoResponse = 0xB

	// MethodGetServiceItemRightRequest is the method ID for the GetServiceItemRightRequest method
	MethodGetServiceItemRightRequest = 0xC

	// MethodGetServiceItemRightResponse is the method ID for the GetServiceItemRightResponse method
	MethodGetServiceItemRightResponse = 0xD

	// MethodGetPurchaseHistoryRequest is the method ID for the GetPurchaseHistoryRequest method
	MethodGetPurchaseHistoryRequest = 0xE

	// MethodGetPurchaseHistoryResponse is the method ID for the GetPurchaseHistoryResponse method
	MethodGetPurchaseHistoryResponse = 0xF

	// MethodGetNotice is the method ID for the GetNotice method
	MethodGetNotice = 0x10

	// MethodUpdateAndGetTicketInfo is the method ID for the UpdateAndGetTicketInfo method
	MethodUpdateAndGetTicketInfo = 0x11

	// MethodLoadUserInfo is the method ID for the LoadUserInfo method
	MethodLoadUserInfo = 0x12

	// MethodSaveUserInfo is the method ID for the SaveUserInfo method
	MethodSaveUserInfo = 0x13

	// MethodStartChallenge is the method ID for the StartChallenge method
	MethodStartChallenge = 0x14

	// MethodEndChallenge is the method ID for the EndChallenge method
	MethodEndChallenge = 0x15

	// MethodRequestTicketRestoration is the method ID for the RequestTicketRestoration method
	MethodRequestTicketRestoration = 0x16
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Protocol

type Protocol struct {
	Hello                       func(err error, packet nex.PacketInterface, callID uint32, name types.String) (*nex.RMCMessage, *nex.Error)
	HTTPGetRequest              func(err error, packet nex.PacketInterface, callID uint32, url service_item_wii_sports_club_types.ServiceItemHTTPGetParam) (*nex.RMCMessage, *nex.Error)
	HTTPGetResponse             func(err error, packet nex.PacketInterface, callID uint32, requestID types.UInt32) (*nex.RMCMessage, *nex.Error)
	PurchaseServiceItemRequest  func(err error, packet nex.PacketInterface, callID uint32, purchaseServiceItemParam service_item_wii_sports_club_types.ServiceItemPurchaseServiceItemParam) (*nex.RMCMessage, *nex.Error)
	PurchaseServiceItemResponse func(err error, packet nex.PacketInterface, callID uint32, requestID types.UInt32) (*nex.RMCMessage, *nex.Error)
	ListServiceItemRequest      func(err error, packet nex.PacketInterface, callID uint32, listServiceItemParam service_item_wii_sports_club_types.ServiceItemListServiceItemParam) (*nex.RMCMessage, *nex.Error)
	ListServiceItemResponse     func(err error, packet nex.PacketInterface, callID uint32, requestID types.UInt32) (*nex.RMCMessage, *nex.Error)
	GetBalanceRequest           func(err error, packet nex.PacketInterface, callID uint32, getBalanceParam service_item_wii_sports_club_types.ServiceItemGetBalanceParam) (*nex.RMCMessage, *nex.Error)
	GetBalanceResponse          func(err error, packet nex.PacketInterface, callID uint32, requestID types.UInt32) (*nex.RMCMessage, *nex.Error)
	GetPrepurchaseInfoRequest   func(err error, packet nex.PacketInterface, callID uint32, getPrepurchaseInfoParam service_item_wii_sports_club_types.ServiceItemGetPrepurchaseInfoParam) (*nex.RMCMessage, *nex.Error)
	GetPrepurchaseInfoResponse  func(err error, packet nex.PacketInterface, callID uint32, requestID types.UInt32) (*nex.RMCMessage, *nex.Error)
	GetServiceItemRightRequest  func(err error, packet nex.PacketInterface, callID uint32, getServiceItemRightParam service_item_wii_sports_club_types.ServiceItemGetServiceItemRightParam) (*nex.RMCMessage, *nex.Error)
	GetServiceItemRightResponse func(err error, packet nex.PacketInterface, callID uint32, requestID types.UInt32) (*nex.RMCMessage, *nex.Error)
	GetPurchaseHistoryRequest   func(err error, packet nex.PacketInterface, callID uint32, getPurchaseHistoryParam service_item_wii_sports_club_types.ServiceItemGetPurchaseHistoryParam) (*nex.RMCMessage, *nex.Error)
	GetPurchaseHistoryResponse  func(err error, packet nex.PacketInterface, callID uint32, requestID types.UInt32) (*nex.RMCMessage, *nex.Error)
	GetNotice                   func(err error, packet nex.PacketInterface, callID uint32, getNoticeParam service_item_wii_sports_club_types.ServiceItemGetNoticeParam) (*nex.RMCMessage, *nex.Error)
	UpdateAndGetTicketInfo      func(err error, packet nex.PacketInterface, callID uint32, forceRetrieveFromEShop types.Bool) (*nex.RMCMessage, *nex.Error)
	LoadUserInfo                func(err error, packet nex.PacketInterface, callID uint32) (*nex.RMCMessage, *nex.Error)
	SaveUserInfo                func(err error, packet nex.PacketInterface, callID uint32, userInfo service_item_wii_sports_club_types.ServiceItemUserInfo) (*nex.RMCMessage, *nex.Error)
	StartChallenge              func(err error, packet nex.PacketInterface, callID uint32, startChallengeParam service_item_wii_sports_club_types.ServiceItemStartChallengeParam) (*nex.RMCMessage, *nex.Error)
	EndChallenge                func(err error, packet nex.PacketInterface, callID uint32, endChallengeParam service_item_wii_sports_club_types.ServiceItemEndChallengeParam) (*nex.RMCMessage, *nex.Error)
	RequestTicketRestoration    func(err error, packet nex.PacketInterface, callID uint32, requestTicketRestorationParam service_item_wii_sports_club_types.ServiceItemRequestTicketRestorationParam) (*nex.RMCMessage, *nex.Error)
	// contains filtered or unexported fields
}

Protocol stores all the RMC method handlers for the Service Item (Wii Sports Club) protocol and listens for requests Embeds the Service Item protocol

func NewProtocol

func NewProtocol(endpoint nex.EndpointInterface) *Protocol

NewProtocol returns a new ServiceItemWiiSportsClub protocol

func (*Protocol) HandlePacket

func (protocol *Protocol) HandlePacket(packet nex.PacketInterface)

HandlePacket sends the packet to the correct RMC method handler

Directories

Path Synopsis
Package types implements all the types used by the ServiceItem protocol
Package types implements all the types used by the ServiceItem protocol

Jump to

Keyboard shortcuts

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