text: //
  //  AppDelegate.h
  //  RongCloudDemo
  //
  //  Created by 杜立召 on 15/4/18.
  //  Copyright (c) 2015年 dlz. All rights reserved.
  //
  #import <UIKit/UIKit.h>
  #import <RongIMLib/RongIMLib.h>
  #import <RongIMKit/RongIMKit.h>
  #import "VipViewController.h"
  #import "JoinViewController.h"
  #import "JPUSHService.h"
  
  @interface AppDelegate : UIResponder <UIApplicationDelegate,RCIMConnectionStatusDelegate,JPUSHRegisterDelegate>
  {
  //   全局变量  在线学习的viewpager的上部导航栏title
      NSMutableArray *onlineReadinngTitle;
  //   记录在线学习的viewpager当前页面是第几页
      int *indexOnlineReadinng;
      
      NSString *ipString;
      NSString *token;
      //融云
      NSString *rtoken;
      NSString *appId;
      NSString *appSecret;
      NSString *schoolId;
      
      NSString *userName;
      NSString *phone;
      NSString *pwd;
      //当加载内容的时候，如果网络状况不好，显示这张默认图片
      NSString *loadingImg;
      NSString *defaultAvatar;
      
      UIColor *navigationBarColor;
      
      
       NSMutableArray *linkManArray;
      
  }
  @property (strong, nonatomic) UIWindow *window;
  
  /** 设置全局变量的属性. */
  @property (nonatomic, strong)NSMutableArray *onlineReadinngTitle;
  @property (nonatomic)int *indexOnlineReadinng;
  @property (nonatomic,strong)NSString *ipString;
  @property (nonatomic,strong)NSString *token;
  @property (nonatomic,strong)NSString *rtoken;
  @property (nonatomic,strong)NSString *appId;
  @property (nonatomic,strong)NSString *appSecret;
  @property (nonatomic,strong)NSString *schoolId;
  @property (nonatomic,strong)NSString *userName;
  @property (nonatomic,strong)NSString *phone;
  @property (nonatomic,strong)NSString *pwd;
  
  @property (nonatomic,strong)NSString *loadingImg;
  @property (nonatomic,strong)NSString *defaultAvatar;
  
  @property (nonatomic,strong)NSMutableArray *linkManArray;
  @property (nonatomic,strong)UIColor *navigationBarColor;
  @property(nonatomic,assign)BOOL allowRotation;//是否允许转向
  
  @property (nonatomic, strong) VipViewController *mController;
  @property (nonatomic, strong) JoinViewController *mJoinViewController;
  //@synthesize mController;
  
  
  +(void)loginRongCloud :(NSString *) token;
  //token失效重新登录
  +(void)reLogin :(UIViewController *)viewController;
  //判断是不是老师
  +(Boolean) isTeacher;
  +(void) goToVip: (UIViewController *)viewController;
  +(NSString* )unicodedateToString:(NSNumber* )date ;
  @end
  
  