/// <summary> /// Initializes a new instance of the <see cref="T:KinveyXamarin.FindAggregateRequest`1"/> class. /// </summary> /// <param name="client">Client.</param> /// <param name="collection">Collection.</param> /// <param name="reduceFunction">Reduce function.</param> /// <param name="cache">Cache.</param> /// <param name="policy"> The <see cref="ReadPolicy"/> to be used for this request.</param> /// <param name="deltaSetFetchingEnabled">If set to <c>true</c> delta set fetching enabled.</param> /// <param name="cacheDelegate">Cache delegate.</param> /// <param name="query">[optional] Query used to filter the results that are to be aggregated.</param> /// <param name="groupField">Property name to be used for grouping.</param> /// <param name="aggregateField">Property name to be used for aggregation.</param> public FindAggregateRequest(AbstractClient client, string collection, EnumReduceFunction reduceFunction, ICache <T> cache, ReadPolicy policy, bool deltaSetFetchingEnabled, KinveyDelegate <List <GroupAggregationResults> > cacheDelegate, IQueryable <object> query, string groupField, string aggregateField) : base(client, collection, cache, query, policy, deltaSetFetchingEnabled) { this.cacheDelegate = cacheDelegate; this.reduceFunction = reduceFunction; this.groupField = groupField; this.aggregateField = aggregateField; }
/// <summary> /// Initializes a new instance of the <see cref="T:KinveyXamarin.FindRequest`1"/> class. /// </summary> /// <param name="client">Client.</param> /// <param name="collection">Collection.</param> /// <param name="cache">Cache.</param> /// <param name="policy">Policy.</param> /// <param name="deltaSetFetchingEnabled">If set to <c>true</c> delta set fetching enabled.</param> /// <param name="cacheDelegate">Cache delegate.</param> /// <param name="query">Query.</param> /// <param name="listIDs">List identifier.</param> public FindRequest(AbstractClient client, string collection, ICache <T> cache, ReadPolicy policy, bool deltaSetFetchingEnabled, KinveyDelegate <List <T> > cacheDelegate, IQueryable <object> query, List <string> listIDs) : base(client, collection, cache, query, policy, deltaSetFetchingEnabled, listIDs) { this.cacheDelegate = cacheDelegate; }
public XElement GetComments(MemberInfo memberInfo) { return(ReadPolicy.ReadMember(Convert.ToXmlDocCommentMember(memberInfo))); }
/// <summary> /// Retrieves the xml doc comments for a given <see cref="System.Reflection.ConstructorInfo"/>. /// </summary> /// /// <param name="constructorInfo"> /// The <see cref="System.Reflection.ConstructorInfo"/> for which the doc comments are retrieved. /// </param> /// /// <returns> /// An <see cref="XElement"/> containing the requested XML doc comments, /// or NULL if none were found. /// </returns> public XElement GetComments(ConstructorInfo constructorInfo) { return(ReadPolicy.ReadMember(Convert.ToXmlDocCommentMember(constructorInfo))); }
/// <summary> /// Retrieves the xml doc comments for a given <see cref="System.Reflection.PropertyInfo"/>. /// </summary> /// /// <param name="propertyInfo"> /// The <see cref="System.Reflection.PropertyInfo"/> for which the doc comments are retrieved. /// </param> /// /// <returns> /// An <see cref="XElement"/> containing the requested XML doc comments, /// or NULL if none were found. /// </returns> public XElement GetComments(PropertyInfo propertyInfo) { return(ReadPolicy.ReadMember(Convert.ToXmlDocCommentMember(propertyInfo))); }
/// <summary> /// Retrieves the xml doc comments for a given <see cref="System.Reflection.FieldInfo"/>. /// </summary> /// /// <param name="fieldInfo"> /// The <see cref="System.Reflection.FieldInfo"/> for which the doc comments are retrieved. /// </param> /// /// <returns> /// An <see cref="XElement"/> containing the requested XML doc comments, /// or NULL if none were found. /// </returns> public XElement GetComments(FieldInfo fieldInfo) { return(ReadPolicy.ReadMember(Convert.ToXmlDocCommentMember(fieldInfo))); }
/// <summary> /// Retrieves the xml doc comments for a given <see cref="System.Reflection.EventInfo"/>. /// </summary> /// /// <param name="eventInfo"> /// The <see cref="System.Reflection.EventInfo"/> for which the doc comments are retrieved. /// </param> /// /// <returns> /// An <see cref="XElement"/> containing the requested XML doc comments, /// or NULL if none were found. /// </returns> public XElement GetComments(EventInfo eventInfo) { return(ReadPolicy.ReadMember(Convert.ToXmlDocCommentMember(eventInfo))); }
/// <summary> /// Retrieves the xml doc comments for a given <see cref="System.Type"/>. /// </summary> /// /// <param name="type"> /// The <see cref="System.Type"/> for which the doc comments are retrieved. /// </param> /// /// <returns> /// An <see cref="XElement"/> containing the requested XML doc comments, /// or NULL if none were found. /// </returns> public XElement GetComments(Type type) { return(ReadPolicy.ReadMember(Convert.ToXmlDocCommentMember(type))); }
/// <summary> /// Initializes a new instance of the <see cref="GetCountRequest{T}"/> class. /// </summary> /// <param name="client">Client that the user is logged in.</param> /// <param name="collection">Collection name.</param> /// <param name="cache">Cache.</param> /// <param name="policy">Read policy.</param> /// <param name="deltaSetFetchingEnabled">If set to <c>true</c> delta set fetching enabled.</param> /// <param name="cacheDelegate">Cache delegate.</param> /// <param name="query">Query.</param> public GetCountRequest(AbstractClient client, string collection, ICache <T> cache, ReadPolicy policy, bool deltaSetFetchingEnabled, KinveyDelegate <uint> cacheDelegate, IQueryable <object> query) : base(client, collection, cache, query, policy, deltaSetFetchingEnabled) { this.cacheDelegate = cacheDelegate; }
DataStoreType(ReadPolicy readPolicy, WritePolicy writePolicy) { this.ReadPolicy = readPolicy; this.WritePolicy = writePolicy; }
/// <summary> /// Initializes a new instance of the <see cref="ReadRequest{T,U}"/> class. /// </summary> /// <param name="client">Client that the user is logged in.</param> /// <param name="collection">Collection name.</param> /// <param name="cache">Cache.</param> /// <param name="query">Query.</param> /// <param name="policy">Read policy.</param> /// <param name="deltaSetFetchingEnabled">If set to <c>true</c> delta set fetching enabled.</param> public ReadRequest(AbstractClient client, string collection, ICache <T> cache, IQueryable <object> query, ReadPolicy policy, bool deltaSetFetchingEnabled) : base(client) { this.Cache = cache; this.Collection = collection; this.Query = query; this.Policy = policy; this.DeltaSetFetchingEnabled = deltaSetFetchingEnabled; }