Class: TencentCloud::Tdai::V20250717::DescribeChatsResponse

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20250717/models.rb

Overview

DescribeChats返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, chats = nil, requestid = nil) ⇒ DescribeChatsResponse



864
865
866
867
868
# File 'lib/v20250717/models.rb', line 864

def initialize(totalcount=nil, chats=nil, requestid=nil)
  @TotalCount = totalcount
  @Chats = chats
  @RequestId = requestid
end

Instance Attribute Details

#ChatsObject



862
863
864
# File 'lib/v20250717/models.rb', line 862

def Chats
  @Chats
end

#RequestIdObject



862
863
864
# File 'lib/v20250717/models.rb', line 862

def RequestId
  @RequestId
end

#TotalCountObject



862
863
864
# File 'lib/v20250717/models.rb', line 862

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



870
871
872
873
874
875
876
877
878
879
880
881
# File 'lib/v20250717/models.rb', line 870

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['Chats'].nil?
    @Chats = []
    params['Chats'].each do |i|
      chatbrief_tmp = ChatBrief.new
      chatbrief_tmp.deserialize(i)
      @Chats << chatbrief_tmp
    end
  end
  @RequestId = params['RequestId']
end