All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.java.html.lib.angular.ng.IHttpPromise Maven / Gradle / Ivy

package net.java.html.lib.angular.ng;
public class IHttpPromise extends net.java.html.lib.angular.ng.IPromise> {
  protected IHttpPromise(net.java.html.lib.Objs.Constructor c, java.lang.Object js) {
    super(c, js);
  }
  private static final class $Constructor extends net.java.html.lib.Objs.Constructor {
    $Constructor() {
      super(IHttpPromise.class);
    }
    @Override
    public IHttpPromise create(java.lang.Object obj) {
      return obj == null ? null : new IHttpPromise(this, obj);
    }
  };
  private static final $Constructor $AS = new $Constructor();
  public static IHttpPromise $as(java.lang.Object obj) {
    return $AS.create(obj);
  }
  /**
  * The $http legacy promise methods success and error have been deprecated. Use the standard then method instead.
  * If $httpProvider.useLegacyPromiseExtensions is set to false then these methods will throw $http/legacy error.
  * @deprecated
  */
  public net.java.html.lib.angular.ng.IHttpPromise error(net.java.html.lib.angular.ng.IHttpPromiseCallback callback) {
    return (net.java.html.lib.angular.ng.IHttpPromise)net.java.html.lib.angular.ng.IHttpPromise.$as($Typings$.error$298($js(this), /* FirstTypeNode*/$js(callback)));
  }
  /**
  * The $http legacy promise methods success and error have been deprecated. Use the standard then method instead.
  * If $httpProvider.useLegacyPromiseExtensions is set to false then these methods will throw $http/legacy error.
  * @deprecated
  */
  public net.java.html.lib.angular.ng.IHttpPromise success(net.java.html.lib.angular.ng.IHttpPromiseCallback callback) {
    return (net.java.html.lib.angular.ng.IHttpPromise)net.java.html.lib.angular.ng.IHttpPromise.$as($Typings$.success$299($js(this), /* FirstTypeNode*/$js(callback)));
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy