Class: TencentCloud::Gpm::V20200820::MatchTicket

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

Overview

匹配票据信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id = nil, matchcode = nil, matchresult = nil, matchtype = nil, players = nil, status = nil, statusmessage = nil, statusreason = nil, starttime = nil, endtime = nil) ⇒ MatchTicket

Returns a new instance of MatchTicket.



1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
# File 'lib/v20200820/models.rb', line 1025

def initialize(id=nil, matchcode=nil, matchresult=nil, matchtype=nil, players=nil, status=nil, statusmessage=nil, statusreason=nil, starttime=nil, endtime=nil)
  @Id = id
  @MatchCode = matchcode
  @MatchResult = matchresult
  @MatchType = matchtype
  @Players = players
  @Status = status
  @StatusMessage = statusmessage
  @StatusReason = statusreason
  @StartTime = starttime
  @EndTime = endtime
end

Instance Attribute Details

#EndTimeObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Id:

    匹配票据 ID长度 128 [a-zA-Z0-9-.]*

  • MatchCode:

    匹配 Code

  • MatchResult:

    根据 MatchType 取不同的结构序列化结果

  • MatchType:

    表示不同的匹配类型,NORMAL | GSE

  • Players:

    玩家信息列表

  • Status:

    匹配状态: SEARCHING 匹配中; PLACING 匹配放置中; COMPLETED 匹配完成; CANCELLED 匹配取消; TIMEDOUT 匹配超时; FAILED 匹配失败

  • StatusMessage:

    匹配状态信息

  • StatusReason:

    匹配状态原因

  • StartTime:

    收到发起匹配请求的时间 eg: “2020-08-17T08:14:38.077Z”

  • EndTime:

    匹配请求因完成、失败、超时、被取消而停止执行的时间 eg: “2020-08-17T08:14:38.077Z”



1023
1024
1025
# File 'lib/v20200820/models.rb', line 1023

def EndTime
  @EndTime
end

#IdObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Id:

    匹配票据 ID长度 128 [a-zA-Z0-9-.]*

  • MatchCode:

    匹配 Code

  • MatchResult:

    根据 MatchType 取不同的结构序列化结果

  • MatchType:

    表示不同的匹配类型,NORMAL | GSE

  • Players:

    玩家信息列表

  • Status:

    匹配状态: SEARCHING 匹配中; PLACING 匹配放置中; COMPLETED 匹配完成; CANCELLED 匹配取消; TIMEDOUT 匹配超时; FAILED 匹配失败

  • StatusMessage:

    匹配状态信息

  • StatusReason:

    匹配状态原因

  • StartTime:

    收到发起匹配请求的时间 eg: “2020-08-17T08:14:38.077Z”

  • EndTime:

    匹配请求因完成、失败、超时、被取消而停止执行的时间 eg: “2020-08-17T08:14:38.077Z”



1023
1024
1025
# File 'lib/v20200820/models.rb', line 1023

def Id
  @Id
end

#MatchCodeObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Id:

    匹配票据 ID长度 128 [a-zA-Z0-9-.]*

  • MatchCode:

    匹配 Code

  • MatchResult:

    根据 MatchType 取不同的结构序列化结果

  • MatchType:

    表示不同的匹配类型,NORMAL | GSE

  • Players:

    玩家信息列表

  • Status:

    匹配状态: SEARCHING 匹配中; PLACING 匹配放置中; COMPLETED 匹配完成; CANCELLED 匹配取消; TIMEDOUT 匹配超时; FAILED 匹配失败

  • StatusMessage:

    匹配状态信息

  • StatusReason:

    匹配状态原因

  • StartTime:

    收到发起匹配请求的时间 eg: “2020-08-17T08:14:38.077Z”

  • EndTime:

    匹配请求因完成、失败、超时、被取消而停止执行的时间 eg: “2020-08-17T08:14:38.077Z”



1023
1024
1025
# File 'lib/v20200820/models.rb', line 1023

