Class: RemoteTrackQueryService::Client

Inherits:
Object
  • Object
show all
Includes:
Thrift::Client
Defined in:
lib/remote_track_query_service.rb

Instance Method Summary collapse

Instance Method Details

#multiQueryBaseTrackInfos(trackIds) ⇒ Object



29
30
31
32
# File 'lib/remote_track_query_service.rb', line 29

def multiQueryBaseTrackInfos(trackIds)
  send_multiQueryBaseTrackInfos(trackIds)
  return recv_multiQueryBaseTrackInfos()
end

#multiQueryDetailTrackInfos(trackIds) ⇒ Object



59
60
61
62
# File 'lib/remote_track_query_service.rb', line 59

def multiQueryDetailTrackInfos(trackIds)
  send_multiQueryDetailTrackInfos(trackIds)
  return recv_multiQueryDetailTrackInfos()
end

#queryBaseTrackInfo(trackId) ⇒ Object



14
15
16
17
# File 'lib/remote_track_query_service.rb', line 14

def queryBaseTrackInfo(trackId)
  send_queryBaseTrackInfo(trackId)
  return recv_queryBaseTrackInfo()
end

#queryDetailTrackInfo(trackId) ⇒ Object



44
45
46
47
# File 'lib/remote_track_query_service.rb', line 44

def queryDetailTrackInfo(trackId)
  send_queryDetailTrackInfo(trackId)
  return recv_queryDetailTrackInfo()
end

#recv_multiQueryBaseTrackInfosObject

Raises:

  • (::Thrift::ApplicationException)


38
39
40
41
42
# File 'lib/remote_track_query_service.rb', line 38

def recv_multiQueryBaseTrackInfos()
  result = receive_message(MultiQueryBaseTrackInfos_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'multiQueryBaseTrackInfos failed: unknown result')
end

#recv_multiQueryDetailTrackInfosObject

Raises:

  • (::Thrift::ApplicationException)


68
69
70
71
72
# File 'lib/remote_track_query_service.rb', line 68

def recv_multiQueryDetailTrackInfos()
  result = receive_message(MultiQueryDetailTrackInfos_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'multiQueryDetailTrackInfos failed: unknown result')
end

#recv_queryBaseTrackInfoObject

Raises:

  • (::Thrift::ApplicationException)


23
24
25
26
27
# File 'lib/remote_track_query_service.rb', line 23

def recv_queryBaseTrackInfo()
  result = receive_message(QueryBaseTrackInfo_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'queryBaseTrackInfo failed: unknown result')
end

#recv_queryDetailTrackInfoObject

Raises:

  • (::Thrift::ApplicationException)


53
54
55
56
57
# File 'lib/remote_track_query_service.rb', line 53

def recv_queryDetailTrackInfo()
  result = receive_message(QueryDetailTrackInfo_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'queryDetailTrackInfo failed: unknown result')
end

#send_multiQueryBaseTrackInfos(trackIds) ⇒ Object



34
35
36
# File 'lib/remote_track_query_service.rb', line 34

def send_multiQueryBaseTrackInfos(trackIds)
  send_message('multiQueryBaseTrackInfos', MultiQueryBaseTrackInfos_args, :trackIds => trackIds)
end

#send_multiQueryDetailTrackInfos(trackIds) ⇒ Object



64
65
66
# File 'lib/remote_track_query_service.rb', line 64

def send_multiQueryDetailTrackInfos(trackIds)
  send_message('multiQueryDetailTrackInfos', MultiQueryDetailTrackInfos_args, :trackIds => trackIds)
end

#send_queryBaseTrackInfo(trackId) ⇒ Object



19
20
21
# File 'lib/remote_track_query_service.rb', line 19

def send_queryBaseTrackInfo(trackId)
  send_message('queryBaseTrackInfo', QueryBaseTrackInfo_args, :trackId => trackId)
end

#send_queryDetailTrackInfo(trackId) ⇒ Object



49
50
51
# File 'lib/remote_track_query_service.rb', line 49

def send_queryDetailTrackInfo(trackId)
  send_message('queryDetailTrackInfo', QueryDetailTrackInfo_args, :trackId => trackId)
end