Skip to content

Commit 6c3c7c0

Browse files
committed
Fix xml documentation
1 parent 9b50f7f commit 6c3c7c0

12 files changed

+54
-45
lines changed

src/Firebase/FirebaseClient.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class FirebaseClient : IDisposable
2525
/// Initializes a new instance of the <see cref="FirebaseClient"/> class.
2626
/// </summary>
2727
/// <param name="baseUrl"> The base url. </param>
28-
/// <param name="offlineDatabaseFactory"> Offline database. </param>
28+
/// <param name="options"> The Firebase options. </param>
2929
public FirebaseClient(string baseUrl, FirebaseOptions options = null)
3030
{
3131
this.Options = options ?? new FirebaseOptions();

src/Firebase/FirebaseKeyGenerator.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace Firebase.Database
77
/// Offline key generator which mimics the official Firebase generators.
88
/// Credit: https://github.com/bubbafat/FirebaseSharp/blob/master/src/FirebaseSharp.Portable/FireBasePushIdGenerator.cs
99
/// </summary>
10-
public class FirebaseKeyGenerator
10+
public static class FirebaseKeyGenerator
1111
{
1212
// Modeled after base64 web-safe chars, but ordered by ASCII.
1313
private const string PushCharsString = "-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz";

src/Firebase/FirebaseObject.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
namespace Firebase.Database
22
{
33
/// <summary>
4-
/// Holds the object of type <typeparam name="T" /> along with its key.
4+
/// Holds the object of type <typeparamref name="T" /> along with its key.
55
/// </summary>
66
/// <typeparam name="T"> Type of the underlying object. </typeparam>
77
public class FirebaseObject<T>

src/Firebase/Offline/DatabaseExtensions.cs

+6-2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ public static class DatabaseExtensions
1313
/// Create new instances of the <see cref="RealtimeDatabase{T}"/>.
1414
/// </summary>
1515
/// <typeparam name="T"> Type of elements. </typeparam>
16+
/// <param name="query"> The child query. </param>
1617
/// <param name="filenameModifier"> Custom string which will get appended to the file name. </param>
1718
/// <param name="elementRoot"> Optional custom root element of received json items. </param>
1819
/// <param name="streamingOptions"> Realtime streaming options. </param>
@@ -30,6 +31,7 @@ public static RealtimeDatabase<T> AsRealtimeDatabase<T>(this ChildQuery query, s
3031
/// </summary>
3132
/// <typeparam name="T"> Type of elements. </typeparam>
3233
/// <typeparam name="TSetHandler"> Type of the custom <see cref="ISetHandler{T}"/> to use. </typeparam>
34+
/// <param name="query"> The child query. </param>
3335
/// <param name="filenameModifier"> Custom string which will get appended to the file name. </param>
3436
/// <param name="elementRoot"> Optional custom root element of received json items. </param>
3537
/// <param name="streamingOptions"> Realtime streaming options. </param>
@@ -46,6 +48,7 @@ public static RealtimeDatabase<T> AsRealtimeDatabase<T, TSetHandler>(this ChildQ
4648
/// <summary>
4749
/// Overwrites existing object with given key leaving any missing properties intact in firebase.
4850
/// </summary>
51+
/// <param name="db"> Database instance. </param>
4952
/// <param name="key"> The key. </param>
5053
/// <param name="obj"> The object to set. </param>
5154
/// <param name="syncOnline"> Indicates whether the item should be synced online. </param>
@@ -59,6 +62,7 @@ public static void Patch<T>(this RealtimeDatabase<T> db, string key, T obj, bool
5962
/// <summary>
6063
/// Overwrites existing object with given key.
6164
/// </summary>
65+
/// <param name="db"> Database instance. </param>
6266
/// <param name="key"> The key. </param>
6367
/// <param name="obj"> The object to set. </param>
6468
/// <param name="syncOnline"> Indicates whether the item should be synced online. </param>
@@ -72,6 +76,7 @@ public static void Put<T>(this RealtimeDatabase<T> db, string key, T obj, bool s
7276
/// <summary>
7377
/// Adds a new entity to the Database.
7478
/// </summary>
79+
/// <param name="db"> Database instance. </param>
7580
/// <param name="obj"> The object to add. </param>
7681
/// <param name="syncOnline"> Indicates whether the item should be synced online. </param>
7782
/// <param name="priority"> The priority. Objects with higher priority will be synced first. Higher number indicates higher priority. </param>
@@ -89,6 +94,7 @@ public static string Post<T>(this RealtimeDatabase<T> db, T obj, bool syncOnline
8994
/// <summary>
9095
/// Deletes the entity with the given key.
9196
/// </summary>
97+
/// <param name="db"> Database instance. </param>
9298
/// <param name="key"> The key. </param>
9399
/// <param name="syncOnline"> Indicates whether the item should be synced online. </param>
94100
/// <param name="priority"> The priority. Objects with higher priority will be synced first. Higher number indicates higher priority. </param>
@@ -140,7 +146,6 @@ public static void Patch<T, TProperty>(this RealtimeDatabase<T> db, string key,
140146
/// <param name="db"> Database instance. </param>
141147
/// <param name="key"> Key of the root element to modify. </param>
142148
/// <param name="propertyExpression"> Expression on the root element leading to target value to modify. </param>
143-
/// <param name="value"> Value to put. </param>
144149
/// <param name="syncOnline"> Indicates whether the item should be synced online. </param>
145150
/// <param name="priority"> The priority. Objects with higher priority will be synced first. Higher number indicates higher priority. </param>
146151
public static void Delete<T, TProperty>(this RealtimeDatabase<T> db, string key, Expression<Func<T, TProperty>> propertyExpression, bool syncOnline = true, int priority = 1)
@@ -177,7 +182,6 @@ public static void Post<T, TSelector, TProperty>(this RealtimeDatabase<T> db, st
177182
/// The key of the new entity is automatically generated.
178183
/// </summary>
179184
/// <typeparam name="T"> Type of the root elements. </typeparam>
180-
/// <typeparam name="TSelector"> Type of the dictionary being modified</typeparam>
181185
/// <typeparam name="TProperty"> Type of the value within the dictionary being modified</typeparam>
182186
/// <param name="db"> Database instance. </param>
183187
/// <param name="key"> Key of the root element to modify. </param>

src/Firebase/Offline/OfflineEntry.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ public class OfflineEntry
1616
/// </summary>
1717
/// <param name="key"> The key. </param>
1818
/// <param name="obj"> The object. </param>
19-
/// <param name="priority"> The priority. Objects with higher priority will be synced first. Higher number indicates higher priority. </param>
19+
/// <param name="data"> The json data. </param>
20+
/// <param name="priority"> The priority. Objects with higher priority will be synced first. Higher number indicates higher priority. </param>
2021
/// <param name="syncOptions"> The sync options. </param>
22+
/// <param name="isPartial"> A value indicating whether this is only a partial object. </param>
2123
public OfflineEntry(string key, object obj, string data, int priority, SyncOptions syncOptions, bool isPartial = false)
2224
{
2325
this.Key = key;
@@ -37,6 +39,7 @@ public OfflineEntry(string key, object obj, string data, int priority, SyncOptio
3739
/// <param name="obj"> The object. </param>
3840
/// <param name="priority"> The priority. Objects with higher priority will be synced first. Higher number indicates higher priority. </param>
3941
/// <param name="syncOptions"> The sync options. </param>
42+
/// <param name="isPartial"> A value indicating whether this is only a partial object. </param>
4043
public OfflineEntry(string key, object obj, int priority, SyncOptions syncOptions, bool isPartial = false)
4144
: this(key, obj, JsonConvert.SerializeObject(obj), priority, syncOptions, isPartial)
4245
{

src/Firebase/Offline/RealtimeDatabase.cs

+4-3
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@ public partial class RealtimeDatabase<T> : IDisposable where T : class
4343
/// <param name="elementRoot"> The element Root. </param>
4444
/// <param name="offlineDatabaseFactory"> The offline database factory. </param>
4545
/// <param name="filenameModifier"> Custom string which will get appended to the file name. </param>
46-
/// <param name="streamChanges"> Specifies whether changes should be streamed from the server. </param>
47-
/// <param name="pullEverythingOnStart"> Specifies if everything should be pull from the online storage on start. It only makes sense when <see cref="streamChanges"/> is set to true. </param>
46+
/// <param name="streamingOptions"> Specifies condition for which items get streamed. </param>
47+
/// <param name="initialPullStrategy"> Specifies the strategy for initial pull of server data. </param>
4848
/// <param name="pushChanges"> Specifies whether changed items should actually be pushed to the server. If this is false, then Put / Post / Delete will not affect server data. </param>
49+
/// <param name="setHandler"></param>
4950
public RealtimeDatabase(ChildQuery childQuery, string elementRoot, Func<Type, string, IDictionary<string, OfflineEntry>> offlineDatabaseFactory, string filenameModifier, StreamingOptions streamingOptions, InitialPullStrategy initialPullStrategy, bool pushChanges, ISetHandler<T> setHandler = null)
5051
{
5152
this.childQuery = childQuery;
@@ -93,7 +94,7 @@ public ISetHandler<T> PutHandler
9394
/// </summary>
9495
/// <param name="key"> The key. </param>
9596
/// <param name="obj"> The object to set. </param>
96-
/// <param name="syncOnline"> Indicates whether the item should be synced online. </param>
97+
/// <param name="syncOptions"> Specifies type of sync requested for given data. </param>
9798
/// <param name="priority"> The priority. Objects with higher priority will be synced first. Higher number indicates higher priority. </param>
9899
public void Set(string key, T obj, SyncOptions syncOptions, int priority = 1)
99100
{

src/Firebase/Query/FirebaseQuery.cs

+4-6
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ public async Task<T> OnceSingleAsync<T>(TimeSpan? timeout = null)
109109
/// Starts observing this query watching for changes real time sent by the server.
110110
/// </summary>
111111
/// <typeparam name="T"> Type of elements. </typeparam>
112+
/// <param name="exceptionHandler"> Optional exception handler for the stream subscription. </param>
112113
/// <param name="elementRoot"> Optional custom root element of received json items. </param>
113114
/// <returns> Observable stream of <see cref="FirebaseEvent{T}"/>. </returns>
114115
public IObservable<FirebaseEvent<T>> AsObservable<T>(EventHandler<ContinueExceptionEventArgs<FirebaseException>> exceptionHandler = null, string elementRoot = "")
@@ -140,10 +141,9 @@ public async Task<string> BuildUrlAsync()
140141
/// <summary>
141142
/// Posts given object to repository.
142143
/// </summary>
143-
/// <param name="obj"> The object. </param>
144+
/// <param name="data"> The json data. </param>
144145
/// <param name="generateKeyOffline"> Specifies whether the key should be generated offline instead of online. </param>
145146
/// <param name="timeout"> Optional timeout value. </param>
146-
/// <typeparam name="T"> Type of <see cref="obj"/> </typeparam>
147147
/// <returns> Resulting firebase object with populated key. </returns>
148148
public async Task<FirebaseObject<string>> PostAsync(string data, bool generateKeyOffline = true, TimeSpan? timeout = null)
149149
{
@@ -168,9 +168,8 @@ public async Task<FirebaseObject<string>> PostAsync(string data, bool generateKe
168168
/// <summary>
169169
/// Patches data at given location instead of overwriting them.
170170
/// </summary>
171-
/// <param name="obj"> The object. </param>
171+
/// <param name="data"> The json data. </param>
172172
/// <param name="timeout"> Optional timeout value. </param>
173-
/// <typeparam name="T"> Type of <see cref="obj"/> </typeparam>
174173
/// <returns> The <see cref="Task"/>. </returns>
175174
public Task PatchAsync(string data, TimeSpan? timeout = null)
176175
{
@@ -182,9 +181,8 @@ public Task PatchAsync(string data, TimeSpan? timeout = null)
182181
/// <summary>
183182
/// Sets or overwrites data at given location.
184183
/// </summary>
185-
/// <param name="obj"> The object. </param>
184+
/// <param name="data"> The json data. </param>
186185
/// <param name="timeout"> Optional timeout value. </param>
187-
/// <typeparam name="T"> Type of <see cref="obj"/> </typeparam>
188186
/// <returns> The <see cref="Task"/>. </returns>
189187
public Task PutAsync(string data, TimeSpan? timeout = null)
190188
{

src/Firebase/Query/QueryExtensions.cs

+15-15
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static ChildQuery Child(this ChildQuery node, string path)
5454
}
5555

5656
/// <summary>
57-
/// Order data by given <see cref="propertyName"/>. Note that this is used mainly for following filtering queries and due to firebase implementation
57+
/// Order data by given <paramref name="propertyName"/>. Note that this is used mainly for following filtering queries and due to firebase implementation
5858
/// the data may actually not be ordered.
5959
/// </summary>
6060
/// <param name="child"> The child. </param>
@@ -66,7 +66,7 @@ public static OrderQuery OrderBy(this ChildQuery child, string propertyName)
6666
}
6767

6868
/// <summary>
69-
/// Instructs firebase to send data greater or equal to the <see cref="value"/>. This must be preceded by an OrderBy query.
69+
/// Instructs firebase to send data greater or equal to the <paramref name="value"/>. This must be preceded by an OrderBy query.
7070
/// </summary>
7171
/// <param name="child"> Current node. </param>
7272
/// <param name="value"> Value to start at. </param>
@@ -77,7 +77,7 @@ public static FilterQuery StartAt(this ParameterQuery child, string value)
7777
}
7878

7979
/// <summary>
80-
/// Instructs firebase to send data lower or equal to the <see cref="value"/>. This must be preceded by an OrderBy query.
80+
/// Instructs firebase to send data lower or equal to the <paramref name="value"/>. This must be preceded by an OrderBy query.
8181
/// </summary>
8282
/// <param name="child"> Current node. </param>
8383
/// <param name="value"> Value to start at. </param>
@@ -88,7 +88,7 @@ public static FilterQuery EndAt(this ParameterQuery child, string value)
8888
}
8989

9090
/// <summary>
91-
/// Instructs firebase to send data equal to the <see cref="value"/>. This must be preceded by an OrderBy query.
91+
/// Instructs firebase to send data equal to the <paramref name="value"/>. This must be preceded by an OrderBy query.
9292
/// </summary>
9393
/// <param name="child"> Current node. </param>
9494
/// <param name="value"> Value to start at. </param>
@@ -99,7 +99,7 @@ public static FilterQuery EqualTo(this ParameterQuery child, string value)
9999
}
100100

101101
/// <summary>
102-
/// Instructs firebase to send data greater or equal to the <see cref="value"/>. This must be preceded by an OrderBy query.
102+
/// Instructs firebase to send data greater or equal to the <paramref name="value"/>. This must be preceded by an OrderBy query.
103103
/// </summary>
104104
/// <param name="child"> Current node. </param>
105105
/// <param name="value"> Value to start at. </param>
@@ -110,7 +110,7 @@ public static FilterQuery StartAt(this ParameterQuery child, double value)
110110
}
111111

112112
/// <summary>
113-
/// Instructs firebase to send data lower or equal to the <see cref="value"/>. This must be preceded by an OrderBy query.
113+
/// Instructs firebase to send data lower or equal to the <paramref name="value"/>. This must be preceded by an OrderBy query.
114114
/// </summary>
115115
/// <param name="child"> Current node. </param>
116116
/// <param name="value"> Value to start at. </param>
@@ -121,7 +121,7 @@ public static FilterQuery EndAt(this ParameterQuery child, double value)
121121
}
122122

123123
/// <summary>
124-
/// Instructs firebase to send data equal to the <see cref="value"/>. This must be preceded by an OrderBy query.
124+
/// Instructs firebase to send data equal to the <paramref name="value"/>. This must be preceded by an OrderBy query.
125125
/// </summary>
126126
/// <param name="child"> Current node. </param>
127127
/// <param name="value"> Value to start at. </param>
@@ -132,7 +132,7 @@ public static FilterQuery EqualTo(this ParameterQuery child, double value)
132132
}
133133

134134
/// <summary>
135-
/// Instructs firebase to send data greater or equal to the <see cref="value"/>. This must be preceded by an OrderBy query.
135+
/// Instructs firebase to send data greater or equal to the <paramref name="value"/>. This must be preceded by an OrderBy query.
136136
/// </summary>
137137
/// <param name="child"> Current node. </param>
138138
/// <param name="value"> Value to start at. </param>
@@ -143,7 +143,7 @@ public static FilterQuery StartAt(this ParameterQuery child, long value)
143143
}
144144

145145
/// <summary>
146-
/// Instructs firebase to send data lower or equal to the <see cref="value"/>. This must be preceded by an OrderBy query.
146+
/// Instructs firebase to send data lower or equal to the <paramref name="value"/>. This must be preceded by an OrderBy query.
147147
/// </summary>
148148
/// <param name="child"> Current node. </param>
149149
/// <param name="value"> Value to start at. </param>
@@ -154,7 +154,7 @@ public static FilterQuery EndAt(this ParameterQuery child, long value)
154154
}
155155

156156
/// <summary>
157-
/// Instructs firebase to send data equal to the <see cref="value"/>. This must be preceded by an OrderBy query.
157+
/// Instructs firebase to send data equal to the <paramref name="value"/>. This must be preceded by an OrderBy query.
158158
/// </summary>
159159
/// <param name="child"> Current node. </param>
160160
/// <param name="value"> Value to start at. </param>
@@ -165,7 +165,7 @@ public static FilterQuery EqualTo(this ParameterQuery child, long value)
165165
}
166166

167167
/// <summary>
168-
/// Instructs firebase to send data equal to the <see cref="value"/>. This must be preceded by an OrderBy query.
168+
/// Instructs firebase to send data equal to the <paramref name="value"/>. This must be preceded by an OrderBy query.
169169
/// </summary>
170170
/// <param name="child"> Current node. </param>
171171
/// <param name="value"> Value to start at. </param>
@@ -186,7 +186,7 @@ public static FilterQuery EqualTo(this ParameterQuery child)
186186
}
187187

188188
/// <summary>
189-
/// Limits the result to first <see cref="count"/> items.
189+
/// Limits the result to first <paramref name="count"/> items.
190190
/// </summary>
191191
/// <param name="child"> Current node. </param>
192192
/// <param name="count"> Number of elements. </param>
@@ -197,7 +197,7 @@ public static FilterQuery LimitToFirst(this ParameterQuery child, int count)
197197
}
198198

199199
/// <summary>
200-
/// Limits the result to last <see cref="count"/> items.
200+
/// Limits the result to last <paramref name="count"/> items.
201201
/// </summary>
202202
/// <param name="child"> Current node. </param>
203203
/// <param name="count"> Number of elements. </param>
@@ -231,7 +231,7 @@ public static async Task<FirebaseObject<T>> PostAsync<T>(this FirebaseQuery quer
231231
/// <param name="query"> Current node. </param>
232232
/// <param name="item"> Object to fan out. </param>
233233
/// <param name="relativePaths"> Locations where to store the item. </param>
234-
public static Task FanOut<T>(this ChildQuery child, T item, params string[] relativePaths)
234+
public static Task FanOut<T>(this ChildQuery query, T item, params string[] relativePaths)
235235
{
236236
if (relativePaths == null)
237237
{
@@ -245,7 +245,7 @@ public static Task FanOut<T>(this ChildQuery child, T item, params string[] rela
245245
fanoutObject.Add(path, item);
246246
}
247247

248-
return child.PatchAsync(fanoutObject);
248+
return query.PatchAsync(fanoutObject);
249249
}
250250
}
251251
}

0 commit comments

Comments
 (0)