Class: Chat::Service::UpdateUserLastRead

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
plugins/chat/app/services/update_user_last_read.rb

Overview

Service responsible for updating the last read message id of a membership.

Examples:

Chat::Service::UpdateUserLastRead.call(user_id: 1, channel_id: 2, guardian: guardian)

Instance Method Summary collapse

Methods included from Base

contract, model, policy, step, transaction

Instance Method Details

#call(user_id: , channel_id: , guardian: ) ⇒ Chat::Service::Base::Context

Parameters:

  • user_id (Integer) (defaults to: )
  • channel_id (Integer) (defaults to: )
  • guardian (Guardian) (defaults to: )

Returns: