23 lines
558 B
C#
23 lines
558 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 tagType, Stream body) { this.tag = tag; this.body = body; this.tagType = tagType; }
|
|
|
|
public string tag;
|
|
public Stream body;
|
|
public string tagType;
|
|
|
|
public override string ToString() {
|
|
return $"PubSubUpdate tag: {tag} tag_type: {tagType} len: {body.Position}";
|
|
}
|
|
};
|
|
}
|