owl-blogs/test/mock_interaction.go

33 lines
627 B
Go
Raw Normal View History

2023-08-09 19:44:29 +00:00
package test
import (
"owl-blogs/domain/model"
"time"
)
type MockInteractionMetaData struct {
Str string
Number int
Date time.Time
}
type MockInteraction struct {
model.InteractionBase
metaData *MockInteractionMetaData
}
// Content implements model.Interaction.
func (*MockInteraction) Content() model.InteractionContent {
return ""
}
// MetaData implements model.Interaction.
func (i *MockInteraction) MetaData() interface{} {
return i.metaData
}
// SetMetaData implements model.Interaction.
func (i *MockInteraction) SetMetaData(metaData interface{}) {
i.metaData = metaData.(*MockInteractionMetaData)
}