Activity is an interface representing the response from an activity query. It includes the TextActivity, ListActivity, and MessageActivity each having their own properties.

interface Activity {
    ActivityReply: {
        activityId: number;
        createdAt: number;
        id: number;
        isLiked: boolean;
        likeCount: number;
        likes: BasicUser[];
        text: string;
        user: BasicUser;
        userId: number;
    };
    ListActivity: {
        createdAt: number;
        id: number;
        isLiked: boolean;
        isLocked: boolean;
        isPinned: boolean;
        isSubscribed: boolean;
        likeCount: number;
        likes: BasicUser[];
        media: {
            id: number;
            title: {
                english: string;
                romaji: string;
            };
        };
        progress: number;
        replies: ActivityReply[];
        replyCount: number;
        siteUrl: string;
        status: string;
        type: string;
        user: BasicUser;
        userId: number;
    };
    MessageActivity: {
        createdAt: number;
        id: number;
        isLiked: boolean;
        isLocked: boolean;
        isPrivate: boolean;
        isSubscribed: boolean;
        likeCount: number;
        likes: BasicUser[];
        message: string;
        messenger: BasicUser;
        messengerId: number;
        recipient: BasicUser;
        recipientId: number;
        replies: ActivityReply[];
        replyCount: number;
        siteUrl: string;
        type: string;
    };
    TextActivity: {
        createdAt: number;
        id: number;
        isLiked: boolean;
        isLocked: boolean;
        isPinned: boolean;
        isSubscribed: boolean;
        likeCount: number;
        likes: BasicUser[];
        replies: ActivityReply[];
        replyCount: number;
        siteUrl: string;
        text: string;
        type: string;
        user: BasicUser;
        userId: number;
    };
    Thread: {
        body: string;
        createdAt: number;
        id: number;
        isLiked: boolean;
        isLocked: boolean;
        isSticky: boolean;
        isSubscribed: boolean;
        likeCount: number;
        repliedAt: number;
        replyCommentId: number;
        replyCount: number;
        replyUserId: number;
        title: string;
        updatedAt: number;
        user: BasicUser;
        userId: number;
        viewCount: number;
    };
    ThreadComment: {
        comment: string;
        createdAt: number;
        id: number;
        isLiked: boolean;
        isLocked: boolean;
        likeCount: number;
        likes: BasicUser[];
        siteUrl: string;
        thread: {
            id: number;
            title: string;
        };
        threadId: number;
        updatedAt: number;
        user: BasicUser;
        userId: number;
    };
}

Properties

ActivityReply: {
    activityId: number;
    createdAt: number;
    id: number;
    isLiked: boolean;
    likeCount: number;
    likes: BasicUser[];
    text: string;
    user: BasicUser;
    userId: number;
}

ActivityReply is an object representing an activity reply. It includes the id, user id, activity id, text, like count, like status, creation date, user details, and likes.

Type declaration

  • activityId: number

    activityId is a number representing the unique identifier of the activity the reply is made to.

  • createdAt: number

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

  • id: number

    id is a number representing the unique identifier of the activity reply.

  • isLiked: boolean

    isLiked is a boolean representing whether the activity reply is liked by the user or not.

  • likeCount: number

    likeCount is a number representing the count of likes the activity reply has received.

  • likes: BasicUser[]

    likes is an array of BasicUser objects representing the users who liked the activity reply.

  • text: string

    text is a string representing the text of the activity reply.

  • user: BasicUser

    user is an object of type BasicUser representing the details of the user who made the activity reply.

  • userId: number

    userId is a number representing the unique identifier of the user who made the activity reply.

ListActivity: {
    createdAt: number;
    id: number;
    isLiked: boolean;
    isLocked: boolean;
    isPinned: boolean;
    isSubscribed: boolean;
    likeCount: number;
    likes: BasicUser[];
    media: {
        id: number;
        title: {
            english: string;
            romaji: string;
        };
    };
    progress: number;
    replies: ActivityReply[];
    replyCount: number;
    siteUrl: string;
    status: string;
    type: string;
    user: BasicUser;
    userId: number;
}

ListActivity is an object representing a list activity. It includes the id, user id, type, reply count, status, progress, lock status, subscription status, like count, like status, pin status, site url, creation date, media details, user details, replies, and likes.

