Guest User

Untitled

a guest
May 21st, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. // Get type specific information
  2. if([type isEqualToString:@"invite"] || [type isEqualToString:@"accept"])
  3. {
  4. routerType = [[self class] stringToRouterType:[[x elementForName:@"router"] stringValue]];
  5.  
  6. ip = [[[x elementForName:@"ip"] stringValue] copy];
  7.  
  8. port = [[[x elementForName:@"port"] stringValue] intValue];
  9.  
  10. portRange = NSRangeFromString([[x elementForName:@"portRange"] stringValue]);
  11. }
  12. else if([type isEqualToString:@"callback"])
  13. {
  14. port = [[[x elementForName:@"port"] stringValue] intValue];
  15.  
  16. portRange = NSRangeFromString([[x elementForName:@"portRange"] stringValue]);
  17. }
  18. else if([type isEqualToString:@"error"])
  19. {
  20. errorMessage = [[[x elementForName:@"message"] stringValue] copy];
  21. }
Add Comment
Please, Sign In to add comment