Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Windows Phone Network Analysis - where the Xbox Live app gets game metadata?

DZone's Guide to

Windows Phone Network Analysis - where the Xbox Live app gets game metadata?

· Mobile Zone
Free Resource

Discover how to focus on operators for Reactive Programming and how they are essential to react to data in your application.  Brought to you in partnership with Wakanda

I admit it - I like anayzing the sources of information different applications use on various networks. The Xbox Live application works with various information, including game metadata to show featured Xbox Live titles.

Let's take a deeper look at what the Xbox Live application is accesing through the HTTP channel. Apparently, we get the following steps:

1. Getting the list of featured applications

URL: http://catalog.zune.net/v3.2/en-US/clientTypes/WinMobile%207.1/hubTypes/apps/hub?store=Zest&store=&store=

I am not entirely sure what is the reasoning to get the list of featured applications when those are never displayed, but let's assume that it is a part of a Zune Marketplace request that, even if unnecessary, has to be done. It is a regular API request - similar to those I documented as a part of the Zune Data Viewer project.

IMPORTANT NOTE: Featured applications are not the same as featured games - those are not included in this list.

2. Getting the list of featured games

URL: http://catalog.zune.net/v3.2/en-US/clientTypes/WinMobile%207.1/hubTypes/games/hub?store=Zest&store=&store=

Yet another application/uix list, and yet - it is not the list used for displaying the list of featured XBL titles.

3. Getting the list of featured music items

URL: http://catalog.zune.net/v3.2/en-US/hubs/music

Another request that is not necessary in the Xbox Live application, but yet again confirms my assumption that these requests are a part of a standard internal Zune API call.

4. Getting list of featured XBL titles

URL: http://catalog.zune.net/v3.2/en-US/clientTypes/WinMobile%207.1/hubTypes/marketplace/hub?store=Zest&store=&store=

Not used in the app itself, but is available in the Marketplace.

5. Getting the list of top XBL titles (by download rank) - paid only

URL: http://catalog.zune.net/v3.2/en-US/appCategories/windowsphone.games/apps?clientType=WinMobile%207.1&store=Zest&store=&store=&tag=apptag.premium&orderby=downloadRank&cost=paid&chunkSize=10

Although 10 titles are retrieved, only 4 are displayed in the XBL app. No free items will be displayed here - it is obvious why, but you should also know that XBL titles usually come with a free trial version.

6. Getting images for featured content

URL (general format): http://image.catalog.zune.net/v3.2/en-US/image/IMAGE_ID?width=320&height=320&resize=true&contenttype=image/jpeg

OR (for particular apps): http://image.catalog.zune.net/v3.2/en-US/apps/APP_ID/primaryImage?width=170&height=170&resize=true&contenttype=image/jpeg

Images are downloaded for all content, even if it is not displayed in the XBL application.

Conclusion

Although connected to the Marketplace, it seems like a lot of content is redundant and is using the data connection unnecessarily - after all, given that I am in the XBL application does not  mean that I am going to be working with the Marketplace.

Learn how divergent branches can appear in your repository and how to better understand why they are called “branches".  Brought to you in partnership with Wakanda

Topics:

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}