package com.rssuper.database.daos;

import android.database.Cursor;
import android.os.CancellationSignal;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.room.CoroutinesRoom;
import androidx.room.EntityDeletionOrUpdateAdapter;
import androidx.room.EntityInsertionAdapter;
import androidx.room.RoomDatabase;
import androidx.room.RoomSQLiteQuery;
import androidx.room.SharedSQLiteStatement;
import androidx.room.util.CursorUtil;
import androidx.room.util.DBUtil;
import androidx.room.util.StringUtil;
import androidx.sqlite.db.SupportSQLiteStatement;
import com.rssuper.converters.DateConverter;
import com.rssuper.database.entities.FeedItemEntity;
import java.lang.Class;
import java.lang.Exception;
import java.lang.Integer;
import java.lang.Long;
import java.lang.Object;
import java.lang.Override;
import java.lang.String;
import java.lang.StringBuilder;
import java.lang.SuppressWarnings;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import java.util.concurrent.Callable;
import javax.annotation.processing.Generated;
import kotlin.coroutines.Continuation;
import kotlinx.coroutines.flow.Flow;

@Generated("androidx.room.RoomProcessor")
@SuppressWarnings({"unchecked", "deprecation"})
public final class FeedItemDao_Impl implements FeedItemDao {
  private final RoomDatabase __db;

  private final EntityInsertionAdapter<FeedItemEntity> __insertionAdapterOfFeedItemEntity;

  private final DateConverter __dateConverter = new DateConverter();

  private final EntityDeletionOrUpdateAdapter<FeedItemEntity> __deletionAdapterOfFeedItemEntity;

  private final EntityDeletionOrUpdateAdapter<FeedItemEntity> __updateAdapterOfFeedItemEntity;

  private final SharedSQLiteStatement __preparedStmtOfDeleteItemById;

  private final SharedSQLiteStatement __preparedStmtOfDeleteItemsBySubscription;

  private final SharedSQLiteStatement __preparedStmtOfMarkAsRead;

  private final SharedSQLiteStatement __preparedStmtOfMarkAsUnread;

  private final SharedSQLiteStatement __preparedStmtOfMarkAsStarred;

  private final SharedSQLiteStatement __preparedStmtOfMarkAsUnstarred;

  private final SharedSQLiteStatement __preparedStmtOfMarkAllAsRead;

  public FeedItemDao_Impl(@NonNull final RoomDatabase __db) {
    this.__db = __db;
    this.__insertionAdapterOfFeedItemEntity = new EntityInsertionAdapter<FeedItemEntity>(__db) {
      @Override
      @NonNull
      protected String createQuery() {
        return "INSERT OR REPLACE INTO `feed_items` (`id`,`subscriptionId`,`title`,`link`,`description`,`content`,`author`,`published`,`updated`,`categories`,`enclosureUrl`,`enclosureType`,`enclosureLength`,`guid`,`isRead`,`isStarred`) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
      }

      @Override
      protected void bind(@NonNull final SupportSQLiteStatement statement,
          @NonNull final FeedItemEntity entity) {
        if (entity.getId() == null) {
          statement.bindNull(1);
        } else {
          statement.bindString(1, entity.getId());
        }
        if (entity.getSubscriptionId() == null) {
          statement.bindNull(2);
        } else {
          statement.bindString(2, entity.getSubscriptionId());
        }
        if (entity.getTitle() == null) {
          statement.bindNull(3);
        } else {
          statement.bindString(3, entity.getTitle());
        }
        if (entity.getLink() == null) {
          statement.bindNull(4);
        } else {
          statement.bindString(4, entity.getLink());
        }
        if (entity.getDescription() == null) {
          statement.bindNull(5);
        } else {
          statement.bindString(5, entity.getDescription());
        }
        if (entity.getContent() == null) {
          statement.bindNull(6);
        } else {
          statement.bindString(6, entity.getContent());
        }
        if (entity.getAuthor() == null) {
          statement.bindNull(7);
        } else {
          statement.bindString(7, entity.getAuthor());
        }
        final Long _tmp = __dateConverter.dateToTimestamp(entity.getPublished());
        if (_tmp == null) {
          statement.bindNull(8);
        } else {
          statement.bindLong(8, _tmp);
        }
        final Long _tmp_1 = __dateConverter.dateToTimestamp(entity.getUpdated());
        if (_tmp_1 == null) {
          statement.bindNull(9);
        } else {
          statement.bindLong(9, _tmp_1);
        }
        if (entity.getCategories() == null) {
          statement.bindNull(10);
        } else {
          statement.bindString(10, entity.getCategories());
        }
        if (entity.getEnclosureUrl() == null) {
          statement.bindNull(11);
        } else {
          statement.bindString(11, entity.getEnclosureUrl());
        }
        if (entity.getEnclosureType() == null) {
          statement.bindNull(12);
        } else {
          statement.bindString(12, entity.getEnclosureType());
        }
        if (entity.getEnclosureLength() == null) {
          statement.bindNull(13);
        } else {
          statement.bindLong(13, entity.getEnclosureLength());
        }
        if (entity.getGuid() == null) {
          statement.bindNull(14);
        } else {
          statement.bindString(14, entity.getGuid());
        }
        final int _tmp_2 = entity.isRead() ? 1 : 0;
        statement.bindLong(15, _tmp_2);
        final int _tmp_3 = entity.isStarred() ? 1 : 0;
        statement.bindLong(16, _tmp_3);
      }
    };
    this.__deletionAdapterOfFeedItemEntity = new EntityDeletionOrUpdateAdapter<FeedItemEntity>(__db) {
      @Override
      @NonNull
      protected String createQuery() {
        return "DELETE FROM `feed_items` WHERE `id` = ?";
      }

      @Override
      protected void bind(@NonNull final SupportSQLiteStatement statement,
          @NonNull final FeedItemEntity entity) {
        if (entity.getId() == null) {
          statement.bindNull(1);
        } else {
          statement.bindString(1, entity.getId());
        }
      }
    };
    this.__updateAdapterOfFeedItemEntity = new EntityDeletionOrUpdateAdapter<FeedItemEntity>(__db) {
      @Override
      @NonNull
      protected String createQuery() {
        return "UPDATE OR ABORT `feed_items` SET `id` = ?,`subscriptionId` = ?,`title` = ?,`link` = ?,`description` = ?,`content` = ?,`author` = ?,`published` = ?,`updated` = ?,`categories` = ?,`enclosureUrl` = ?,`enclosureType` = ?,`enclosureLength` = ?,`guid` = ?,`isRead` = ?,`isStarred` = ? WHERE `id` = ?";
      }

      @Override
      protected void bind(@NonNull final SupportSQLiteStatement statement,
          @NonNull final FeedItemEntity entity) {
        if (entity.getId() == null) {
          statement.bindNull(1);
        } else {
          statement.bindString(1, entity.getId());
        }
        if (entity.getSubscriptionId() == null) {
          statement.bindNull(2);
        } else {
          statement.bindString(2, entity.getSubscriptionId());
        }
        if (entity.getTitle() == null) {
          statement.bindNull(3);
        } else {
          statement.bindString(3, entity.getTitle());
        }
        if (entity.getLink() == null) {
          statement.bindNull(4);
        } else {
          statement.bindString(4, entity.getLink());
        }
        if (entity.getDescription() == null) {
          statement.bindNull(5);
        } else {
          statement.bindString(5, entity.getDescription());
        }
        if (entity.getContent() == null) {
          statement.bindNull(6);
        } else {
          statement.bindString(6, entity.getContent());
        }
        if (entity.getAuthor() == null) {
          statement.bindNull(7);
        } else {
          statement.bindString(7, entity.getAuthor());
        }
        final Long _tmp = __dateConverter.dateToTimestamp(entity.getPublished());
        if (_tmp == null) {
          statement.bindNull(8);
        } else {
          statement.bindLong(8, _tmp);
        }
        final Long _tmp_1 = __dateConverter.dateToTimestamp(entity.getUpdated());
        if (_tmp_1 == null) {
          statement.bindNull(9);
        } else {
          statement.bindLong(9, _tmp_1);
        }
        if (entity.getCategories() == null) {
          statement.bindNull(10);
        } else {
          statement.bindString(10, entity.getCategories());
        }
        if (entity.getEnclosureUrl() == null) {
          statement.bindNull(11);
        } else {
          statement.bindString(11, entity.getEnclosureUrl());
        }
        if (entity.getEnclosureType() == null) {
          statement.bindNull(12);
        } else {
          statement.bindString(12, entity.getEnclosureType());
        }
        if (entity.getEnclosureLength() == null) {
          statement.bindNull(13);
        } else {
          statement.bindLong(13, entity.getEnclosureLength());
        }
        if (entity.getGuid() == null) {
          statement.bindNull(14);
        } else {
          statement.bindString(14, entity.getGuid());
        }
        final int _tmp_2 = entity.isRead() ? 1 : 0;
        statement.bindLong(15, _tmp_2);
        final int _tmp_3 = entity.isStarred() ? 1 : 0;
        statement.bindLong(16, _tmp_3);
        if (entity.getId() == null) {
          statement.bindNull(17);
        } else {
          statement.bindString(17, entity.getId());
        }
      }
    };
    this.__preparedStmtOfDeleteItemById = new SharedSQLiteStatement(__db) {
      @Override
      @NonNull
      public String createQuery() {
        final String _query = "DELETE FROM feed_items WHERE id = ?";
        return _query;
      }
    };
    this.__preparedStmtOfDeleteItemsBySubscription = new SharedSQLiteStatement(__db) {
      @Override
      @NonNull
      public String createQuery() {
        final String _query = "DELETE FROM feed_items WHERE subscriptionId = ?";
        return _query;
      }
    };
    this.__preparedStmtOfMarkAsRead = new SharedSQLiteStatement(__db) {
      @Override
      @NonNull
      public String createQuery() {
        final String _query = "UPDATE feed_items SET isRead = 1 WHERE id = ?";
        return _query;
      }
    };
    this.__preparedStmtOfMarkAsUnread = new SharedSQLiteStatement(__db) {
      @Override
      @NonNull
      public String createQuery() {
        final String _query = "UPDATE feed_items SET isRead = 0 WHERE id = ?";
        return _query;
      }
    };
    this.__preparedStmtOfMarkAsStarred = new SharedSQLiteStatement(__db) {
      @Override
      @NonNull
      public String createQuery() {
        final String _query = "UPDATE feed_items SET isStarred = 1 WHERE id = ?";
        return _query;
      }
    };
    this.__preparedStmtOfMarkAsUnstarred = new SharedSQLiteStatement(__db) {
      @Override
      @NonNull
      public String createQuery() {
        final String _query = "UPDATE feed_items SET isStarred = 0 WHERE id = ?";
        return _query;
      }
    };
    this.__preparedStmtOfMarkAllAsRead = new SharedSQLiteStatement(__db) {
      @Override
      @NonNull
      public String createQuery() {
        final String _query = "UPDATE feed_items SET isRead = 1 WHERE subscriptionId = ?";
        return _query;
      }
    };
  }

