mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
Co-authored-by: Maxence Maireaux <[email protected]> Co-authored-by: David Ragot <[email protected]>
58 lines
1.1 KiB
Go
58 lines
1.1 KiB
Go
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
|
|
package shared
|
|
|
|
type GetHoldsResponseCursor struct {
|
|
Data []Hold `json:"data"`
|
|
HasMore *bool `json:"hasMore,omitempty"`
|
|
Next *string `json:"next,omitempty"`
|
|
PageSize int64 `json:"pageSize"`
|
|
Previous *string `json:"previous,omitempty"`
|
|
}
|
|
|
|
func (o *GetHoldsResponseCursor) GetData() []Hold {
|
|
if o == nil {
|
|
return []Hold{}
|
|
}
|
|
return o.Data
|
|
}
|
|
|
|
func (o *GetHoldsResponseCursor) GetHasMore() *bool {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.HasMore
|
|
}
|
|
|
|
func (o *GetHoldsResponseCursor) GetNext() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Next
|
|
}
|
|
|
|
func (o *GetHoldsResponseCursor) GetPageSize() int64 {
|
|
if o == nil {
|
|
return 0
|
|
}
|
|
return o.PageSize
|
|
}
|
|
|
|
func (o *GetHoldsResponseCursor) GetPrevious() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Previous
|
|
}
|
|
|
|
type GetHoldsResponse struct {
|
|
Cursor GetHoldsResponseCursor `json:"cursor"`
|
|
}
|
|
|
|
func (o *GetHoldsResponse) GetCursor() GetHoldsResponseCursor {
|
|
if o == nil {
|
|
return GetHoldsResponseCursor{}
|
|
}
|
|
return o.Cursor
|
|
}
|