1 using 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)
24 this(workspace, type,
"udp", JSON.Parse(
"{}"), alert, echo, 0, new List<uint>(), receiverStream) { }
26 this(workspace, type, proto, JSON.Parse(
"{}"), false, false, 0, new List<uint>(), receiverStream) { }
30 List<uint> streamIDs,
ReceiverStream receiverStream) : base(workspace, type[0], proto, metadata, alert)
36 this.receiverStream = receiverStream;
47 JSONNode jsonRequest = JSON.Parse(
"{}");
48 jsonRequest[
"function"] =
"receiver";
50 if (receiverid != 0) jsonRequest[
"receiverid"] =
receiverid;
51 for (
int i = 0; i < streamIDs.Count; i++)
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;
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
ReceiverStreamParams(string workspace, List< string > type, ReceiverStream receiverStream, bool alert)
ReceiverStreamParams(string workspace, List< string > type, ReceiverStream receiverStream, bool alert, bool 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)
List< uint > streamIDs
ReceiverStreamParams class - Child class that inherits StreamParams.
ReceiverStreamParams(string workspace, List< string > type, string proto, ReceiverStream receiverStream)
ReceiverStreamParams(string workspace, List< string > type, string proto, JSONNode metadata, bool alert, bool echo, uint receiverid, List< uint > streamIDs, ReceiverStream receiverStream)