This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(void)launchGroupOfTwoWithClientId:(NSString*)clientGroupId | |
withMetaData:(NSMutableDictionary*)metadata | |
andWithUser:(NSString *)userId | |
andFromViewController:(UIViewController *)viewController | |
{ | |
ALChannelService * channelService = [[ALChannelService alloc] init]; | |
ALChannel *alChannel = [channelService fetchChannelWithClientChannelKey:clientGroupId]; | |
if (alChannel){ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ALUserService * userService = [ALUserService new ]; | |
[userService getUserDetail:userId withCompletion:^(ALContact *contact) { | |
ALChatManager * chatManager = [[ALChatManager alloc] init]; | |
[chatManager launchChatForUserWithDisplayName:userId withGroupId:nil | |
andwithDisplayName:nil andFromViewController:self]; | |
}]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |