status-go/protocol/requests/dismiss_community_notificat...

24 lines
456 B
Go
Raw Normal View History

package requests
import (
"errors"
"github.com/status-im/status-go/eth-node/types"
)
var (
ErrDismissCommunityNotificationsInvalidID = errors.New("dismiss-community-notifications: invalid id")
)
type DismissCommunityNotifications struct {
CommunityID types.HexBytes `json:"communityId"`
}
func (r *DismissCommunityNotifications) Validate() error {
if len(r.CommunityID) == 0 {
return ErrDismissCommunityNotificationsInvalidID
}
return nil
}