inaturalistjs
    Preparing search index...

    Type Alias Message

    type Message = {
        body?: string;
        fromUser?: User;
        id?: number;
        subject?: string;
        threadFlags?: { [key: string]: unknown }[];
        threadId?: number;
        threadMessagesCount?: number;
        toUser?: User;
        userId?: number;
    }
    Index

    Properties

    body?: string
    fromUser?: User
    id?: number
    subject?: string
    threadFlags?: { [key: string]: unknown }[]

    Array of flags on messages in this thread. Only included when threads=true

    threadId?: number

    Identifier for the message thread, generally the ID of the sender's copy of the first message

    threadMessagesCount?: number

    Number of messages in this thread. Only included when threads=true

    toUser?: User
    userId?: number

    ID of the user to whom this message belongs. Messages work like email, so the sender gets a copy and the recipient gets a copy of each message. This is always the authenticated user, so there's no real need for a full user object.