exts/protogen/protocol_generator/lib/protocol_generator/models/shot.rb
# Check that the :recievd_callbacks is defined, and if the way is set to :toDevice, that no other
# callback is defined.
# @return [Boolean]
Check that the :recievd_callbacks is defined, and if the way is set to :toDevice, that no other
callback is defined.
Check that the : recievd_callbacks is defined and if the way is set to : toDevice that no other callback is defined .
def validate_callbacks
        if @way == :to_device
          return @callbacks.has_key?(:received_callback) && @callbacks.size == 1
        else
          return @callbacks.has_key?(:received_callback)
        end
      end
def validate_callbacks if @way == :to_device return @callbacks . has_key? ( :received_callback ) && @callbacks . size == 1 else return @callbacks . has_key? ( :received_callback ) end end
Check that the :recievd_callbacks is defined, and if the way is set to :toDevice, that no other
callback is defined.
Check that the : recievd_callbacks is defined and if the way is set to : toDevice that no other callback is defined .
None
Boolean