Skip to content

Commit 467b971

Browse files
committed
change renamed classes in other files, break swift sample
1 parent 9167afc commit 467b971

16 files changed

+198
-210
lines changed

FirebaseDatabaseUI/FUIArray.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ NS_ASSUME_NONNULL_BEGIN
3939
@end
4040

4141
/**
42-
* FirebaseArray provides an array structure that is synchronized with a Firebase reference or
42+
* FUIArray provides an array structure that is synchronized with a Firebase reference or
4343
* query. It is useful for building custom data structures or sources, and provides the base for
4444
* FirebaseDataSource.
4545
*/
@@ -52,27 +52,27 @@ NS_ASSUME_NONNULL_BEGIN
5252
@property(weak, nonatomic, nullable) id<FUIArrayDelegate> delegate;
5353

5454
/**
55-
* The query on a Firebase reference that provides data to populate the instance of FirebaseArray.
55+
* The query on a Firebase reference that provides data to populate the array.
5656
*/
5757
@property(strong, nonatomic) id<FIRDataObservable> query;
5858

5959
/**
60-
* The number of objects in the FirebaseArray.
60+
* The number of objects in the array.
6161
*/
6262
@property(nonatomic, readonly) NSUInteger count;
6363

6464
/**
65-
* The items currently in the FirebaseArray.
65+
* The items currently in the array.
6666
*/
6767
@property(nonatomic, readonly, copy) NSArray *items;
6868

6969
#pragma mark - Initializer methods
7070

7171
/**
72-
* Initalizes FirebaseArray with a Firebase query (FIRDatabaseQuery) or database reference
72+
* Initalizes an FUIArray with a Firebase query (FIRDatabaseQuery) or database reference
7373
* (FIRDatabaseReference).
7474
* @param query A query or Firebase database reference
75-
* @return A FirebaseArray instance
75+
* @return An FUIArray instance
7676
*/
7777
- (instancetype)initWithQuery:(id<FIRDataObservable>)query NS_DESIGNATED_INITIALIZER;
7878

@@ -81,14 +81,14 @@ NS_ASSUME_NONNULL_BEGIN
8181
#pragma mark - Public API methods
8282

8383
/**
84-
* Returns an object at a specific index in the FirebaseArray.
84+
* Returns an object at a specific index in the array.
8585
* @param index The index of the item to retrieve
8686
* @return The object at the given index
8787
*/
8888
- (id)objectAtIndex:(NSUInteger)index;
8989

9090
/**
91-
* Returns a Firebase reference for an object at a specific index in the FirebaseArray.
91+
* Returns a Firebase reference for an object at a specific index in the array.
9292
* @param index The index of the item to retrieve a reference for
9393
* @return A Firebase reference for the object at the given index
9494
*/

FirebaseDatabaseUI/FUIArray.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
@interface FUIArray ()
2424

2525
/**
26-
* The backing collection that holds all of the FirebaseArray's data.
26+
* The backing collection that holds all of the array's data.
2727
*/
2828
@property(strong, nonatomic) NSMutableArray<FIRDataSnapshot *> *snapshots;
2929

FirebaseDatabaseUI/FUIArrayDelegate.h

Lines changed: 17 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -21,54 +21,45 @@
2121
@class FUIArray;
2222

2323
/**
24-
* A protocol to allow instances of FirebaseArray to raise events through a
25-
* delegate. Raises all
26-
* Firebase events except FIRDataEventTypeValue.
24+
* A protocol to allow instances of FUIArray to raise events through a
25+
* delegate. Raises all Firebase events except FIRDataEventTypeValue.
2726
*/
2827
@protocol FUIArrayDelegate<NSObject>
2928

3029
@optional
3130

3231
/**
33-
* Delegate method which is called whenever an object is added to a
34-
* FirebaseArray. On a
35-
* FirebaseArray synchronized to a Firebase reference, this corresponds to an
36-
* [FIRDataEventTypeChildAdded](https://www.firebase.com/docs/ios/guide/retrieving-data.html#section-event-types)
37-
* event being raised.
38-
* @param object The object added to the FirebaseArray
32+
* Delegate method which is called whenever an object is added to an FUIArray.
33+
* On a FUIArray synchronized to a Firebase reference, this corresponds to an
34+
* @c FIRDataEventTypeChildAdded event being raised.
35+
* @param object The object added to the FUIArray
3936
* @param index The index the child was added at
4037
*/
4138
- (void)array:(FUIArray *)array didAddObject:(id)object atIndex:(NSUInteger)index;
4239

4340
/**
44-
* Delegate method which is called whenever an object is chinged in a
45-
* FirebaseArray. On a
46-
* FirebaseArray synchronized to a Firebase reference, this corresponds to an
47-
* [FIRDataEventTypeChildChanged](https://www.firebase.com/docs/ios/guide/retrieving-data.html#section-event-types)
48-
* event being raised.
49-
* @param object The object that changed in the FirebaseArray
41+
* Delegate method which is called whenever an object is changed in an
42+
* FUIArray. On a FUIArray synchronized to a Firebase reference, this
43+
* corresponds to an @c FIRDataEventTypeChildChanged event being raised.
44+
* @param object The object that changed in the FUIArray
5045
* @param index The index the child was changed at
5146
*/
5247
- (void)array:(FUIArray *)array didChangeObject:(id)object atIndex:(NSUInteger)index;
5348

5449
/**
55-
* Delegate method which is called whenever an object is removed from a
56-
* FirebaseArray. On a
57-
* FirebaseArray synchronized to a Firebase reference, this corresponds to an
58-
* [FIRDataEventTypeChildRemoved](https://www.firebase.com/docs/ios/guide/retrieving-data.html#section-event-types)
59-
* event being raised.
60-
* @param object The object removed from the FirebaseArray
50+
* Delegate method which is called whenever an object is removed from an
51+
* FUIArray. On a FUIArray synchronized to a Firebase reference, this
52+
* corresponds to an @c FIRDataEventTypeChildRemoved event being raised.
53+
* @param object The object removed from the FUIArray
6154
* @param index The index the child was removed at
6255
*/
6356
- (void)array:(FUIArray *)array didRemoveObject:(id)object atIndex:(NSUInteger)index;
6457

6558
/**
6659
* Delegate method which is called whenever an object is moved within a
67-
* FirebaseArray. On a
68-
* FirebaseArray synchronized to a Firebase reference, this corresponds to an
69-
* [FIRDataEventTypeChildMoved](https://www.firebase.com/docs/ios/guide/retrieving-data.html#section-event-types)
70-
* event being raised.
71-
* @param object The object that has moved locations in the FirebaseArray
60+
* FUIArray. On a FUIArray synchronized to a Firebase reference, this
61+
* corresponds to an @c FIRDataEventTypeChildMoved event being raised.
62+
* @param object The object that has moved locations in the FUIArray
7263
* @param fromIndex The index the child is being moved from
7364
* @param toIndex The index the child is being moved to
7465
*/

0 commit comments

Comments
 (0)