public override void Decode(ByteStream stream) { if (this.Success) { this.Document = CouchbaseDocument.Decode <GameDocument>(stream); } }
public override void Decode(ByteStream stream) { this.CurrentSeasonDocument = CouchbaseDocument.Decode <SeasonDocument>(stream); if (stream.ReadBoolean()) { this.LastSeasonDocument = CouchbaseDocument.Decode <SeasonDocument>(stream); } }