In-app notifications #969

Merged
akinwale merged 13 commits from in-app-notifications into master 2020-08-18 15:19:35 +02:00
2 changed files with 20 additions and 0 deletions
Showing only changes of commit 7234c0e45e - Show all commits

View file

@ -63,6 +63,14 @@ public class DatabaseHelper extends SQLiteOpenHelper {
"ALTER TABLE view_history ADD COLUMN currency TEXT"
};
private static final String[] SQL_V2_V3_UPGRADE = {
"CREATE TABLE notifications (" +
" id INTEGER PRIMARY KEY NOT NULL" +
", title TEXT" +
", description TEXT" +
};
private static final String SQL_INSERT_SUBSCRIPTION = "REPLACE INTO subscriptions (channel_name, url) VALUES (?, ?)";
private static final String SQL_CLEAR_SUBSCRIPTIONS = "DELETE FROM subscriptions";
private static final String SQL_DELETE_SUBSCRIPTION = "DELETE FROM subscriptions WHERE url = ?";

View file

@ -0,0 +1,12 @@
package io.lbry.browser.model.lbryinc;
import lombok.Data;
@Data
public class Notification {
private long id;
private String title;
private String description;
private String thumbnailUrl;
private String targetUrl;
}