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: (
WsResult<bool> IsLuckySmartAvailable()

Return Value

Type: WsResultBoolean
The method return a boolean value: if true, the promotion is active and running
public bool IsLuckySmartAvailable()
    using (var client = new WsEndUserClient())
        WsResultOfboolean result = client.IsLuckySmartAvailable();
        if (result.Success)
            return result.Value;
            throw new CodedException(GetErrorCode(result.ResultCode), result.ResultMessage);
See Also