summaryrefslogtreecommitdiff
path: root/app/graphql/types/user_status_type.rb
blob: 61abec0ba96b82862b3382b194eaeaa55e5f931b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

module Types
  # rubocop: disable Graphql/AuthorizeTypes
  class UserStatusType < BaseObject
    graphql_name 'UserStatus'

    markdown_field :message_html, null: true,
      description: 'HTML of the user status message'
    field :message, GraphQL::Types::String, null: true,
      description: 'User status message.'
    field :emoji, GraphQL::Types::String, null: true,
      description: 'String representation of emoji.'
    field :availability, Types::AvailabilityEnum, null: false,
      description: 'User availability status.'
  end
end