2020-08-18 21:09:57 +00:00
|
|
|
# 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'
|
2020-10-29 18:09:11 +00:00
|
|
|
field :availability, Types::AvailabilityEnum, null: false,
|
2021-02-05 15:09:28 +00:00
|
|
|
description: 'User availability status.'
|
2022-02-23 18:16:59 +00:00
|
|
|
field :emoji, GraphQL::Types::String, null: true,
|
|
|
|
description: 'String representation of emoji.'
|
|
|
|
field :message, GraphQL::Types::String, null: true,
|
|
|
|
description: 'User status message.'
|
2020-08-18 21:09:57 +00:00
|
|
|
end
|
|
|
|
end
|