royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alinak...@apache.org
Subject [royale-asjs] branch feature/MXRoyale updated: Responder.as Added
Date Thu, 03 May 2018 11:18:49 GMT
This is an automated email from the ASF dual-hosted git repository.

alinakazi pushed a commit to branch feature/MXRoyale
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/feature/MXRoyale by this push:
     new f12f33c  Responder.as Added
f12f33c is described below

commit f12f33c241f0a67bacc4ed9ff24efe6d746fcdcd
Author: alinakazi <ALINAKAZI1990@GMAIL.COM>
AuthorDate: Thu May 3 16:18:48 2018 +0500

    Responder.as Added
---
 .../MXRoyale/src/main/royale/mx/rpc/Responder.as   | 92 ++++++++++++++++++++++
 1 file changed, 92 insertions(+)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/rpc/Responder.as b/frameworks/projects/MXRoyale/src/main/royale/mx/rpc/Responder.as
new file mode 100644
index 0000000..cbd7d36
--- /dev/null
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/rpc/Responder.as
@@ -0,0 +1,92 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.rpc
+{
+
+/**
+ *  This class provides a default implementation of 
+ *  the mx.rpc.IResponder interface.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Royale 0.9.3
+ */
+public class Responder 
+{ 
+//implements IResponder
+    /**
+     *  Constructs an instance of the responder with the specified handlers.
+     *  
+     *  @param  result Function that should be called when the request has
+     *           completed successfully.
+     *  @param  fault Function that should be called when the request has
+     *          completed with errors.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Royale 0.9.3
+     */
+    public function Responder(result:Function, fault:Function)
+    {
+        /* super();
+        _resultHandler = result;
+        _faultHandler = fault; */
+    }
+    
+    /**
+     *  This method is called by a remote service when the return value has been 
+     *  received.
+         *
+     *  @param data Object containing the information about the error that occured. .
+     *  While <code>data</code> is typed as Object, it is often (but not always)

+     *  an mx.rpc.events.ResultEvent.
+     */
+    /* public function result(data:Object):void
+    {
+        _resultHandler(data);
+    } */
+    
+    /**
+     *  This method is called by a service when an error has been received.
+         *
+     *  @param info Object containing the information returned from the request.
+     *  While <code>info</code> is typed as Object, it is often (but not always)

+     *  an mx.rpc.events.FaultEvent.
+     */
+   /*  public function fault(info:Object):void
+    {
+        _faultHandler(info);
+    } */
+    
+    /**
+     *  @private
+     */
+    //private var _resultHandler:Function;
+    
+    /**
+     *  @private
+     */
+   // private var _faultHandler:Function;
+}
+
+
+}
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
alinakazi@apache.org.

Mime
View raw message