package com.foxx.androidcast.sender;

/*********************************************************************
 * CastReceiverTarget.java
 * Created at: Sat 16 May 2026 13:35:48 +0200
 * Updated at: Wed 20 May 2026 15:17:13 +0200 by Anton Afanasyeu <a.afanasieff@gmail.com>
 * Commit: 5d8e82d2e60a21fff3138d2a394ee4e8b4c6dcb8
 * class CastReceiverTarget
 * Contributors:
 *    - Anton Afanasyeu <a.afanasieff@gmail.com> (2 commits, 36 lines)
 *    - Cursor Agent (project assistant)
 * Digest: SHA256	cd2a4275173b4292765948ba688eec345c9224803d3fdfc59f7169bab19f4edb
**********************************************************************/
import java.io.Serializable;

/** One cast destination (host, port, capabilities from discovery). */
public class CastReceiverTarget implements Serializable {
  public final String name;
  public final String host;
  public final int port;
  public final String transport;
  public final int videoCodecs;
  public final int audioCodecs;
  public final int placeholderId;

  public CastReceiverTarget(String name, String host, int port, String transport,
      int videoCodecs, int audioCodecs, int placeholderId) {
    this.name = name;
    this.host = host;
    this.port = port;
    this.transport = transport;
    this.videoCodecs = videoCodecs;
    this.audioCodecs = audioCodecs;
    this.placeholderId = placeholderId;
  }

  public String key() {
    return host + ":" + port;
  }
}
