mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 14:16:21 +00:00
20 lines
396 B
Go
20 lines
396 B
Go
|
package requests
|
||
|
|
||
|
import (
|
||
|
"errors"
|
||
|
)
|
||
|
|
||
|
var ErrEnableInstallationAndPairInvalidID = errors.New("enable installation and pair: invalid installation id")
|
||
|
|
||
|
type EnableInstallationAndPair struct {
|
||
|
InstallationID string `json:"installationId"`
|
||
|
}
|
||
|
|
||
|
func (j *EnableInstallationAndPair) Validate() error {
|
||
|
if len(j.InstallationID) == 0 {
|
||
|
return ErrEnableInstallationAndPairInvalidID
|
||
|
}
|
||
|
|
||
|
return nil
|
||
|
}
|