mirror of
https://wiilab.wiimart.org/wiimart/WiiSOAP
synced 2025-09-05 13:01:01 +02:00
42 lines
727 B
Go
42 lines
727 B
Go
package main
|
|
|
|
func listItems(e *Envelope) {
|
|
titleId, err := getKey(e.doc, "TitleId")
|
|
if err != nil {
|
|
e.Error(9, "Unable to obtain title.", err)
|
|
}
|
|
|
|
e.AddKVNode("ListResultTotalSize", "1")
|
|
e.AddCustomType(Items{
|
|
TitleId: titleId,
|
|
Contents: ContentsMetadata{
|
|
TitleIncluded: false,
|
|
ContentIndex: 1,
|
|
},
|
|
Attributes: []Attributes{
|
|
{
|
|
Name: "MaxUserInodes",
|
|
Value: "10",
|
|
},
|
|
{
|
|
Name: "itemComment",
|
|
Value: "Does not catch on fire.",
|
|
},
|
|
},
|
|
Ratings: Ratings{
|
|
Name: "Testing",
|
|
Rating: 1,
|
|
Age: 13,
|
|
},
|
|
Prices: Prices{
|
|
ItemId: 0,
|
|
Price: Price{
|
|
Amount: 1,
|
|
Currency: "POINTS",
|
|
},
|
|
Limits: LimitStruct(PR),
|
|
LicenseKind: "PERMANENT",
|
|
},
|
|
})
|
|
}
|