  @Override
  public Object insertItem(final FeedItemEntity item,
      final Continuation<? super Long> $completion) {
    return CoroutinesRoom.execute(__db, true, new Callable<Long>() {
      @Override
      @NonNull
      public Long call() throws Exception {
        __db.beginTransaction();
        try {
          final Long _result = __insertionAdapterOfFeedItemEntity.insertAndReturnId(item);
          __db.setTransactionSuccessful();
          return _result;
        } finally {
          __db.endTransaction();
        }
      }
    }, $completion);
  }

  @Override
  public Object insertItems(final List<FeedItemEntity> items,
      final Continuation<? super List<Long>> $completion) {
    return CoroutinesRoom.execute(__db, true, new Callable<List<Long>>() {
      @Override
      @NonNull
      public List<Long> call() throws Exception {
        __db.beginTransaction();
        try {
          final List<Long> _result = __insertionAdapterOfFeedItemEntity.insertAndReturnIdsList(items);
          __db.setTransactionSuccessful();
          return _result;
        } finally {
          __db.endTransaction();
        }
      }
    }, $completion);
  }

  @Override
  public Object deleteItem(final FeedItemEntity item,
      final Continuation<? super Integer> $completion) {
    return CoroutinesRoom.execute(__db, true, new Callable<Integer>() {
      @Override
      @NonNull
      public Integer call() throws Exception {
        int _total = 0;
        __db.beginTransaction();
        try {
          _total += __deletionAdapterOfFeedItemEntity.handle(item);
          __db.setTransactionSuccessful();
          return _total;
        } finally {
          __db.endTransaction();
        }
      }
    }, $completion);
  }

  @Override
  public Object updateItem(final FeedItemEntity item,
      final Continuation<? super Integer> $completion) {
    return CoroutinesRoom.execute(__db, true, new Callable<Integer>() {
      @Override
      @NonNull
      public Integer call() throws Exception {
        int _total = 0;
        __db.beginTransaction();
        try {
          _total += __updateAdapterOfFeedItemEntity.handle(item);
          __db.setTransactionSuccessful();
          return _total;
        } finally {
          __db.endTransaction();
        }
      }
    }, $completion);
  }

  @Override
  public Object deleteItemById(final String id, final Continuation<? super Integer> $completion) {
    return CoroutinesRoom.execute(__db, true, new Callable<Integer>() {
      @Override
      @NonNull
      public Integer call() throws Exception {
        final SupportSQLiteStatement _stmt = __preparedStmtOfDeleteItemById.acquire();
        int _argIndex = 1;
        if (id == null) {
          _stmt.bindNull(_argIndex);
        } else {
          _stmt.bindString(_argIndex, id);
        }
        try {
          __db.beginTransaction();
          try {
            final Integer _result = _stmt.executeUpdateDelete();
            __db.setTransactionSuccessful();
            return _result;
          } finally {
            __db.endTransaction();
          }
        } finally {
          __preparedStmtOfDeleteItemById.release(_stmt);
        }
      }
    }, $completion);
  }

  @Override
  public Object deleteItemsBySubscription(final String subscriptionId,
      final Continuation<? super Integer> $completion) {
    return CoroutinesRoom.execute(__db, true, new Callable<Integer>() {
      @Override
      @NonNull
      public Integer call() throws Exception {
        final SupportSQLiteStatement _stmt = __preparedStmtOfDeleteItemsBySubscription.acquire();
        int _argIndex = 1;
        if (subscriptionId == null) {
          _stmt.bindNull(_argIndex);
        } else {
          _stmt.bindString(_argIndex, subscriptionId);
        }
        try {
          __db.beginTransaction();
          try {
            final Integer _result = _stmt.executeUpdateDelete();
            __db.setTransactionSuccessful();
            return _result;
          } finally {
            __db.endTransaction();
          }
        } finally {
          __preparedStmtOfDeleteItemsBySubscription.release(_stmt);
        }
      }
    }, $completion);
  }

  @Override
  public Object markAsRead(final String id, final Continuation<? super Integer> $completion) {
    return CoroutinesRoom.execute(__db, true, new Callable<Integer>() {
      @Override
      @NonNull
      public Integer call() throws Exception {
        final SupportSQLiteStatement _stmt = __preparedStmtOfMarkAsRead.acquire();
        int _argIndex = 1;
        if (id == null) {
          _stmt.bindNull(_argIndex);
        } else {
          _stmt.bindString(_argIndex, id);
        }
        try {
          __db.beginTransaction();
          try {
            final Integer _result = _stmt.executeUpdateDelete();
            __db.setTransactionSuccessful();
            return _result;
          } finally {
            __db.endTransaction();
          }
        } finally {
          __preparedStmtOfMarkAsRead.release(_stmt);
        }
      }
    }, $completion);
  }

  @Override
  public Object markAsUnread(final String id, final Continuation<? super Integer> $completion) {
    return CoroutinesRoom.execute(__db, true, new Callable<Integer>() {
      @Override
      @NonNull
      public Integer call() throws Exception {
        final SupportSQLiteStatement _stmt = __preparedStmtOfMarkAsUnread.acquire();
        int _argIndex = 1;
        if (id == null) {
          _stmt.bindNull(_argIndex);
        } else {
          _stmt.bindString(_argIndex, id);
        }
        try {
          __db.beginTransaction();
          try {
            final Integer _result = _stmt.executeUpdateDelete();
            __db.setTransactionSuccessful();
            return _result;
          } finally {
            __db.endTransaction();
          }
        } finally {
          __preparedStmtOfMarkAsUnread.release(_stmt);
        }
      }
    }, $completion);
  }

  @Override
  public Object markAsStarred(final String id, final Continuation<? super Integer> $completion) {
    return CoroutinesRoom.execute(__db, true, new Callable<Integer>() {
      @Override
      @NonNull
      public Integer call() throws Exception {
        final SupportSQLiteStatement _stmt = __preparedStmtOfMarkAsStarred.acquire();
        int _argIndex = 1;
        if (id == null) {
          _stmt.bindNull(_argIndex);
        } else {
          _stmt.bindString(_argIndex, id);
        }
        try {
          __db.beginTransaction();
          try {
            final Integer _result = _stmt.executeUpdateDelete();
            __db.setTransactionSuccessful();
            return _result;
          } finally {
            __db.endTransaction();
          }
        } finally {
          __preparedStmtOfMarkAsStarred.release(_stmt);
        }
      }
    }, $completion);
  }

  @Override
  public Object markAsUnstarred(final String id, final Continuation<? super Integer> $completion) {
    return CoroutinesRoom.execute(__db, true, new Callable<Integer>() {
      @Override
      @NonNull
      public Integer call() throws Exception {
        final SupportSQLiteStatement _stmt = __preparedStmtOfMarkAsUnstarred.acquire();
        int _argIndex = 1;
        if (id == null) {
          _stmt.bindNull(_argIndex);
        } else {
          _stmt.bindString(_argIndex, id);
        }
        try {
          __db.beginTransaction();
          try {
            final Integer _result = _stmt.executeUpdateDelete();
            __db.setTransactionSuccessful();
            return _result;
          } finally {
            __db.endTransaction();
          }
        } finally {
          __preparedStmtOfMarkAsUnstarred.release(_stmt);
        }
      }
    }, $completion);
  }

  @Override
  public Object markAllAsRead(final String subscriptionId,
      final Continuation<? super Integer> $completion) {
    return CoroutinesRoom.execute(__db, true, new Callable<Integer>() {
      @Override
      @NonNull
      public Integer call() throws Exception {
        final SupportSQLiteStatement _stmt = __preparedStmtOfMarkAllAsRead.acquire();
        int _argIndex = 1;
        if (subscriptionId == null) {
          _stmt.bindNull(_argIndex);
        } else {
          _stmt.bindString(_argIndex, subscriptionId);
        }
        try {
          __db.beginTransaction();
          try {
            final Integer _result = _stmt.executeUpdateDelete();
            __db.setTransactionSuccessful();
            return _result;
          } finally {
            __db.endTransaction();
          }
        } finally {
          __preparedStmtOfMarkAllAsRead.release(_stmt);
        }
      }
    }, $completion);
  }

