public GetHeroResultParser(IValueSerializerResolver serializerResolver) { if (serializerResolver is null) { throw new ArgumentNullException(nameof(serializerResolver)); } _stringSerializer = serializerResolver.GetValueSerializer("String"); _floatSerializer = serializerResolver.GetValueSerializer("Float"); }
public FarmListResultParser(IValueSerializerResolver serializerResolver) { if (serializerResolver is null) { throw new ArgumentNullException(nameof(serializerResolver)); } _iDSerializer = serializerResolver.GetValueSerializer("ID"); _stringSerializer = serializerResolver.GetValueSerializer("String"); }
public GetCustomerResultParser(IValueSerializerResolver serializerResolver) { if (serializerResolver is null) { throw new ArgumentNullException(nameof(serializerResolver)); } _intSerializer = serializerResolver.GetValueSerializer("Int"); _stringSerializer = serializerResolver.GetValueSerializer("String"); }
public void Initialize(IValueSerializerResolver serializerResolver) { if (serializerResolver is null) { throw new ArgumentNullException(nameof(serializerResolver)); } _stringSerializer = serializerResolver.GetValueSerializer("String"); _intSerializer = serializerResolver.GetValueSerializer("Int"); _needsInitialization = false; }
public GetStreamResultParser(IValueSerializerResolver serializerResolver) { if (serializerResolver is null) { throw new ArgumentNullException(nameof(serializerResolver)); } _stringSerializer = serializerResolver.GetValueSerializer("String"); _intSerializer = serializerResolver.GetValueSerializer("Int"); _dateTimeSerializer = serializerResolver.GetValueSerializer("DateTime"); _jSONObjectSerializer = serializerResolver.GetValueSerializer("JSONObject"); }
public MediaDetailsResultParser(IValueSerializerResolver serializerResolver) { if (serializerResolver is null) { throw new ArgumentNullException(nameof(serializerResolver)); } _uuidSerializer = serializerResolver.GetValueSerializer("Uuid"); _stringSerializer = serializerResolver.GetValueSerializer("String"); _dateTimeSerializer = serializerResolver.GetValueSerializer("DateTime"); _intSerializer = serializerResolver.GetValueSerializer("Int"); _thumbnailSizeNameSerializer = serializerResolver.GetValueSerializer("ThumbnailSizeName"); }
private IReadOnlyDictionary <string, object?>?SerializeVariables( IOperation operation) { IReadOnlyList <VariableValue> variableValues = operation.GetVariableValues(); if (variableValues.Count > 0) { var map = new Dictionary <string, object?>(); foreach (VariableValue variableValue in variableValues) { IValueSerializer serializer = _valueSerializerResolver.GetValueSerializer(variableValue.TypeName); map.Add( variableValue.Name, SerializeVariable(variableValue.Value, serializer)); } return(map); } return(null); }
public CreateReviewResultParser(IValueSerializerResolver serializerResolver) { if (serializerResolver is null) { throw new ArgumentNullException(nameof(serializerResolver)); } _stringSerializer = serializerResolver.GetValueSerializer("String"); }
public OnNewReviewResultParser(IValueSerializerResolver serializerResolver) { if (serializerResolver is null) { throw new ArgumentNullException(nameof(serializerResolver)); } _intSerializer = serializerResolver.GetValueSerializer("Int"); }
public UserEditResultParser(IValueSerializerResolver serializerResolver) { if (serializerResolver is null) { throw new ArgumentNullException(nameof(serializerResolver)); } _booleanSerializer = serializerResolver.GetValueSerializer("Boolean"); }