00001 """autogenerated by genpy from app_manager/GetAppDetailsRequest.msg. Do not edit."""
00002 import sys
00003 python3 = True if sys.hexversion > 0x03000000 else False
00004 import genpy
00005 import struct
00006
00007
00008 class GetAppDetailsRequest(genpy.Message):
00009 _md5sum = "c1f3d28f1b044c871e6eff2e9fc3c667"
00010 _type = "app_manager/GetAppDetailsRequest"
00011 _has_header = False
00012 _full_text = """
00013 string name
00014
00015 """
00016 __slots__ = ['name']
00017 _slot_types = ['string']
00018
00019 def __init__(self, *args, **kwds):
00020 """
00021 Constructor. Any message fields that are implicitly/explicitly
00022 set to None will be assigned a default value. The recommend
00023 use is keyword arguments as this is more robust to future message
00024 changes. You cannot mix in-order arguments and keyword arguments.
00025
00026 The available fields are:
00027 name
00028
00029 :param args: complete set of field values, in .msg order
00030 :param kwds: use keyword arguments corresponding to message field names
00031 to set specific fields.
00032 """
00033 if args or kwds:
00034 super(GetAppDetailsRequest, self).__init__(*args, **kwds)
00035
00036 if self.name is None:
00037 self.name = ''
00038 else:
00039 self.name = ''
00040
00041 def _get_types(self):
00042 """
00043 internal API method
00044 """
00045 return self._slot_types
00046
00047 def serialize(self, buff):
00048 """
00049 serialize message into buffer
00050 :param buff: buffer, ``StringIO``
00051 """
00052 try:
00053 _x = self.name
00054 length = len(_x)
00055 if python3 or type(_x) == unicode:
00056 _x = _x.encode('utf-8')
00057 length = len(_x)
00058 buff.write(struct.pack('<I%ss'%length, length, _x))
00059 except struct.error as se: self._check_types(se)
00060 except TypeError as te: self._check_types(te)
00061
00062 def deserialize(self, str):
00063 """
00064 unpack serialized message in str into this message instance
00065 :param str: byte array of serialized message, ``str``
00066 """
00067 try:
00068 end = 0
00069 start = end
00070 end += 4
00071 (length,) = _struct_I.unpack(str[start:end])
00072 start = end
00073 end += length
00074 if python3:
00075 self.name = str[start:end].decode('utf-8')
00076 else:
00077 self.name = str[start:end]
00078 return self
00079 except struct.error as e:
00080 raise genpy.DeserializationError(e)
00081
00082
00083 def serialize_numpy(self, buff, numpy):
00084 """
00085 serialize message with numpy array types into buffer
00086 :param buff: buffer, ``StringIO``
00087 :param numpy: numpy python module
00088 """
00089 try:
00090 _x = self.name
00091 length = len(_x)
00092 if python3 or type(_x) == unicode:
00093 _x = _x.encode('utf-8')
00094 length = len(_x)
00095 buff.write(struct.pack('<I%ss'%length, length, _x))
00096 except struct.error as se: self._check_types(se)
00097 except TypeError as te: self._check_types(te)
00098
00099 def deserialize_numpy(self, str, numpy):
00100 """
00101 unpack serialized message in str into this message instance using numpy for array types
00102 :param str: byte array of serialized message, ``str``
00103 :param numpy: numpy python module
00104 """
00105 try:
00106 end = 0
00107 start = end
00108 end += 4
00109 (length,) = _struct_I.unpack(str[start:end])
00110 start = end
00111 end += length
00112 if python3:
00113 self.name = str[start:end].decode('utf-8')
00114 else:
00115 self.name = str[start:end]
00116 return self
00117 except struct.error as e:
00118 raise genpy.DeserializationError(e)
00119
00120 _struct_I = genpy.struct_I
00121 """autogenerated by genpy from app_manager/GetAppDetailsResponse.msg. Do not edit."""
00122 import sys
00123 python3 = True if sys.hexversion > 0x03000000 else False
00124 import genpy
00125 import struct
00126
00127 import app_manager.msg
00128
00129 class GetAppDetailsResponse(genpy.Message):
00130 _md5sum = "404cd76612a719d24ac22fba2d495de8"
00131 _type = "app_manager/GetAppDetailsResponse"
00132 _has_header = False
00133 _full_text = """ExchangeApp app
00134
00135
00136
00137 ================================================================================
00138 MSG: app_manager/ExchangeApp
00139 # app name
00140 string name
00141 # user-friendly display name of application
00142 string display_name
00143 # the version of the package currently installed
00144 string version
00145 # latest version of the package avaliable
00146 string latest_version
00147 # the detailed description of the app
00148 string description
00149 # icon for showing app
00150 Icon icon
00151 # hidden apps are not show - used for cases where multiple apps are in a deb
00152 bool hidden
00153 ================================================================================
00154 MSG: app_manager/Icon
00155 # Image data format. "jpeg" or "png"
00156 string format
00157
00158 # Image data.
00159 uint8[] data
00160
00161 """
00162 __slots__ = ['app']
00163 _slot_types = ['app_manager/ExchangeApp']
00164
00165 def __init__(self, *args, **kwds):
00166 """
00167 Constructor. Any message fields that are implicitly/explicitly
00168 set to None will be assigned a default value. The recommend
00169 use is keyword arguments as this is more robust to future message
00170 changes. You cannot mix in-order arguments and keyword arguments.
00171
00172 The available fields are:
00173 app
00174
00175 :param args: complete set of field values, in .msg order
00176 :param kwds: use keyword arguments corresponding to message field names
00177 to set specific fields.
00178 """
00179 if args or kwds:
00180 super(GetAppDetailsResponse, self).__init__(*args, **kwds)
00181
00182 if self.app is None:
00183 self.app = app_manager.msg.ExchangeApp()
00184 else:
00185 self.app = app_manager.msg.ExchangeApp()
00186
00187 def _get_types(self):
00188 """
00189 internal API method
00190 """
00191 return self._slot_types
00192
00193 def serialize(self, buff):
00194 """
00195 serialize message into buffer
00196 :param buff: buffer, ``StringIO``
00197 """
00198 try:
00199 _x = self.app.name
00200 length = len(_x)
00201 if python3 or type(_x) == unicode:
00202 _x = _x.encode('utf-8')
00203 length = len(_x)
00204 buff.write(struct.pack('<I%ss'%length, length, _x))
00205 _x = self.app.display_name
00206 length = len(_x)
00207 if python3 or type(_x) == unicode:
00208 _x = _x.encode('utf-8')
00209 length = len(_x)
00210 buff.write(struct.pack('<I%ss'%length, length, _x))
00211 _x = self.app.version
00212 length = len(_x)
00213 if python3 or type(_x) == unicode:
00214 _x = _x.encode('utf-8')
00215 length = len(_x)
00216 buff.write(struct.pack('<I%ss'%length, length, _x))
00217 _x = self.app.latest_version
00218 length = len(_x)
00219 if python3 or type(_x) == unicode:
00220 _x = _x.encode('utf-8')
00221 length = len(_x)
00222 buff.write(struct.pack('<I%ss'%length, length, _x))
00223 _x = self.app.description
00224 length = len(_x)
00225 if python3 or type(_x) == unicode:
00226 _x = _x.encode('utf-8')
00227 length = len(_x)
00228 buff.write(struct.pack('<I%ss'%length, length, _x))
00229 _x = self.app.icon.format
00230 length = len(_x)
00231 if python3 or type(_x) == unicode:
00232 _x = _x.encode('utf-8')
00233 length = len(_x)
00234 buff.write(struct.pack('<I%ss'%length, length, _x))
00235 _x = self.app.icon.data
00236 length = len(_x)
00237
00238 if type(_x) in [list, tuple]:
00239 buff.write(struct.pack('<I%sB'%length, length, *_x))
00240 else:
00241 buff.write(struct.pack('<I%ss'%length, length, _x))
00242 buff.write(_struct_B.pack(self.app.hidden))
00243 except struct.error as se: self._check_types(se)
00244 except TypeError as te: self._check_types(te)
00245
00246 def deserialize(self, str):
00247 """
00248 unpack serialized message in str into this message instance
00249 :param str: byte array of serialized message, ``str``
00250 """
00251 try:
00252 if self.app is None:
00253 self.app = app_manager.msg.ExchangeApp()
00254 end = 0
00255 start = end
00256 end += 4
00257 (length,) = _struct_I.unpack(str[start:end])
00258 start = end
00259 end += length
00260 if python3:
00261 self.app.name = str[start:end].decode('utf-8')
00262 else:
00263 self.app.name = str[start:end]
00264 start = end
00265 end += 4
00266 (length,) = _struct_I.unpack(str[start:end])
00267 start = end
00268 end += length
00269 if python3:
00270 self.app.display_name = str[start:end].decode('utf-8')
00271 else:
00272 self.app.display_name = str[start:end]
00273 start = end
00274 end += 4
00275 (length,) = _struct_I.unpack(str[start:end])
00276 start = end
00277 end += length
00278 if python3:
00279 self.app.version = str[start:end].decode('utf-8')
00280 else:
00281 self.app.version = str[start:end]
00282 start = end
00283 end += 4
00284 (length,) = _struct_I.unpack(str[start:end])
00285 start = end
00286 end += length
00287 if python3:
00288 self.app.latest_version = str[start:end].decode('utf-8')
00289 else:
00290 self.app.latest_version = str[start:end]
00291 start = end
00292 end += 4
00293 (length,) = _struct_I.unpack(str[start:end])
00294 start = end
00295 end += length
00296 if python3:
00297 self.app.description = str[start:end].decode('utf-8')
00298 else:
00299 self.app.description = str[start:end]
00300 start = end
00301 end += 4
00302 (length,) = _struct_I.unpack(str[start:end])
00303 start = end
00304 end += length
00305 if python3:
00306 self.app.icon.format = str[start:end].decode('utf-8')
00307 else:
00308 self.app.icon.format = str[start:end]
00309 start = end
00310 end += 4
00311 (length,) = _struct_I.unpack(str[start:end])
00312 start = end
00313 end += length
00314 if python3:
00315 self.app.icon.data = str[start:end].decode('utf-8')
00316 else:
00317 self.app.icon.data = str[start:end]
00318 start = end
00319 end += 1
00320 (self.app.hidden,) = _struct_B.unpack(str[start:end])
00321 self.app.hidden = bool(self.app.hidden)
00322 return self
00323 except struct.error as e:
00324 raise genpy.DeserializationError(e)
00325
00326
00327 def serialize_numpy(self, buff, numpy):
00328 """
00329 serialize message with numpy array types into buffer
00330 :param buff: buffer, ``StringIO``
00331 :param numpy: numpy python module
00332 """
00333 try:
00334 _x = self.app.name
00335 length = len(_x)
00336 if python3 or type(_x) == unicode:
00337 _x = _x.encode('utf-8')
00338 length = len(_x)
00339 buff.write(struct.pack('<I%ss'%length, length, _x))
00340 _x = self.app.display_name
00341 length = len(_x)
00342 if python3 or type(_x) == unicode:
00343 _x = _x.encode('utf-8')
00344 length = len(_x)
00345 buff.write(struct.pack('<I%ss'%length, length, _x))
00346 _x = self.app.version
00347 length = len(_x)
00348 if python3 or type(_x) == unicode:
00349 _x = _x.encode('utf-8')
00350 length = len(_x)
00351 buff.write(struct.pack('<I%ss'%length, length, _x))
00352 _x = self.app.latest_version
00353 length = len(_x)
00354 if python3 or type(_x) == unicode:
00355 _x = _x.encode('utf-8')
00356 length = len(_x)
00357 buff.write(struct.pack('<I%ss'%length, length, _x))
00358 _x = self.app.description
00359 length = len(_x)
00360 if python3 or type(_x) == unicode:
00361 _x = _x.encode('utf-8')
00362 length = len(_x)
00363 buff.write(struct.pack('<I%ss'%length, length, _x))
00364 _x = self.app.icon.format
00365 length = len(_x)
00366 if python3 or type(_x) == unicode:
00367 _x = _x.encode('utf-8')
00368 length = len(_x)
00369 buff.write(struct.pack('<I%ss'%length, length, _x))
00370 _x = self.app.icon.data
00371 length = len(_x)
00372
00373 if type(_x) in [list, tuple]:
00374 buff.write(struct.pack('<I%sB'%length, length, *_x))
00375 else:
00376 buff.write(struct.pack('<I%ss'%length, length, _x))
00377 buff.write(_struct_B.pack(self.app.hidden))
00378 except struct.error as se: self._check_types(se)
00379 except TypeError as te: self._check_types(te)
00380
00381 def deserialize_numpy(self, str, numpy):
00382 """
00383 unpack serialized message in str into this message instance using numpy for array types
00384 :param str: byte array of serialized message, ``str``
00385 :param numpy: numpy python module
00386 """
00387 try:
00388 if self.app is None:
00389 self.app = app_manager.msg.ExchangeApp()
00390 end = 0
00391 start = end
00392 end += 4
00393 (length,) = _struct_I.unpack(str[start:end])
00394 start = end
00395 end += length
00396 if python3:
00397 self.app.name = str[start:end].decode('utf-8')
00398 else:
00399 self.app.name = str[start:end]
00400 start = end
00401 end += 4
00402 (length,) = _struct_I.unpack(str[start:end])
00403 start = end
00404 end += length
00405 if python3:
00406 self.app.display_name = str[start:end].decode('utf-8')
00407 else:
00408 self.app.display_name = str[start:end]
00409 start = end
00410 end += 4
00411 (length,) = _struct_I.unpack(str[start:end])
00412 start = end
00413 end += length
00414 if python3:
00415 self.app.version = str[start:end].decode('utf-8')
00416 else:
00417 self.app.version = str[start:end]
00418 start = end
00419 end += 4
00420 (length,) = _struct_I.unpack(str[start:end])
00421 start = end
00422 end += length
00423 if python3:
00424 self.app.latest_version = str[start:end].decode('utf-8')
00425 else:
00426 self.app.latest_version = str[start:end]
00427 start = end
00428 end += 4
00429 (length,) = _struct_I.unpack(str[start:end])
00430 start = end
00431 end += length
00432 if python3:
00433 self.app.description = str[start:end].decode('utf-8')
00434 else:
00435 self.app.description = str[start:end]
00436 start = end
00437 end += 4
00438 (length,) = _struct_I.unpack(str[start:end])
00439 start = end
00440 end += length
00441 if python3:
00442 self.app.icon.format = str[start:end].decode('utf-8')
00443 else:
00444 self.app.icon.format = str[start:end]
00445 start = end
00446 end += 4
00447 (length,) = _struct_I.unpack(str[start:end])
00448 start = end
00449 end += length
00450 if python3:
00451 self.app.icon.data = str[start:end].decode('utf-8')
00452 else:
00453 self.app.icon.data = str[start:end]
00454 start = end
00455 end += 1
00456 (self.app.hidden,) = _struct_B.unpack(str[start:end])
00457 self.app.hidden = bool(self.app.hidden)
00458 return self
00459 except struct.error as e:
00460 raise genpy.DeserializationError(e)
00461
00462 _struct_I = genpy.struct_I
00463 _struct_B = struct.Struct("<B")
00464 class GetAppDetails(object):
00465 _type = 'app_manager/GetAppDetails'
00466 _md5sum = '982707be65dd9bb38c19f6e18cb18db5'
00467 _request_class = GetAppDetailsRequest
00468 _response_class = GetAppDetailsResponse