Skip to content

Commit

Permalink
Missed some changes for quality of service in Redth#202
Browse files Browse the repository at this point in the history
  • Loading branch information
Redth committed Jun 5, 2013
1 parent 13e2559 commit 2c2b6ec
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions PushSharp.Blackberry/BlackberryNotification.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public string ToPapXml()
pushMsg.Add (new XAttribute ("push-id", this.PushId));
pushMsg.Add(new XAttribute("source-reference", this.SourceReference));

if (this.QualityOfService.HasValue && !string.IsNullOrEmpty (this.PpgNotifyRequestedTo))
if (!string.IsNullOrEmpty (this.PpgNotifyRequestedTo))
pushMsg.Add(new XAttribute("ppg-notify-requested-to", this.PpgNotifyRequestedTo));

if (this.DeliverAfterTimestamp.HasValue)
Expand All @@ -89,8 +89,7 @@ public string ToPapXml()
pushMsg.Add (address);
}

if (this.QualityOfService.HasValue)
pushMsg.Add (new XElement ("quality-of-service", new XAttribute ("delivery-method", this.QualityOfService.Value.ToString ().ToLowerInvariant ())));
pushMsg.Add (new XElement ("quality-of-service", new XAttribute ("delivery-method", this.QualityOfService.ToString ().ToLowerInvariant ())));

pap.Add(pushMsg);
doc.Add (pap);
Expand Down

0 comments on commit 2c2b6ec

Please sign in to comment.