Class: ChannelService::Client

Inherits:
Object
  • Object
show all
Includes:
Thrift::Client
Defined in:
lib/linerb/gen-rb/channel_service.rb

Instance Method Summary collapse

Instance Method Details

#approveChannelAndIssueChannelToken(channelId) ⇒ Object



92
93
94
95
# File 'lib/linerb/gen-rb/channel_service.rb', line 92

def approveChannelAndIssueChannelToken(channelId)
  send_approveChannelAndIssueChannelToken(channelId)
  recv_approveChannelAndIssueChannelToken()
end

#getApprovedChannels(lastSynced, locale) ⇒ Object



14
15
16
17
# File 'lib/linerb/gen-rb/channel_service.rb', line 14

def getApprovedChannels(lastSynced, locale)
  send_getApprovedChannels(lastSynced, locale)
  return recv_getApprovedChannels()
end

#getChannelInfo(channelId, locale) ⇒ Object



106
107
108
109
# File 'lib/linerb/gen-rb/channel_service.rb', line 106

def getChannelInfo(channelId, locale)
  send_getChannelInfo(channelId, locale)
  return recv_getChannelInfo()
end

#getChannelNotificationSettings(locale) ⇒ Object



122
123
124
125
# File 'lib/linerb/gen-rb/channel_service.rb', line 122

def getChannelNotificationSettings(locale)
  send_getChannelNotificationSettings(locale)
  return recv_getChannelNotificationSettings()
end

#getChannelSettingsObject



30
31
32
33
# File 'lib/linerb/gen-rb/channel_service.rb', line 30

def getChannelSettings()
  send_getChannelSettings()
  return recv_getChannelSettings()
end

#getCommonDomains(lastSynced) ⇒ Object



138
139
140
141
# File 'lib/linerb/gen-rb/channel_service.rb', line 138

def getCommonDomains(lastSynced)
  send_getCommonDomains(lastSynced)
  return recv_getCommonDomains()
end

#getReturnUrlWithRequestTokenForAutoLogin(webLoginRequest) ⇒ Object



46
47
48
49
# File 'lib/linerb/gen-rb/channel_service.rb', line 46

def getReturnUrlWithRequestTokenForAutoLogin(webLoginRequest)
  send_getReturnUrlWithRequestTokenForAutoLogin(webLoginRequest)
  return recv_getReturnUrlWithRequestTokenForAutoLogin()
end

#getUpdatedChannelIds(channelIds) ⇒ Object



154
155
156
157
# File 'lib/linerb/gen-rb/channel_service.rb', line 154

def getUpdatedChannelIds(channelIds)
  send_getUpdatedChannelIds(channelIds)
  return recv_getUpdatedChannelIds()
end

#getWebLoginDisallowedUrl(webLoginRequest) ⇒ Object



62
63
64
65
# File 'lib/linerb/gen-rb/channel_service.rb', line 62

def getWebLoginDisallowedUrl(webLoginRequest)
  send_getWebLoginDisallowedUrl(webLoginRequest)
  return recv_getWebLoginDisallowedUrl()
end

#issueChannelToken(channelId) ⇒ Object



170
171
172
173
# File 'lib/linerb/gen-rb/channel_service.rb', line 170

def issueChannelToken(channelId)
  send_issueChannelToken(channelId)
  return recv_issueChannelToken()
end

#issueRequestTokenWithAuthScheme(channelId, otpId, authScheme, returnUrl) ⇒ Object



186
187
188
189
# File 'lib/linerb/gen-rb/channel_service.rb', line 186

def issueRequestTokenWithAuthScheme(channelId, otpId, authScheme, returnUrl)
  send_issueRequestTokenWithAuthScheme(channelId, otpId, authScheme, returnUrl)
  return recv_issueRequestTokenWithAuthScheme()
end

#recv_approveChannelAndIssueChannelTokenObject



101
102
103
104
# File 'lib/linerb/gen-rb/channel_service.rb', line 101

def recv_approveChannelAndIssueChannelToken()
  result = receive_message(ApproveChannelAndIssueChannelToken_result)
  return
end

#recv_getApprovedChannelsObject

Raises:

  • (::Thrift::ApplicationException)


23
24
25
26
27
28
# File 'lib/linerb/gen-rb/channel_service.rb', line 23

def recv_getApprovedChannels()
  result = receive_message(GetApprovedChannels_result)
  return result.success unless result.success.nil?
  raise result.e unless result.e.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getApprovedChannels failed: unknown result')
end

#recv_getChannelInfoObject

Raises:

  • (::Thrift::ApplicationException)


115
116
117
118
119
120
# File 'lib/linerb/gen-rb/channel_service.rb', line 115

def recv_getChannelInfo()
  result = receive_message(GetChannelInfo_result)
  return result.success unless result.success.nil?
  raise result.e unless result.e.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getChannelInfo failed: unknown result')
end

#recv_getChannelNotificationSettingsObject

Raises:

  • (::Thrift::ApplicationException)


