Files
plexruby/lib/plex_ruby_sdk/models/operations/performvoicesearch_request.rb

39 lines
1.3 KiB
Ruby

# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
# typed: true
# frozen_string_literal: true
module PlexRubySDK
module Operations
class PerformVoiceSearchRequest < ::Crystalline::FieldAugmented
extend T::Sig
# The query term
field :query, ::String, { 'query_param': { 'field_name': 'query', 'style': 'form', 'explode': true } }
# The number of items to return per hub
field :limit, T.nilable(::Float), { 'query_param': { 'field_name': 'limit', 'style': 'form', 'explode': true } }
# This gives context to the search, and can result in re-ordering of search result hubs
field :section_id, T.nilable(::Float), { 'query_param': { 'field_name': 'sectionId', 'style': 'form', 'explode': true } }
sig { params(query: ::String, limit: T.nilable(::Float), section_id: T.nilable(::Float)).void }
def initialize(query: nil, limit: nil, section_id: nil)
@query = query
@limit = limit
@section_id = section_id
end
def ==(other)
return false unless other.is_a? self.class
return false unless @query == other.query
return false unless @limit == other.limit
return false unless @section_id == other.section_id
true
end
end
end
end