thanks github for Windows -.-
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using OnePeek.Entities;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
@@ -21,9 +22,24 @@ namespace OnePeek.Api
|
||||
EndpointUris.GetWindowsPhoneMetadataUri(appId, storeCulture.ToString())
|
||||
);
|
||||
|
||||
AppMetadata result = Deserialize.Xml<AppMetadata>(xml);
|
||||
try
|
||||
{
|
||||
AppMetadata result = Deserialize.Xml<AppMetadata>(xml);
|
||||
result.Id = appId;
|
||||
return result;
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
Debug.WriteLine(exc.Message);
|
||||
}
|
||||
|
||||
return result;
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
public Uri GetImageUri(string urn)
|
||||
{
|
||||
return EndpointUris.GetWindowsPhoneImageUri(urn);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,31 +3,41 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace OnePeek.Entities
|
||||
{
|
||||
[XmlRoot("feed")]
|
||||
public class AppMetadata
|
||||
{
|
||||
[XmlElement("updated")]
|
||||
public DateTime? StoreDataModifiedDate { get; set; }
|
||||
|
||||
[XmlElement("title")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[XmlElement("id")]
|
||||
public string Urn { get; set; }
|
||||
|
||||
public string Id { get; set; }
|
||||
|
||||
[XmlElement("releaseDate")]
|
||||
public DateTime ReleaseDate { get; set; }
|
||||
|
||||
[XmlElement("content")]
|
||||
public string Summary { get; set; }
|
||||
|
||||
[XmlElement("whatsNew")]
|
||||
public string UpdateSummary { get; set; }
|
||||
|
||||
[XmlElement("visibilityStatus")]
|
||||
public AppVisibilityStatus VisibilityStatus { get; set; }
|
||||
|
||||
public AppPublisher Publisher { get; set; }
|
||||
|
||||
public AppRating Rating { get; set; }
|
||||
|
||||
[XmlElement("isUniversal")]
|
||||
public bool IsUniversal { get; set; }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user