12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- //
- // DataManager.h
- // Artimenring
- //
- // Created by BaH Cy on 2/11/15.
- // Copyright (c) 2015 BaH Cy. All rights reserved.
- //
- #import <FBSDKLoginKit/FBSDKLoginKit.h>
- #import <JCSDKOC/JCSDKOC.h>
- #import "SKInCallViewController.h"
- typedef enum BindOptions{
- BO_ADD,
- BO_REBIND,
- BO_FROMLOGIN,
- } BindOptions;
- @protocol DataManagerDelegate <NSObject>
- - (void)onBindAlready;
- - (void)onRefreshChildsDevices;
- - (void)onChangeChild:(NSInteger)index;
- - (void)onReceiveLocation:(BaseCoordinatesModel*)model;
- - (void)onReceiveNewChat;
- - (void)onReceiveNewNotification:(BOOL)status;
- - (void)onReceiveUpdateChat:(SessionMessageModel*)model;
- - (void)onRefreshTabBarBadge:(NSInteger)count;
- - (void)onReceiveWeather;
- - (void)onSocketStatusChange;
- @end
- @interface MutableDelegateObject : NSObject
- @property(nonatomic, weak) id<DataManagerDelegate> delegate;
- @end
- @interface DataManager : NSObject
- + (DataManager *)shared;
- @property(nonatomic, strong) LogInModel* loginModel;
- @property(nonatomic, strong) ChildModel* mSelectChildModel;
- @property(nonatomic, strong) NSMutableArray* mChildList;
- @property(nonatomic, strong) NSMutableArray* mSessionList;
- @property(nonatomic, strong) NSMutableArray *mPushRecordArray; /** 推送历史 */
- @property(nonatomic, strong) NSTimer* mChildsDevicesTimer;
- @property(nonatomic, assign) BOOL isNewNotification;
- @property(nonatomic, assign) BindOptions bindOptions;
- @property(nonatomic, strong) NSMutableArray<MutableDelegateObject*> *delegateObjects;
- @property(nonatomic, strong) NSMutableDictionary* mAddressMap;
- - (BOOL)isLogin;
- - (void)logout;
- /** 设置根控制器 */
- - (void)showTabBarController;
- - (void)showSKLoginViewController;
- - (void)showSKSelectAreaViewController;
- - (void)showBindViewController;
- - (BOOL)isRootTabBarController;
- - (id)getFBSDKLoginManager;
- - (void)setFBSDKLoginManager:(id)manager;
- @end
|