using System; using System.Collections; using System.IO; namespace BCG { /// /// this is the data returned from the pubsub server /// public class PubSubUpdate { public PubSubUpdate(string tag, string the_tag_type, Stream body) { this.tag = tag; this.body = body; this.tag_type = the_tag_type; } public string tag; public Stream body; public string tag_type; public override string ToString() { return $"PubSubUpdate tag: {tag} tag_type: {tag_type} len: {body.Position}"; } }; }