mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-27 13:12:05 -08:00
c4157a4d5b
* Update dependencies * Fix whatsmeow API changes
37 lines
1.2 KiB
Go
37 lines
1.2 KiB
Go
package armadillo
|
|
|
|
import (
|
|
"google.golang.org/protobuf/proto"
|
|
|
|
"go.mau.fi/whatsmeow/proto/waArmadilloApplication"
|
|
"go.mau.fi/whatsmeow/proto/waCommon"
|
|
"go.mau.fi/whatsmeow/proto/waConsumerApplication"
|
|
"go.mau.fi/whatsmeow/proto/waMultiDevice"
|
|
)
|
|
|
|
type MessageApplicationSub interface {
|
|
IsMessageApplicationSub()
|
|
}
|
|
|
|
type RealMessageApplicationSub interface {
|
|
MessageApplicationSub
|
|
proto.Message
|
|
}
|
|
|
|
type Unsupported_BusinessApplication waCommon.SubProtocol
|
|
type Unsupported_PaymentApplication waCommon.SubProtocol
|
|
type Unsupported_Voip waCommon.SubProtocol
|
|
|
|
var (
|
|
_ MessageApplicationSub = (*waConsumerApplication.ConsumerApplication)(nil) // 2
|
|
_ MessageApplicationSub = (*Unsupported_BusinessApplication)(nil) // 3
|
|
_ MessageApplicationSub = (*Unsupported_PaymentApplication)(nil) // 4
|
|
_ MessageApplicationSub = (*waMultiDevice.MultiDevice)(nil) // 5
|
|
_ MessageApplicationSub = (*Unsupported_Voip)(nil) // 6
|
|
_ MessageApplicationSub = (*waArmadilloApplication.Armadillo)(nil) // 7
|
|
)
|
|
|
|
func (*Unsupported_BusinessApplication) IsMessageApplicationSub() {}
|
|
func (*Unsupported_PaymentApplication) IsMessageApplicationSub() {}
|
|
func (*Unsupported_Voip) IsMessageApplicationSub() {}
|