Пример #1
0
        public JObject ToJson()
        {
            var json = new JObject();

            json["containerID"] = ContainerId?.ToJson();
            json["objectID"]    = ObjectId?.ToJson();
            return(json);
        }
Пример #2
0
        public JObject ToJson()
        {
            var json = new JObject();

            json["verb"]        = Verb.ToString();
            json["wildcard"]    = Wildcard.ToString();
            json["containerID"] = ContainerId.ToJson();
            return(json);
        }
Пример #3
0
        public JObject ToJson()
        {
            var json = new JObject();

            json["version"]         = Version?.ToJson();
            json["containerID"]     = ContainerId?.ToJson();
            json["ownerID"]         = OwnerId?.ToJson();
            json["creationEpoch"]   = CreationEpoch;
            json["payloadLength"]   = PayloadLength;
            json["payloadHash"]     = PayloadHash?.ToJson();
            json["objectType"]      = ObjectType.String();
            json["homomorphicHash"] = HomomorphicHash?.ToJson();
            json["sessionToken"]    = SessionToken?.ToJson();
            json["attributes"]      = new JArray(Attributes.Select(p => p.ToJson()));
            json["split"]           = Split?.ToJson();
            return(json);
        }