Skip to content
Snippets Groups Projects
Commit df15d9f9 authored by Dariusz Rybicki's avatar Dariusz Rybicki
Browse files

Refactor

parent b32eed39
No related branches found
No related tags found
2 merge requests!102Release 1.0.0,!18Update Bindings
...@@ -16,11 +16,11 @@ public struct E2E { ...@@ -16,11 +16,11 @@ public struct E2E {
extension E2E { extension E2E {
public static func live(_ bindingsE2E: BindingsE2e) -> E2E { public static func live(_ bindingsE2E: BindingsE2e) -> E2E {
E2E( E2E(
getId: .live(bindingsE2E: bindingsE2E), getId: .live(bindingsE2E),
getReceptionId: .live(bindingsE2E: bindingsE2E), getReceptionId: .live(bindingsE2E),
getContact: .live(bindingsE2E: bindingsE2E), getContact: .live(bindingsE2E),
payloadSize: .live(bindingsE2E: bindingsE2E), payloadSize: .live(bindingsE2E),
partitionSize: .live(bindingsE2E: bindingsE2E), partitionSize: .live(bindingsE2E),
addPartnerCallback: .live(bindingsE2E), addPartnerCallback: .live(bindingsE2E),
addService: .live(bindingsE2E), addService: .live(bindingsE2E),
removeService: .live(bindingsE2E) removeService: .live(bindingsE2E)
......
...@@ -10,7 +10,7 @@ public struct E2EGetContact { ...@@ -10,7 +10,7 @@ public struct E2EGetContact {
} }
extension E2EGetContact { extension E2EGetContact {
public static func live(bindingsE2E: BindingsE2e) -> E2EGetContact { public static func live(_ bindingsE2E: BindingsE2e) -> E2EGetContact {
E2EGetContact { E2EGetContact {
guard let data = bindingsE2E.getContact() else { guard let data = bindingsE2E.getContact() else {
fatalError("BindingsE2e.getContact returned `nil`") fatalError("BindingsE2e.getContact returned `nil`")
......
...@@ -10,7 +10,7 @@ public struct E2EGetId { ...@@ -10,7 +10,7 @@ public struct E2EGetId {
} }
extension E2EGetId { extension E2EGetId {
public static func live(bindingsE2E: BindingsE2e) -> E2EGetId { public static func live(_ bindingsE2E: BindingsE2e) -> E2EGetId {
E2EGetId(run: bindingsE2E.getID) E2EGetId(run: bindingsE2E.getID)
} }
} }
......
...@@ -10,7 +10,7 @@ public struct E2EGetReceptionId { ...@@ -10,7 +10,7 @@ public struct E2EGetReceptionId {
} }
extension E2EGetReceptionId { extension E2EGetReceptionId {
public static func live(bindingsE2E: BindingsE2e) -> E2EGetReceptionId { public static func live(_ bindingsE2E: BindingsE2e) -> E2EGetReceptionId {
E2EGetReceptionId { E2EGetReceptionId {
guard let data = bindingsE2E.getReceptionID() else { guard let data = bindingsE2E.getReceptionID() else {
fatalError("BindingsE2e.getReceptionID returned `nil`") fatalError("BindingsE2e.getReceptionID returned `nil`")
......
...@@ -12,7 +12,7 @@ public struct E2EPartitionSize { ...@@ -12,7 +12,7 @@ public struct E2EPartitionSize {
} }
extension E2EPartitionSize { extension E2EPartitionSize {
public static func live(bindingsE2E: BindingsE2e) -> E2EPartitionSize { public static func live(_ bindingsE2E: BindingsE2e) -> E2EPartitionSize {
E2EPartitionSize( E2EPartitionSize(
first: bindingsE2E.firstPartitionSize, first: bindingsE2E.firstPartitionSize,
second: bindingsE2E.secondPartitionSize, second: bindingsE2E.secondPartitionSize,
......
...@@ -10,7 +10,7 @@ public struct E2EPayloadSize { ...@@ -10,7 +10,7 @@ public struct E2EPayloadSize {
} }
extension E2EPayloadSize { extension E2EPayloadSize {
public static func live(bindingsE2E: BindingsE2e) -> E2EPayloadSize { public static func live(_ bindingsE2E: BindingsE2e) -> E2EPayloadSize {
E2EPayloadSize(run: bindingsE2E.payloadSize) E2EPayloadSize(run: bindingsE2E.payloadSize)
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment