Class: TencentCloud::Weilingwith::V20230427::BatchReportAppMessageRes

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

Overview

批量消息上报结果

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalelements = nil, commit = nil, spanmap = nil) ⇒ BatchReportAppMessageRes

Returns a new instance of BatchReportAppMessageRes.



1062
1063
1064
1065
1066
# File 'lib/v20230427/models.rb', line 1062

def initialize(totalelements=nil, commit=nil, spanmap=nil)
  @TotalElements = totalelements
  @Commit = commit
  @SpanMap = spanmap
end

Instance Attribute Details

#CommitObject

Parameters:

  • TotalElements:

    上报数量

  • Commit:

    提交数量(推送成功)

  • SpanMap:

    消息推送结果列表



1060
1061
1062
# File 'lib/v20230427/models.rb', line 1060

def Commit
  @Commit
end

#SpanMapObject

Parameters:

  • TotalElements:

    上报数量

  • Commit:

    提交数量(推送成功)

  • SpanMap:

    消息推送结果列表



1060
1061
1062
# File 'lib/v20230427/models.rb', line 1060

def SpanMap
  @SpanMap
end

#TotalElementsObject

Parameters:

  • TotalElements:

    上报数量

  • Commit:

    提交数量(推送成功)

  • SpanMap:

    消息推送结果列表



1060
1061
1062
# File 'lib/v20230427/models.rb', line 1060

def TotalElements
  @TotalElements
end

Instance Method Details

#deserialize(params) ⇒ Object



1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
# File 'lib/v20230427/models.rb', line 1068

def deserialize(params)
  @TotalElements = params['TotalElements']
  @Commit = params['Commit']
  unless params['SpanMap'].nil?
    @SpanMap = []
    params['SpanMap'].each do |i|
      reportmsgres_tmp = ReportMsgRes.new
      reportmsgres_tmp.deserialize(i)
      @SpanMap << reportmsgres_tmp
    end
  end
end