status-go/protocol/requests/enable_installation_and_pai...

24 lines
489 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
}
func (j *EnableInstallationAndPair) GetInstallationID() string {
return j.InstallationID
}