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

com.bitmovin.api.sdk.model.AudioMixInputStream Maven / Gradle / Ivy

There is a newer version: 1.205.0
Show newest version
package com.bitmovin.api.sdk.model;

import java.util.Objects;
import java.util.Arrays;
import com.bitmovin.api.sdk.model.AudioMixInputChannelLayout;
import com.bitmovin.api.sdk.model.AudioMixInputStreamChannel;
import com.bitmovin.api.sdk.model.InputStream;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;

/**
 * AudioMixInputStream
 */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = false, defaultImpl = AudioMixInputStream.class)
public class AudioMixInputStream extends InputStream {
  @JsonProperty("channelLayout")
  private AudioMixInputChannelLayout channelLayout;

  @JsonProperty("audioMixChannels")
  @JsonInclude(JsonInclude.Include.NON_EMPTY)
  private List audioMixChannels = new ArrayList();


  /**
   * Channel layout of the audio mix input stream
   * @return channelLayout
   */
  public AudioMixInputChannelLayout getChannelLayout() {
    return channelLayout;
  }

  /**
   * Channel layout of the audio mix input stream
   *
   * @param channelLayout
   *        Channel layout of the audio mix input stream
   */
  public void setChannelLayout(AudioMixInputChannelLayout channelLayout) {
    this.channelLayout = channelLayout;
  }


  public AudioMixInputStream addAudioMixChannelsItem(AudioMixInputStreamChannel audioMixChannelsItem) {
    this.audioMixChannels.add(audioMixChannelsItem);
    return this;
  }

  /**
   * Get audioMixChannels
   * @return audioMixChannels
   */
  public List getAudioMixChannels() {
    return audioMixChannels;
  }

  /**
   * Set audioMixChannels
   *
   * @param audioMixChannels
   */
  public void setAudioMixChannels(List audioMixChannels) {
    this.audioMixChannels = audioMixChannels;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    AudioMixInputStream audioMixInputStream = (AudioMixInputStream) o;
    return Objects.equals(this.channelLayout, audioMixInputStream.channelLayout) &&
        Objects.equals(this.audioMixChannels, audioMixInputStream.audioMixChannels) &&
        super.equals(o);
  }

  @Override
  public int hashCode() {
    return Objects.hash(channelLayout, audioMixChannels, super.hashCode());
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class AudioMixInputStream {\n");
    sb.append("    ").append(toIndentedString(super.toString())).append("\n");
    sb.append("    channelLayout: ").append(toIndentedString(channelLayout)).append("\n");
    sb.append("    audioMixChannels: ").append(toIndentedString(audioMixChannels)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy