Skip to content

Commit

Permalink
обновлён пример приложения
Browse files Browse the repository at this point in the history
  • Loading branch information
philipok2 committed Apr 1, 2024
1 parent 2edf0bf commit c9adff9
Show file tree
Hide file tree
Showing 5 changed files with 282 additions and 213 deletions.
11 changes: 10 additions & 1 deletion CTChat/CTChat.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,21 @@ public final class CTChat {

// MARK: - Public Properties
public static let shared: CTChat = CTChat()
public let ctqueue = DispatchQueue(label: "crafttalk.chat.queue", qos: .utility, attributes: [.concurrent])

// MARK: - Internal Properties

internal var isConsoleEnabled = false

internal var salt: String = ""
/// Webchat base url
internal var baseURL: String = ""

internal var namespace: String = ""

internal var webchatURL: URL { URL(string: baseURL + "/webchat/" + namespace)! }

internal var visitor: CTVisitor!

internal lazy var certificate: Data? = {
let certName = "CTCertificate"
let certTypes = ["der", "cer", "crt"]
Expand All @@ -38,11 +44,14 @@ public final class CTChat {
}
return nil
}()

internal let networkManager: CTNetworkManager = CTNetworkManager()

// MARK: - Private Properties
private var fcmToken: String = ""

public let ctqueue = DispatchQueue(label: "crafttalk.chat.queue", qos: .utility, attributes: [.concurrent])

// MARK: - Public methods
public func configure() {
ctqueue.async {
Expand Down
Loading

0 comments on commit c9adff9

Please sign in to comment.