ActivityNotification is an interface representing a notification related to an activity. It includes the id of the notification, the user id, the type of the notification, the activity id, the context, the creation date, the activity details, and the user details.

interface ActivityNotification {
    activity: Activity;
    activityId: number;
    context: string;
    createdAt: number;
    id: number;
    type: string;
    user: BasicUser;
    userId: number;
}

Properties

activity: Activity

activity is an object of type Activity representing the details of the activity associated with the notification.

activityId: number

activityId is a number representing the unique identifier of the activity associated with the notification.

context: string

context is a string representing the context of the notification.

createdAt: number

createdAt is a number representing the Unix timestamp when the notification was created.

id: number

id is a number representing the unique identifier of the notification.

type: string

type is a string representing the type of the notification.

user: BasicUser

user is an object of type BasicUser representing the details of the user associated with the notification.

userId: number

userId is a number representing the unique identifier of the user associated with the notification.