DZone
Mobile Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Mobile Zone > Marketwatcher Source Code: Fetching Windows Phone App Reviews

Marketwatcher Source Code: Fetching Windows Phone App Reviews

Mikael Koskinen user avatar by
Mikael Koskinen
·
Jan. 20, 12 · Mobile Zone · Interview
Like (0)
Save
Tweet
2.90K Views

Join the DZone community and get the full member experience.

Join For Free
I’ve just committed the first working version of Marketwatcher, a library for Windows Phone 7 which can be used to fetch application reviews from the Windows Phone Marketplace. It is available from the GitHub and it’s licensed with MIT, so you can use the library anyway you want.

Get the source code.

Get the compiled binaries.

Sample application

The Marketwatcher GitHub repository contains a sample app which can used to check out how the library is used.

Review data

At the moment an app review is described with the following model:

public string Id { get; private set; }
public string Author { get; private set; }
public DateTime UpdateTime { get; private set; }
public int Score { get; private set; }
public string Comments { get; private set; }
public string CountryCode { get; private set; }

Implementation

Marketwatcher uses the Reactive Extensions. It may be that the RX is dropped at some point in favor of a implementation that doesn’t require any other DLLs. The library also references System.ServiceModel.Syndication which is used to parse the review data. The referenced dlls are included in the repository.

Usage

Marketwatcher.Fetcher:

Use either:

public IObservable<List<Review>> FetchReviewsForApp(string appId)

or

public IObservable<List<Review>> FetchReviewsForAppFromOneMarketplace(string appId, string marketplaceCountryCode)

In the app you can subscribe to these. The following example is from the sample app:

var fetcher = new Fetcher();
 
progressIndicator.IsVisible = true;
 
var reviews = new ObservableCollection<Review>();
Items.ItemsSource = reviews;
 
fetcher.FetchReviewsForApp(this.Appid.Text)
    .ObserveOn(SynchronizationContext.Current)
    .Subscribe(x =>
                   {
                       foreach (var review in x)
                       {
                           reviews.Add(review);
                       }
                   },
                   ex => Debug.WriteLine("error"),
                   () => progressIndicator.IsVisible = false);

Nuget

The Nuget package is coming!

Download

GitHub repository.

Binaries.


Source:  http://mikaelkoskinen.net/post/Marketwatcher-WP7-Class-Library-and-Sample-Application-for-Fetching-Application-Reviews-from-the-Marketplace.aspx


Windows Phone app

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Automation Testing vs. Manual Testing: What's the Difference?
  • 3 Reasons Why You Should Centralize Developer Tools, Processes, and People
  • To Shift Right, You Need Observability
  • NextJS Vs React: Key Differences, Advantages and Limitations

Comments

Mobile Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo