class LMSGraphQL::Resolvers::Canvas::GetPreferenceCommunicationChannelId

Public Instance Methods

resolve(user_id:, communication_channel_id:, notification:, get_all: false) click to toggle source
# File lib/lms_graphql/resolvers/canvas/get_preference_communication_channel_id.rb, line 11
def resolve(user_id:, communication_channel_id:, notification:, get_all: false)
  result = context[:canvas_api].call("GET_PREFERENCE_COMMUNICATION_CHANNEL_ID").proxy(
    "GET_PREFERENCE_COMMUNICATION_CHANNEL_ID",
    {
      "user_id": user_id,
      "communication_channel_id": communication_channel_id,
      "notification": notification            },
    nil,
    get_all,
  )
  get_all ? result : result.parsed_response
end