/// <exception cref="VPackException"/> public void serialize(VPackBuilder builder, string attribute , Request value, VPackSerializationContext context) { builder.Add(attribute, ValueType.ARRAY); builder.Add(value.getVersion()); builder.Add(value.getType()); builder.Add(value.getDatabase()); builder.Add(value.getRequestType().getType()); builder.Add(value.getRequest()); builder.Add(ValueType.OBJECT); foreach (System.Collections.Generic.KeyValuePair <string, string> entry in value.getQueryParam ()) { builder.Add(entry.Key, entry.Value); } builder.Close(); builder.Add(ValueType.OBJECT); foreach (System.Collections.Generic.KeyValuePair <string, string> entry_1 in value .getHeaderParam()) { builder.Add(entry_1.Key, entry_1.Value); } builder.Close(); builder.Close(); }
/// <exception cref="VPackException"/> public void serialize(VPackBuilder builder, string attribute , AuthenticationRequest value, VPackSerializationContext context) { builder.Add(attribute, ValueType.ARRAY); builder.Add(value.getVersion()); builder.Add(value.getType()); builder.Add(value.getEncryption()); builder.Add(value.getUser()); builder.Add(value.getPassword()); builder.Close(); }
/// <exception cref="VPackException"/> public void serialize(VPackBuilder builder, string attribute , TraversalOptions.Order value, VPackSerializationContext context) { if (TraversalOptions.Order.preorder_expander == value) { builder.Add(attribute, "preorder-expander"); } else { builder.Add(attribute, value.ToString()); } }
/// <exception cref="VPackException"/> public void serialize(VPackBuilder builder, string attribute , BaseDocument value, VPackSerializationContext context) { System.Collections.Generic.IDictionary <string, object> doc = new System.Collections.Generic.Dictionary <string, object>(); doc.putAll(value.getProperties()); doc[com.arangodb.entity.DocumentFieldAttribute.Type.ID.getSerializeName()] = value.getId(); doc[com.arangodb.entity.DocumentFieldAttribute.Type.KEY.getSerializeName()] = value.getKey (); doc[com.arangodb.entity.DocumentFieldAttribute.Type.REV.getSerializeName()] = value.getRevision (); context.serialize(builder, attribute, doc); }
/// <exception cref="VPackException"/> public void serialize(VPackBuilder builder, string attribute , LogLevel value, VPackSerializationContext context) { builder.Add(attribute, value.getLevel()); }
/// <exception cref="VPackException"/> public void serialize(VPackBuilder builder, string attribute , CollectionType value, VPackSerializationContext context) { builder.Add(attribute, value.getType()); }
/// <exception cref="VPackException"/> public void serialize(VPackBuilder builder, string attribute , long value, VPackSerializationContext context) { builder.Add(attribute, value); }
/// <exception cref="VPackException"/> public void serialize(VPackBuilder builder, string attribute , System.DateTime value, VPackSerializationContext context ) { builder.Add(attribute, value); }