diff --git a/pkg/roblox/asset_location.go b/pkg/roblox/asset_location.go index d75ecc1..0c6a1e5 100644 --- a/pkg/roblox/asset_location.go +++ b/pkg/roblox/asset_location.go @@ -3,19 +3,24 @@ package roblox import ( "encoding/json" "fmt" + "io" "net/http" "net/url" - "io" ) +type AssetMetadata struct { + MetadataType uint32 `json:"metadataType"` + Value string `json:"value"` +} + // Struct equivalent to Rust's AssetLocationInfo type AssetLocationInfo struct { - Location string `json:"location"` - RequestId string `json:"requestId"` - IsHashDynamic bool `json:"IsHashDynamic"` - IsCopyrightProtected bool `json:"IsCopyrightProtected"` - IsArchived bool `json:"isArchived"` - AssetTypeId uint32 `json:"assetTypeId"` + Location string `json:"location"` + RequestId string `json:"requestId"` + IsArchived bool `json:"isArchived"` + AssetTypeId uint32 `json:"assetTypeId"` + AssetMetadatas []AssetMetadata `json:"assetMetadatas"` + IsRecordable bool `json:"isRecordable"` } // Input struct for getAssetLocation @@ -31,7 +36,7 @@ func (e GetError) Error() string { return string(e) } // Example client with a Get method type Client struct { HttpClient *http.Client - ApiKey string + ApiKey string } func (c *Client) GetAssetLocation(config GetAssetLatestRequest) (*AssetLocationInfo, error) {