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



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

def approveChannelAndIssueChannelToken(channelId)
  send_approveChannelAndIssueChannelToken(channelId)
  return 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



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

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

#getChannelNotificationSettings(locale) ⇒ Object



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

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



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

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



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

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



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

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

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



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

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

#recv_approveChannelAndIssueChannelTokenObject

Raises:

  • (::Thrift::ApplicationException)


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

def recv_approveChannelAndIssueChannelToken()
  result = receive_message(ApproveChannelAndIssueChannelToken_result)
  return result.success unless result.success.nil?
  raise result.e unless result.e.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'approveChannelAndIssueChannelToken failed: unknown result')
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)


118
119
120
121
122
123
# File 'lib/linerb/gen-rb/channel_service.rb', line 118

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)


134
135
136
137
138
139
# File 'lib/linerb/gen-rb/channel_service.rb', line 134

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)


150
151
152
153
154
155
# File 'lib/linerb/gen-rb/channel_service.rb', line 150

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)


166
167
168
169
170
171
# File 'lib/linerb/gen-rb/channel_service.rb', line 166

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)


182
183
184
185
186
187
# File 'lib/linerb/gen-rb/channel_service.rb', line 182

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)


198
199
200
201
202
203
# File 'lib/linerb/gen-rb/channel_service.rb', line 198

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)


214
215
216
217
218
219
# File 'lib/linerb/gen-rb/channel_service.rb', line 214

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



230
231
232
233
234
# File 'lib/linerb/gen-rb/channel_service.rb', line 230

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

#recv_updateChannelSettingsObject



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

def recv_updateChannelSettings()
  result = receive_message(UpdateChannelSettings_result)
  raise result.e unless result.e.nil?
  return
end

#reserveCoinUse(request, locale) ⇒ Object



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

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

#send_approveChannelAndIssueChannelToken(channelId) ⇒ Object



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

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



114
115
116
# File 'lib/linerb/gen-rb/channel_service.rb', line 114

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

#send_getChannelNotificationSettings(locale) ⇒ Object



130
131
132
# File 'lib/linerb/gen-rb/channel_service.rb', line 130

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



146
147
148
# File 'lib/linerb/gen-rb/channel_service.rb', line 146

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



162
163
164
# File 'lib/linerb/gen-rb/channel_service.rb', line 162

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



178
179
180
# File 'lib/linerb/gen-rb/channel_service.rb', line 178

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

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



194
195
196
# File 'lib/linerb/gen-rb/channel_service.rb', line 194

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



210
211
212
# File 'lib/linerb/gen-rb/channel_service.rb', line 210

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

#send_updateChannelNotificationSetting(setting) ⇒ Object



226
227
228
# File 'lib/linerb/gen-rb/channel_service.rb', line 226

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



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

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