2020-03-13 15:44:24 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module API
|
|
|
|
module Entities
|
|
|
|
class UserStatus < Grape::Entity
|
|
|
|
expose :emoji
|
|
|
|
expose :message
|
2021-01-29 00:20:46 +05:30
|
|
|
expose :availability
|
2020-03-13 15:44:24 +05:30
|
|
|
expose :message_html do |entity|
|
|
|
|
MarkupHelper.markdown_field(entity, :message)
|
|
|
|
end
|
2021-03-11 19:13:27 +05:30
|
|
|
expose :clear_status_at
|
2020-03-13 15:44:24 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|