131
132
133
134
135
136
# File 'lib/linerb/gen-rb/channel_service.rb', line 131

def recv_getChannelNotificationSettings()
  result = receive_message(GetChannelNotificationSettings_result)
  return result.success unless result.success.nil?
  raise result.e unless result.e.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getChannelNotificationSettings failed: unknown result')
end

#recv_getChannelSettingsObject

Raises:

  • (::Thrift::ApplicationException)


39
40
41
42
43
44
# File 'lib/linerb/gen-rb/channel_service.rb', line 39

def recv_getChannelSettings()
  result = receive_message(GetChannelSettings_result)
  return result.success unless result.success.nil?
  raise result.e unless result.e.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getChannelSettings failed: unknown result')
end

#recv_getCommonDomainsObject

Raises:

  • (::Thrift::ApplicationException)


147
148
149
150
151
152
# File 'lib/linerb/gen-rb/channel_service.rb', line 147

def recv_getCommonDomains()
  result = receive_message(GetCommonDomains_result)
  return result.success unless result.success.nil?
  raise result.e unless result.e.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getCommonDomains failed: unknown result')
end

#recv_getReturnUrlWithRequestTokenForAutoLoginObject

Raises:

  • (::Thrift::ApplicationException)


55
56
57
58
59
60
# File 'lib/linerb/gen-rb/channel_service.rb', line 55

def recv_getReturnUrlWithRequestTokenForAutoLogin()
  result = receive_message(GetReturnUrlWithRequestTokenForAutoLogin_result)
  return result.success unless result.success.nil?
  raise result.e unless result.e.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getReturnUrlWithRequestTokenForAutoLogin failed: unknown result')
end

#recv_getUpdatedChannelIdsObject

Raises:

  • (::Thrift::ApplicationException)


163
164
165
166
167
168
# File 'lib/linerb/gen-rb/channel_service.rb', line 163

def recv_getUpdatedChannelIds()
  result = receive_message(GetUpdatedChannelIds_result)
  return result.success unless result.success.nil?
  raise result.e unless result.e.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getUpdatedChannelIds failed: unknown result')
end

#recv_getWebLoginDisallowedUrlObject

Raises:

  • (::Thrift::ApplicationException)


71
72
73
74
75
76
# File 'lib/linerb/gen-rb/channel_service.rb', line 71

def recv_getWebLoginDisallowedUrl()
  result = receive_message(GetWebLoginDisallowedUrl_result)
  return result.success unless result.success.nil?
  raise result.e unless result.e.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getWebLoginDisallowedUrl failed: unknown result')
end

#recv_issueChannelTokenObject

Raises:

  • (::Thrift::ApplicationException)


179
180
181
182
183
184
# File 'lib/linerb/gen-rb/channel_service.rb', line 179

def recv_issueChannelToken()
  result = receive_message(IssueChannelToken_result)
  return result.success unless result.success.nil?
  raise result.e unless result.e.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'issueChannelToken failed: unknown result')
end

#recv_issueRequestTokenWithAuthSchemeObject

Raises:

  • (::Thrift::ApplicationException)


195
196
197
198
199
200
# File 'lib/linerb/gen-rb/channel_service.rb', line 195

def recv_issueRequestTokenWithAuthScheme()
  result = receive_message(IssueRequestTokenWithAuthScheme_result)
  return result.success unless result.success.nil?
  raise result.e unless result.e.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'issueRequestTokenWithAuthScheme failed: unknown result')
end

#recv_reserveCoinUseObject

Raises:

  • (::Thrift::ApplicationException)


211
212
213
214
215
216
# File 'lib/linerb/gen-rb/channel_service.rb', line 211

def recv_reserveCoinUse()
  result = receive_message(ReserveCoinUse_result)
  return result.success unless result.success.nil?
  raise result.e unless result.e.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'reserveCoinUse failed: unknown result')
end

#recv_updateChannelNotificationSettingObject



227
228
229
230
231
# File 'lib/linerb/gen-rb/channel_service.rb', line 227

def recv_updateChannelNotificationSetting()
  result = receive_message(UpdateChannelNotificationSetting_result)
  raise result.e unless result.e.nil?
  return
end

#recv_updateChannelSettingsObject



87
88
89
90
# File 'lib/linerb/gen-rb/channel_service.rb', line 87

def recv_updateChannelSettings()
  result = receive_message(UpdateChannelSettings_result)
  return
end

#reserveCoinUse(request, locale) ⇒ Object



202
203
204
205
# File 'lib/linerb/gen-rb/channel_service.rb', line 202

def reserveCoinUse(request, locale)
  send_reserveCoinUse(request, locale)
  return recv_reserveCoinUse()
end

#send_approveChannelAndIssueChannelToken(channelId) ⇒ Object



97
98
99
# File 'lib/linerb/gen-rb/channel_service.rb', line 97

def send_approveChannelAndIssueChannelToken(channelId)
  send_message('approveChannelAndIssueChannelToken', ApproveChannelAndIssueChannelToken_args, :channelId => channelId)
