@@ -245,6 +245,7 @@ public interface ILightCellsApi
245245 /// <param name="format">File to upload</param>
246246 /// <returns>FilesResult</returns>
247247 FilesResult PostReverse ( IDictionary < string , System . IO . Stream > files , string rotateType , string format = null , bool ? checkExcelRestriction = true ) ;
248+ FilesResult PostRotate ( IDictionary < string , System . IO . Stream > files , string rotateType , string format = null , bool ? checkExcelRestriction = true ) ;
248249 }
249250
250251 /// <summary>
@@ -1466,5 +1467,64 @@ public FilesResult PostReverse(IDictionary<string, System.IO.Stream> files, stri
14661467 localVarResponse . Headers . ToDictionary ( x => x . Name , x => x . Value . ToString ( ) ) ,
14671468 ( FilesResult ) Configuration . ApiClient . Deserialize ( localVarResponse , typeof ( FilesResult ) ) ) ) . Data ;
14681469 }
1470+
1471+ public FilesResult PostRotate ( IDictionary < string , System . IO . Stream > files , string rotateType , string format = null , bool ? checkExcelRestriction = true )
1472+ {
1473+ checkAccessToken ( ) ;
1474+ // verify the required parameter 'rotateType' is set
1475+ if ( rotateType == null )
1476+ throw new ApiException ( 400 , "Missing required parameter 'text' when calling LightCellsApi->PostReverse" ) ;
1477+ // verify the required parameter 'file' is set
1478+ if ( files == null )
1479+ throw new ApiException ( 400 , "Missing required parameter 'file' when calling LightCellsApi->PostReverse" ) ;
1480+
1481+ var localVarPath = "/cells/rotate" ;
1482+ var localVarPathParams = new Dictionary < String , String > ( ) ;
1483+ var localVarQueryParams = new Dictionary < String , String > ( ) ;
1484+ var localVarHeaderParams = new Dictionary < String , String > ( Configuration . DefaultHeader ) ;
1485+ var localVarFormParams = new Dictionary < String , String > ( ) ;
1486+ var localVarFileParams = new Dictionary < String , FileParameter > ( ) ;
1487+ Object localVarPostBody = null ;
1488+
1489+ // to determine the Content-Type header
1490+ String [ ] localVarHttpContentTypes = new String [ ] {
1491+ "multipart/form-data"
1492+ } ;
1493+ String localVarHttpContentType = Configuration . ApiClient . SelectHeaderContentType ( localVarHttpContentTypes ) ;
1494+
1495+ // to determine the Accept header
1496+ String [ ] localVarHttpHeaderAccepts = new String [ ] {
1497+ "application/json"
1498+ } ;
1499+ String localVarHttpHeaderAccept = Configuration . ApiClient . SelectHeaderAccept ( localVarHttpHeaderAccepts ) ;
1500+ if ( localVarHttpHeaderAccept != null )
1501+ localVarHeaderParams . Add ( "Accept" , localVarHttpHeaderAccept ) ;
1502+
1503+ if ( rotateType != null ) localVarQueryParams . Add ( "rotateType" , Configuration . ApiClient . ParameterToString ( rotateType ) ) ; // query parameter
1504+ if ( format != null ) localVarQueryParams . Add ( "newtext" , Configuration . ApiClient . ParameterToString ( format ) ) ; // query parameter
1505+ if ( checkExcelRestriction != null ) localVarQueryParams . Add ( "checkExcelRestriction" , Configuration . ApiClient . ParameterToString ( checkExcelRestriction ) ) ; // query parameter
1506+
1507+ foreach ( KeyValuePair < string , System . IO . Stream > file in files )
1508+ {
1509+ localVarFileParams . Add ( file . Key , Configuration . ApiClient . ParameterToFile ( file . Key , file . Value ) ) ;
1510+ }
1511+
1512+ // make the HTTP request
1513+ IRestResponse localVarResponse = ( IRestResponse ) Configuration . ApiClient . CallApi ( localVarPath ,
1514+ Method . POST , localVarQueryParams , localVarPostBody , localVarHeaderParams , localVarFormParams , localVarFileParams ,
1515+ localVarPathParams , localVarHttpContentType ) ;
1516+
1517+ int localVarStatusCode = ( int ) localVarResponse . StatusCode ;
1518+
1519+ if ( ExceptionFactory != null )
1520+ {
1521+ Exception exception = ExceptionFactory ( "PostReplace" , localVarResponse ) ;
1522+ if ( exception != null ) throw exception ;
1523+ }
1524+
1525+ return ( new ApiResponse < FilesResult > ( localVarStatusCode ,
1526+ localVarResponse . Headers . ToDictionary ( x => x . Name , x => x . Value . ToString ( ) ) ,
1527+ ( FilesResult ) Configuration . ApiClient . Deserialize ( localVarResponse , typeof ( FilesResult ) ) ) ) . Data ;
1528+ }
14691529 }
14701530}
0 commit comments