Search in sources :

Example 11 with Scene

use of com.herewhite.sdk.domain.Scene in project whiteboard-android by netless-io.

the class ConverterV5 method getPpt.

private ConvertedFiles getPpt(ConversionInfo info, ConvertType type) {
    int length = info.getConvertedFileList().length;
    String[] sliderURLs = new String[length];
    Scene[] scenes = new Scene[length];
    for (int i = 0; i < length; i++) {
        PptPage pptPage = info.getConvertedFileList()[i];
        sliderURLs[i] = pptPage.getSrc();
        scenes[i] = new Scene(String.valueOf(i + 1), pptPage);
    }
    ConvertedFiles files = new ConvertedFiles();
    files.setTaskId(taskUuid);
    files.setType(type);
    files.setSlideURLs(sliderURLs);
    files.setScenes(scenes);
    return files;
}
Also used : ConvertedFiles(com.herewhite.sdk.domain.ConvertedFiles) PptPage(com.herewhite.sdk.domain.PptPage) Scene(com.herewhite.sdk.domain.Scene)

Aggregations

Scene (com.herewhite.sdk.domain.Scene)11 PptPage (com.herewhite.sdk.domain.PptPage)4 SDKError (com.herewhite.sdk.domain.SDKError)3 Test (org.junit.Test)3 View (android.view.View)2 ConvertedFiles (com.herewhite.sdk.domain.ConvertedFiles)2 CountDownLatch (java.util.concurrent.CountDownLatch)2 Espresso.onView (androidx.test.espresso.Espresso.onView)1 UiController (androidx.test.espresso.UiController)1 CountingIdlingResource (androidx.test.espresso.idling.CountingIdlingResource)1 JsonObject (com.google.gson.JsonObject)1 JsonSyntaxException (com.google.gson.JsonSyntaxException)1 LocalFileWebViewClient (com.herewhite.demo.LocalFileWebViewClient)1 SimpleViewAction (com.herewhite.demo.utils.SimpleViewAction)1 WhiteboardView (com.herewhite.sdk.WhiteboardView)1 SceneState (com.herewhite.sdk.domain.SceneState)1 WindowAppParam (com.herewhite.sdk.domain.WindowAppParam)1 WindowPrefersColorScheme (com.herewhite.sdk.domain.WindowPrefersColorScheme)1 File (java.io.File)1 IOException (java.io.IOException)1