end

#send_getApprovedChannels(lastSynced, locale) ⇒ Object



19
20
21
# File 'lib/linerb/gen-rb/channel_service.rb', line 19

def send_getApprovedChannels(lastSynced, locale)
  send_message('getApprovedChannels', GetApprovedChannels_args, :lastSynced => lastSynced, :locale => locale)
end

#send_getChannelInfo(channelId, locale) ⇒ Object



111
112
113
# File 'lib/linerb/gen-rb/channel_service.rb', line 111

def send_getChannelInfo(channelId, locale)
  send_message('getChannelInfo', GetChannelInfo_args, :channelId => channelId, :locale => locale)
end

#send_getChannelNotificationSettings(locale) ⇒ Object



127
128
129
# File 'lib/linerb/gen-rb/channel_service.rb', line 127

def send_getChannelNotificationSettings(locale)
  send_message('getChannelNotificationSettings', GetChannelNotificationSettings_args, :locale => locale)
end

#send_getChannelSettingsObject



35
36
37
# File 'lib/linerb/gen-rb/channel_service.rb', line 35

def send_getChannelSettings()
  send_message('getChannelSettings', GetChannelSettings_args)
end

#send_getCommonDomains(lastSynced) ⇒ Object



143
144
145
# File 'lib/linerb/gen-rb/channel_service.rb', line 143

def send_getCommonDomains(lastSynced)
  send_message('getCommonDomains', GetCommonDomains_args, :lastSynced => lastSynced)
end

#send_getReturnUrlWithRequestTokenForAutoLogin(webLoginRequest) ⇒ Object



51
52
53
# File 'lib/linerb/gen-rb/channel_service.rb', line 51

def send_getReturnUrlWithRequestTokenForAutoLogin(webLoginRequest)
  send_message('getReturnUrlWithRequestTokenForAutoLogin', GetReturnUrlWithRequestTokenForAutoLogin_args, :webLoginRequest => webLoginRequest)
end

#send_getUpdatedChannelIds(channelIds) ⇒ Object



159
160
161
# File 'lib/linerb/gen-rb/channel_service.rb', line 159

def send_getUpdatedChannelIds(channelIds)
  send_message('getUpdatedChannelIds', GetUpdatedChannelIds_args, :channelIds => channelIds)
end

#send_getWebLoginDisallowedUrl(webLoginRequest) ⇒ Object



67
68
69
# File 'lib/linerb/gen-rb/channel_service.rb', line 67

def send_getWebLoginDisallowedUrl(webLoginRequest)
  send_message('getWebLoginDisallowedUrl', GetWebLoginDisallowedUrl_args, :webLoginRequest => webLoginRequest)
end

#send_issueChannelToken(channelId) ⇒ Object



175
176
177
# File 'lib/linerb/gen-rb/channel_service.rb', line 175

def send_issueChannelToken(channelId)
  send_message('issueChannelToken', IssueChannelToken_args, :channelId => channelId)
end

#send_issueRequestTokenWithAuthScheme(channelId, otpId, authScheme, returnUrl) ⇒ Object



191
192
193
# File 'lib/linerb/gen-rb/channel_service.rb', line 191

def send_issueRequestTokenWithAuthScheme(channelId, otpId, authScheme, returnUrl)
  send_message('issueRequestTokenWithAuthScheme', IssueRequestTokenWithAuthScheme_args, :channelId => channelId, :otpId => otpId, :authScheme => authScheme, :returnUrl => returnUrl)
end

#send_reserveCoinUse(request, locale) ⇒ Object



207
208
209
# File 'lib/linerb/gen-rb/channel_service.rb', line 207

def send_reserveCoinUse(request, locale)
  send_message('reserveCoinUse', ReserveCoinUse_args, :request => request, :locale => locale)
end

#send_updateChannelNotificationSetting(setting) ⇒ Object



223
224
225
# File 'lib/linerb/gen-rb/channel_service.rb', line 223

def send_updateChannelNotificationSetting(setting)
  send_message('updateChannelNotificationSetting', UpdateChannelNotificationSetting_args, :setting => setting)
end

#send_updateChannelSettings(channelSettings) ⇒ Object



83
84
85
# File 'lib/linerb/gen-rb/channel_service.rb', line 83

def send_updateChannelSettings(channelSettings)
  send_message('updateChannelSettings', UpdateChannelSettings_args, :channelSettings => channelSettings)
end

#updateChannelNotificationSetting(setting) ⇒ Object



218
219
220
221
# File 'lib/linerb/gen-rb/channel_service.rb', line 218

def updateChannelNotificationSetting(setting)
  send_updateChannelNotificationSetting(setting)
  recv_updateChannelNotificationSetting()
end

#updateChannelSettings(channelSettings) ⇒ Object



78
79
80
81
# File 'lib/linerb/gen-rb/channel_service.rb', line 78

def updateChannelSettings(channelSettings)
  send_updateChannelSettings(channelSettings)
  recv_updateChannelSettings()
end