# frozen_string_literal: true require_relative "../request" require_relative "data_response" require_relative "../../resource/message" require_relative "../../resource/contact_response" module WhatsappSdk module Api module Responses class MessageDataResponse < DataResponse attr_reader :sucess def initialize(response:) @sucess = response["sucess"] super(response) end def self.build_from_response(response:) return if response["error"] new(response: response) end end end end end