@@ -869,6 +869,133 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
869869 apiClient .executeAsync (call , localVarReturnType , callback );
870870 return call ;
871871 }
872+ /**
873+ * Build call for teammateMobileRedirect
874+ * @param portalUrl (required)
875+ * @param progressListener Progress listener
876+ * @param progressRequestListener Progress request listener
877+ * @return Call to execute
878+ * @throws ApiException If fail to serialize the request body object
879+ */
880+ public com .squareup .okhttp .Call teammateMobileRedirectCall (String portalUrl , final ProgressResponseBody .ProgressListener progressListener , final ProgressRequestBody .ProgressRequestListener progressRequestListener ) throws ApiException {
881+ Object localVarPostBody = null ;
882+
883+ // create path and map variables
884+ String localVarPath = "/api/v1.0/teammates/mobile-redirect" ;
885+
886+ List <Pair > localVarQueryParams = new ArrayList <Pair >();
887+ List <Pair > localVarCollectionQueryParams = new ArrayList <Pair >();
888+ if (portalUrl != null )
889+ localVarQueryParams .addAll (apiClient .parameterToPair ("portalUrl" , portalUrl ));
890+
891+ Map <String , String > localVarHeaderParams = new HashMap <String , String >();
892+
893+ Map <String , Object > localVarFormParams = new HashMap <String , Object >();
894+
895+ final String [] localVarAccepts = {
896+ "application/json" , "text/json" , "application/xml" , "text/xml"
897+ };
898+ final String localVarAccept = apiClient .selectHeaderAccept (localVarAccepts );
899+ if (localVarAccept != null ) localVarHeaderParams .put ("Accept" , localVarAccept );
900+
901+ final String [] localVarContentTypes = {
902+
903+ };
904+ final String localVarContentType = apiClient .selectHeaderContentType (localVarContentTypes );
905+ localVarHeaderParams .put ("Content-Type" , localVarContentType );
906+
907+ if (progressListener != null ) {
908+ apiClient .getHttpClient ().networkInterceptors ().add (new com .squareup .okhttp .Interceptor () {
909+ @ Override
910+ public com .squareup .okhttp .Response intercept (com .squareup .okhttp .Interceptor .Chain chain ) throws IOException {
911+ com .squareup .okhttp .Response originalResponse = chain .proceed (chain .request ());
912+ return originalResponse .newBuilder ()
913+ .body (new ProgressResponseBody (originalResponse .body (), progressListener ))
914+ .build ();
915+ }
916+ });
917+ }
918+
919+ String [] localVarAuthNames = new String [] { "oauth2" };
920+ if (headers != null ) {
921+ localVarHeaderParams .putAll (headers );
922+ }
923+ return apiClient .buildCall (localVarPath , "GET" , localVarQueryParams , localVarCollectionQueryParams , localVarPostBody , localVarHeaderParams , localVarFormParams , localVarAuthNames , progressRequestListener );
924+ }
925+
926+ @ SuppressWarnings ("rawtypes" )
927+ private com .squareup .okhttp .Call teammateMobileRedirectValidateBeforeCall (String portalUrl , final ProgressResponseBody .ProgressListener progressListener , final ProgressRequestBody .ProgressRequestListener progressRequestListener ) throws ApiException {
928+
929+ // verify the required parameter 'portalUrl' is set
930+ if (portalUrl == null ) {
931+ throw new ApiException ("Missing the required parameter 'portalUrl' when calling teammateMobileRedirect(Async)" );
932+ }
933+
934+
935+ com .squareup .okhttp .Call call = teammateMobileRedirectCall (portalUrl , progressListener , progressRequestListener );
936+ return call ;
937+
938+ }
939+
940+ /**
941+ *
942+ *
943+ * @param portalUrl (required)
944+ * @return Object
945+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
946+ */
947+ public Object teammateMobileRedirect (String portalUrl ) throws ApiException {
948+ ApiResponse <Object > resp = teammateMobileRedirectWithHttpInfo (portalUrl );
949+ return resp .getData ();
950+ }
951+
952+ /**
953+ *
954+ *
955+ * @param portalUrl (required)
956+ * @return ApiResponse<Object>
957+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
958+ */
959+ public ApiResponse <Object > teammateMobileRedirectWithHttpInfo (String portalUrl ) throws ApiException {
960+ com .squareup .okhttp .Call call = teammateMobileRedirectValidateBeforeCall (portalUrl , null , null );
961+ Type localVarReturnType = new TypeToken <Object >(){}.getType ();
962+ return apiClient .execute (call , localVarReturnType );
963+ }
964+
965+ /**
966+ * (asynchronously)
967+ *
968+ * @param portalUrl (required)
969+ * @param callback The callback to be executed when the API call finishes
970+ * @return The request call
971+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
972+ */
973+ public com .squareup .okhttp .Call teammateMobileRedirectAsync (String portalUrl , final ApiCallback <Object > callback ) throws ApiException {
974+
975+ ProgressResponseBody .ProgressListener progressListener = null ;
976+ ProgressRequestBody .ProgressRequestListener progressRequestListener = null ;
977+
978+ if (callback != null ) {
979+ progressListener = new ProgressResponseBody .ProgressListener () {
980+ @ Override
981+ public void update (long bytesRead , long contentLength , boolean done ) {
982+ callback .onDownloadProgress (bytesRead , contentLength , done );
983+ }
984+ };
985+
986+ progressRequestListener = new ProgressRequestBody .ProgressRequestListener () {
987+ @ Override
988+ public void onRequestProgress (long bytesWritten , long contentLength , boolean done ) {
989+ callback .onUploadProgress (bytesWritten , contentLength , done );
990+ }
991+ };
992+ }
993+
994+ com .squareup .okhttp .Call call = teammateMobileRedirectValidateBeforeCall (portalUrl , progressListener , progressRequestListener );
995+ Type localVarReturnType = new TypeToken <Object >(){}.getType ();
996+ apiClient .executeAsync (call , localVarReturnType , callback );
997+ return call ;
998+ }
872999 /**
8731000 * Build call for teammatesAcceptInvitation
8741001 * @param otc (required)
0 commit comments