26 lines
597 B
C#
26 lines
597 B
C#
using System;
|
|
using System.Collections;
|
|
using System.IO;
|
|
|
|
namespace BCG {
|
|
/// <summary>
|
|
/// this is the data returned from the pubsub server
|
|
/// </summary>
|
|
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}";
|
|
}
|
|
};
|
|
}
|