UNPKG

@r/api-client

Version:

node and browser reddit api library

31 lines (27 loc) 707 B
import RedditModel from './RedditModel'; const T = RedditModel.Types; export default class Message extends RedditModel { static PROPERTIES = { id: T.string, author: T.string, name: T.string, bodyHTML: T.string, isComment: T.bool, firstMessage: T.string, firstMessageName: T.string, createdUTC: T.number, subreddit: T.string, parentId: T.string, replies: T.arrayOf(T.string), distinguished: T.string, subject: T.string, }; static API_ALIASES = { was_comment: 'isComment', first_message: 'firstMessage', first_message_name: 'firstMessageName', created_utc: 'createdUTC', body_html: 'bodyHTML', parent_id: 'parentId', }; }