Click or drag to resize

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()

Return Value

Type: WsResultBoolean
The method return a boolean value: if true, the promotion is active and running
Examples
public 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