mirror of
https://github.com/LukeHagar/plexgo.git
synced 2025-12-06 04:20:46 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.535.1
This commit is contained in:
@@ -3,8 +3,6 @@
|
||||
package operations
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/LukeHagar/plexgo/internal/utils"
|
||||
"net/http"
|
||||
)
|
||||
@@ -29,19 +27,6 @@ const (
|
||||
func (e Status) ToPointer() *Status {
|
||||
return &e
|
||||
}
|
||||
func (e *Status) UnmarshalJSON(data []byte) error {
|
||||
var v string
|
||||
if err := json.Unmarshal(data, &v); err != nil {
|
||||
return err
|
||||
}
|
||||
switch v {
|
||||
case "accepted":
|
||||
*e = Status(v)
|
||||
return nil
|
||||
default:
|
||||
return fmt.Errorf("invalid value for Status: %v", v)
|
||||
}
|
||||
}
|
||||
|
||||
type Friend struct {
|
||||
// The account email address
|
||||
|
||||
Reference in New Issue
Block a user