Type declaration

  • createdAt: number

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

  • id: number

    id is a number representing the unique identifier of the list activity.

  • isLiked: boolean

    isLiked is a boolean representing whether the list activity is liked by the user or not.

  • isLocked: boolean

    isLocked is a boolean representing whether the list activity is locked or not.

  • isPinned: boolean

    isPinned is a boolean representing whether the list activity is pinned or not.

  • isSubscribed: boolean

    isSubscribed is a boolean representing whether the user is subscribed to the list activity or not.

  • likeCount: number

    likeCount is a number representing the count of likes the list activity has received.

  • likes: BasicUser[]

    likes is an array of BasicUser objects representing the users who liked the list activity.

  • media: {
        id: number;
        title: {
            english: string;
            romaji: string;
        };
    }

    media is an object representing the media details of the list activity. It includes the id and the title of the media.

    • id: number

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

    • title: {
          english: string;
          romaji: string;
      }

      title is an object representing the title of the media. It includes the romaji and english title of the media.

      • english: string

        english is a string representing the english title of the media.

      • romaji: string

        romaji is a string representing the romaji title of the media.

  • progress: number

    progress is a number representing the progress of the list activity.

  • replies: ActivityReply[]

    replies is an array of ActivityReply objects representing the replies to the list activity.

  • replyCount: number

    replyCount is a number representing the count of replies the list activity has received.

  • siteUrl: string

    siteUrl is a string representing the URL of the site where the list activity is posted.

  • status: string

    status is a string representing the status of the list activity.

  • type: string

    type is a string representing the type of the list activity.

  • user: BasicUser

    user is an object of type BasicUser representing the details of the user who made the list activity.

  • userId: number

    userId is a number representing the unique identifier of the user who made the list activity.

MessageActivity: {
    createdAt: number;
    id: number;
    isLiked: boolean;
    isLocked: boolean;
    isPrivate: boolean;
    isSubscribed: boolean;
    likeCount: number;
    likes: BasicUser[];
    message: string;
    messenger: BasicUser;
    messengerId: number;
    recipient: BasicUser;
    recipientId: number;
    replies: ActivityReply[];
    replyCount: number;
    siteUrl: string;
    type: string;
}

MessageActivity is an object representing a message activity. It includes the id, recipient id, messenger id, type, reply count, message, lock status, subscription status, like count, like status, privacy status, site url, creation date, recipient details, messenger details, replies, and likes.

Type declaration

  • createdAt: number

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

  • id: number

    id is a number representing the unique identifier of the message activity.

  • isLiked: boolean

    isLiked is a boolean representing whether the message activity is liked by the user or not.

  • isLocked: boolean

    isLocked is a boolean representing whether the message activity is locked or not.

  • isPrivate: boolean

    isPrivate is a boolean representing whether the message activity is private or not.

  • isSubscribed: boolean

    isSubscribed is a boolean representing whether the user is subscribed to the message activity or not.

  • likeCount: number

    likeCount is a number representing the count of likes the message activity has received.

  • likes: BasicUser[]

    likes is an array of BasicUser objects representing the users who liked the message activity.

  • message: string

    message is a string representing the message of the message activity.

  • messenger: BasicUser

    messenger is an object of type BasicUser representing the details of the messenger of the message activity.

  • messengerId: number

    messengerId is a number representing the unique identifier of the messenger of the message activity.

  • recipient: BasicUser

    recipient is an object of type BasicUser representing the details of the recipient of the message activity.

  • recipientId: number

    recipientId is a number representing the unique identifier of the recipient of the message activity.

  • replies: ActivityReply[]

    replies is an array of ActivityReply objects representing the replies to the message activity.

  • replyCount: number

    replyCount is a number representing the count of replies the message activity has received.

  • siteUrl: string

    siteUrl is a string representing the URL of the site where the message activity is posted.

  • type: string

    type is a string representing the type of the message activity.

TextActivity: {
    createdAt: number;
    id: number;
    isLiked: boolean;
    isLocked: boolean;
    isPinned: boolean;
    isSubscribed: boolean;
    likeCount: number;
    likes: BasicUser[];
    replies: ActivityReply[];
    replyCount: number;
    siteUrl: string;
    text: string;
    type: string;
    user: BasicUser;
    userId: number;
}

TextActivity is an object representing a text activity. It includes the id, user id, type, reply count, text, site url, lock status, subscription status, like count, like status, pin status, creation date, user details, replies, and likes.