def MatchCode
  @MatchCode
end

#MatchResultObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Id:

    匹配票据 ID长度 128 [a-zA-Z0-9-.]*

  • MatchCode:

    匹配 Code

  • MatchResult:

    根据 MatchType 取不同的结构序列化结果

  • MatchType:

    表示不同的匹配类型,NORMAL | GSE

  • Players:

    玩家信息列表

  • Status:

    匹配状态: SEARCHING 匹配中; PLACING 匹配放置中; COMPLETED 匹配完成; CANCELLED 匹配取消; TIMEDOUT 匹配超时; FAILED 匹配失败

  • StatusMessage:

    匹配状态信息

  • StatusReason:

    匹配状态原因

  • StartTime:

    收到发起匹配请求的时间 eg: “2020-08-17T08:14:38.077Z”

  • EndTime:

    匹配请求因完成、失败、超时、被取消而停止执行的时间 eg: “2020-08-17T08:14:38.077Z”



1023
1024
1025
# File 'lib/v20200820/models.rb', line 1023

def MatchResult
  @MatchResult
end

#MatchTypeObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Id:

    匹配票据 ID长度 128 [a-zA-Z0-9-.]*

  • MatchCode:

    匹配 Code

  • MatchResult:

    根据 MatchType 取不同的结构序列化结果

  • MatchType:

    表示不同的匹配类型,NORMAL | GSE

  • Players:

    玩家信息列表

  • Status:

    匹配状态: SEARCHING 匹配中; PLACING 匹配放置中; COMPLETED 匹配完成; CANCELLED 匹配取消; TIMEDOUT 匹配超时; FAILED 匹配失败

  • StatusMessage:

    匹配状态信息

  • StatusReason:

    匹配状态原因

  • StartTime:

    收到发起匹配请求的时间 eg: “2020-08-17T08:14:38.077Z”

  • EndTime:

    匹配请求因完成、失败、超时、被取消而停止执行的时间 eg: “2020-08-17T08:14:38.077Z”



1023
1024
1025
# File 'lib/v20200820/models.rb', line 1023

def MatchType
  @MatchType
end

#PlayersObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Id:

    匹配票据 ID长度 128 [a-zA-Z0-9-.]*

  • MatchCode:

    匹配 Code

  • MatchResult:

    根据 MatchType 取不同的结构序列化结果

  • MatchType:

    表示不同的匹配类型,NORMAL | GSE

  • Players:

    玩家信息列表

  • Status:

    匹配状态: SEARCHING 匹配中; PLACING 匹配放置中; COMPLETED 匹配完成; CANCELLED 匹配取消; TIMEDOUT 匹配超时; FAILED 匹配失败

  • StatusMessage:

    匹配状态信息

  • StatusReason:

    匹配状态原因

  • StartTime:

    收到发起匹配请求的时间 eg: “2020-08-17T08:14:38.077Z”

  • EndTime:

    匹配请求因完成、失败、超时、被取消而停止执行的时间 eg: “2020-08-17T08:14:38.077Z”



1023
1024
1025
# File 'lib/v20200820/models.rb', line 1023

def Players
  @Players
end

#StartTimeObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Id:

    匹配票据 ID长度 128 [a-zA-Z0-9-.]*

  • MatchCode:

    匹配 Code

  • MatchResult:

    根据 MatchType 取不同的结构序列化结果

  • MatchType:

    表示不同的匹配类型,NORMAL | GSE

  • Players:

    玩家信息列表

  • Status:

    匹配状态: SEARCHING 匹配中; PLACING 匹配放置中; COMPLETED 匹配完成; CANCELLED 匹配取消; TIMEDOUT 匹配超时; FAILED 匹配失败

  • StatusMessage:

    匹配状态信息

  • StatusReason:

    匹配状态原因

  • StartTime:

    收到发起匹配请求的时间 eg: “2020-08-17T08:14:38.077Z”

  • EndTime:

    匹配请求因完成、失败、超时、被取消而停止执行的时间 eg: “2020-08-17T08:14:38.077Z”



