struct
ACP::Protocol::SessionListResult
- ACP::Protocol::SessionListResult
- Struct
- Value
- Object
Overview
Result of the session/list method (Agent → Client).
Included Modules
- JSON::Serializable
Defined in:
acp/protocol/types.crConstructors
- .new(pull : JSON::PullParser)
- .new(sessions : Array(SessionInfo) = [] of SessionInfo, next_cursor : String | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil)
Instance Method Summary
-
#has_more? : Bool
Returns true if there are more pages to fetch.
-
#meta : Hash(String, JSON::Any) | Nil
Extension metadata.
-
#meta=(meta : Hash(String, JSON::Any) | Nil)
Extension metadata.
-
#next_cursor : String | Nil
Opaque pagination cursor for fetching the next page.
-
#next_cursor=(next_cursor : String | Nil)
Opaque pagination cursor for fetching the next page.
-
#sessions : Array(SessionInfo)
Collection of sessions (required).
-
#sessions=(sessions : Array(SessionInfo))
Collection of sessions (required).
Constructor Detail
def self.new(sessions : Array(SessionInfo) = [] of SessionInfo, next_cursor : String | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil)
#
Instance Method Detail
def next_cursor : String | Nil
#
Opaque pagination cursor for fetching the next page. Nil if there are no more results.
def next_cursor=(next_cursor : String | Nil)
#
Opaque pagination cursor for fetching the next page. Nil if there are no more results.