2021-02-21 21:52:41 -06:00
|
|
|
// Decompiled with JetBrains decompiler
|
|
|
|
|
// Type: ZuneXml.MessagingQueryHelper
|
|
|
|
|
// Assembly: ZuneShell, Version=4.7.0.0, Culture=neutral, PublicKeyToken=ddd0da4d3e678217
|
|
|
|
|
// MVID: FC8028F3-A47B-4FB4-B35B-11D1752D8264
|
|
|
|
|
// Assembly location: C:\Program Files\Zune\ZuneShell.dll
|
|
|
|
|
|
|
|
|
|
using Microsoft.Zune.Service;
|
|
|
|
|
using ZuneUI;
|
|
|
|
|
|
|
|
|
|
namespace ZuneXml
|
|
|
|
|
{
|
|
|
|
|
internal class MessagingQueryHelper : ZuneServiceQueryHelper
|
|
|
|
|
{
|
|
|
|
|
private EServiceEndpointId _endPoint;
|
|
|
|
|
|
|
|
|
|
internal static ZuneServiceQueryHelper ConstructMessagingQueryHelper(
|
|
|
|
|
ZuneServiceQuery query)
|
|
|
|
|
{
|
2021-02-21 22:59:09 -06:00
|
|
|
return new MessagingQueryHelper(query);
|
2021-02-21 21:52:41 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal MessagingQueryHelper(ZuneServiceQuery query)
|
|
|
|
|
: base(query)
|
|
|
|
|
{
|
|
|
|
|
this._endPoint = EServiceEndpointId.SEID_Messaging;
|
|
|
|
|
query.CachePolicy = HttpRequestCachePolicy.BypassCache;
|
|
|
|
|
query.PassportTicketType = EPassportPolicyId.MBI_SSL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal override string GetResourceUri()
|
|
|
|
|
{
|
|
|
|
|
string property1 = (string)this.Query.GetProperty("ZuneTag");
|
|
|
|
|
if (string.IsNullOrEmpty(property1))
|
2021-02-21 22:59:09 -06:00
|
|
|
return null;
|
2021-02-21 21:52:41 -06:00
|
|
|
string property2 = (string)this.Query.GetProperty("RequestType");
|
2021-02-21 22:59:09 -06:00
|
|
|
return string.IsNullOrEmpty(property2) ? null : UrlHelper.MakeUrl(string.Format("{0}/messaging/{1}/inbox/{2}", Service.GetEndPointUri(this._endPoint), property1.ToLower(), property2));
|
2021-02-21 21:52:41 -06:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|