FPendingPut.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * Copyright 2017 Google
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #import "FirebaseDatabase/Sources/Core/Utilities/FPath.h"
  17. #import <Foundation/Foundation.h>
  18. // These are all legacy classes and are used to migrate older persistence data
  19. // base to newer ones These classes should not be used in newer code
  20. @interface FPendingPut : NSObject <NSCoding>
  21. @property(nonatomic, strong) FPath *path;
  22. @property(nonatomic, strong) id data;
  23. @property(nonatomic, strong) id priority;
  24. - (id)initWithPath:(FPath *)aPath andData:(id)aData andPriority:aPriority;
  25. - (void)encodeWithCoder:(NSCoder *)aCoder;
  26. - (id)initWithCoder:(NSCoder *)aDecoder;
  27. @end
  28. @interface FPendingPutPriority : NSObject <NSCoding>
  29. @property(nonatomic, strong) FPath *path;
  30. @property(nonatomic, strong) id priority;
  31. - (id)initWithPath:(FPath *)aPath andPriority:(id)aPriority;
  32. - (void)encodeWithCoder:(NSCoder *)aCoder;
  33. - (id)initWithCoder:(NSCoder *)aDecoder;
  34. @end
  35. @interface FPendingUpdate : NSObject <NSCoding>
  36. @property(nonatomic, strong) FPath *path;
  37. @property(nonatomic, strong) NSDictionary *data;
  38. - (id)initWithPath:(FPath *)aPath andData:(NSDictionary *)aData;
  39. - (void)encodeWithCoder:(NSCoder *)aCoder;
  40. - (id)initWithCoder:(NSCoder *)aDecoder;
  41. @end