protected override async Task <string> ExecuteAsync() { PushDatabase database = DatabaseFactory.getPushDatabase(); SignalServiceEnvelope envelope = database.GetEnvelope(_pushMessageId); May <long> optionalSmsMessageId = _smsMessageId > 0 ? new May <long>(_smsMessageId) : May <long> .NoValue; handleMessage(envelope, optionalSmsMessageId); database.Delete(_pushMessageId); return(""); }
protected override async Task <string> ExecuteAsync() { PushDatabase database = DatabaseFactory.getPushDatabase(); TextSecureEnvelope envelope = database.GetEnvelope(messageId); /*Optional<Long> optionalSmsMessageId = smsMessageId > 0 ? Optional.of(smsMessageId) : * Optional.< Long > absent();*/ handleMessage(/*masterSecret,*/ envelope /*, optionalSmsMessageId*/); database.Delete(messageId); return(""); }