mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Refactor more modules
This commit is contained in:
18
submodules/AccountContext/Sources/LiveLocationManager.swift
Normal file
18
submodules/AccountContext/Sources/LiveLocationManager.swift
Normal file
@@ -0,0 +1,18 @@
|
||||
import Foundation
|
||||
import TelegramCore
|
||||
import Postbox
|
||||
import SwiftSignalKit
|
||||
|
||||
public protocol LiveLocationSummaryManager {
|
||||
func broadcastingToMessages() -> Signal<[MessageId: Message], NoError>
|
||||
func peersBroadcastingTo(peerId: PeerId) -> Signal<[(Peer, Message)]?, NoError>
|
||||
}
|
||||
|
||||
public protocol LiveLocationManager {
|
||||
var summaryManager: LiveLocationSummaryManager { get }
|
||||
var isPolling: Signal<Bool, NoError> { get }
|
||||
|
||||
func cancelLiveLocation(peerId: PeerId)
|
||||
func pollOnce()
|
||||
func internalMessageForPeerId(_ peerId: PeerId) -> MessageId?
|
||||
}
|
||||
Reference in New Issue
Block a user