Module prototypeslg :: Class LGHEXPN
[hide private]
[frames] | no frames]

Class LGHEXPN

source code

                  object --+        
                           |        
prototypes.BaseProtogenClass --+    
                               |    
                 prototypes.DATA --+
                                   |
                                  LGHEXPN

Phone numbers stored as hex. i.e. 0x5555551212f0 == 555-555-1212

Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
A date/time as used in the LG calendar
source code
 
_update(self, args, kwargs) source code
 
_digit_to_char(self, digit) source code
 
_char_to_digit(self, char) source code
 
_string_to_lghexpn(self, pn) source code
string
getvalue(self)
Unpack hex phone number
source code

Inherited from prototypes.DATA: packetsize, readfrombuffer, writetobuffer

Inherited from prototypes.BaseProtogenClass: autologread, autologwrite, iscontainer, packetspan, update

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

source code 

A date/time as used in the LG calendar

Parameters:
  • constant - (Optional) A constant value. All reads must have this value
  • pad - (Default=0) The padding byte if fixed length when writing and the value isn't long enough
  • sizeinbytes - (Optional) Set if fixed length. If not set, then the rest of the packet will be consumed on reads.
  • default - (Optional) Our default value
  • raiseonwrongsize - (Default True) raise ValueLengthException if the supplied value is too large to fit within sizeinbytes.
Overrides: object.__init__

_update(self, args, kwargs)

source code 
Overrides: prototypes.BaseProtogenClass._update

getvalue(self)

source code 

Unpack hex phone number

Returns: string
phone number
Overrides: prototypes.BaseProtogenClass.getvalue