2024-05-23 14:44:31 -07:00
|
|
|
package armadillo
|
|
|
|
|
|
|
|
import (
|
2024-08-27 10:04:05 -07:00
|
|
|
"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"
|
2024-05-23 14:44:31 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
type MessageApplicationSub interface {
|
|
|
|
IsMessageApplicationSub()
|
|
|
|
}
|
|
|
|
|
2024-08-27 10:04:05 -07:00
|
|
|
type RealMessageApplicationSub interface {
|
|
|
|
MessageApplicationSub
|
|
|
|
proto.Message
|
|
|
|
}
|
|
|
|
|
2024-05-23 14:44:31 -07:00
|
|
|
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() {}
|