ifish/Ifish/controllers/IfishTabControllers/消息/IfishIMFiles/Sessions/Util/NTESDemoConfig.m

55 lines
921 B
Objective-C

//
// NTESDemoConfig.m
// NIM
//
// Created by amao on 4/21/15.
// Copyright (c) 2015 Netease. All rights reserved.
//
#import "NTESDemoConfig.h"
@interface NTESDemoConfig ()
@end
@implementation NTESDemoConfig
+ (instancetype)sharedConfig
{
static NTESDemoConfig *instance = nil;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
instance = [[NTESDemoConfig alloc] init];
});
return instance;
}
- (instancetype)init
{
if (self = [super init])
{
_appKey = @"45c6af3c98409b18a84451215d0bdd6e";
_apiURL = @"https://app.netease.im/api";
_cerName= @"ENTERPRISE";
}
return self;
}
- (NSString *)appKey
{
return _appKey;
}
- (NSString *)apiURL
{
NSAssert([[NIMSDK sharedSDK] isUsingDemoAppKey], @"只有 demo appKey 才能够使用这个API接口");
return _apiURL;
}
- (NSString *)cerName
{
return _cerName;
}
@end