text: // Auto-generated. Do not edit!
  
  // (in-package dji_sdk.srv)
  
  
  "use strict";
  
  const _serializer = _ros_msg_utils.Serialize;
  const _arraySerializer = _serializer.Array;
  const _deserializer = _ros_msg_utils.Deserialize;
  const _arrayDeserializer = _deserializer.Array;
  const _finder = _ros_msg_utils.Find;
  const _getByteLength = _ros_msg_utils.getByteLength;
  
  //-----------------------------------------------------------
  
  
  //-----------------------------------------------------------
  
  class SendMobileDataRequest {
    constructor(initObj={}) {
      if (initObj === null) {
        // initObj === null is a special case for deserialization where we don't initialize fields
        this.data = null;
      }
      else {
        if (initObj.hasOwnProperty('data')) {
          this.data = initObj.data
        }
        else {
          this.data = [];
        }
      }
    }
  
    static serialize(obj, buffer, bufferOffset) {
      // Serializes a message object of type SendMobileDataRequest
      // Serialize message field [data]
      bufferOffset = _arraySerializer.uint8(obj.data, buffer, bufferOffset, null);
      return bufferOffset;
    }
  
    static deserialize(buffer, bufferOffset=[0]) {
      //deserializes a message object of type SendMobileDataRequest
      let len;
      let data = new SendMobileDataRequest(null);
      // Deserialize message field [data]
      data.data = _arrayDeserializer.uint8(buffer, bufferOffset, null)
      return data;
    }
  
    static getMessageSize(object) {
      let length = 0;
      length += object.data.length;
      return length + 4;
    }
  
    static datatype() {
      // Returns string type for a service object
      return 'dji_sdk/SendMobileDataRequest';
    }
  
    static md5sum() {
      //Returns md5sum for a message object
      return 'f43a8e1b362b75baa741461b46adc7e0';
    }
  
    static messageDefinition() {
      // Returns full string definition for message
      return `
      uint8[] data
      
      `;
    }
  
    static Resolve(msg) {
      // deep-construct a valid message object instance of whatever was passed in
      if (typeof msg !== 'object' || msg === null) {
        msg = {};
      }
      const resolved = new SendMobileDataRequest(null);
      if (msg.data !== undefined) {
        resolved.data = msg.data;
      }
      else {
        resolved.data = []
      }
  
      return resolved;
      }
  };
  
  class SendMobileDataResponse {
    constructor(initObj={}) {
      if (initObj === null) {
        // initObj === null is a special case for deserialization where we don't initialize fields
        this.result = null;
      }
      else {
        if (initObj.hasOwnProperty('result')) {
          this.result = initObj.result
        }
        else {
          this.result = false;
        }
      }
    }
  
    static serialize(obj, buffer, bufferOffset) {
      // Serializes a message object of type SendMobileDataResponse
      // Serialize message field [result]
      bufferOffset = _serializer.bool(obj.result, buffer, bufferOffset);
      return bufferOffset;
    }
  
    static deserialize(buffer, bufferOffset=[0]) {
      //deserializes a message object of type SendMobileDataResponse
      let len;
      let data = new SendMobileDataResponse(null);
      // Deserialize message field [result]
      data.result = _deserializer.bool(buffer, bufferOffset);
      return data;
    }
  
    static getMessageSize(object) {
      return 1;
    }
  
    static datatype() {
      // Returns string type for a service object
      return 'dji_sdk/SendMobileDataResponse';
    }
  
    static md5sum() {
      //Returns md5sum for a message object
      return 'eb13ac1f1354ccecb7941ee8fa2192e8';
    }
  
    static messageDefinition() {
      // Returns full string definition for message
      return `
      bool result
      
      
      `;
    }
  
    static Resolve(msg) {
      // deep-construct a valid message object instance of whatever was passed in
      if (typeof msg !== 'object' || msg === null) {
        msg = {};
      }
      const resolved = new SendMobileDataResponse(null);
      if (msg.result !== undefined) {
        resolved.result = msg.result;
      }
      else {
        resolved.result = false
      }
  
      return resolved;
      }
  };
  
  module.exports = {
    Request: SendMobileDataRequest,
    Response: SendMobileDataResponse,
    md5sum() { return '1c25dff3462ed6a8f6df1c148c7b6a1e'; },
    datatype() { return 'dji_sdk/SendMobileData'; }
  };
  