status-go/protocol/requests/decline_request_to_join_com...

22 lines
425 B
Go
Raw Normal View History

2021-01-11 10:32:51 +00:00
package requests
import (
"errors"
"github.com/status-im/status-go/eth-node/types"
)
var ErrDeclineRequestToJoinCommunityInvalidID = errors.New("accept-request-to-join-community: invalid id")
type DeclineRequestToJoinCommunity struct {
2021-05-14 10:55:42 +00:00
ID types.HexBytes `json:"id"`
2021-01-11 10:32:51 +00:00
}
func (j *DeclineRequestToJoinCommunity) Validate() error {
if len(j.ID) == 0 {
return ErrDeclineRequestToJoinCommunityInvalidID
}
return nil
}