def assign_message_type_values(values)
      values.each do |key, value|
        public_send(key, value) if respond_to?(key)
      end
    end
def assign_message_type_values(values)
      values.each do |key, value|
        public_send(key, value) if respond_to?(key)
      end
    end
Assign the given hash where each key is a message type and
 the value is a hash of options for that message type.