  @Override
  public Flow<List<FeedItemEntity>> getItemsBySubscription(final String subscriptionId) {
    final String _sql = "SELECT * FROM feed_items WHERE subscriptionId = ? ORDER BY published DESC";
    final RoomSQLiteQuery _statement = RoomSQLiteQuery.acquire(_sql, 1);
    int _argIndex = 1;
    if (subscriptionId == null) {
      _statement.bindNull(_argIndex);
    } else {
      _statement.bindString(_argIndex, subscriptionId);
    }
    return CoroutinesRoom.createFlow(__db, false, new String[] {"feed_items"}, new Callable<List<FeedItemEntity>>() {
      @Override
      @NonNull
      public List<FeedItemEntity> call() throws Exception {
        final Cursor _cursor = DBUtil.query(__db, _statement, false, null);
        try {
          final int _cursorIndexOfId = CursorUtil.getColumnIndexOrThrow(_cursor, "id");
          final int _cursorIndexOfSubscriptionId = CursorUtil.getColumnIndexOrThrow(_cursor, "subscriptionId");
          final int _cursorIndexOfTitle = CursorUtil.getColumnIndexOrThrow(_cursor, "title");
          final int _cursorIndexOfLink = CursorUtil.getColumnIndexOrThrow(_cursor, "link");
          final int _cursorIndexOfDescription = CursorUtil.getColumnIndexOrThrow(_cursor, "description");
          final int _cursorIndexOfContent = CursorUtil.getColumnIndexOrThrow(_cursor, "content");
          final int _cursorIndexOfAuthor = CursorUtil.getColumnIndexOrThrow(_cursor, "author");
          final int _cursorIndexOfPublished = CursorUtil.getColumnIndexOrThrow(_cursor, "published");
          final int _cursorIndexOfUpdated = CursorUtil.getColumnIndexOrThrow(_cursor, "updated");
          final int _cursorIndexOfCategories = CursorUtil.getColumnIndexOrThrow(_cursor, "categories");
          final int _cursorIndexOfEnclosureUrl = CursorUtil.getColumnIndexOrThrow(_cursor, "enclosureUrl");
          final int _cursorIndexOfEnclosureType = CursorUtil.getColumnIndexOrThrow(_cursor, "enclosureType");
          final int _cursorIndexOfEnclosureLength = CursorUtil.getColumnIndexOrThrow(_cursor, "enclosureLength");
          final int _cursorIndexOfGuid = CursorUtil.getColumnIndexOrThrow(_cursor, "guid");
          final int _cursorIndexOfIsRead = CursorUtil.getColumnIndexOrThrow(_cursor, "isRead");
          final int _cursorIndexOfIsStarred = CursorUtil.getColumnIndexOrThrow(_cursor, "isStarred");
          final List<FeedItemEntity> _result = new ArrayList<FeedItemEntity>(_cursor.getCount());
          while (_cursor.moveToNext()) {
            final FeedItemEntity _item;
            final String _tmpId;
            if (_cursor.isNull(_cursorIndexOfId)) {
              _tmpId = null;
            } else {
              _tmpId = _cursor.getString(_cursorIndexOfId);
            }
            final String _tmpSubscriptionId;
            if (_cursor.isNull(_cursorIndexOfSubscriptionId)) {
              _tmpSubscriptionId = null;
            } else {
              _tmpSubscriptionId = _cursor.getString(_cursorIndexOfSubscriptionId);
            }
            final String _tmpTitle;
            if (_cursor.isNull(_cursorIndexOfTitle)) {
              _tmpTitle = null;
            } else {
              _tmpTitle = _cursor.getString(_cursorIndexOfTitle);
            }
            final String _tmpLink;
            if (_cursor.isNull(_cursorIndexOfLink)) {
              _tmpLink = null;
            } else {
              _tmpLink = _cursor.getString(_cursorIndexOfLink);
            }
            final String _tmpDescription;
            if (_cursor.isNull(_cursorIndexOfDescription)) {
              _tmpDescription = null;
            } else {
              _tmpDescription = _cursor.getString(_cursorIndexOfDescription);
            }
            final String _tmpContent;
            if (_cursor.isNull(_cursorIndexOfContent)) {
              _tmpContent = null;
            } else {
              _tmpContent = _cursor.getString(_cursorIndexOfContent);
            }
            final String _tmpAuthor;
            if (_cursor.isNull(_cursorIndexOfAuthor)) {
              _tmpAuthor = null;
            } else {
              _tmpAuthor = _cursor.getString(_cursorIndexOfAuthor);
            }
            final Date _tmpPublished;
            final Long _tmp;
            if (_cursor.isNull(_cursorIndexOfPublished)) {
              _tmp = null;
            } else {
              _tmp = _cursor.getLong(_cursorIndexOfPublished);
            }
            _tmpPublished = __dateConverter.fromTimestamp(_tmp);
            final Date _tmpUpdated;
            final Long _tmp_1;
            if (_cursor.isNull(_cursorIndexOfUpdated)) {
              _tmp_1 = null;
            } else {
              _tmp_1 = _cursor.getLong(_cursorIndexOfUpdated);
            }
            _tmpUpdated = __dateConverter.fromTimestamp(_tmp_1);
            final String _tmpCategories;
            if (_cursor.isNull(_cursorIndexOfCategories)) {
              _tmpCategories = null;
            } else {
              _tmpCategories = _cursor.getString(_cursorIndexOfCategories);
            }
            final String _tmpEnclosureUrl;
            if (_cursor.isNull(_cursorIndexOfEnclosureUrl)) {
              _tmpEnclosureUrl = null;
            } else {
              _tmpEnclosureUrl = _cursor.getString(_cursorIndexOfEnclosureUrl);
            }
            final String _tmpEnclosureType;
            if (_cursor.isNull(_cursorIndexOfEnclosureType)) {
              _tmpEnclosureType = null;
            } else {
              _tmpEnclosureType = _cursor.getString(_cursorIndexOfEnclosureType);
            }
            final Long _tmpEnclosureLength;
            if (_cursor.isNull(_cursorIndexOfEnclosureLength)) {
              _tmpEnclosureLength = null;
            } else {
              _tmpEnclosureLength = _cursor.getLong(_cursorIndexOfEnclosureLength);
            }
            final String _tmpGuid;
            if (_cursor.isNull(_cursorIndexOfGuid)) {
              _tmpGuid = null;
            } else {
              _tmpGuid = _cursor.getString(_cursorIndexOfGuid);
            }
            final boolean _tmpIsRead;
            final int _tmp_2;
            _tmp_2 = _cursor.getInt(_cursorIndexOfIsRead);
            _tmpIsRead = _tmp_2 != 0;
            final boolean _tmpIsStarred;
            final int _tmp_3;
            _tmp_3 = _cursor.getInt(_cursorIndexOfIsStarred);
            _tmpIsStarred = _tmp_3 != 0;
            _item = new FeedItemEntity(_tmpId,_tmpSubscriptionId,_tmpTitle,_tmpLink,_tmpDescription,_tmpContent,_tmpAuthor,_tmpPublished,_tmpUpdated,_tmpCategories,_tmpEnclosureUrl,_tmpEnclosureType,_tmpEnclosureLength,_tmpGuid,_tmpIsRead,_tmpIsStarred);
            _result.add(_item);
          }
          return _result;
        } finally {
          _cursor.close();
        }
      }

      @Override
      protected void finalize() {
        _statement.release();
      }
    });
  }

  @Override
  public Object getItemById(final String id,
      final Continuation<? super FeedItemEntity> $completion) {
    final String _sql = "SELECT * FROM feed_items WHERE id = ?";
    final RoomSQLiteQuery _statement = RoomSQLiteQuery.acquire(_sql, 1);
    int _argIndex = 1;
    if (id == null) {
      _statement.bindNull(_argIndex);
    } else {
      _statement.bindString(_argIndex, id);
    }
    final CancellationSignal _cancellationSignal = DBUtil.createCancellationSignal();
    return CoroutinesRoom.execute(__db, false, _cancellationSignal, new Callable<FeedItemEntity>() {
      @Override
      @Nullable
      public FeedItemEntity call() throws Exception {
        final Cursor _cursor = DBUtil.query(__db, _statement, false, null);
        try {
          final int _cursorIndexOfId = CursorUtil.getColumnIndexOrThrow(_cursor, "id");
          final int _cursorIndexOfSubscriptionId = CursorUtil.getColumnIndexOrThrow(_cursor, "subscriptionId");
          final int _cursorIndexOfTitle = CursorUtil.getColumnIndexOrThrow(_cursor, "title");
          final int _cursorIndexOfLink = CursorUtil.getColumnIndexOrThrow(_cursor, "link");
          final int _cursorIndexOfDescription = CursorUtil.getColumnIndexOrThrow(_cursor, "description");
          final int _cursorIndexOfContent = CursorUtil.getColumnIndexOrThrow(_cursor, "content");
          final int _cursorIndexOfAuthor = CursorUtil.getColumnIndexOrThrow(_cursor, "author");
          final int _cursorIndexOfPublished = CursorUtil.getColumnIndexOrThrow(_cursor, "published");
          final int _cursorIndexOfUpdated = CursorUtil.getColumnIndexOrThrow(_cursor, "updated");
          final int _cursorIndexOfCategories = CursorUtil.getColumnIndexOrThrow(_cursor, "categories");
          final int _cursorIndexOfEnclosureUrl = CursorUtil.getColumnIndexOrThrow(_cursor, "enclosureUrl");
          final int _cursorIndexOfEnclosureType = CursorUtil.getColumnIndexOrThrow(_cursor, "enclosureType");
          final int _cursorIndexOfEnclosureLength = CursorUtil.getColumnIndexOrThrow(_cursor, "enclosureLength");
          final int _cursorIndexOfGuid = CursorUtil.getColumnIndexOrThrow(_cursor, "guid");
          final int _cursorIndexOfIsRead = CursorUtil.getColumnIndexOrThrow(_cursor, "isRead");
          final int _cursorIndexOfIsStarred = CursorUtil.getColumnIndexOrThrow(_cursor, "isStarred");
          final FeedItemEntity _result;
          if (_cursor.moveToFirst()) {
            final String _tmpId;
            if (_cursor.isNull(_cursorIndexOfId)) {
              _tmpId = null;
            } else {
              _tmpId = _cursor.getString(_cursorIndexOfId);
            }
            final String _tmpSubscriptionId;
            if (_cursor.isNull(_cursorIndexOfSubscriptionId)) {
              _tmpSubscriptionId = null;
            } else {
              _tmpSubscriptionId = _cursor.getString(_cursorIndexOfSubscriptionId);
            }
            final String _tmpTitle;
            if (_cursor.isNull(_cursorIndexOfTitle)) {
              _tmpTitle = null;
            } else {
              _tmpTitle = _cursor.getString(_cursorIndexOfTitle);
            }
            final String _tmpLink;
            if (_cursor.isNull(_cursorIndexOfLink)) {
              _tmpLink = null;
            } else {
              _tmpLink = _cursor.getString(_cursorIndexOfLink);
            }
            final String _tmpDescription;
            if (_cursor.isNull(_cursorIndexOfDescription)) {
              _tmpDescription = null;
            } else {
              _tmpDescription = _cursor.getString(_cursorIndexOfDescription);
            }
            final String _tmpContent;
            if (_cursor.isNull(_cursorIndexOfContent)) {
              _tmpContent = null;
            } else {
              _tmpContent = _cursor.getString(_cursorIndexOfContent);
            }
            final String _tmpAuthor;
            if (_cursor.isNull(_cursorIndexOfAuthor)) {
              _tmpAuthor = null;
            } else {
              _tmpAuthor = _cursor.getString(_cursorIndexOfAuthor);
            }
            final Date _tmpPublished;
            final Long _tmp;
            if (_cursor.isNull(_cursorIndexOfPublished)) {
              _tmp = null;
            } else {
              _tmp = _cursor.getLong(_cursorIndexOfPublished);
            }
            _tmpPublished = __dateConverter.fromTimestamp(_tmp);
            final Date _tmpUpdated;
            final Long _tmp_1;
            if (_cursor.isNull(_cursorIndexOfUpdated)) {
              _tmp_1 = null;
            } else {
              _tmp_1 = _cursor.getLong(_cursorIndexOfUpdated);
            }
            _tmpUpdated = __dateConverter.fromTimestamp(_tmp_1);
            final String _tmpCategories;
            if (_cursor.isNull(_cursorIndexOfCategories)) {
              _tmpCategories = null;
            } else {
              _tmpCategories = _cursor.getString(_cursorIndexOfCategories);
            }
            final String _tmpEnclosureUrl;
            if (_cursor.isNull(_cursorIndexOfEnclosureUrl)) {
              _tmpEnclosureUrl = null;
            } else {
              _tmpEnclosureUrl = _cursor.getString(_cursorIndexOfEnclosureUrl);
            }
            final String _tmpEnclosureType;
            if (_cursor.isNull(_cursorIndexOfEnclosureType)) {
              _tmpEnclosureType = null;
            } else {
              _tmpEnclosureType = _cursor.getString(_cursorIndexOfEnclosureType);
            }
            final Long _tmpEnclosureLength;
            if (_cursor.isNull(_cursorIndexOfEnclosureLength)) {
              _tmpEnclosureLength = null;
            } else {
              _tmpEnclosureLength = _cursor.getLong(_cursorIndexOfEnclosureLength);
            }
            final String _tmpGuid;
            if (_cursor.isNull(_cursorIndexOfGuid)) {
              _tmpGuid = null;
            } else {
              _tmpGuid = _cursor.getString(_cursorIndexOfGuid);
            }
            final boolean _tmpIsRead;
            final int _tmp_2;
            _tmp_2 = _cursor.getInt(_cursorIndexOfIsRead);
            _tmpIsRead = _tmp_2 != 0;
            final boolean _tmpIsStarred;
            final int _tmp_3;
            _tmp_3 = _cursor.getInt(_cursorIndexOfIsStarred);
            _tmpIsStarred = _tmp_3 != 0;
            _result = new FeedItemEntity(_tmpId,_tmpSubscriptionId,_tmpTitle,_tmpLink,_tmpDescription,_tmpContent,_tmpAuthor,_tmpPublished,_tmpUpdated,_tmpCategories,_tmpEnclosureUrl,_tmpEnclosureType,_tmpEnclosureLength,_tmpGuid,_tmpIsRead,_tmpIsStarred);
          } else {
            _result = null;
          }
          return _result;
        } finally {
          _cursor.close();
          _statement.release();
        }
      }
    }, $completion);
  }

