public JObject ToJson() { var json = new JObject(); json["parent"] = Parent?.ToJson(); json["previous"] = Previous?.ToJson(); json["parentSignature"] = ParentSignature?.ToJson(); json["parentHeader"] = ParentHeader?.ToJson(); json["children"] = new JArray(Children.Select(p => p.ToJson())); json["splitid"] = SplitId.ToBase64(); return(json); }
public override int GetHashCode() { int hash = 1; if (ExpirationEpoch != 0UL) { hash ^= ExpirationEpoch.GetHashCode(); } if (SplitId.Length != 0) { hash ^= SplitId.GetHashCode(); } hash ^= members_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }