コード例 #1
0
        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("");
        }
コード例 #2
0
        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("");
        }