  @Override
  public Flow<List<FeedItemEntity>> getItemsBySubscriptions(final List<String> subscriptionIds) {
    final StringBuilder _stringBuilder = StringUtil.newStringBuilder();
    _stringBuilder.append("SELECT * FROM feed_items WHERE subscriptionId IN (");
    final int _inputSize = subscriptionIds.size();
    StringUtil.appendPlaceholders(_stringBuilder, _inputSize);
    _stringBuilder.append(") ORDER BY published DESC");
    final String _sql = _stringBuilder.toString();
    final int _argCount = 0 + _inputSize;
    final RoomSQLiteQuery _statement = RoomSQLiteQuery.acquire(_sql, _argCount);
    int _argIndex = 1;
    for (String _item : subscriptionIds) {
      if (_item == null) {
        _statement.bindNull(_argIndex);
      } else {
        _statement.bindString(_argIndex, _item);
      }
      _argIndex++;
    }
    return CoroutinesRoom.createFlow(__db, false, new String[] {"feed_items"}, new Callable<List<FeedItemEntity>>() {
      @Override
      @NonNull
      public List<FeedItemEntity> call() throws Exception {
        final Cursor _cursor = DBUtil.query(__db, _statement, false, null);
        try {
          final int _cursorIndexOfId = CursorUtil.getColumnIndexOrThrow(_cursor, "id");
          final int _cursorIndexOfSubscriptionId = CursorUtil.getColumnIndexOrThrow(_cursor, "subscriptionId");
          final int _cursorIndexOfTitle = CursorUtil.getColumnIndexOrThrow(_cursor, "title");
          final int _cursorIndexOfLink = CursorUtil.getColumnIndexOrThrow(_cursor, "link");
          final int _cursorIndexOfDescription = CursorUtil.getColumnIndexOrThrow(_cursor, "description");
          final int _cursorIndexOfContent = CursorUtil.getColumnIndexOrThrow(_cursor, "content");
          final int _cursorIndexOfAuthor = CursorUtil.getColumnIndexOrThrow(_cursor, "author");
          final int _cursorIndexOfPublished = CursorUtil.getColumnIndexOrThrow(_cursor, "published");
          final int _cursorIndexOfUpdated = CursorUtil.getColumnIndexOrThrow(_cursor, "updated");
          final int _cursorIndexOfCategories = CursorUtil.getColumnIndexOrThrow(_cursor, "categories");
          final int _cursorIndexOfEnclosureUrl = CursorUtil.getColumnIndexOrThrow(_cursor, "enclosureUrl");
          final int _cursorIndexOfEnclosureType = CursorUtil.getColumnIndexOrThrow(_cursor, "enclosureType");
          final int _cursorIndexOfEnclosureLength = CursorUtil.getColumnIndexOrThrow(_cursor, "enclosureLength");
          final int _cursorIndexOfGuid = CursorUtil.getColumnIndexOrThrow(_cursor, "guid");
          final int _cursorIndexOfIsRead = CursorUtil.getColumnIndexOrThrow(_cursor, "isRead");
          final int _cursorIndexOfIsStarred = CursorUtil.getColumnIndexOrThrow(_cursor, "isStarred");
          final List<FeedItemEntity> _result = new ArrayList<FeedItemEntity>(_cursor.getCount());
          while (_cursor.moveToNext()) {
            final FeedItemEntity _item_1;
            final String _tmpId;
            if (_cursor.isNull(_cursorIndexOfId)) {
              _tmpId = null;
            } else {
              _tmpId = _cursor.getString(_cursorIndexOfId);
            }
            final String _tmpSubscriptionId;
            if (_cursor.isNull(_cursorIndexOfSubscriptionId)) {
              _tmpSubscriptionId = null;
            } else {
              _tmpSubscriptionId = _cursor.getString(_cursorIndexOfSubscriptionId);
            }
            final String _tmpTitle;
            if (_cursor.isNull(_cursorIndexOfTitle)) {
              _tmpTitle = null;
            } else {
              _tmpTitle = _cursor.getString(_cursorIndexOfTitle);
            }
            final String _tmpLink;
            if (_cursor.isNull(_cursorIndexOfLink)) {
              _tmpLink = null;
            } else {
              _tmpLink = _cursor.getString(_cursorIndexOfLink);
            }
            final String _tmpDescription;
            if (_cursor.isNull(_cursorIndexOfDescription)) {
              _tmpDescription = null;
            } else {
              _tmpDescription = _cursor.getString(_cursorIndexOfDescription);
            }
            final String _tmpContent;
            if (_cursor.isNull(_cursorIndexOfContent)) {
              _tmpContent = null;
            } else {
              _tmpContent = _cursor.getString(_cursorIndexOfContent);
            }
            final String _tmpAuthor;
            if (_cursor.isNull(_cursorIndexOfAuthor)) {
              _tmpAuthor = null;
            } else {
              _tmpAuthor = _cursor.getString(_cursorIndexOfAuthor);
            }
            final Date _tmpPublished;
            final Long _tmp;
            if (_cursor.isNull(_cursorIndexOfPublished)) {
              _tmp = null;
            } else {
              _tmp = _cursor.getLong(_cursorIndexOfPublished);
            }
            _tmpPublished = __dateConverter.fromTimestamp(_tmp);
            final Date _tmpUpdated;
            final Long _tmp_1;
            if (_cursor.isNull(_cursorIndexOfUpdated)) {
              _tmp_1 = null;
            } else {
              _tmp_1 = _cursor.getLong(_cursorIndexOfUpdated);
            }
            _tmpUpdated = __dateConverter.fromTimestamp(_tmp_1);
            final String _tmpCategories;
            if (_cursor.isNull(_cursorIndexOfCategories)) {
              _tmpCategories = null;
            } else {
              _tmpCategories = _cursor.getString(_cursorIndexOfCategories);
            }
            final String _tmpEnclosureUrl;
            if (_cursor.isNull(_cursorIndexOfEnclosureUrl)) {
              _tmpEnclosureUrl = null;
            } else {
              _tmpEnclosureUrl = _cursor.getString(_cursorIndexOfEnclosureUrl);
            }
            final String _tmpEnclosureType;
            if (_cursor.isNull(_cursorIndexOfEnclosureType)) {
              _tmpEnclosureType = null;
            } else {
              _tmpEnclosureType = _cursor.getString(_cursorIndexOfEnclosureType);
            }
            final Long _tmpEnclosureLength;
            if (_cursor.isNull(_cursorIndexOfEnclosureLength)) {
              _tmpEnclosureLength = null;
            } else {
              _tmpEnclosureLength = _cursor.getLong(_cursorIndexOfEnclosureLength);
            }
            final String _tmpGuid;
            if (_cursor.isNull(_cursorIndexOfGuid)) {
              _tmpGuid = null;
            } else {
              _tmpGuid = _cursor.getString(_cursorIndexOfGuid);
            }
            final boolean _tmpIsRead;
            final int _tmp_2;
            _tmp_2 = _cursor.getInt(_cursorIndexOfIsRead);
            _tmpIsRead = _tmp_2 != 0;
            final boolean _tmpIsStarred;
            final int _tmp_3;
            _tmp_3 = _cursor.getInt(_cursorIndexOfIsStarred);
            _tmpIsStarred = _tmp_3 != 0;
            _item_1 = new FeedItemEntity(_tmpId,_tmpSubscriptionId,_tmpTitle,_tmpLink,_tmpDescription,_tmpContent,_tmpAuthor,_tmpPublished,_tmpUpdated,_tmpCategories,_tmpEnclosureUrl,_tmpEnclosureType,_tmpEnclosureLength,_tmpGuid,_tmpIsRead,_tmpIsStarred);
            _result.add(_item_1);
          }
          return _result;
        } finally {
          _cursor.close();
        }
      }

      @Override
      protected void finalize() {
        _statement.release();
      }
    });
  }

