Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding create operation methods for query requests
- Loading branch information
1 parent
81572c0
commit 631deb8
Showing
7 changed files
with
115 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package mesh.services | ||
{ | ||
import flash.utils.flash_proxy; | ||
|
||
use namespace flash_proxy; | ||
|
||
public dynamic class ItemQueryRequest extends QueryRequest | ||
{ | ||
public function ItemQueryRequest(service:Service, deserializer:Function, block:Function) | ||
{ | ||
super(service, deserializer, block); | ||
} | ||
|
||
override flash_proxy function set object(value:*):void | ||
{ | ||
if (value is Array) { | ||
value = value[0]; | ||
} | ||
super.object = value; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package mesh.services | ||
{ | ||
public class ServiceRequest extends OperationRequest | ||
{ | ||
public function ServiceRequest(service:Service, block:Function) | ||
{ | ||
super(block); | ||
_service = service; | ||
} | ||
|
||
private var _service:Service; | ||
protected function get service():Service | ||
{ | ||
return _service; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters