File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ public enum Constants {
9
9
}
10
10
11
11
enum ChannelTypes {
12
+ static let presence = " presence "
13
+ static let `private` = " private "
12
14
static let privateEncrypted = " private-encrypted "
13
15
}
14
16
@@ -33,8 +35,6 @@ public enum Constants {
33
35
static let client = " client "
34
36
static let pusher = " pusher "
35
37
static let pusherInternal = " pusher_internal "
36
- static let presence = " presence "
37
- static let `private` = " private "
38
38
}
39
39
40
40
enum JSONKeys {
Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ public enum PusherChannelType {
10
10
}
11
11
12
12
public static func type( forName name: String ) -> PusherChannelType {
13
- if ( name. components ( separatedBy: " - " ) [ 0 ] == Constants . EventTypes . presence) {
13
+ if ( name. components ( separatedBy: " - " ) [ 0 ] == Constants . ChannelTypes . presence) {
14
14
return . presence
15
- } else if ( name. components ( separatedBy: " - " ) [ 0 ] == Constants . EventTypes . private) {
15
+ } else if ( name. components ( separatedBy: " - " ) [ 0 ] == Constants . ChannelTypes . private) {
16
16
return . private
17
17
} else {
18
18
return . normal
You can’t perform that action at this time.
0 commit comments