1023
1024
1025
# File 'lib/v20200820/models.rb', line 1023

def StartTime
  @StartTime
end

#StatusObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Id:

    匹配票据 ID长度 128 [a-zA-Z0-9-.]*

  • MatchCode:

    匹配 Code

  • MatchResult:

    根据 MatchType 取不同的结构序列化结果

  • MatchType:

    表示不同的匹配类型,NORMAL | GSE

  • Players:

    玩家信息列表

  • Status:

    匹配状态: SEARCHING 匹配中; PLACING 匹配放置中; COMPLETED 匹配完成; CANCELLED 匹配取消; TIMEDOUT 匹配超时; FAILED 匹配失败

  • StatusMessage:

    匹配状态信息

  • StatusReason:

    匹配状态原因

  • StartTime:

    收到发起匹配请求的时间 eg: “2020-08-17T08:14:38.077Z”

  • EndTime:

    匹配请求因完成、失败、超时、被取消而停止执行的时间 eg: “2020-08-17T08:14:38.077Z”



1023
1024
1025
# File 'lib/v20200820/models.rb', line 1023

def Status
  @Status
end

#StatusMessageObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Id:

    匹配票据 ID长度 128 [a-zA-Z0-9-.]*

  • MatchCode:

    匹配 Code

  • MatchResult:

    根据 MatchType 取不同的结构序列化结果

  • MatchType:

    表示不同的匹配类型,NORMAL | GSE

  • Players:

    玩家信息列表

  • Status:

    匹配状态: SEARCHING 匹配中; PLACING 匹配放置中; COMPLETED 匹配完成; CANCELLED 匹配取消; TIMEDOUT 匹配超时; FAILED 匹配失败

  • StatusMessage:

    匹配状态信息

  • StatusReason:

    匹配状态原因

  • StartTime:

    收到发起匹配请求的时间 eg: “2020-08-17T08:14:38.077Z”

  • EndTime:

    匹配请求因完成、失败、超时、被取消而停止执行的时间 eg: “2020-08-17T08:14:38.077Z”



1023
1024
1025
# File 'lib/v20200820/models.rb', line 1023

def StatusMessage
  @StatusMessage
end

#StatusReasonObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Id:

    匹配票据 ID长度 128 [a-zA-Z0-9-.]*

  • MatchCode:

    匹配 Code

  • MatchResult:

    根据 MatchType 取不同的结构序列化结果

  • MatchType:

    表示不同的匹配类型,NORMAL | GSE

  • Players:

    玩家信息列表

  • Status:

    匹配状态: SEARCHING 匹配中; PLACING 匹配放置中; COMPLETED 匹配完成; CANCELLED 匹配取消; TIMEDOUT 匹配超时; FAILED 匹配失败

  • StatusMessage:

    匹配状态信息

  • StatusReason:

    匹配状态原因

  • StartTime:

    收到发起匹配请求的时间 eg: “2020-08-17T08:14:38.077Z”

  • EndTime:

    匹配请求因完成、失败、超时、被取消而停止执行的时间 eg: “2020-08-17T08:14:38.077Z”



1023
1024
1025
# File 'lib/v20200820/models.rb', line 1023

def StatusReason
  @StatusReason
end

Instance Method Details

#deserialize(params) ⇒ Object



1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
# File 'lib/v20200820/models.rb', line 1038

def deserialize(params)
  @Id = params['Id']
  @MatchCode = params['MatchCode']
  @MatchResult = params['MatchResult']
  @MatchType = params['MatchType']
  unless params['Players'].nil?
    @Players = []
    params['Players'].each do |i|
      player_tmp = Player.new
      player_tmp.deserialize(i)
      @Players << player_tmp
    end
  end
  @Status = params['Status']
  @StatusMessage = params['StatusMessage']
  @StatusReason = params['StatusReason']
  @StartTime = params['StartTime']
  @EndTime = params['EndTime']
end