  @Override
  public Flow<List<FeedItemEntity>> getUnreadItems() {
    final String _sql = "SELECT * FROM feed_items WHERE isRead = 0 ORDER BY published DESC";
    final RoomSQLiteQuery _statement = RoomSQLiteQuery.acquire(_sql, 0);
    return CoroutinesRoom.createFlow(__db, false, new String[] {"feed_items"}, new Callable<List<FeedItemEntity>>() {
      @Override
      @NonNull
      public List<FeedItemEntity> call() throws Exception {
        final Cursor _cursor = DBUtil.query(__db, _statement, false, null);
        try {
          final int _cursorIndexOfId = CursorUtil.getColumnIndexOrThrow(_cursor, "id");
          final int _cursorIndexOfSubscriptionId = CursorUtil.getColumnIndexOrThrow(_cursor, "subscriptionId");
          final int _cursorIndexOfTitle = CursorUtil.getColumnIndexOrThrow(_cursor, "title");
          final int _cursorIndexOfLink = CursorUtil.getColumnIndexOrThrow(_cursor, "link");
          final int _cursorIndexOfDescription = CursorUtil.getColumnIndexOrThrow(_cursor, "description");
          final int _cursorIndexOfContent = CursorUtil.getColumnIndexOrThrow(_cursor, "content");
          final int _cursorIndexOfAuthor = CursorUtil.getColumnIndexOrThrow(_cursor, "author");
          final int _cursorIndexOfPublished = CursorUtil.getColumnIndexOrThrow(_cursor, "published");
          final int _cursorIndexOfUpdated = CursorUtil.getColumnIndexOrThrow(_cursor, "updated");
          final int _cursorIndexOfCategories = CursorUtil.getColumnIndexOrThrow(_cursor, "categories");
          final int _cursorIndexOfEnclosureUrl = CursorUtil.getColumnIndexOrThrow(_cursor, "enclosureUrl");
          final int _cursorIndexOfEnclosureType = CursorUtil.getColumnIndexOrThrow(_cursor, "enclosureType");
          final int _cursorIndexOfEnclosureLength = CursorUtil.getColumnIndexOrThrow(_cursor, "enclosureLength");
          final int _cursorIndexOfGuid = CursorUtil.getColumnIndexOrThrow(_cursor, "guid");
          final int _cursorIndexOfIsRead = CursorUtil.getColumnIndexOrThrow(_cursor, "isRead");
          final int _cursorIndexOfIsStarred = CursorUtil.getColumnIndexOrThrow(_cursor, "isStarred");
          final List<FeedItemEntity> _result = new ArrayList<FeedItemEntity>(_cursor.getCount());
          while (_cursor.moveToNext()) {
            final FeedItemEntity _item;
            final String _tmpId;
            if (_cursor.isNull(_cursorIndexOfId)) {
              _tmpId = null;
            } else {
              _tmpId = _cursor.getString(_cursorIndexOfId);
            }
            final String _tmpSubscriptionId;
            if (_cursor.isNull(_cursorIndexOfSubscriptionId)) {
              _tmpSubscriptionId = null;
            } else {
              _tmpSubscriptionId = _cursor.getString(_cursorIndexOfSubscriptionId);
            }
            final String _tmpTitle;
            if (_cursor.isNull(_cursorIndexOfTitle)) {
              _tmpTitle = null;
            } else {
              _tmpTitle = _cursor.getString(_cursorIndexOfTitle);
            }
            final String _tmpLink;
            if (_cursor.isNull(_cursorIndexOfLink)) {
              _tmpLink = null;
            } else {
              _tmpLink = _cursor.getString(_cursorIndexOfLink);
            }
            final String _tmpDescription;
            if (_cursor.isNull(_cursorIndexOfDescription)) {
              _tmpDescription = null;
            } else {
              _tmpDescription = _cursor.getString(_cursorIndexOfDescription);
            }
            final String _tmpContent;
            if (_cursor.isNull(_cursorIndexOfContent)) {
              _tmpContent = null;
            } else {
              _tmpContent = _cursor.getString(_cursorIndexOfContent);
            }
            final String _tmpAuthor;
            if (_cursor.isNull(_cursorIndexOfAuthor)) {
              _tmpAuthor = null;
            } else {
              _tmpAuthor = _cursor.getString(_cursorIndexOfAuthor);
            }
            final Date _tmpPublished;
            final Long _tmp;
            if (_cursor.isNull(_cursorIndexOfPublished)) {
              _tmp = null;
            } else {
              _tmp = _cursor.getLong(_cursorIndexOfPublished);
            }
            _tmpPublished = __dateConverter.fromTimestamp(_tmp);
            final Date _tmpUpdated;
            final Long _tmp_1;
            if (_cursor.isNull(_cursorIndexOfUpdated)) {
              _tmp_1 = null;
            } else {
              _tmp_1 = _cursor.getLong(_cursorIndexOfUpdated);
            }
            _tmpUpdated = __dateConverter.fromTimestamp(_tmp_1);
            final String _tmpCategories;
            if (_cursor.isNull(_cursorIndexOfCategories)) {
              _tmpCategories = null;
            } else {
              _tmpCategories = _cursor.getString(_cursorIndexOfCategories);
            }
            final String _tmpEnclosureUrl;
            if (_cursor.isNull(_cursorIndexOfEnclosureUrl)) {
              _tmpEnclosureUrl = null;
            } else {
              _tmpEnclosureUrl = _cursor.getString(_cursorIndexOfEnclosureUrl);
            }
            final String _tmpEnclosureType;
            if (_cursor.isNull(_cursorIndexOfEnclosureType)) {
              _tmpEnclosureType = null;
            } else {
              _tmpEnclosureType = _cursor.getString(_cursorIndexOfEnclosureType);
            }
            final Long _tmpEnclosureLength;
            if (_cursor.isNull(_cursorIndexOfEnclosureLength)) {
              _tmpEnclosureLength = null;
            } else {
              _tmpEnclosureLength = _cursor.getLong(_cursorIndexOfEnclosureLength);
            }
            final String _tmpGuid;
            if (_cursor.isNull(_cursorIndexOfGuid)) {
              _tmpGuid = null;
            } else {
              _tmpGuid = _cursor.getString(_cursorIndexOfGuid);
            }
            final boolean _tmpIsRead;
            final int _tmp_2;
            _tmp_2 = _cursor.getInt(_cursorIndexOfIsRead);
            _tmpIsRead = _tmp_2 != 0;
            final boolean _tmpIsStarred;
            final int _tmp_3;
            _tmp_3 = _cursor.getInt(_cursorIndexOfIsStarred);
            _tmpIsStarred = _tmp_3 != 0;
            _item = new FeedItemEntity(_tmpId,_tmpSubscriptionId,_tmpTitle,_tmpLink,_tmpDescription,_tmpContent,_tmpAuthor,_tmpPublished,_tmpUpdated,_tmpCategories,_tmpEnclosureUrl,_tmpEnclosureType,_tmpEnclosureLength,_tmpGuid,_tmpIsRead,_tmpIsStarred);
            _result.add(_item);
          }
          return _result;
        } finally {
          _cursor.close();
        }
      }

      @Override
      protected void finalize() {
        _statement.release();
      }
    });
  }

