status-go/protocol/requests/create_profile_chat.go

20 lines
305 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 {
2021-05-14 10:55:42 +00:00
ID string `json:"id"`
2021-03-25 15:15:22 +00:00
}
2021-05-14 10:55:42 +00:00
func (c *CreateProfileChat) Validate() error {
if len(c.ID) == 0 {
2021-03-25 15:15:22 +00:00
return ErrCreateProfileChatInvalidID
}
return nil
}