WiiSOAP/cas.go

43 lines
780 B
Go

package main
func listItems(e *Envelope) {
titleId, err := e.getKey("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: 0,
},
Attributes: []Attributes{
{
Name: "TitleVersion",
Value: "0",
},
{
Name: "Prices",
Value: "1",
},
},
Ratings: Ratings{
Name: "E",
Rating: 1,
Age: 9,
},
Prices: Prices{
ItemId: 0,
Price: Price{
// Not sure about WSC, but must match the price for the title you are purchasing in Wii no Ma.
Amount: 0,
Currency: "POINTS",
},
Limits: LimitStruct(DR),
LicenseKind: RENTAL,
},
})
}