  @Override
  public Flow<List<FeedItemEntity>> getStarredItems() {
    final String _sql = "SELECT * FROM feed_items WHERE isStarred = 1 ORDER BY published DESC";
    final RoomSQLiteQuery _statement = RoomSQLiteQuery.acquire(_sql, 0);
    return CoroutinesRoom.createFlow(__db, false, new String[] {"feed_items"}, new Callable<List<FeedItemEntity>>() {
      @Override
      @NonNull
      public List<FeedItemEntity> call() throws Exception {
        final Cursor _cursor = DBUtil.query(__db, _statement, false, null);
        try {
          final int _cursorIndexOfId = CursorUtil.getColumnIndexOrThrow(_cursor, "id");
          final int _cursorIndexOfSubscriptionId = CursorUtil.getColumnIndexOrThrow(_cursor, "subscriptionId");
          final int _cursorIndexOfTitle = CursorUtil.getColumnIndexOrThrow(_cursor, "title");
          final int _cursorIndexOfLink = CursorUtil.getColumnIndexOrThrow(_cursor, "link");
          final int _cursorIndexOfDescription = CursorUtil.getColumnIndexOrThrow(_cursor, "description");
          final int _cursorIndexOfContent = CursorUtil.getColumnIndexOrThrow(_cursor, "content");
          final int _cursorIndexOfAuthor = CursorUtil.getColumnIndexOrThrow(_cursor, "author");
          final int _cursorIndexOfPublished = CursorUtil.getColumnIndexOrThrow(_cursor, "published");
          final int _cursorIndexOfUpdated = CursorUtil.getColumnIndexOrThrow(_cursor, "updated");
          final int _cursorIndexOfCategories = CursorUtil.getColumnIndexOrThrow(_cursor, "categories");
          final int _cursorIndexOfEnclosureUrl = CursorUtil.getColumnIndexOrThrow(_cursor, "enclosureUrl");
          final int _cursorIndexOfEnclosureType = CursorUtil.getColumnIndexOrThrow(_cursor, "enclosureType");
          final int _cursorIndexOfEnclosureLength = CursorUtil.getColumnIndexOrThrow(_cursor, "enclosureLength");
          final int _cursorIndexOfGuid = CursorUtil.getColumnIndexOrThrow(_cursor, "guid");
          final int _cursorIndexOfIsRead = CursorUtil.getColumnIndexOrThrow(_cursor, "isRead");
          final int _cursorIndexOfIsStarred = CursorUtil.getColumnIndexOrThrow(_cursor, "isStarred");
          final List<FeedItemEntity> _result = new ArrayList<FeedItemEntity>(_cursor.getCount());
          while (_cursor.moveToNext()) {
            final FeedItemEntity _item;
            final String _tmpId;
            if (_cursor.isNull(_cursorIndexOfId)) {
              _tmpId = null;
            } else {
              _tmpId = _cursor.getString(_cursorIndexOfId);
            }
            final String _tmpSubscriptionId;
            if (_cursor.isNull(_cursorIndexOfSubscriptionId)) {
              _tmpSubscriptionId = null;
            } else {
              _tmpSubscriptionId = _cursor.getString(_cursorIndexOfSubscriptionId);
            }
            final String _tmpTitle;
            if (_cursor.isNull(_cursorIndexOfTitle)) {
              _tmpTitle = null;
            } else {
              _tmpTitle = _cursor.getString(_cursorIndexOfTitle);
            }
            final String _tmpLink;
            if (_cursor.isNull(_cursorIndexOfLink)) {
              _tmpLink = null;
            } else {
              _tmpLink = _cursor.getString(_cursorIndexOfLink);
            }
            final String _tmpDescription;
            if (_cursor.isNull(_cursorIndexOfDescription)) {
              _tmpDescription = null;
            } else {
              _tmpDescription = _cursor.getString(_cursorIndexOfDescription);
            }
            final String _tmpContent;
            if (_cursor.isNull(_cursorIndexOfContent)) {
              _tmpContent = null;
            } else {
              _tmpContent = _cursor.getString(_cursorIndexOfContent);
            }
            final String _tmpAuthor;
            if (_cursor.isNull(_cursorIndexOfAuthor)) {
              _tmpAuthor = null;
            } else {
              _tmpAuthor = _cursor.getString(_cursorIndexOfAuthor);
            }
            final Date _tmpPublished;
            final Long _tmp;
            if (_cursor.isNull(_cursorIndexOfPublished)) {
              _tmp = null;
            } else {
              _tmp = _cursor.getLong(_cursorIndexOfPublished);
            }
            _tmpPublished = __dateConverter.fromTimestamp(_tmp);
            final Date _tmpUpdated;
            final Long _tmp_1;
            if (_cursor.isNull(_cursorIndexOfUpdated)) {
              _tmp_1 = null;
            } else {
              _tmp_1 = _cursor.getLong(_cursorIndexOfUpdated);
            }
            _tmpUpdated = __dateConverter.fromTimestamp(_tmp_1);
            final String _tmpCategories;
            if (_cursor.isNull(_cursorIndexOfCategories)) {
              _tmpCategories = null;
            } else {
              _tmpCategories = _cursor.getString(_cursorIndexOfCategories);
            }
            final String _tmpEnclosureUrl;
            if (_cursor.isNull(_cursorIndexOfEnclosureUrl)) {
              _tmpEnclosureUrl = null;
            } else {
              _tmpEnclosureUrl = _cursor.getString(_cursorIndexOfEnclosureUrl);
            }
            final String _tmpEnclosureType;
            if (_cursor.isNull(_cursorIndexOfEnclosureType)) {
              _tmpEnclosureType = null;
            } else {
              _tmpEnclosureType = _cursor.getString(_cursorIndexOfEnclosureType);
            }
            final Long _tmpEnclosureLength;
            if (_cursor.isNull(_cursorIndexOfEnclosureLength)) {
              _tmpEnclosureLength = null;
            } else {
              _tmpEnclosureLength = _cursor.getLong(_cursorIndexOfEnclosureLength);
            }
            final String _tmpGuid;
            if (_cursor.isNull(_cursorIndexOfGuid)) {
              _tmpGuid = null;
            } else {
              _tmpGuid = _cursor.getString(_cursorIndexOfGuid);
            }
            final boolean _tmpIsRead;
            final int _tmp_2;
            _tmp_2 = _cursor.getInt(_cursorIndexOfIsRead);
            _tmpIsRead = _tmp_2 != 0;
            final boolean _tmpIsStarred;
            final int _tmp_3;
            _tmp_3 = _cursor.getInt(_cursorIndexOfIsStarred);
            _tmpIsStarred = _tmp_3 != 0;
            _item = new FeedItemEntity(_tmpId,_tmpSubscriptionId,_tmpTitle,_tmpLink,_tmpDescription,_tmpContent,_tmpAuthor,_tmpPublished,_tmpUpdated,_tmpCategories,_tmpEnclosureUrl,_tmpEnclosureType,_tmpEnclosureLength,_tmpGuid,_tmpIsRead,_tmpIsStarred);
            _result.add(_item);
          }
          return _result;
        } finally {
          _cursor.close();
        }
      }

      @Override
      protected void finalize() {
        _statement.release();
      }
    });
  }

  @Override
  public Flow<List<FeedItemEntity>> getItemsAfterDate(final Date date) {
    final String _sql = "SELECT * FROM feed_items WHERE published > ? ORDER BY published DESC";
    final RoomSQLiteQuery _statement = RoomSQLiteQuery.acquire(_sql, 1);
    int _argIndex = 1;
    final Long _tmp = __dateConverter.dateToTimestamp(date);
    if (_tmp == null) {
      _statement.bindNull(_argIndex);
    } else {
      _statement.bindLong(_argIndex, _tmp);
    }
    return CoroutinesRoom.createFlow(__db, false, new String[] {"feed_items"}, new Callable<List<FeedItemEntity>>() {
      @Override
      @NonNull
      public List<FeedItemEntity> call() throws Exception {
        final Cursor _cursor = DBUtil.query(__db, _statement, false, null);
        try {
          final int _cursorIndexOfId = CursorUtil.getColumnIndexOrThrow(_cursor, "id");
          final int _cursorIndexOfSubscriptionId = CursorUtil.getColumnIndexOrThrow(_cursor, "subscriptionId");
          final int _cursorIndexOfTitle = CursorUtil.getColumnIndexOrThrow(_cursor, "title");
          final int _cursorIndexOfLink = CursorUtil.getColumnIndexOrThrow(_cursor, "link");
          final int _cursorIndexOfDescription = CursorUtil.getColumnIndexOrThrow(_cursor, "description");
          final int _cursorIndexOfContent = CursorUtil.getColumnIndexOrThrow(_cursor, "content");
          final int _cursorIndexOfAuthor = CursorUtil.getColumnIndexOrThrow(_cursor, "author");
          final int _cursorIndexOfPublished = CursorUtil.getColumnIndexOrThrow(_cursor, "published");
          final int _cursorIndexOfUpdated = CursorUtil.getColumnIndexOrThrow(_cursor, "updated");
          final int _cursorIndexOfCategories = CursorUtil.getColumnIndexOrThrow(_cursor, "categories");
          final int _cursorIndexOfEnclosureUrl = CursorUtil.getColumnIndexOrThrow(_cursor, "enclosureUrl");
          final int _cursorIndexOfEnclosureType = CursorUtil.getColumnIndexOrThrow(_cursor, "enclosureType");
          final int _cursorIndexOfEnclosureLength = CursorUtil.getColumnIndexOrThrow(_cursor, "enclosureLength");
          final int _cursorIndexOfGuid = CursorUtil.getColumnIndexOrThrow(_cursor, "guid");
          final int _cursorIndexOfIsRead = CursorUtil.getColumnIndexOrThrow(_cursor, "isRead");
          final int _cursorIndexOfIsStarred = CursorUtil.getColumnIndexOrThrow(_cursor, "isStarred");
          final List<FeedItemEntity> _result = new ArrayList<FeedItemEntity>(_cursor.getCount());
          while (_cursor.moveToNext()) {
            final FeedItemEntity _item;
            final String _tmpId;
            if (_cursor.isNull(_cursorIndexOfId)) {
              _tmpId = null;
            } else {
              _tmpId = _cursor.getString(_cursorIndexOfId);
            }
            final String _tmpSubscriptionId;
            if (_cursor.isNull(_cursorIndexOfSubscriptionId)) {
              _tmpSubscriptionId = null;
            } else {
              _tmpSubscriptionId = _cursor.getString(_cursorIndexOfSubscriptionId);
            }
            final String _tmpTitle;
            if (_cursor.isNull(_cursorIndexOfTitle)) {
              _tmpTitle = null;
            } else {
              _tmpTitle = _cursor.getString(_cursorIndexOfTitle);
            }
            final String _tmpLink;
            if (_cursor.isNull(_cursorIndexOfLink)) {
              _tmpLink = null;
            } else {
              _tmpLink = _cursor.getString(_cursorIndexOfLink);
            }
            final String _tmpDescription;
            if (_cursor.isNull(_cursorIndexOfDescription)) {
              _tmpDescription = null;
            } else {
              _tmpDescription = _cursor.getString(_cursorIndexOfDescription);
            }
            final String _tmpContent;
            if (_cursor.isNull(_cursorIndexOfContent)) {
              _tmpContent = null;
            } else {
              _tmpContent = _cursor.getString(_cursorIndexOfContent);
            }
            final String _tmpAuthor;
            if (_cursor.isNull(_cursorIndexOfAuthor)) {
              _tmpAuthor = null;
            } else {
              _tmpAuthor = _cursor.getString(_cursorIndexOfAuthor);
            }
            final Date _tmpPublished;
            final Long _tmp_1;
            if (_cursor.isNull(_cursorIndexOfPublished)) {
              _tmp_1 = null;
            } else {
              _tmp_1 = _cursor.getLong(_cursorIndexOfPublished);
            }
            _tmpPublished = __dateConverter.fromTimestamp(_tmp_1);
            final Date _tmpUpdated;
            final Long _tmp_2;
            if (_cursor.isNull(_cursorIndexOfUpdated)) {
              _tmp_2 = null;
            } else {
              _tmp_2 = _cursor.getLong(_cursorIndexOfUpdated);
            }
            _tmpUpdated = __dateConverter.fromTimestamp(_tmp_2);
            final String _tmpCategories;
            if (_cursor.isNull(_cursorIndexOfCategories)) {
              _tmpCategories = null;
            } else {
              _tmpCategories = _cursor.getString(_cursorIndexOfCategories);
            }
            final String _tmpEnclosureUrl;
            if (_cursor.isNull(_cursorIndexOfEnclosureUrl)) {
              _tmpEnclosureUrl = null;
            } else {
              _tmpEnclosureUrl = _cursor.getString(_cursorIndexOfEnclosureUrl);
            }
            final String _tmpEnclosureType;
            if (_cursor.isNull(_cursorIndexOfEnclosureType)) {
              _tmpEnclosureType = null;
            } else {
              _tmpEnclosureType = _cursor.getString(_cursorIndexOfEnclosureType);
            }
            final Long _tmpEnclosureLength;
            if (_cursor.isNull(_cursorIndexOfEnclosureLength)) {
              _tmpEnclosureLength = null;
            } else {
              _tmpEnclosureLength = _cursor.getLong(_cursorIndexOfEnclosureLength);
            }
            final String _tmpGuid;
            if (_cursor.isNull(_cursorIndexOfGuid)) {
              _tmpGuid = null;
            } else {
              _tmpGuid = _cursor.getString(_cursorIndexOfGuid);
            }
            final boolean _tmpIsRead;
            final int _tmp_3;
            _tmp_3 = _cursor.getInt(_cursorIndexOfIsRead);
            _tmpIsRead = _tmp_3 != 0;
            final boolean _tmpIsStarred;
            final int _tmp_4;
            _tmp_4 = _cursor.getInt(_cursorIndexOfIsStarred);
            _tmpIsStarred = _tmp_4 != 0;
            _item = new FeedItemEntity(_tmpId,_tmpSubscriptionId,_tmpTitle,_tmpLink,_tmpDescription,_tmpContent,_tmpAuthor,_tmpPublished,_tmpUpdated,_tmpCategories,_tmpEnclosureUrl,_tmpEnclosureType,_tmpEnclosureLength,_tmpGuid,_tmpIsRead,_tmpIsStarred);
            _result.add(_item);
          }
          return _result;
        } finally {
          _cursor.close();
        }
      }

      @Override
      protected void finalize() {
        _statement.release();
      }
    });
  }

