WiiSOAP/cas.go
Spotlight 8291cff180
Add test ListItems response
Not currently functional, but parses succesfully.
2021-07-24 18:27:55 -05:00

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",
},
})
}