mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
20 lines
582 B
Swift
20 lines
582 B
Swift
import Foundation
|
|
import TelegramCore
|
|
import SyncCore
|
|
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?
|
|
}
|