  @Override
  public Flow<List<FeedItemEntity>> getSubscriptionItemsAfterDate(final String subscriptionId,
      final Date date) {
    final String _sql = "SELECT * FROM feed_items WHERE subscriptionId = ? AND published > ? ORDER BY published DESC";
    final RoomSQLiteQuery _statement = RoomSQLiteQuery.acquire(_sql, 2);
    int _argIndex = 1;
    if (subscriptionId == null) {
      _statement.bindNull(_argIndex);
    } else {
      _statement.bindString(_argIndex, subscriptionId);
    }
    _argIndex = 2;
    final Long _tmp = __dateConverter.dateToTimestamp(date);
    if (_tmp == null) {
      _statement.bindNull(_argIndex);
    } else {
      _statement.bindLong(_argIndex, _tmp);
    }
    return CoroutinesRoom.createFlow(__db, false, new String[] {"feed_items"}, new Callable<List<FeedItemEntity>>() {
      @Override
      @NonNull
      public List<FeedItemEntity> call() throws Exception {
        final Cursor _cursor = DBUtil.query(__db, _statement, false, null);
        try {
          final int _cursorIndexOfId = CursorUtil.getColumnIndexOrThrow(_cursor, "id");
          final int _cursorIndexOfSubscriptionId = CursorUtil.getColumnIndexOrThrow(_cursor, "subscriptionId");
          final int _cursorIndexOfTitle = CursorUtil.getColumnIndexOrThrow(_cursor, "title");
          final int _cursorIndexOfLink = CursorUtil.getColumnIndexOrThrow(_cursor, "link");
          final int _cursorIndexOfDescription = CursorUtil.getColumnIndexOrThrow(_cursor, "description");
          final int _cursorIndexOfContent = CursorUtil.getColumnIndexOrThrow(_cursor, "content");
          final int _cursorIndexOfAuthor = CursorUtil.getColumnIndexOrThrow(_cursor, "author");
          final int _cursorIndexOfPublished = CursorUtil.getColumnIndexOrThrow(_cursor, "published");
          final int _cursorIndexOfUpdated = CursorUtil.getColumnIndexOrThrow(_cursor, "updated");
          final int _cursorIndexOfCategories = CursorUtil.getColumnIndexOrThrow(_cursor, "categories");
          final int _cursorIndexOfEnclosureUrl = CursorUtil.getColumnIndexOrThrow(_cursor, "enclosureUrl");
          final int _cursorIndexOfEnclosureType = CursorUtil.getColumnIndexOrThrow(_cursor, "enclosureType");
          final int _cursorIndexOfEnclosureLength = CursorUtil.getColumnIndexOrThrow(_cursor, "enclosureLength");
          final int _cursorIndexOfGuid = CursorUtil.getColumnIndexOrThrow(_cursor, "guid");
          final int _cursorIndexOfIsRead = CursorUtil.getColumnIndexOrThrow(_cursor, "isRead");
          final int _cursorIndexOfIsStarred = CursorUtil.getColumnIndexOrThrow(_cursor, "isStarred");
          final List<FeedItemEntity> _result = new ArrayList<FeedItemEntity>(_cursor.getCount());
          while (_cursor.moveToNext()) {
            final FeedItemEntity _item;
            final String _tmpId;
            if (_cursor.isNull(_cursorIndexOfId)) {
              _tmpId = null;
            } else {
              _tmpId = _cursor.getString(_cursorIndexOfId);
            }
            final String _tmpSubscriptionId;
            if (_cursor.isNull(_cursorIndexOfSubscriptionId)) {
              _tmpSubscriptionId = null;
            } else {
              _tmpSubscriptionId = _cursor.getString(_cursorIndexOfSubscriptionId);
            }
            final String _tmpTitle;
            if (_cursor.isNull(_cursorIndexOfTitle)) {
              _tmpTitle = null;
            } else {
              _tmpTitle = _cursor.getString(_cursorIndexOfTitle);
            }
            final String _tmpLink;
            if (_cursor.isNull(_cursorIndexOfLink)) {
              _tmpLink = null;
            } else {
              _tmpLink = _cursor.getString(_cursorIndexOfLink);
            }
            final String _tmpDescription;
            if (_cursor.isNull(_cursorIndexOfDescription)) {
              _tmpDescription = null;
            } else {
              _tmpDescription = _cursor.getString(_cursorIndexOfDescription);
            }
            final String _tmpContent;
            if (_cursor.isNull(_cursorIndexOfContent)) {
              _tmpContent = null;
            } else {
              _tmpContent = _cursor.getString(_cursorIndexOfContent);
            }
            final String _tmpAuthor;
            if (_cursor.isNull(_cursorIndexOfAuthor)) {
              _tmpAuthor = null;
            } else {
              _tmpAuthor = _cursor.getString(_cursorIndexOfAuthor);
            }
            final Date _tmpPublished;
            final Long _tmp_1;
            if (_cursor.isNull(_cursorIndexOfPublished)) {
              _tmp_1 = null;
            } else {
              _tmp_1 = _cursor.getLong(_cursorIndexOfPublished);
            }
            _tmpPublished = __dateConverter.fromTimestamp(_tmp_1);
            final Date _tmpUpdated;
            final Long _tmp_2;
            if (_cursor.isNull(_cursorIndexOfUpdated)) {
              _tmp_2 = null;
            } else {
              _tmp_2 = _cursor.getLong(_cursorIndexOfUpdated);
            }
            _tmpUpdated = __dateConverter.fromTimestamp(_tmp_2);
            final String _tmpCategories;
            if (_cursor.isNull(_cursorIndexOfCategories)) {
              _tmpCategories = null;
            } else {
              _tmpCategories = _cursor.getString(_cursorIndexOfCategories);
            }
            final String _tmpEnclosureUrl;
            if (_cursor.isNull(_cursorIndexOfEnclosureUrl)) {
              _tmpEnclosureUrl = null;
            } else {
              _tmpEnclosureUrl = _cursor.getString(_cursorIndexOfEnclosureUrl);
            }
            final String _tmpEnclosureType;
            if (_cursor.isNull(_cursorIndexOfEnclosureType)) {
              _tmpEnclosureType = null;
            } else {
              _tmpEnclosureType = _cursor.getString(_cursorIndexOfEnclosureType);
            }
            final Long _tmpEnclosureLength;
            if (_cursor.isNull(_cursorIndexOfEnclosureLength)) {
              _tmpEnclosureLength = null;
            } else {
              _tmpEnclosureLength = _cursor.getLong(_cursorIndexOfEnclosureLength);
            }
            final String _tmpGuid;
            if (_cursor.isNull(_cursorIndexOfGuid)) {
              _tmpGuid = null;
            } else {
              _tmpGuid = _cursor.getString(_cursorIndexOfGuid);
            }
            final boolean _tmpIsRead;
            final int _tmp_3;
            _tmp_3 = _cursor.getInt(_cursorIndexOfIsRead);
            _tmpIsRead = _tmp_3 != 0;
            final boolean _tmpIsStarred;
            final int _tmp_4;
            _tmp_4 = _cursor.getInt(_cursorIndexOfIsStarred);
            _tmpIsStarred = _tmp_4 != 0;
            _item = new FeedItemEntity(_tmpId,_tmpSubscriptionId,_tmpTitle,_tmpLink,_tmpDescription,_tmpContent,_tmpAuthor,_tmpPublished,_tmpUpdated,_tmpCategories,_tmpEnclosureUrl,_tmpEnclosureType,_tmpEnclosureLength,_tmpGuid,_tmpIsRead,_tmpIsStarred);
            _result.add(_item);
          }
          return _result;
        } finally {
          _cursor.close();
        }
      }

      @Override
      protected void finalize() {
        _statement.release();
      }
    });
  }