Type declaration

  • createdAt: number

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

  • id: number

    id is a number representing the unique identifier of the text activity.

  • isLiked: boolean

    isLiked is a boolean representing whether the text activity is liked by the user or not.

  • isLocked: boolean

    isLocked is a boolean representing whether the text activity is locked or not.

  • isPinned: boolean

    isPinned is a boolean representing whether the text activity is pinned or not.

  • isSubscribed: boolean

    isSubscribed is a boolean representing whether the user is subscribed to the text activity or not.

  • likeCount: number

    likeCount is a number representing the count of likes the text activity has received.

  • likes: BasicUser[]

    likes is an array of BasicUser objects representing the users who liked the text activity.

  • replies: ActivityReply[]

    replies is an array of ActivityReply objects representing the replies to the text activity.

  • replyCount: number

    replyCount is a number representing the count of replies the text activity has received.

  • siteUrl: string

    siteUrl is a string representing the URL of the site where the text activity is posted.

  • text: string

    text is a string representing the text of the text activity.

  • type: string

    type is a string representing the type of the text activity.

  • user: BasicUser

    user is an object of type BasicUser representing the details of the user who made the text activity.

  • userId: number

    userId is a number representing the unique identifier of the user who made the text activity.

Thread: {
    body: string;
    createdAt: number;
    id: number;
    isLiked: boolean;
    isLocked: boolean;
    isSticky: boolean;
    isSubscribed: boolean;
    likeCount: number;
    repliedAt: number;
    replyCommentId: number;
    replyCount: number;
    replyUserId: number;
    title: string;
    updatedAt: number;
    user: BasicUser;
    userId: number;
    viewCount: number;
}

Thread is an object representing a thread. It includes the id, title, body, user id, reply user id, reply comment id, reply count, view count, lock status, sticky status, subscription status, like count, like status, replied date, creation date, update date, user details, reply user details, likes, site url, categories, media categories.

Type declaration

  • body: string

    body is a string representing the body of the thread.

  • createdAt: number

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

  • id: number

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

  • isLiked: boolean

    isLiked is a boolean representing whether the thread is liked by the user or not.

  • isLocked: boolean

    isLocked is a boolean representing whether the thread is locked or not.

  • isSticky: boolean

    isSticky is a boolean representing whether the thread is sticky or not.

  • isSubscribed: boolean

    isSubscribed is a boolean representing whether the user is subscribed to the thread or not.

  • likeCount: number

    likeCount is a number representing the count of likes the thread has received.

  • repliedAt: number

    repliedAt is a number representing the Unix timestamp when the thread was replied to.

  • replyCommentId: number

    replyCommentId is a number representing the unique identifier of the comment the thread is a reply to.

  • replyCount: number

    replyCount is a number representing the count of replies the thread has received.

  • replyUserId: number

    replyUserId is a number representing the unique identifier of the user who replied to the thread.

  • title: string

    title is a string representing the title of the thread.

  • updatedAt: number

    updatedAt is a number representing the Unix timestamp when the thread was last updated.

  • user: BasicUser

    user is an object of type BasicUser representing the details of the user who made the thread.

  • userId: number

    userId is a number representing the unique identifier of the user who made the thread.

  • viewCount: number

    viewCount is a number representing the count of views the thread has received.

ThreadComment: {
    comment: string;
    createdAt: number;
    id: number;
    isLiked: boolean;
    isLocked: boolean;
    likeCount: number;
    likes: BasicUser[];
    siteUrl: string;
    thread: {
        id: number;
        title: string;
    };
    threadId: number;
    updatedAt: number;
    user: BasicUser;
    userId: number;
}

ThreadComment is an object representing a thread comment. It includes the id, user id, thread id, comment, like count, like status, site url, creation date, update date, thread details, user details, likes, child comments, lock status.

Type declaration

  • comment: string

    comment is a string representing the comment of the thread.

  • createdAt: number

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

  • id: number

    id is a number representing the unique identifier of the thread comment.

  • isLiked: boolean

    isLiked is a boolean representing whether the thread comment is liked by the user or not.

  • isLocked: boolean

    isLocked is a boolean representing whether the thread comment is locked or not.

  • likeCount: number

    likeCount is a number representing the count of likes the thread comment has received.

  • likes: BasicUser[]

    likes is an array of BasicUser objects representing the users who liked the thread comment.

  • siteUrl: string

    siteUrl is a string representing the URL of the site where the thread comment is posted.

  • thread: {
        id: number;
        title: string;
    }

    thread is an object representing the details of the thread the comment is made to. It includes the id and the title of the thread.

    • id: number

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

    • title: string

      title is a string representing the title of the thread.

  • threadId: number

    threadId is a number representing the unique identifier of the thread the comment is made to.

  • updatedAt: number

    updatedAt is a number representing the Unix timestamp when the thread comment was last updated.

  • user: BasicUser

    user is an object of type BasicUser representing the details of the user who made the thread comment.

  • userId: number

    userId is a number representing the unique identifier of the user who made the thread comment.