Skip to content
Snippets Groups Projects
Select Git revision
  • 2406317d417d7129feee4bec55db77be48447b0d
  • master default protected
  • traduccio_barbara
  • Catalan-translation
  • feature/cesium_plus_pod_2
  • feature/add_pubkey_icon
  • feature/startup_node_selection
  • develop
  • feature/android_api_19
  • Vivakvo/cesium-patch-8
  • gitlab_migration_1
  • dev
  • rml8
  • v1.6.12
  • v1.6.11
  • v1.6.10
  • v1.6.9
  • v1.6.8
  • v1.6.7
  • v1.6.6
  • v1.6.5
  • v1.6.4
  • v1.6.3
  • v1.6.2
  • v1.6.2-alpha
  • v1.6.1
  • v1.6.0
  • v1.5.12
  • v1.5.11
  • v1.5.10
  • v1.5.9
  • v1.5.8
  • v1.5.7
33 results

config.js

Blame
  • Forked from clients / Cesium-grp / Cesium
    Source project has a limited visibility.
    status.py 880 B
    '''
    Created on 2 déc. 2014
    
    @author: inso
    '''
    
    from . import Document
    from .. import PROTOCOL_VERSION
    
    
    class Status(Document):
        '''
        Version: VERSION
        Type: Status
        Currency: CURRENCY_NAME
        Status: STATUS
        Block: BLOCK
        From: SENDER
        To: RECIPIENT
        '''
    
        def __init__(self, currency, status, blockid, sender, recipient):
            '''
            Constructor
            '''
            self.currency = currency
            self.status = status
            self.blockid = blockid
            self.sender = sender
            self.recipient = recipient
    
        @classmethod
        def from_raw(cls, raw):
            #TODO : Parsing
            return cls()
    
        def content(self):
            return '''
    Version: {0}
    Type: Status
    Currency: {1}
    Status: {2}
    Block: {3}
    From: {4}
    To: {5}
    '''.format(PROTOCOL_VERSION, self.currency, self.status,
               self.blockid, self.sender, self.recipient)