Skip to content

Commit

Permalink
Made local vars public
Browse files Browse the repository at this point in the history
  • Loading branch information
theboringhumane committed Sep 9, 2024
1 parent ab4c564 commit 1d01f2c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Sources/TheBoringWorkerNotifier/TheBoringWorkerNotifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,31 @@
import Foundation

public struct WorkerNotification {
var name: String
var handler: (Notification) -> Void
public var name: String
public var handler: (Notification) -> Void
}

public class TheBoringWorkerNotifier {
private let notificationCenter = DistributedNotificationCenter.default()

let toggleMicNotification: WorkerNotification = .init(name: "theboringteam.theboringworker.togglemic", handler: { _ in
public let toggleMicNotification: WorkerNotification = .init(name: "theboringteam.theboringworker.togglemic", handler: { _ in
print("Received toggle mic notification")
})

let toggleHudReplacementNotification: WorkerNotification = .init(name: "theboringteam.theboringworker.togglehudreplacement", handler: { _ in
public let toggleHudReplacementNotification: WorkerNotification = .init(name: "theboringteam.theboringworker.togglehudreplacement", handler: { _ in
print("Received toggle hud replacement notification")
})

let showClipboardNotification: WorkerNotification = .init(name: "theboringteam.theboringnotch.showclipboard", handler: { _ in
public let showClipboardNotification: WorkerNotification = .init(name: "theboringteam.theboringnotch.showclipboard", handler: { _ in

print("Received show clipboard notification")
})

let sneakPeakNotification: WorkerNotification = .init(name: "theboringteam.workers.sneakPeak", handler: { _ in
public let sneakPeakNotification: WorkerNotification = .init(name: "theboringteam.workers.sneakPeak", handler: { _ in
print("Received sneak peak notification")
})

let micStatusNotification: WorkerNotification = .init(name: "theboringteam.theboringworker.micstatus", handler: { _ in
public let micStatusNotification: WorkerNotification = .init(name: "theboringteam.theboringworker.micstatus", handler: { _ in
print("Received mic status notification")
})

Expand Down

0 comments on commit 1d01f2c

Please sign in to comment.