mirror of
https://wiilab.wiimart.org/wiimart/WiiSOAP
synced 2025-09-05 21:11:02 +02:00
lint'd properly
This commit is contained in:
parent
91d2a57671
commit
9570ec66ef
57
structure.go
57
structure.go
@ -1,8 +1,6 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import "encoding/xml"
|
||||||
"encoding/xml"
|
|
||||||
)
|
|
||||||
|
|
||||||
// Copyright (C) 2018-2019 CornierKhan1
|
// Copyright (C) 2018-2019 CornierKhan1
|
||||||
//
|
//
|
||||||
@ -26,6 +24,7 @@ import (
|
|||||||
/////////////////////
|
/////////////////////
|
||||||
// The structures may seem repetitive and redundant, but blame WSC's inconsistent SOAP requests.
|
// The structures may seem repetitive and redundant, but blame WSC's inconsistent SOAP requests.
|
||||||
|
|
||||||
|
// Config - WiiSOAP Configuration data.
|
||||||
type Config struct {
|
type Config struct {
|
||||||
XMLName xml.Name `xml:"Config"`
|
XMLName xml.Name `xml:"Config"`
|
||||||
SQLUser string `xml:"SQLUser"`
|
SQLUser string `xml:"SQLUser"`
|
||||||
@ -35,71 +34,71 @@ type Config struct {
|
|||||||
SQLDB string `xml:"SQLDB"`
|
SQLDB string `xml:"SQLDB"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CheckDeviceStatus
|
// CDS - CheckDeviceStatus
|
||||||
type CDS struct {
|
type CDS struct {
|
||||||
XMLName xml.Name `xml:"Envelope"`
|
XMLName xml.Name `xml:"Envelope"`
|
||||||
Version string `xml:"Body>CheckDeviceStatus>Version"`
|
Version string `xml:"Body>CheckDeviceStatus>Version"`
|
||||||
DeviceId string `xml:"Body>CheckDeviceStatus>DeviceId"`
|
DeviceID string `xml:"Body>CheckDeviceStatus>DeviceId"`
|
||||||
MessageId string `xml:"Body>CheckDeviceStatus>MessageId"`
|
MessageID string `xml:"Body>CheckDeviceStatus>MessageId"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NotifiedETicketsSynced
|
// NETS - NotifiedETicketsSynced
|
||||||
type NETS struct {
|
type NETS struct {
|
||||||
XMLName xml.Name `xml:"Envelope"`
|
XMLName xml.Name `xml:"Envelope"`
|
||||||
Version string `xml:"Body>NotifiedETicketsSynced>Version"`
|
Version string `xml:"Body>NotifiedETicketsSynced>Version"`
|
||||||
DeviceId string `xml:"Body>NotifiedETicketsSynced>DeviceId"`
|
DeviceID string `xml:"Body>NotifiedETicketsSynced>DeviceId"`
|
||||||
MessageId string `xml:"Body>NotifiedETicketsSynced>MessageId"`
|
MessageID string `xml:"Body>NotifiedETicketsSynced>MessageId"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ListETickets
|
// LET - ListETickets
|
||||||
type LET struct {
|
type LET struct {
|
||||||
XMLName xml.Name `xml:"Envelope"`
|
XMLName xml.Name `xml:"Envelope"`
|
||||||
Version string `xml:"Body>ListETickets>Version"`
|
Version string `xml:"Body>ListETickets>Version"`
|
||||||
DeviceId string `xml:"Body>ListETickets>DeviceId"`
|
DeviceID string `xml:"Body>ListETickets>DeviceId"`
|
||||||
MessageId string `xml:"Body>ListETickets>MessageId"`
|
MessageID string `xml:"Body>ListETickets>MessageId"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// PurchaseTitle
|
// PT - PurchaseTitle
|
||||||
type PT struct {
|
type PT struct {
|
||||||
XMLName xml.Name `xml:"Envelope"`
|
XMLName xml.Name `xml:"Envelope"`
|
||||||
Version string `xml:"Body>PurchaseTitle>Version"`
|
Version string `xml:"Body>PurchaseTitle>Version"`
|
||||||
DeviceId string `xml:"Body>PurchaseTitle>DeviceId"`
|
DeviceID string `xml:"Body>PurchaseTitle>DeviceId"`
|
||||||
MessageId string `xml:"Body>PurchaseTitle>MessageId"`
|
MessageID string `xml:"Body>PurchaseTitle>MessageId"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CheckRegistration
|
// CR - CheckRegistration
|
||||||
type CR struct {
|
type CR struct {
|
||||||
XMLName xml.Name `xml:"Envelope"`
|
XMLName xml.Name `xml:"Envelope"`
|
||||||
Version string `xml:"Body>CheckRegistration>Version"`
|
Version string `xml:"Body>CheckRegistration>Version"`
|
||||||
DeviceId string `xml:"Body>CheckRegistration>DeviceId"`
|
DeviceID string `xml:"Body>CheckRegistration>DeviceId"`
|
||||||
MessageId string `xml:"Body>CheckRegistration>MessageId"`
|
MessageID string `xml:"Body>CheckRegistration>MessageId"`
|
||||||
SerialNo string `xml:"Body>CheckRegistration>SerialNumber"`
|
SerialNo string `xml:"Body>CheckRegistration>SerialNumber"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetRegistrationInfo
|
// GRI - GetRegistrationInfo
|
||||||
type GRI struct {
|
type GRI struct {
|
||||||
XMLName xml.Name `xml:"Envelope"`
|
XMLName xml.Name `xml:"Envelope"`
|
||||||
Version string `xml:"Body>GetRegistrationInfo>Version"`
|
Version string `xml:"Body>GetRegistrationInfo>Version"`
|
||||||
DeviceId string `xml:"Body>GetRegistrationInfo>DeviceId"`
|
DeviceID string `xml:"Body>GetRegistrationInfo>DeviceId"`
|
||||||
MessageId string `xml:"Body>GetRegistrationInfo>MessageId"`
|
MessageID string `xml:"Body>GetRegistrationInfo>MessageId"`
|
||||||
AccountId string `xml:"Body>GetRegistrationInfo>AccountId"`
|
AccountID string `xml:"Body>GetRegistrationInfo>AccountId"`
|
||||||
Country string `xml:"Body>GetRegistrationInfo>Country"`
|
Country string `xml:"Body>GetRegistrationInfo>Country"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Register
|
// REG - Register
|
||||||
type REG struct {
|
type REG struct {
|
||||||
XMLName xml.Name `xml:"Envelope"`
|
XMLName xml.Name `xml:"Envelope"`
|
||||||
Version string `xml:"Body>Register>Version"`
|
Version string `xml:"Body>Register>Version"`
|
||||||
DeviceId string `xml:"Body>Register>DeviceId"`
|
DeviceID string `xml:"Body>Register>DeviceId"`
|
||||||
MessageId string `xml:"Body>Register>MessageId"`
|
MessageID string `xml:"Body>Register>MessageId"`
|
||||||
AccountId string `xml:"Body>Register>AccountId"`
|
AccountID string `xml:"Body>Register>AccountId"`
|
||||||
Country string `xml:"Body>Register>Country"`
|
Country string `xml:"Body>Register>Country"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Unregister
|
// UNR - Unregister
|
||||||
type UNR struct {
|
type UNR struct {
|
||||||
XMLName xml.Name `xml:"Envelope"`
|
XMLName xml.Name `xml:"Envelope"`
|
||||||
Version string `xml:"Body>Unregister>Version"`
|
Version string `xml:"Body>Unregister>Version"`
|
||||||
DeviceId string `xml:"Body>Unregister>DeviceId"`
|
DeviceID string `xml:"Body>Unregister>DeviceId"`
|
||||||
MessageId string `xml:"Body>Unregister>MessageId"`
|
MessageID string `xml:"Body>Unregister>MessageId"`
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user