IWsEndUserIsLuckySmartAvailable Method
|
The method indicates if there's a LuckySmart promotion currently running.
Namespace:
Aruba.Cloud.WsEndUser
Assembly:
Aruba.Cloud.WsEndUser (in Aruba.Cloud.WsEndUser.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax[OperationContractAttribute]
WsResult<bool> IsLuckySmartAvailable()
<OperationContractAttribute>
Function IsLuckySmartAvailable As WsResult(Of Boolean)
[OperationContractAttribute]
WsResult<bool>^ IsLuckySmartAvailable()
[<OperationContractAttribute>]
abstract IsLuckySmartAvailable : unit -> WsResult<bool>
function IsLuckySmartAvailable() : WsResult<boolean>
Return Value
Type:
WsResultBooleanThe method return a boolean value: if true, the promotion is active and running
Examplespublic bool IsLuckySmartAvailable()
{
using (var client = new WsEndUserClient())
{
WsResultOfboolean result = client.IsLuckySmartAvailable();
if (result.Success)
return result.Value;
else
{
throw new CodedException(GetErrorCode(result.ResultCode), result.ResultMessage);
}
}
}
See Also