///
/// Copyright (c) 2016 Dropbox, Inc. All rights reserved.
///
/// Auto-generated by Stone, do not modify.
///

#import "DBOPENIDRouteObjects.h"
#import "DBOPENIDOpenIdError.h"
#import "DBOPENIDUserAuthRoutes.h"
#import "DBOPENIDUserInfoError.h"
#import "DBOPENIDUserInfoResult.h"
#import "DBRequestErrors.h"
#import "DBStoneBase.h"

@implementation DBOPENIDRouteObjects

static DBRoute *DBOPENIDUserinfo;

static NSObject *lockObj = nil;
+ (void)initialize {
  static dispatch_once_t onceToken;
  dispatch_once(&onceToken, ^{
    lockObj = [[NSObject alloc] init];
  });
}

+ (DBRoute *)DBOPENIDUserinfo {
  @synchronized(lockObj) {
    if (!DBOPENIDUserinfo) {
      DBOPENIDUserinfo = [[DBRoute alloc] init:@"userinfo"
                                    namespace_:@"openid"
                                    deprecated:@NO
                                    resultType:[DBOPENIDUserInfoResult class]
                                     errorType:[DBOPENIDUserInfoError class]
                                         attrs:@{@"auth" : @"user", @"host" : @"api", @"style" : @"rpc"}
                         dataStructSerialBlock:nil
                       dataStructDeserialBlock:nil];
    }
    return DBOPENIDUserinfo;
  }
}

@end
