-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4760dd2
commit fdf44c7
Showing
15 changed files
with
800 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// This file was auto-generated by Fern from our API Definition. | ||
|
||
package devices | ||
|
||
import ( | ||
json "encoding/json" | ||
fmt "fmt" | ||
core "github.com/seamapi/go/core" | ||
) | ||
|
||
type SimulateRemoveRequest struct { | ||
DeviceId string `json:"device_id" url:"device_id"` | ||
} | ||
|
||
type SimulateRemoveResponse struct { | ||
Ok bool `json:"ok" url:"ok"` | ||
|
||
_rawJSON json.RawMessage | ||
} | ||
|
||
func (s *SimulateRemoveResponse) UnmarshalJSON(data []byte) error { | ||
type unmarshaler SimulateRemoveResponse | ||
var value unmarshaler | ||
if err := json.Unmarshal(data, &value); err != nil { | ||
return err | ||
} | ||
*s = SimulateRemoveResponse(value) | ||
s._rawJSON = json.RawMessage(data) | ||
return nil | ||
} | ||
|
||
func (s *SimulateRemoveResponse) String() string { | ||
if len(s._rawJSON) > 0 { | ||
if value, err := core.StringifyJSON(s._rawJSON); err == nil { | ||
return value | ||
} | ||
} | ||
if value, err := core.StringifyJSON(s); err == nil { | ||
return value | ||
} | ||
return fmt.Sprintf("%#v", s) | ||
} |
Oops, something went wrong.