hackedteam/rcs-console-library

View on GitHub
src/it/ht/rcs/console/shard/rest/DBShard.as

Summary

Maintainability
Test Coverage
/**
 * This is a generated sub-class of _DBSystem.as and is intended for behavior
 * customization.  This class is only generated when there is no file already present
 * at its target location.  Thus custom behavior that you add here will survive regeneration
 * of the super-class. 
 **/
 
package it.ht.rcs.console.shard.rest
{
  import it.ht.rcs.console.DB;
  
  import mx.rpc.CallResponder;

public class DBShard extends _Super_DBShard implements IDBShard
{
    /**
     * Override super.init() to provide any initialization customization if needed.
     */
    protected override function preInitializeService():void
    {
        super.preInitializeService();
        // Initialization customization goes here
    }
       
    
    public function DBShard(host: String)
    {
      super();
      _serviceControl.baseURL = host;
    }
    
    public function all(onResult:Function=null, onFault:Function=null):void
    {
      var resp:CallResponder = DB.getCallResponder(onResult, onFault);
      resp.token = all_();
    }
    
    public function show(id:String, onResult:Function=null, onFault:Function=null):void
    {
      var resp:CallResponder = DB.getCallResponder(onResult, onFault);
      resp.token = show_(id);
    }
    
}

}