session-ios/SignalMessaging/environment/NoopCallMessageHandler.swift

29 lines
932 B
Swift

//
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
//
import SignalServiceKit
@objc
public class NoopCallMessageHandler: NSObject, OWSCallMessageHandler {
public func receivedOffer(_ offer: SSKProtoCallMessageOffer, from callerId: String) {
owsFail("\(self.logTag) in \(#function).")
}
public func receivedAnswer(_ answer: SSKProtoCallMessageAnswer, from callerId: String) {
owsFail("\(self.logTag) in \(#function).")
}
public func receivedIceUpdate(_ iceUpdate: SSKProtoCallMessageIceUpdate, from callerId: String) {
owsFail("\(self.logTag) in \(#function).")
}
public func receivedHangup(_ hangup: SSKProtoCallMessageHangup, from callerId: String) {
owsFail("\(self.logTag) in \(#function).")
}
public func receivedBusy(_ busy: SSKProtoCallMessageBusy, from callerId: String) {
owsFail("\(self.logTag) in \(#function).")
}
}