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

com.opentok.StreamList Maven / Gradle / Ivy

Go to download

The OpenTok Java SDK lets you generate sessions and tokens for OpenTok applications. This version of the SDK also includes support for working with OpenTok 2.0 archives.

The newest version!
/**
 * OpenTok Java SDK
 * Copyright (C) 2025 Vonage.
 * http://www.tokbox.com
 * 
 * Licensed under The MIT License (MIT). See LICENSE file for more information.
 */
package com.opentok;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.ArrayList;
import java.util.List;

/**
 * Represents a list of OpenTok Streams.
 */
@JsonFormat(shape= JsonFormat.Shape.OBJECT)
public class StreamList extends ArrayList {

    private int totalCount;

    /**
     * The total number of Streams in the StreamList.
     */
    public int getTotalCount() {
        return totalCount;
    }

    private void setItems(List streams) {
        this.clear();
        this.addAll(streams);
    }

    private void setCount(int count) {
        this.totalCount = count;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy