コード例 #1
0
   public override void parse(XDocument doc)
   {
       MarketCat retour = new MarketCat();
       String atom = "{http://www.w3.org/2005/Atom}";
       String defaultXlmns = "{http://schemas.zune.net/catalog/apps/2008/02}";
       retour = new MarketCat()
       {
           Id = doc.Element(atom + "entry").Element(atom + "id").Value,
           Title = doc.Element(atom + "entry").Element(atom + "title").Value
       };
       OnComplete(retour);
 }
コード例 #2
0
 private AppsPreview CreateAppsPreview(MarketCat Cat)
 {
     XMLLoader loader = new XMLLoader();
     XMLParser parser = new MarketAppXMLParserFromMP();
     XMLLoader previewLoader = new XMLLoader();
     XMLParser previewParser = new MarketAppXMLParser();
     Uri uri = URIModel.Instance.getBaseAppsUri();
     AppsPreview RandomAppsPreview;
     RandomAppsPreview = new AppsPreview();
     RandomAppsPreview.URI = uri;
     RandomAppsPreview.Category = Cat;
     RandomAppsPreview.PreviewLoader = previewLoader;
     RandomAppsPreview.Loader = loader;
     RandomAppsPreview.PreviewParser = previewParser;
     RandomAppsPreview.Parser = parser;
     RandomAppsPreview.UrlGetter = URIModel.Instance.getRandomWithCat;
     RandomAppsPreview.ErrorEvent += RandomAppsPreview_ErrorEvent;
     return RandomAppsPreview;
 }
コード例 #3
0
ファイル: URIModel.cs プロジェクト: fstn/WindowsPhoneApps
 internal Uri getRandomWithCat(MarketCat categorie)
 {
     return getRandomWithCat(categorie.Id);
 }