status-go/protocol/requests/create_profile_chat.go

20 lines
293 B
Go
Raw Normal View History

2021-03-25 15:15:22 +00:00
package requests
import (
"errors"
)
var ErrCreateProfileChatInvalidID = errors.New("create-public-chat: invalid id")
type CreateProfileChat struct {
ID string
}
func (j *CreateProfileChat) Validate() error {
if len(j.ID) == 0 {
return ErrCreateProfileChatInvalidID
}
return nil
}