class Cryap::Database::Models::Notification

Defined in:

models/notifications/notification.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class Cryap::Database::Model

node_id : Int64 node_id, node_labels : Array(String) node_labels, paginate!(pagination : Cryap::API::Paginator, result : Array(String | Symbol), forward : Array(String | Symbol), column : Symbol, property : Symbol | Nil = nil, &) : Tuple(String, String | Nil) paginate!

Constructor methods inherited from class Cryap::Database::Model

new(unpacker : Neo4j::PackStream::Unpacker)
new(node : Neo4j::Node)
new

Class methods inherited from class Cryap::Database::Model

from_bolt(unpacker : Neo4j::PackStream::Unpacker)
from_bolt(io : IO)
from_bolt
, model_name model_name, paginate!(pagination : Cryap::API::Paginator, result : Array(String | Symbol), forward : Array(String | Symbol), column : Symbol, property : Symbol | Nil = nil, &) : Tuple(String, String | Nil) paginate!

Macros inherited from class Cryap::Database::Model

model(name) model, query!(&block) query!

Constructor Detail

def self.create(account : KSUID | Cryap::Database::Models::Account, type : String) : Notification #

def self.new(unpacker : Neo4j::PackStream::Unpacker) #

def self.new(type : String, created_at : Time = Time.utc, id : KSUID = KSUID.new) #

Class Method Detail

def self.by_id(id : String) #

def self.by_id(id : KSUID) #

def self.from_bolt(unpacker : Neo4j::PackStream::Unpacker) #

def self.get_for_user(user : LocalAccount, pagination : Cryap::API::Paginator, by_account : KSUID | Account | Nil, types : Array(String) | Nil = nil, exclude_types : Array(String) | Nil = nil) #

Instance Method Detail

def account : Account #

def created_at : Time #

def id : KSUID #

def post : Post | Nil #

def post=(post : KSUID | Cryap::Database::Models::Post) : Post #


def receiver?(user : KSUID | Account) #

def type : String #