  @Override
  public Flow<Integer> getUnreadCount(final String subscriptionId) {
    final String _sql = "SELECT COUNT(*) FROM feed_items WHERE subscriptionId = ? AND isRead = 0";
    final RoomSQLiteQuery _statement = RoomSQLiteQuery.acquire(_sql, 1);
    int _argIndex = 1;
    if (subscriptionId == null) {
      _statement.bindNull(_argIndex);
    } else {
      _statement.bindString(_argIndex, subscriptionId);
    }
    return CoroutinesRoom.createFlow(__db, false, new String[] {"feed_items"}, new Callable<Integer>() {
      @Override
      @NonNull
      public Integer call() throws Exception {
        final Cursor _cursor = DBUtil.query(__db, _statement, false, null);
        try {
          final Integer _result;
          if (_cursor.moveToFirst()) {
            final Integer _tmp;
            if (_cursor.isNull(0)) {
              _tmp = null;
            } else {
              _tmp = _cursor.getInt(0);
            }
            _result = _tmp;
          } else {
            _result = null;
          }
          return _result;
        } finally {
          _cursor.close();
        }
      }

      @Override
      protected void finalize() {
        _statement.release();
      }
    });
  }

  @Override
  public Flow<Integer> getTotalUnreadCount() {
    final String _sql = "SELECT COUNT(*) FROM feed_items WHERE isRead = 0";
    final RoomSQLiteQuery _statement = RoomSQLiteQuery.acquire(_sql, 0);
    return CoroutinesRoom.createFlow(__db, false, new String[] {"feed_items"}, new Callable<Integer>() {
      @Override
      @NonNull
      public Integer call() throws Exception {
        final Cursor _cursor = DBUtil.query(__db, _statement, false, null);
        try {
          final Integer _result;
          if (_cursor.moveToFirst()) {
            final Integer _tmp;
            if (_cursor.isNull(0)) {
              _tmp = null;
            } else {
              _tmp = _cursor.getInt(0);
            }
            _result = _tmp;
          } else {
            _result = null;
          }
          return _result;
        } finally {
          _cursor.close();
        }
      }

      @Override
      protected void finalize() {
        _statement.release();
      }
    });
  }

  @Override
  public Object getItemsPaginated(final String subscriptionId, final int limit, final int offset,
      final Continuation<? super List<FeedItemEntity>> $completion) {
    final String _sql = "SELECT * FROM feed_items WHERE subscriptionId = ? LIMIT ? OFFSET ?";
    final RoomSQLiteQuery _statement = RoomSQLiteQuery.acquire(_sql, 3);
    int _argIndex = 1;
    if (subscriptionId == null) {
      _statement.bindNull(_argIndex);
    } else {
      _statement.bindString(_argIndex, subscriptionId);
    }
    _argIndex = 2;
    _statement.bindLong(_argIndex, limit);
    _argIndex = 3;
    _statement.bindLong(_argIndex, offset);
    final CancellationSignal _cancellationSignal = DBUtil.createCancellationSignal();
    return CoroutinesRoom.execute(__db, false, _cancellationSignal, new Callable<List<FeedItemEntity>>() {
      @Override
      @NonNull
      public List<FeedItemEntity> call() throws Exception {
        final Cursor _cursor = DBUtil.query(__db, _statement, false, null);
        try {
          final int _cursorIndexOfId = CursorUtil.getColumnIndexOrThrow(_cursor, "id");
          final int _cursorIndexOfSubscriptionId = CursorUtil.getColumnIndexOrThrow(_cursor, "subscriptionId");
          final int _cursorIndexOfTitle = CursorUtil.getColumnIndexOrThrow(_cursor, "title");
          final int _cursorIndexOfLink = CursorUtil.getColumnIndexOrThrow(_cursor, "link");
          final int _cursorIndexOfDescription = CursorUtil.getColumnIndexOrThrow(_cursor, "description");
          final int _cursorIndexOfContent = CursorUtil.getColumnIndexOrThrow(_cursor, "content");
          final int _cursorIndexOfAuthor = CursorUtil.getColumnIndexOrThrow(_cursor, "author");
          final int _cursorIndexOfPublished = CursorUtil.getColumnIndexOrThrow(_cursor, "published");
          final int _cursorIndexOfUpdated = CursorUtil.getColumnIndexOrThrow(_cursor, "updated");
          final int _cursorIndexOfCategories = CursorUtil.getColumnIndexOrThrow(_cursor, "categories");
          final int _cursorIndexOfEnclosureUrl = CursorUtil.getColumnIndexOrThrow(_cursor, "enclosureUrl");
          final int _cursorIndexOfEnclosureType = CursorUtil.getColumnIndexOrThrow(_cursor, "enclosureType");
          final int _cursorIndexOfEnclosureLength = CursorUtil.getColumnIndexOrThrow(_cursor, "enclosureLength");
          final int _cursorIndexOfGuid = CursorUtil.getColumnIndexOrThrow(_cursor, "guid");
          final int _cursorIndexOfIsRead = CursorUtil.getColumnIndexOrThrow(_cursor, "isRead");
          final int _cursorIndexOfIsStarred = CursorUtil.getColumnIndexOrThrow(_cursor, "isStarred");
          final List<FeedItemEntity> _result = new ArrayList<FeedItemEntity>(_cursor.getCount());
          while (_cursor.moveToNext()) {
            final FeedItemEntity _item;
            final String _tmpId;
            if (_cursor.isNull(_cursorIndexOfId)) {
              _tmpId = null;
            } else {
              _tmpId = _cursor.getString(_cursorIndexOfId);
            }
            final String _tmpSubscriptionId;
            if (_cursor.isNull(_cursorIndexOfSubscriptionId)) {
              _tmpSubscriptionId = null;
            } else {
              _tmpSubscriptionId = _cursor.getString(_cursorIndexOfSubscriptionId);
            }
            final String _tmpTitle;
            if (_cursor.isNull(_cursorIndexOfTitle)) {
              _tmpTitle = null;
            } else {
              _tmpTitle = _cursor.getString(_cursorIndexOfTitle);
            }
            final String _tmpLink;
            if (_cursor.isNull(_cursorIndexOfLink)) {
              _tmpLink = null;
            } else {
              _tmpLink = _cursor.getString(_cursorIndexOfLink);
            }
            final String _tmpDescription;
            if (_cursor.isNull(_cursorIndexOfDescription)) {
              _tmpDescription = null;
            } else {
              _tmpDescription = _cursor.getString(_cursorIndexOfDescription);
            }
            final String _tmpContent;
            if (_cursor.isNull(_cursorIndexOfContent)) {
              _tmpContent = null;
            } else {
              _tmpContent = _cursor.getString(_cursorIndexOfContent);
            }
            final String _tmpAuthor;
            if (_cursor.isNull(_cursorIndexOfAuthor)) {
              _tmpAuthor = null;
            } else {
              _tmpAuthor = _cursor.getString(_cursorIndexOfAuthor);
            }
            final Date _tmpPublished;
            final Long _tmp;
            if (_cursor.isNull(_cursorIndexOfPublished)) {
              _tmp = null;
            } else {
              _tmp = _cursor.getLong(_cursorIndexOfPublished);
            }
            _tmpPublished = __dateConverter.fromTimestamp(_tmp);
            final Date _tmpUpdated;
            final Long _tmp_1;
            if (_cursor.isNull(_cursorIndexOfUpdated)) {
              _tmp_1 = null;
            } else {
              _tmp_1 = _cursor.getLong(_cursorIndexOfUpdated);
            }
            _tmpUpdated = __dateConverter.fromTimestamp(_tmp_1);
            final String _tmpCategories;
            if (_cursor.isNull(_cursorIndexOfCategories)) {
              _tmpCategories = null;
            } else {
              _tmpCategories = _cursor.getString(_cursorIndexOfCategories);
            }
            final String _tmpEnclosureUrl;
            if (_cursor.isNull(_cursorIndexOfEnclosureUrl)) {
              _tmpEnclosureUrl = null;
            } else {
              _tmpEnclosureUrl = _cursor.getString(_cursorIndexOfEnclosureUrl);
            }
            final String _tmpEnclosureType;
            if (_cursor.isNull(_cursorIndexOfEnclosureType)) {
              _tmpEnclosureType = null;
            } else {
              _tmpEnclosureType = _cursor.getString(_cursorIndexOfEnclosureType);
            }
            final Long _tmpEnclosureLength;
            if (_cursor.isNull(_cursorIndexOfEnclosureLength)) {
              _tmpEnclosureLength = null;
            } else {
              _tmpEnclosureLength = _cursor.getLong(_cursorIndexOfEnclosureLength);
            }
            final String _tmpGuid;
            if (_cursor.isNull(_cursorIndexOfGuid)) {
              _tmpGuid = null;
            } else {
              _tmpGuid = _cursor.getString(_cursorIndexOfGuid);
            }
            final boolean _tmpIsRead;
            final int _tmp_2;
            _tmp_2 = _cursor.getInt(_cursorIndexOfIsRead);
            _tmpIsRead = _tmp_2 != 0;
            final boolean _tmpIsStarred;
            final int _tmp_3;
            _tmp_3 = _cursor.getInt(_cursorIndexOfIsStarred);
            _tmpIsStarred = _tmp_3 != 0;
            _item = new FeedItemEntity(_tmpId,_tmpSubscriptionId,_tmpTitle,_tmpLink,_tmpDescription,_tmpContent,_tmpAuthor,_tmpPublished,_tmpUpdated,_tmpCategories,_tmpEnclosureUrl,_tmpEnclosureType,_tmpEnclosureLength,_tmpGuid,_tmpIsRead,_tmpIsStarred);
            _result.add(_item);
          }
          return _result;
        } finally {
          _cursor.close();
          _statement.release();
        }
      }
    }, $completion);
  }

  @NonNull
  public static List<Class<?>> getRequiredConverters() {
    return Collections.emptyList();
  }
}
