Hunter.Notification (hunter v0.7.0)

Copy Markdown View Source

Notification entity

This module defines a Hunter.Notification struct.

Fields

  • id - The notification ID
  • type - One of: "mention", "status", "reblog", "follow", "follow_request", "favourite", "poll", "update", "admin.sign_up", "admin.report", "severed_relationships", "moderation_warning", "quote", "quoted_update"
  • created_at - The time the notification was created
  • group_key - Group key shared by similar notifications, used by grouped notifications
  • account - The Hunter.Account sending the notification to the user
  • status - The Hunter.Status associated with the notification, if applicable
  • report - The Hunter.Report associated with an "admin.report" notification
  • event - Summary of the event that caused a "severed_relationships" notification, if applicable
  • moderation_warning - The moderation warning that caused a "moderation_warning" notification, if applicable

Summary

Types

t()

@type t() :: %Hunter.Notification{
  account: Hunter.Account.t(),
  created_at: String.t(),
  event: map() | nil,
  group_key: String.t() | nil,
  id: String.t(),
  moderation_warning: map() | nil,
  report: Hunter.Report.t() | nil,
  status: Hunter.Status.t(),
  type: String.t()
}