1using System.Collections.Generic;
14 public new List<string>
type;
19 this(
workspace,
type,
"udp", JSON.Parse(
"{}"), false, false, 0, new List<uint>(), receiverStream) { }
21 this(
workspace,
type,
"udp", JSON.Parse(
"{}"),
alert, false, 0, new List<uint>(), receiverStream)
26 this(
workspace,
type,
proto, JSON.Parse(
"{}"), false, false, 0, new List<uint>(), receiverStream) { }
36 this.receiverStream = receiverStream;
47 JSONNode jsonRequest = JSON.Parse(
"{}");
48 jsonRequest[
"function"] =
"receiver";
53 jsonRequest[
"streamIDs"][i] =
streamIDs[i];
55 jsonRequest[
"proto"] =
proto;
56 for (
int i = 0; i <
type.Count; i++)
58 jsonRequest[
"type"][i] =
type[i];
60 jsonRequest[
"alert"] =
alert;
61 jsonRequest[
"echo"] =
echo;
Parent class to custom receiver scripts that will be attached to GameObjects. Several of these can be...
ReceiverStreamParams(string workspace, List< string > type, ReceiverStream receiverStream, bool alert, bool echo)
ReceiverStreamParams(string workspace, List< string > type, string proto, ReceiverStream receiverStream)
ReceiverStreamParams(string workspace, List< string > type, ReceiverStream receiverStream, bool alert)
ReceiverStreamParams(string workspace, List< string > type, ReceiverStream receiverStream)
ReceiverStreamParams(string workspace, List< string > type, string proto, JSONNode metadata, bool alert, bool echo, uint receiverid, List< uint > streamIDs, ReceiverStream receiverStream)
List< uint > streamIDs
ReceiverStreamParams class - Child class that inherits StreamParams.
override JSONNode toJSON()
Parse to server function. IP, port, and token gets filled in by CoreLink.Control.
Parent class of Receiver/SenderStreamParams with shared information.