Skip to content

Commit 8d4277e

Browse files
committed
Fixed some whitespace
1 parent 8ae62b4 commit 8d4277e

File tree

3 files changed

+18
-19
lines changed

3 files changed

+18
-19
lines changed

PushSharp.Apple/ApnsFeedbackService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public void Check ()
9494
// Raise the event to the consumer
9595
var evt = FeedbackReceived;
9696
if (evt != null)
97-
evt (token, timestamp);
97+
evt (token, timestamp);
9898
} else {
9999
continue;
100100
}

PushSharp.Apple/ApnsNotification.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public byte[] ToBytes ()
126126
builder.Add (0x02); // Payload ID
127127
builder.AddRange (BitConverter.GetBytes (IPAddress.HostToNetworkOrder (Convert.ToInt16 (payload.Length))));
128128
builder.AddRange (payload);
129-
129+
130130
// 3 - Identifier
131131
builder.Add (0x03);
132132
builder.AddRange (BitConverter.GetBytes (IPAddress.HostToNetworkOrder ((Int16)4)));
@@ -141,18 +141,17 @@ public byte[] ToBytes ()
141141
TimeSpan epochTimeSpan = concreteExpireDateUtc - UNIX_EPOCH;
142142
expiryTimeStamp = (int)epochTimeSpan.TotalSeconds;
143143
}
144-
144+
145145
builder.Add (0x04); // 4 - Expiry ID
146146
builder.AddRange (BitConverter.GetBytes (IPAddress.HostToNetworkOrder ((Int16)4)));
147147
builder.AddRange (BitConverter.GetBytes (IPAddress.HostToNetworkOrder (expiryTimeStamp)));
148148

149-
150149
// 5 - Priority
151150
//TODO: Add priority
152151
var priority = LowPriority ? (byte)5 : (byte)10;
153152
builder.Add (0x05); // 5 - Priority
154153
builder.AddRange (BitConverter.GetBytes (IPAddress.HostToNetworkOrder ((Int16)1)));
155-
builder.Add (priority); //.AddRange (BitConverter.GetBytes (IPAddress.HostToNetworkOrder ((byte)priority)));
154+
builder.Add (priority);
156155

157156
var frameLength = builder.Count;
158157

PushSharp.Apple/ApnsServiceConnection.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@
44

55
namespace PushSharp.Apple
66
{
7-
public class ApnsServiceConnectionFactory : IServiceConnectionFactory<ApnsNotification>
8-
{
7+
public class ApnsServiceConnectionFactory : IServiceConnectionFactory<ApnsNotification>
8+
{
99
public ApnsServiceConnectionFactory (ApnsConfiguration configuration)
1010
{
1111
Configuration = configuration;
1212
}
1313

1414
public ApnsConfiguration Configuration { get; private set; }
1515

16-
public IServiceConnection<ApnsNotification> Create()
17-
{
18-
return new ApnsServiceConnection (Configuration);
19-
}
20-
}
16+
public IServiceConnection<ApnsNotification> Create()
17+
{
18+
return new ApnsServiceConnection (Configuration);
19+
}
20+
}
2121

2222
public class ApnsServiceBroker : ServiceBroker<ApnsNotification>
2323
{
@@ -26,17 +26,17 @@ public ApnsServiceBroker (ApnsConfiguration configuration) : base (new ApnsServi
2626
}
2727
}
2828

29-
public class ApnsServiceConnection : IServiceConnection<ApnsNotification>
30-
{
29+
public class ApnsServiceConnection : IServiceConnection<ApnsNotification>
30+
{
3131
readonly ApnsConnection connection;
32-
32+
3333
public ApnsServiceConnection (ApnsConfiguration configuration)
3434
{
3535
connection = new ApnsConnection (configuration);
3636
}
3737

38-
public async Task Send (ApnsNotification notification)
39-
{
38+
public async Task Send (ApnsNotification notification)
39+
{
4040
var completableNotification = new ApnsConnection.CompletableApnsNotification (notification);
4141

4242
connection.Send (completableNotification);
@@ -48,6 +48,6 @@ public async Task Send (ApnsNotification notification)
4848
if (ex != null) {
4949
throw ex;
5050
}
51-
}
52-
}
51+
}
52+
}
5353
}

0 commit comments

Comments
 (0)