@@ -204,9 +204,10 @@ public HttpsCallableReference getHttpsCallable(@NonNull String name) {
204
204
return new HttpsCallableReference (this , name );
205
205
}
206
206
207
+ /** Returns a reference to the Callable HTTPS trigger with the provided url. */
207
208
@ NonNull
208
209
public HttpsCallableReference getHttpsCallableFromUrl (@ NonNull URL url ) {
209
- return new HttpsCallableReference (this , url );
210
+ return new HttpsCallableReference (this , url );
210
211
}
211
212
212
213
/**
@@ -279,26 +280,27 @@ Task<HttpsCallableResult> call(String name, @Nullable Object data, HttpsCallOpti
279
280
return call (url , data , context , options );
280
281
});
281
282
}
282
- /**
283
- * Calls a Callable HTTPS trigger endpoint.
284
- *
285
- * @param url The url of the HTTPS trigger
286
- * @param data Parameters to pass to the function. Can be anything encodable as JSON.
287
- * @return A Task that will be completed when the request is complete.
288
- */
289
- Task <HttpsCallableResult > call (URL url , @ Nullable Object data , HttpsCallOptions options ) {
290
- return providerInstalled
291
- .getTask ()
292
- .continueWithTask (task -> contextProvider .getContext ())
293
- .continueWithTask (
294
- task -> {
295
- if (!task .isSuccessful ()) {
296
- return Tasks .forException (task .getException ());
297
- }
298
- HttpsCallableContext context = task .getResult ();
299
- return call (url , data , context , options );
300
- });
301
- }
283
+
284
+ /**
285
+ * Calls a Callable HTTPS trigger endpoint.
286
+ *
287
+ * @param url The url of the HTTPS trigger
288
+ * @param data Parameters to pass to the function. Can be anything encodable as JSON.
289
+ * @return A Task that will be completed when the request is complete.
290
+ */
291
+ Task <HttpsCallableResult > call (URL url , @ Nullable Object data , HttpsCallOptions options ) {
292
+ return providerInstalled
293
+ .getTask ()
294
+ .continueWithTask (task -> contextProvider .getContext ())
295
+ .continueWithTask (
296
+ task -> {
297
+ if (!task .isSuccessful ()) {
298
+ return Tasks .forException (task .getException ());
299
+ }
300
+ HttpsCallableContext context = task .getResult ();
301
+ return call (url , data , context , options );
302
+ });
303
+ }
302
304
303
305
/**
304
306
* Calls a Callable HTTPS trigger endpoint.
0 commit comments